Repository navigation
refactor(admin): account searches and client lists build their rows once - #616
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 22 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
marked this pull request as ready for review
November 20, 2026 10:11
PiquelChips
marked this pull request as draft
November 21, 2026 14:00
PiquelChips
marked this pull request as ready for review
November 21, 2026 14:23
PiquelChips
force-pushed
the
refactor/544-admin-reason-pages
branch
from
November 21, 2026 16:00
78b06eb to
450c76c
Compare
PiquelChips
force-pushed
the
refactor/544-admin-list-helpers
branch
from
November 21, 2026 16:00
3cbae67 to
e0380ca
Compare
The users page and the grant search ran the same search, administrator list and pager; the overview listed the administrators' IDs a third time; the client list and the top bar's search built the same client rows. `App::found_users`, `App::administrator_ids` and `App::client_rows` now do each once. `Handle::parse` trims, so two `.trim()` calls before it go.
PiquelChips
force-pushed
the
refactor/544-admin-list-helpers
branch
from
November 21, 2026 19:20
e0380ca to
c2adffa
Compare
PiquelChips
enabled auto-merge
November 21, 2026 19:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #544. Stacked on #593 (
refactor/544-admin-reason-pages), which edits the same files: retarget once it merges.The users page and the grant-rights page searched accounts with the same eight steps: run the search, list the administrators, map them to IDs, build the rows and build the pager. The overview mapped the administrators to IDs a third time. The client list and the top bar's search also built the same client rows. Now
App::found_usersruns the search with its pager,App::administrator_idslists who administers, andApp::client_rowsbuilds the client rows. Each page states only its own link.Two
.trim()calls also go:Handle::parsealready trims its input, soHandle::parse(input.handle.trim())on the reserve-a-handle and rename pages did nothing extra.users.rsare untouched.search_usersand thenlist_administrators, with the same arguments; only the pure link resolution moved before them. The same scratch page dump as refactor(admin): every change that asks only why shares one page #593 (69 pages, among them the users page, the grant search, the client list and the overview) renders identical HTML to fix(ui): every error notice has its icon #564's base after normalization.Checks:
just fmt;cargo clippy -p auth-service --all-targetswith and without--all-features(-D warnings);just db test -E 'test(/^web::admin::/)'.Note
Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)