Added filtering by role to the users index page for admins #1495
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What it does
These changes allow admin users to filter the users index page in the admin interface by role. By default they'll see all users, but they can choose admin only, staff only, or members only.
Why it is important
This should make some admin tasks easier when it comes to users. See #1251 for more.
UI Change Screenshot
With the members only filter active:
With the admin only filter active:
With no filters active (ie all users):
Implementation notes
The card didn't specifically mention being able to filter by the member role but I included it anyway.
Not sure if pagination or sorting would be helpful here as well.I just went through the pagination card for this page (#1496).