Skip to content

feat(wallet): add deterministic profile initials helper (#257) - #345

Open
ZacLou wants to merge 1 commit into
Quittance-Labs:mainfrom
ZacLou:issue-257-wallet-initials
Open

feat(wallet): add deterministic profile initials helper (#257)#345
ZacLou wants to merge 1 commit into
Quittance-Labs:mainfrom
ZacLou:issue-257-wallet-initials

Conversation

@ZacLou

@ZacLou ZacLou commented Aug 31, 2026

Copy link
Copy Markdown

Closes #257

Implements initialsFromAddress(publicKey) and wires it into UserProfile.tsx so the profile chip can show deterministic initials from a Stellar address.

Files changed (per issue scope):

  • rontend/lib/wallet-initials.ts + rontend/lib/wallet-initials.js (compiled runtime version)
  • rontend/tests/wallet-initials.test.jsn- rontend/tests/fixtures/wallet-initials.fixture.jsn- rontend/components/UserProfile.tsx`n
    The helper:
  • Skips the leading G network prefix.
  • Takes the first two alphabetic characters from the payload.
  • Falls back to '??' for missing, non-string, or letter-less inputs.

Verified locally:

pm test — new wallet-initials tests pass (one unrelated a11y test fails in this environment).

pm run typecheck — clean.

pm run lint — clean (only pre-existing warnings).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(frontend): add wallet profile initials helper

1 participant