fix(login): show backend-health banner before the operator types #5

Merged
shad merged 1 commits from fix/login-backend-health into main 2026-06-14 21:31:22 +00:00
1 Commits
Author SHA1 Message Date
canvas-bot 464f9bfdad fix(login): show backend-health banner before the operator types
build-and-publish / test (pull_request) Has been cancelled
build-and-publish / image (pull_request) Has been cancelled
Pre-checks /api/v1/auth/me on mount. The status code IS the signal:
  - 200/401/403 → backend up, login can succeed
  - 502/504    → proxy down (canvas nginx → demo unreachable)
  - 503        → auth service is down upstream

Surfaces a yellow banner above the form when proxy or auth is down so
a regional store manager doesn't type their password into a flow that's
guaranteed to fail. Matches the friendlyAuthError() copy from PR #3.

31/31 vitest tests pass.
2026-06-15 01:31:06 +04:00