You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The user list on the admin panel currently shows all users ordered by ID. It would be a big improvement to be able to search through it based on username and use the available search gambits. (https://flarum.test/admin#/users)
What needs to be done
The logic/endpoint for searching on the backend is already available, so we just need to hit the API with a search query from the frontend.
First, we need to add the search input above the table (
Then we need the input to store the updated value on a state variable, we an use a Stream property and the bidi attribute for that, here's an example with the nameSingular input value:
Description
The user list on the admin panel currently shows all users ordered by ID. It would be a big improvement to be able to search through it based on username and use the available search gambits. (https://flarum.test/admin#/users)
What needs to be done
The logic/endpoint for searching on the backend is already available, so we just need to hit the API with a search query from the frontend.
framework/framework/core/js/src/admin/components/UserListPage.tsx
Line 94 in 0e2053d
Stream
property and thebidi
attribute for that, here's an example with thenameSingular
input value:framework/framework/core/js/src/admin/components/EditGroupModal.tsx
Line 74 in cf818aa
framework/framework/core/js/src/admin/components/UserListPage.tsx
Lines 340 to 345 in 0e2053d
filter: { q: query }
The text was updated successfully, but these errors were encountered: