Athena — roomy-mobile/archive/changes/2025-12-24-fix-auth-flow-idempotency/tasks.md

1. Fix Screenshot Numbering

  • [x] 1.1 Rename auth flow screenshots to use auth- prefix: auth-01-login.png, auth-02-register.png, etc.
    • Fixed auth-03-accept-privacy.png and auth-04-create-username.png
  • [x] 1.2 Verify main flow and auth flow outputs don't conflict in same OUTPUT_DIR
    • Auth: auth-01, auth-02, auth-03, auth-04
    • Main: 01-login, 02-accept-privacy, etc. → No conflict

2. Make Auth Flow Idempotent

  • [x] 2.1 Add cleanup step in seed script to delete any existing newuser@demo.roomy.app from Auth emulator
    • Already handled: seed-demo-data.js:68 deletes all @demo.roomy.app users
  • [x] 2.2 Add cleanup for corresponding Firestore documents (users, userProfiles, usernames)
    • Already handled: seed-demo-data.js:43-52 clears all collections
  • [x] 2.3 Workflow ensures idempotency: capture-screenshots.sh runs seed before flows

3. Verification

  • [x] 3.1 Seed script clears auth test users (verified by @demo.roomy.app filter)
  • [x] 3.2 Workflow runs seed → auth flow → main flow ensuring clean state
  • [x] 3.3 Screenshot files have distinct auth- prefix

Reacties

Nog geen reacties