Skip to content

fix(share): title every profile share "Chat with <name> on Flipcash" - #927

Merged
bmc08gt merged 1 commit into
mainfrom
fix/profile-share-title
Sep 30, 2026
Merged

bmc08gt merged 1 commit into
mainfrom
fix/profile-share-title

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Profile shares had four different titles depending on where you shared from. They now all use "Chat with on Flipcash", matching Android (code-payments/code-android-app#1635).

Share Before After
You tab (YouScreen) "Tip ", or "My Tip Card" "Chat with on Flipcash", or untitled
Tip card screen (TipcardScreen) "Tip ", or "My Tip Card" same
Another user's profile (UserProfileScreen) display name, else @handle, else fallback name same
Share-profile chat widget (ConversationScreen) @handle, else the raw URL same

The title comes from TipCodeShareItem.profile(url:displayName:), which holds the one localized string. With no display name it returns no title and shares only the link. For the chat widget, ChatShareProfileCell passes up the display name its lookup resolved, so onShareProfile now takes (LinkCard.User, String?).

The shared links are unchanged: URL.tipcard(for:username:) still gives flipcash.com/<username> when there's a handle, or the lowercase user id when there isn't. The chat widget still shares username.profileURL.

ProfileShareTitleTests covers the title with a name, with nil, and with an empty string.

The four places that share a profile link each picked their own title: the
You tab and the tip card screen used "Tip <name>" (falling back to "My Tip
Card"), another user's profile used the display name or handle, and the
share-profile chat widget used the @handle or the raw URL.

TipCodeShareItem.profile(url:displayName:) now builds the title from one
localized string for all of them, and a missing display name shares the link
untitled. This matches Android (code-payments/code-android-app#1635). The
chat widget passes up the display name its lookup resolved, so the title
names the person rather than their handle. The shared links are unchanged.
@bmc08gt bmc08gt self-assigned this Sep 30, 2026
@bmc08gt
bmc08gt merged commit dea4c97 into main Sep 30, 2026
1 check failed
@bmc08gt
bmc08gt deleted the fix/profile-share-title branch September 30, 2026 18:16
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.

1 participant