Skip to content

refactor(admin): account searches and client lists build their rows once - #616

Merged
PiquelChips merged 1 commit into
mainfrom
refactor/544-admin-list-helpers
Nov 21, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
refactor/544-admin-list-helpers

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

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_users runs the search with its pager, App::administrator_ids lists who administers, and App::client_rows builds the client rows. Each page states only its own link.

Two .trim() calls also go: Handle::parse already trims its input, so Handle::parse(input.handle.trim()) on the reserve-a-handle and rename pages did nothing extra.

  • Tests merged or removed: none.
  • Files edited outside the Admin area: none. The session handlers in users.rs are untouched.
  • Proof that behaviour is unchanged: the reads run in the same order, search_users and then list_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-targets with 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)

@PiquelChips PiquelChips added admin The admin dashboard at admin.sourceorigin.dev refactor No behviour changes labels Nov 20, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6d21e238-c876-4866-b603-e19a626fa834
Commits

Reviewing files that changed from the base of the PR and between 3bc3e87 and c2adffa.

Files selected for processing: 7

  • apps/auth-service/src/web/admin/administrators.rs
  • apps/auth-service/src/web/admin/clients.rs
  • apps/auth-service/src/web/admin/handles.rs
  • apps/auth-service/src/web/admin/overview.rs
  • apps/auth-service/src/web/admin/search.rs
  • apps/auth-service/src/web/admin/settings.rs
  • apps/auth-service/src/web/admin/users.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@PiquelChips
PiquelChips marked this pull request as ready for review November 20, 2026 10:11
@PiquelChips
PiquelChips marked this pull request as draft November 21, 2026 14:00
@PiquelChips
PiquelChips marked this pull request as ready for review November 21, 2026 14:23
@PiquelChips
PiquelChips force-pushed the refactor/544-admin-reason-pages branch from 78b06eb to 450c76c Compare November 21, 2026 16:00
@PiquelChips
PiquelChips force-pushed the refactor/544-admin-list-helpers branch from 3cbae67 to e0380ca Compare November 21, 2026 16:00
Base automatically changed from refactor/544-admin-reason-pages to main November 21, 2026 19:11
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
PiquelChips force-pushed the refactor/544-admin-list-helpers branch from e0380ca to c2adffa Compare November 21, 2026 19:20
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 3156cf4 Nov 21, 2026
14 checks passed
@PiquelChips
PiquelChips deleted the refactor/544-admin-list-helpers branch November 21, 2026 19:42
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in sourceorigin.dev Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

admin The admin dashboard at admin.sourceorigin.dev refactor No behviour changes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant