fix: Continue as default dev user button navigates to /admin #165

Closed
groombook-engineer[bot] wants to merge 2 commits from fix/gro-264-skip-login-button-v2 into main

2 Commits

Author SHA1 Message Date
Flea Flicker 8e22b5d78f test(web): update App.test.tsx for skipLogin flow
Update dev login selector tests to match new behavior:
- /admin/* routes now render in dev mode without requiring stored dev user
- non-/admin/* routes still redirect to /login when no dev user is set

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-29 15:44:55 +00:00
Flea Flicker a906a8321c fix(web): allow /admin routes in dev mode without stored dev user
Fix the "Continue as default dev user" button on /login page.

Root cause: skipLogin() navigated to /admin but App.tsx guard checked
getDevUser() (null after removal) and redirected back to /login,
cancelling the navigation.

Fix: Allow /admin/* routes to render in dev mode without requiring a
stored dev user. The redirect guard now only applies to non-/admin/*
routes when no dev user is set.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-29 15:33:43 +00:00