mapdash/frontend
aaverbitskiy 341bc42778 auth ui: prevent flash of manager-only controls on load
Anonymous visitors briefly saw the manager-only filters (Brand/Manager/Status),
checkboxes and appearance menu on refresh, because applyRoleUi() hides them only
after the async Keycloak check-sso resolves.

Fix: mark those elements .manager-only and hide them pre-paint via a .role-pending
class set on <html> by the inline head script, gated by a render-blocking CSS rule
(html.role-pending .manager-only { display:none }). applyRoleUi() drops
.role-pending once the role is known and then applies the final per-element state.
Default is now fail-closed (hidden until confirmed manager), so anonymous never
flashes them; managers see the controls appear a moment after load.
2026-08-14 11:29:51 +00:00
..
public auth: Keycloak OIDC — anonymous (truncated) vs manager (full) tiers 2026-08-14 11:05:47 +00:00
src auth ui: prevent flash of manager-only controls on load 2026-08-14 11:29:51 +00:00
index.html auth ui: prevent flash of manager-only controls on load 2026-08-14 11:29:51 +00:00
package-lock.json auth: Keycloak OIDC — anonymous (truncated) vs manager (full) tiers 2026-08-14 11:05:47 +00:00
package.json auth: Keycloak OIDC — anonymous (truncated) vs manager (full) tiers 2026-08-14 11:05:47 +00:00
tsconfig.json frontend: Vite+TypeScript scaffold (types, api) — not wired to static yet 2026-07-17 15:41:13 +00:00
vite.config.ts frontend: full modular migration (collisions/dropdown/timeline/styles), staged at /next/, prod unchanged 2026-07-17 16:17:00 +00:00