LC-561: unify admin status indicators onto one chip vocabulary (redesign P3) #531
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/LC-561-admin-status-chips"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Admin tables carried three different status-indicator idioms: enclaves used the shared
.lc-pill, bridges hand-rolled aninline-blockchip (four variants), anduser_row/botsused plain colored text. This standardizes everything on.lc-pill, extended with semantic variants (--success/--warning/--danger/--neutral) that reuse the same token pairs already contrast-verified for the.alert-*callouts. The retention toggle's--on/--offvariants are kept unchanged.Applied to:
healthy(success) /errored(danger) /stale(warning) /pending(neutral)Latent bug fixed
The old bridges "errored" chip used
text-danger-surface-content, which is not a real token (the danger family has no-surface-content, per LC-215), so it rendered with no explicit text color (inherited). The--dangerchip (danger-surface fill,--dangertext, matching.alert-danger) fixes it.Scope / safety
Template-only class changes plus additive CSS. Every
id/hx-swap-oobtarget is untouched (the#user-{id}row OOB, the#admin-reports-badge). Built CSS unchanged (the removed utilities are still used elsewhere). The admin header + grouped sidebar shipped under LC-510 and needed no further work here.Verify
just build-css-> no diff.dev/cargo test --test routes_admin_bridges-> 10/10 (renders every status chip; asserts the status text).dev/cargo test --test routes_admin_last_admin-> 3/3 (renders the user rows).🤖 Generated with Claude Code
https://claude.ai/code/session_011jXpZXXwpB36MvTr6JrGXN
Admin tables carried three different status-indicator idioms: enclaves used the shared .lc-pill, bridges hand-rolled an inline-block chip (four variants), and user_row / bots used plain colored text. Standardize on .lc-pill, extended with semantic variants (--success / --warning / --danger / --neutral) that reuse the same token pairs already contrast-verified for the .alert-* callouts. The retention toggle's --on / --off variants are kept as-is. Applied to: bridge health (healthy / errored / stale / pending), user ban + mute + active state, and bot enabled / disabled state. The old bridges "errored" chip used text-danger-surface-content, which is not a real token (the danger family has no -surface-content, LC-215), so it rendered with no explicit text color; the --danger chip (danger-surface fill, --danger text, matching .alert-danger) fixes that latent bug. Template-only class changes plus additive CSS; every id / hx-swap-oob target (the #user-{id} row OOB, the reports badge) is untouched. Built CSS unchanged (the removed utilities are still used elsewhere). The admin header + grouped sidebar shipped under LC-510 and needed no further work. Verified: routes_admin_bridges 10/10 (renders every status chip) and routes_admin_last_admin 3/3 (renders the user rows). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011jXpZXXwpB36MvTr6JrGXN