New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server-side sorting of admin page #4722
Conversation
removes in-page sort, which removes sort by server name, sort by running Running column switches from sort to filter, matching the `?state` query parameter in the API needs some CSS on the column widths to avoid jumps when toggling active servers
avoids imperfect logic detecting `?`
next to name filter, so it's not in the table headings merges Running & Actions columns, since it's really just Actions now (server actions & user actions)
server model needs high-level User object for `progress_url` (it probably shouldn't)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, having "only "
before in the label makes the function of the added checkbox very clear, and we can afford to be verbose now that we have space where its now located - nice!
I've attempted to do code review on these parts as well and didn't find something that seemed weird - but I also didn't have time to make sure I understood the details with full confidence. Adding tests remain, and you are on that already so I'll go for an approve!
4px margin matches 8px cell padding (margin is added on both sides) and center when buttons collapse to single column
229c665
to
f47d0a1
Compare
Thanks @consideRatio! |
removes all in-page sort, which removes sort by admin, server name, sort by running, as those are not available from the API.
This builds on #4720 and #4721 to use the new
sort
parameter in the GET /users API and persist it in the new view state.This means sort, etc. are always global, no matter how many users there are (closes #3816)
Running column switches from sort to filter, matching the
?state
query parameter in the API (closes #4482). So while you can't show running servers first, you can show only running servers.needed some CSS on the column widths to avoid jumps when toggling active server filter.
demo:
admin-sort.mov
draft because I haven't updated the tests, but it works