Repository navigation
feat(mobile): suggest an available handle on sign-up - #14833
Merged
Merged
Conversation
|
dylanjeffers
force-pushed
the
claude/signup-suggested-handle
branch
from
December 5, 2026 17:36
bb2a4cc to
33b018c
Compare
Pre-fill the handle field from the sign-up email (before the @, minus any +tag and characters handles don't allow), falling back to a few numbered versions, and use the first one the handle schema accepts. Stops as soon as the person types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dylanjeffers
force-pushed
the
claude/signup-suggested-handle
branch
from
December 5, 2026 19:12
33b018c to
60b988d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: the handle screen on mobile sign-up opened empty, and people had to invent a handle and wait for "already taken" errors.
After: the field is pre-filled with an available handle based on their email, with the usual "available" check mark, so most people can just tap Continue. They can still change it.
How:
handleCandidatesFromEmailin common utils: takes the part before the @, drops any+tagand characters handles don't allow (A-Z, 0-9, . and _), trims dots and underscores from the ends, and leaves room for a suffix. Returns the plain name first, then up to three numbered versions (e.g.maya,maya47,maya1290). Returns nothing if fewer than 3 characters are left. Unit tested.HandleSuggestiononPickHandleScreen: tries each candidate against the samepickHandleSchemathe form uses (format, restricted list, taken, reserved), sets the first that passes, and stops if the person has typed anything or on a network error.At most 4 handle checks per sign-up, all through the existing cached handle queries. No change to authentication or how the account is created.
Test plan:
npm run test -w @audius/common -- handleSuggestionsRebased onto the sign-up redesign (#14835). The suggestion sits in the new form card on PickHandleScreen; it renders nothing and only prefills the handle field.
Generated by Claude Code