Skip to content

F2: connect mock login, registration, verification and password-reset flows - #47

Merged
DavidVFitzGerald merged 1 commit into
mainfrom
feat/f2-auth-forms
Nov 14, 2026
Merged

DavidVFitzGerald merged 1 commit into
mainfrom
feat/f2-auth-forms

Conversation

@DavidVFitzGerald

Copy link
Copy Markdown
Owner

Refs #13

Behavior

  • AuthDialog replaces the placeholder login dialog: Sign in, Create an account and Reset your password views inside the required native modal (focus containment, inert shell, Escape/backdrop refusal, re-open if force-closed).
  • Unverified users get Verify your email: resend, “I've verified my email” (refresh) and Use a different account. The shell stays locked; only the observed verified auth state removes the modal.
  • Single-flight actions with aria-disabled/aria-busy/live progress; flow, account or unlock changes abort and ignore obsolete requests.
  • Field validation and service errors are associated with inputs (aria-invalid, aria-describedby, role=alert), focus moves predictably, and every error can be retried.
  • Mock demo guidance (fixed password, synthetic accounts) comes from the composition root through an optional demo runtime field. UI never imports mocks.

Checks (rootless workspace container)

  • ./dev check PASS; npm ci frozen (230 packages, lock unchanged)
  • format:check, lint, typecheck, build PASS
  • test:unit: 153 tests in 8 files PASS (13 new AuthDialog cases)
  • test:e2e: 12 cases PASS in Chromium + Firefox (4 new auth journeys; keyboard sign-in tagged @smoke)

Details: docs/engineering/f2-auth-forms-verification.md.

Limitations

The mock resolves instantly in the browser, so pending states are covered by component tests with injected deferred services. Safari wasn't available. This mock doesn't prove real Firebase/email/backend security. Session restoration/cache isolation is #14; consolidated F2 acceptance is #15. Independent QA still has to happen before merge.

🤖 Generated with Claude Code

…et (Refs #13)

Replace the placeholder shell dialog with AuthDialog: sign-in, self-registration
and password-reset views inside the required native modal, plus verification
guidance with resend, explicit refresh and account switching for unverified
users. Observed auth state remains the only unlock signal.

Pending actions are single-flight, announced and aria-disabled; flow, account
and unlock changes abort and ignore obsolete requests. Field and service errors
are associated with inputs and recoverable. Mock demo guidance is supplied by
the composition root so UI never imports mock modules.

Adds component tests and Chromium/Firefox Playwright journeys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DavidVFitzGerald
DavidVFitzGerald merged commit 9012a65 into main Nov 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant