Skip to content

feat(profile): add helper sublabel below display name input field - #1229

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/display-name-sublabel
Aug 13, 2026
Merged

feat(profile): add helper sublabel below display name input field#1229
bmc08gt merged 1 commit into
code/cashfrom
feat/display-name-sublabel

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a helper sublabel "This is how you'll appear to others" directly below the name input on the display-name entry screen (NameEntryScreen), per the new Figma design (node 8966-1323).

How

  • DisplayTextInput gains an optional sublabel: String? = null param (plus sublabelStyle, defaulting to textSmall / textSecondary). The component now lays out the field and sublabel in a Column, so the helper text is rendered inside the component, directly beneath the field. This avoids the overlap that occurs when a sublabel is added as a sibling in CodeScaffold's content slot (which stacks its children).
  • NameEntryScreen passes sublabel = stringResource(R.string.subtitle_profileNameSelection) and applies the scaffold's content padding to a wrapper Column rather than the field itself — otherwise the padding inflates the field's box and pushes the sublabel far below the entered text instead of hugging it.
  • strings.xml adds subtitle_profileNameSelection.

Testing

  • :apps:flipcash:app:installDebug builds clean and runs on a Pixel_10 emulator (Android 17).
  • Verified on-device: the sublabel renders directly below the entered name with no overlap and tight spacing.

The iOS counterpart is code-payments/code-ios-app#571.

@github-actions github-actions Bot added the type: feature New functionality label Aug 13, 2026
Add an optional sublabel param to DisplayTextInput so the helper text is
laid out inside the component's column, directly below the field. Apply the
scaffold content padding to a wrapper column rather than the field so the
sublabel hugs the entered text instead of being pushed far below it.
@bmc08gt
bmc08gt force-pushed the feat/display-name-sublabel branch from c2c14d4 to 379f794 Compare August 13, 2026 15:44
@bmc08gt
bmc08gt merged commit b098529 into code/cash Aug 13, 2026
2 checks passed
@bmc08gt
bmc08gt deleted the feat/display-name-sublabel branch August 13, 2026 15:45
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