Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Sort/find users by username (ID) in admin interface

Open andreaskoepf opened this issue 2 years ago • 1 comments

Currently it is possible to search for users by their display name and the user list is in general ordered by display name.

To assign the moderator role to a user it would be helpful to search for a user by their discord ID. The backend already supports this by specifying sort_key=username in the query to /api/v1/users/cursor. Probably all that would have to be done in the frontend is to allow switching between sort_key 'username' and 'display_name' and displaying the the search box either on the column-header of the display name or the username column depending on the selected sort_key.

(btw if someone is working on it, it would be great if the focus could be set to the input of the search box after clicking the filter button.)

andreaskoepf avatar Feb 16 '23 09:02 andreaskoepf

I am working on this now

owenduncansnobel avatar Feb 21 '23 03:02 owenduncansnobel