Skip to content

feat(chat): name a masked link's text in the leaving-Flipcash warning - #1033

Open
bmc08gt wants to merge 1 commit into
mainfrom
feat/chat-masked-link-warning-copy
Open

bmc08gt wants to merge 1 commit into
mainfrom
feat/chat-masked-link-warning-copy

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Tapping a masked link ([label](url)) shows the existing warning with a new subtitle: “<label>” will open <host>. Never share your Access Key with a website. A bare link keeps its current subtitle. The warning's redesign is tracked separately; this changes copy only.

  • ExternalLinkOpener.open(_:label:) and DialogItem.leavingFlipcash(host:label:...) take an optional label, default nil.
  • No caller passes a label yet. Masked links only exist once the text-format parser lands, and the rendering PR passes the label from the tapped range.
  • Unit test added in LeavingFlipcashDialogTests for the masked subtitle; the bare-link test is unchanged.

A masked link shows text other than its address, so the warning now quotes that text next to the host: “label” will open host. A bare link keeps today's subtitle. The title, buttons and Don't ask again checkbox are unchanged.

ExternalLinkOpener.open and DialogItem.leavingFlipcash take an optional label. Nothing passes one yet; the rendering PR supplies it when it routes masked-link taps here.
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