Skip to content

feat: allow creating an anonymous account directly from the login page - #4

Merged
Star69995 merged 1 commit into
Star69995:mainfrom
TovTechOrg:feat/anonymous-login-signup
Sep 15, 2026
Merged

Star69995 merged 1 commit into
Star69995:mainfrom
TovTechOrg:feat/anonymous-login-signup

Conversation

@talwag

@talwag talwag commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Closes the gap from QA לזרימת משתמש אנונימי (ללא צורך במייל) #1: logging in with a username that doesn't exist yet used to just fail with "שם משתמש זה לא קיים" — there was no way to create an anonymous (username+password, no email) account from the Login page itself, only via a separate trip through /register's "שם משתמש בלבד" tab.
  • The username-method login now doubles as signup: a not-found username reveals a role picker (מקבל/ת שירות / נותן/ת שירות) instead of rejecting the attempt, then creates the account and signs in immediately.
  • Extracted the role-picker UI out of Register.jsx into a shared RoleSelector component, since Login.jsx now needs the identical picker (Register.jsx's own behavior is unchanged, just de-duplicated).

(Replaces #3, which was opened from the fork's main by mistake instead of a dedicated branch.)

Test plan

  • Verified end-to-end against the local Firebase emulator (Auth + Firestore) with scripts mirroring the app's own code paths: existing-account login, wrong-password rejection, new-account creation for both recipient and provider roles, role persisting across logout/login, sharing by username, and anonymous↔regular account conversion — all passing.
  • Manually created and logged into new anonymous accounts through the actual running app against the emulator.
  • npm run lint clean on all changed/added files.
  • Manual mobile/tablet visual check of the new role-picker UI (recommended before merge, per this repo's CLAUDE.md UI guidelines).

The username-method login now doubles as signup: submitting a username
that doesn't exist yet reveals a role picker (recipient/provider)
instead of rejecting the attempt, then creates the anonymous
(username+password, no email) account and signs in immediately -
closing the gap from GitHub issue Star69995#1 where a never-registered username
correctly failed to log in but had no path to become one.

Extracted the role-picker UI from Register.jsx into a shared
RoleSelector component since Login.jsx now needs the identical picker.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Star69995
Star69995 merged commit dd020f0 into Star69995:main Sep 15, 2026
@Star69995
Star69995 deleted the feat/anonymous-login-signup branch September 15, 2026 10:50
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.

2 participants