Repository navigation
refactor(admin): dashboard lists share one table, badge and message fields - #599
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 28 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:26
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:24
…ields Eight lists wrote out the same empty line, table-wrap, thead and tbody around their rows; seven places built a badge as a `(tone, label)` tuple; the message page and the announcement form copied the same subject and text inputs. `data_table`, `Badge` with its `badge` component, and `message_fields` now hold each once. The markup is unchanged.
…e lint `data_table`'s child makes the audit page's view slightly larger, so its render future crossed Clippy's `large_futures` limit. It is boxed like the dashboard's other large pages.
PiquelChips
force-pushed
the
refactor/544-admin-ui-tables
branch
from
November 21, 2026 15:54
e0fef16 to
26303ac
Compare
PiquelChips
enabled auto-merge
November 21, 2026 15:54
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 #564 (
fix/550-notice-icons), which also editscrates/ui/src/admin: retarget tomainonce it merges.The dashboard's components wrote three things out again and again:
table-wrap,theadandtbodyaround its rows: keys, deliveries, clients, accounts, an account's sessions, invitations, announcements and audit checkpoints. Nowdata_tabletakes the headings, the empty line and whether there are rows, and each list writes only its rows.(tone, label)tuple and read it as.0and.1. Now they return a namedBadge, and thebadgecomponent renders it. A client's listed status keeps its own match, since a typedClientStatusthere is still an open decision.message_fields, which focuses the subject only on the message page, as before.The alert card's own
badgefunction becomesalert_badge, because the component now has that name.data_table's child makes the audit page's view slightly larger, which pushed its render future over Clippy'slarge_futureslimit, soweb/admin/audit.rsboxes that render, as the dashboard does for its other large pages.sourceorigin-uicovered the alert cards in every state (needing attention, investigating, monitoring, cleared), the previous alerts and the update fields' select. The output is byte-identical.Checks:
just fmt;cargo clippy -p sourceorigin-ui -p auth-service --all-targetswith and without--all-features(-D warnings);cargo doc -D warnings -p sourceorigin-ui;cargo test --doc -p sourceorigin-ui;just test -p sourceorigin-ui --all-features;just db test -E 'test(/^web::admin::/)';just rust unused;just docs screenshots: it rewrote onlyadmin/overview.png, the known nondeterministic one, andaccount/data.png, which is already stale onmain(its top bar lacks the search box and bell the settings pages now have); neither page is touched here.Note
Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)