Skip to content

feat(mobile): suggest an available handle on sign-up - #14833

Merged
dylanjeffers merged 2 commits into
mainfrom
claude/signup-suggested-handle
Dec 5, 2026
Merged

dylanjeffers merged 2 commits into
mainfrom
claude/signup-suggested-handle

Conversation

@dylanjeffers

@dylanjeffers dylanjeffers commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • handleCandidatesFromEmail in common utils: takes the part before the @, drops any +tag and 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.
  • HandleSuggestion on PickHandleScreen: tries each candidate against the same pickHandleSchema the 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:

  • Sign up with a new email: the handle screen opens with the email name pre-filled and marked available.
  • Use an email whose name is taken: a numbered version is filled in.
  • Start typing before the suggestion lands: your text is kept.
  • npm run test -w @audius/common -- handleSuggestions

Rebased 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

@changeset-bot

changeset-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 60b988d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers
dylanjeffers force-pushed the claude/signup-suggested-handle branch from bb2a4cc to 33b018c Compare December 5, 2026 17:36
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
dylanjeffers force-pushed the claude/signup-suggested-handle branch from 33b018c to 60b988d Compare December 5, 2026 19:12
@dylanjeffers
dylanjeffers merged commit 642605e into main Dec 5, 2026
28 checks passed
@dylanjeffers
dylanjeffers deleted the claude/signup-suggested-handle branch December 5, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants