Skip to content

feat(menu): show username card for auto-assigned handles - #1643

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/username-card-assigned
Oct 1, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
feat/username-card-assigned

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

The Menu screen's custom-username card only showed when the profile had no username. A user whose handle the server auto-assigned when they set a display name never saw it, so nothing prompted them to pick their own.

usernameGate() now takes isAutoAssigned, and a handle counts as Claimed only when it is non-blank and not auto-assigned. MenuScreenViewModel passes UserProfile.isUsernameAutoAssigned through to the gate.

The card hides again once the user picks a handle, because ProfileController already clears the flag locally on SetUsername. Tapping the card opens the username screen with the assigned handle prefilled and editable.

Tests: two new UsernameGateTest cases, covering an auto-assigned handle counting as unclaimed and following the same balance rules as having no handle.

iOS counterpart: code-payments/code-ios-app#935

The custom-username card only appeared for accounts with no handle, so
a user whose handle the server assigned never got the nudge to pick
their own. usernameGate now takes isAutoAssigned and treats an assigned
handle as unclaimed; the balance and minimum rules are unchanged. The
view model passes UserProfile.isUsernameAutoAssigned through.
@bmc08gt bmc08gt self-assigned this Sep 30, 2026
@github-actions github-actions Bot added the type: feature New functionality label Sep 30, 2026
@bmc08gt
bmc08gt merged commit 010a3c5 into code/cash Oct 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant