Support for individual user access buttons on share tab
On the share page, there are buttons for each of the logged-in user's groups, so that the user can add group access easily for the groups they're most likely to want to share with. Adding access for other groups is more difficult, because the user must search in the 'other users & groups' advanced option.
It would be nice to have a few short-cut buttons for sharing with individual users that the logged-in user is likely to want to give access to, without necessarily requiring a request/accept friends step.
This has been enabled using lists of "favourite users". A favourites list is just a list of users who you are likely to want to share your views with. People on your favourites list show up with individual "add access" buttons on the share page.
Initially, support for adding & removing favourite users will be limited to a function designed to be called by a webservice api, by an institution, to maintain a favourites list on a user's behalf. Some institutions will want to update a student's list regularly with a list of teachers for that student. At some point in the future, the same underlying structure will be used on a page where users can add, edit and maintain their own favourites lists.
The initial support has already been added on master in the following commits: