Extends the login-screen backend-health banner (PR #5) to every authenticated scene, so a regional store manager hitting Mission Control / Hubs / Chat during a backend outage sees a one-line explanation instead of silent failure.
src/lib/useBackendHealth.ts polls /api/v1/auth/me every 30s. Status mapping: 200/401/403 → up, 502/504 → proxy-down, 503 → auth-down.
App.tsx renders .global-banner above the topbar whenever proxy or auth is down. Hidden on /login (already has its own banner) and during SSO callback.
Dark-theme banner colours added.
31/31 vitest pass. tsc -b + vite build green.
Extends the login-screen backend-health banner (PR #5) to every authenticated scene, so a regional store manager hitting Mission Control / Hubs / Chat during a backend outage sees a one-line explanation instead of silent failure.
- `src/lib/useBackendHealth.ts` polls `/api/v1/auth/me` every 30s. Status mapping: `200/401/403 → up`, `502/504 → proxy-down`, `503 → auth-down`.
- `App.tsx` renders `.global-banner` above the topbar whenever proxy or auth is down. Hidden on `/login` (already has its own banner) and during SSO callback.
- Dark-theme banner colours added.
31/31 vitest pass. `tsc -b` + `vite build` green.
The login screen already shows a yellow banner when /api/* is in
proxy-down (502/504) or auth-down (503) state. Extend the same signal
to every authenticated scene so a regional store manager seeing a
broken Mission Control gets a one-line explanation, not silent failure.
- New src/lib/useBackendHealth.ts polls /api/v1/auth/me every 30s
(cheap, returns 401 when healthy + unauth'd so it doubles as auth
probe). Status maps: 200/401/403 -> up, 502/504 -> proxy-down,
503 -> auth-down.
- App.tsx renders .global-banner above the topbar whenever the proxy
or auth service is down. Hidden on /login (Login.tsx already has
its own banner) and during SSO callback.
- Dark-theme banner colours added.
31/31 vitest pass. tsc + vite build green.
shad
merged commit 50b42c7110 into main2026-06-14 21:49:38 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Extends the login-screen backend-health banner (PR #5) to every authenticated scene, so a regional store manager hitting Mission Control / Hubs / Chat during a backend outage sees a one-line explanation instead of silent failure.
src/lib/useBackendHealth.tspolls/api/v1/auth/meevery 30s. Status mapping:200/401/403 → up,502/504 → proxy-down,503 → auth-down.App.tsxrenders.global-bannerabove the topbar whenever proxy or auth is down. Hidden on/login(already has its own banner) and during SSO callback.31/31 vitest pass.
tsc -b+vite buildgreen.