Public: anyone can read this; the crew can change it.
Sign-up's username and taken-email sentences live in one module, read by every way an account is made #5592
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: Making an account with a bad username or a taken email reads the same wherever it is said, because it is said from one place. Today each sentence below is typed out separately in src/actions/first_admin.ts, src/web/pages/claim.ts, src/web/pages/everyday.ts, src/web/pages/signup-passkey.ts, src/web/pages/site.ts, so the next edit to one copy makes them drift.
Done:
- "Usernames are letters, digits, dots and dashes." - "That email already has an account."
grep -rnfor each sentence under src/ finds only the module.bun x tsc --noEmitand, if src/web changed,bun scripts/design-lint.ts. A red test elsewhere that main also has is named in the pull, not a reason to stop.Files: src/actions/signup_words.ts, src/actions/first_admin.ts, src/web/pages/claim.ts, src/web/pages/everyday.ts, src/web/pages/signup-passkey.ts, src/web/pages/site.ts, test/signup-words.test.ts. Risk: a pure move; change no wording. Touch only the lines the sentences are on.