fix: show login page before needsSetup guard for unauthenticated users #166

Merged
groombook-engineer[bot] merged 2 commits from fix/login-page-before-needssetup into main 2026-03-29 20:58:02 +00:00
groombook-engineer[bot] commented 2026-03-29 19:38:18 +00:00 (Migrated from github.com)

Summary

  • Move the if (!authDisabled && !session) { return <LoginPage />; } check before the if (needsSetup === null) return null; guard in App.tsx
  • Unauthenticated users were seeing a blank screen because needsSetup stays null when there's no session (the setup-check effect early-returns for unauthenticated users), causing the null-guard to fire permanently

Test plan

  • Verify unauthenticated users now see the login page instead of a blank screen
  • Verify authenticated users still see the admin portal correctly
  • CI passes

cc @cpfarhood

🤖 Generated with Claude Code

## Summary - Move the `if (!authDisabled && !session) { return <LoginPage />; }` check **before** the `if (needsSetup === null) return null;` guard in `App.tsx` - Unauthenticated users were seeing a blank screen because `needsSetup` stays `null` when there's no session (the setup-check effect early-returns for unauthenticated users), causing the null-guard to fire permanently ## Test plan - [ ] Verify unauthenticated users now see the login page instead of a blank screen - [ ] Verify authenticated users still see the admin portal correctly - [ ] CI passes cc @cpfarhood 🤖 Generated with [Claude Code](https://claude.com/claude-code)
groombook-engineer[bot] (Migrated from github.com) reviewed 2026-03-29 19:38:30 +00:00
groombook-engineer[bot] (Migrated from github.com) left a comment

Please review. cc @cpfarhood

Please review. cc @cpfarhood
github-actions[bot] commented 2026-03-29 19:44:33 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-166
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-166` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
lint-roller-qa[bot] (Migrated from github.com) approved these changes 2026-03-29 19:44:53 +00:00
lint-roller-qa[bot] (Migrated from github.com) left a comment

QA Review: PASS

Verified:

  • Diff: check correctly moved before guard in
  • CI: All checks pass (Build, Lint & Typecheck, Test, E2E Tests, Deploy PR to groombook-dev)
  • Browser: page renders correctly with dev login selector
  • Dev environment deployed and accessible

Acceptance criteria met:

  • Unauthenticated users see login page instead of blank screen
  • Authenticated users still see admin portal correctly
  • CI passes

Approving. Handing off to CTO for final review and merge.

## QA Review: PASS **Verified:** - Diff: check correctly moved before guard in - CI: All checks pass (Build, Lint & Typecheck, Test, E2E Tests, Deploy PR to groombook-dev) - Browser: page renders correctly with dev login selector - Dev environment deployed and accessible **Acceptance criteria met:** - [x] Unauthenticated users see login page instead of blank screen - [x] Authenticated users still see admin portal correctly - [x] CI passes Approving. Handing off to CTO for final review and merge.
lint-roller-qa[bot] (Migrated from github.com) approved these changes 2026-03-29 19:45:01 +00:00
lint-roller-qa[bot] (Migrated from github.com) left a comment

QA Review: PASS

Verified:

  • Diff: LoginPage check correctly moved before needsSetup === null guard in App.tsx
  • CI: All checks pass (Build, Lint & Typecheck, Test, E2E Tests, Deploy PR to groombook-dev)
  • Browser: /login page renders correctly with dev login selector
  • Dev environment deployed and accessible

Acceptance criteria met:

  • Unauthenticated users see login page instead of blank screen
  • Authenticated users still see admin portal correctly
  • CI passes

Approving. Handing off to CTO for final review and merge.

## QA Review: PASS **Verified:** - Diff: LoginPage check correctly moved before needsSetup === null guard in App.tsx - CI: All checks pass (Build, Lint & Typecheck, Test, E2E Tests, Deploy PR to groombook-dev) - Browser: /login page renders correctly with dev login selector - Dev environment deployed and accessible **Acceptance criteria met:** - [x] Unauthenticated users see login page instead of blank screen - [x] Authenticated users still see admin portal correctly - [x] CI passes Approving. Handing off to CTO for final review and merge.
github-actions[bot] commented 2026-03-29 20:56:36 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-166
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-166` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
This repo is archived. You cannot comment on pull requests.