Skip to content

fix: requirements modal email verification and UI cleanup#31

Merged
wizzomafizzo merged 3 commits intomainfrom
fix/requirements-modal-email-only-close
Feb 2, 2026
Merged

fix: requirements modal email verification and UI cleanup#31
wizzomafizzo merged 3 commits intomainfrom
fix/requirements-modal-email-only-close

Conversation

@wizzomafizzo
Copy link
Member

Summary

  • Fix bug where requirements modal wouldn't close after email verification
  • Force refresh Firebase ID token after reload to get updated email_verified claim
  • Simplify modal UI by removing verbose section headings and descriptions
  • Remove email verification indicator from settings page
  • Remove "All done" toast notification

The modal would not close after email verification if that was the only
pending requirement, because the check was hardcoded to require all four
requirements (email, TOS, privacy, age) to be satisfied. Now the modal
checks only the requirements that were originally pending.
When a user verifies their email externally (via Firebase link), the cached
ID token still has email_verified=false. This caused the requirements modal
to appear on app restart even for verified users.

Now we call reload() and getIdToken({ forceRefresh: true }) before any API
calls to ensure the token has the latest claims.
- Remove verbose section headings and descriptions
- Remove email verification indicator from settings page
- Remove "All done" toast notification
- Clean up dead translations
@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

❌ Patch coverage is 82.60870% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/components/RequirementsModal.tsx 77.77% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@wizzomafizzo wizzomafizzo merged commit 50f1529 into main Feb 2, 2026
2 checks passed
@wizzomafizzo wizzomafizzo deleted the fix/requirements-modal-email-only-close branch February 2, 2026 08:21
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