Sub-Task #309
Updated by Bricklou 20 days ago
Technical specification of the member list of a group, so that the page needs a single request.
* `GET /api/v1/groups/{id}/members` returns a page of members. Each member carries the user (id, username, avatar address), when they were added, and who added them (id, username (id and avatar address, username, or nothing).
* The list is paginated, and can be searched by username and sorted by username or by date of addition, like the other server-driven lists.
* The names come from route assembles the same query as the page: the members are joined with their accounts, and the accounts that added them are read for the page only. user directory service. The group feature keeps working with user ids everywhere else. only.
* The right to read the groups is enough to see the names of their members.
* A member whose An account that is suspended is still named. Someone added by the system, or by an account that was deleted, has no author. longer in service keeps its id as its name.
* The dashboard shows the list with its server-driven table and no longer calls `POST /api/v1/users/lookup` for the members of a group. The number of members a group has, asked before deleting it, is the total of the first page.
* The dialog that adds members does not suggest again the members of the page being shown. Adding someone who is already a member changes nothing.
Acceptance criteria:
* [x] [ ] The member list of a group is loaded with one request, one page at a time.
* [x] [ ] Each member shows their avatar, or their initials, and their username.
* [x] [ ] The date of addition and the username of who added them are shown.
* [x] [ ] The list can be searched and sorted from the page.
* [x] [ ] Reading the groups is enough: no other right is asked to see the names.
* [x] [ ] Every case is covered by a test, with a real database.