fix(login): persona click signs in directly + friendly error copy #3

Merged
shad merged 1 commits from fix/login-resilience into main 2026-06-14 21:26:01 +00:00
1 Commits
Author SHA1 Message Date
canvas-bot 1f419dc078 fix(login): persona click signs in directly + friendly error copy
build-and-publish / test (pull_request) Has been cancelled
build-and-publish / image (pull_request) Has been cancelled
- Persona chips (Mariana CEO, Aisha HR, Rohan IT) now run dev-login on
  click instead of just populating the email field. Closes the dogfood
  failure 'ceo_persona_dev_login_lands_on_landing'.
- api.ts: replace 'Login failed: 502 <html>...502 Bad Gateway...' with
  a human-readable friendlyAuthError() mapping (502/504/503/404/401)
  so a regional store manager sees 'auth service temporarily down' not
  an HTTP status dump. Aligns with the business-as-code mandate.
- api.test: ping() failure assertion widened to match the new copy.

31/31 vitest tests pass. tsc + vite build green.
2026-06-15 01:25:37 +04:00