fix(ui): unify error-banner recipe, portal chrome tokens, portal name, 404 #478
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-412-copy-token"
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?
Implements MAPPS-412 (2026-08-04 mokosh-apps UI audit, F3/F4/F27/F28): copy and token drift. 6 files.
F3 - one error-banner recipe
The two
tickets.rserror banners that used the divergent dark recipe (dark:bg-red-900/30 border-red-800) now match the app-wide recipe (dark:bg-red-950/30 border-red-900), so every inline error banner uses one recipe. Extracting a shared component to de-duplicate the ~58 hand-rolled copies (the durable fix) is tracked in MAPPS-418.F4 - app-chrome hues use tokens
The three portal quick-action tiles used arbitrary blue/green/purple with no semantic logic; they now use the accent scale (
bg-accent-50 dark:bg-accent-900/20 hover:bg-accent-100 dark:hover:bg-accent-900/40,text-accenticon,text-accent-900 dark:text-accent-100label), so the portal chrome is tokenized.No action, with reason:
scripts/check-theme-tokens.sh, not a CI gate) flags onlybg-white/gray-*. These lines use neither, so they need no opt-out marker; thebg-whitesibling CTAs that DO trip the script already carrytheme-guard-allow, so the marketing opt-outs are already consistently marked.theme-guard-allow, table badge) are semantically distinct and unflagged; unifying them to one token would be wrong.F27 - one portal name
The client-facing area is now named "Client Portal" in every user-visible label: the portal-login heading, and the set-password page's four "the portal" / "customer portal" strings, plus one more "customer portal" label found by sweep in contacts.rs. Generic-prose references ("submitting tickets from the portal", "arrives through the portal") are left as idiomatic common-noun usage, and the internal portal-token / portal-flag strings are technical, not client-area names.
F28 - portal-aware, correctly-cased 404
The shared 404 now title-cases "Knowledge Base" and offers a "Go to Client Portal" (PortalHome) destination alongside Dashboard and Home.
Verification
Diff-reviewed (no local cargo):
Route::PortalHomeexists, all accent-scale tokens (accent-50/100/900) are defined in input.css, no "customer portal" label remains, no em-dash. CI runs fmt/clippy(-D warnings)/wasm-build/tests.#MAPPS-412