Skip to content

fix(desktop): render autolinked message links as chips#1241

Merged
wesbillman merged 1 commit into
mainfrom
pinky/message-link-autolink
Jun 24, 2026
Merged

fix(desktop): render autolinked message links as chips#1241
wesbillman merged 1 commit into
mainfrom
pinky/message-link-autolink

Conversation

@wesbillman

Copy link
Copy Markdown
Collaborator

Summary

  • render CommonMark autolinked buzz://message?... URLs through the message-link chip UI
  • reuse a shared MessageLinkPill for plugin-generated and autolink-generated message links
  • preserve explicitly labeled message links like [here](buzz://message?...) as normal labeled links
  • add regression coverage for autolink href preservation and autolink-style label detection

Test plan

  • cd desktop && ../bin/pnpm typecheck
  • cd desktop && ../bin/pnpm check
  • cd desktop && ../bin/pnpm test

Render CommonMark autolinks such as `<buzz://message?...>` through the same message-link pill component as bare pasted message links, while preserving explicitly labeled message links.

Centralize the anchor-rendering decision in the message-link helper so the bare-link plugin path and Markdown anchor path share the same parsing and URL-shape assumptions.

Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
@wesbillman wesbillman force-pushed the pinky/message-link-autolink branch from 1a5f87e to c0189e5 Compare June 24, 2026 14:20
@wesbillman wesbillman merged commit 45067ec into main Jun 24, 2026
25 checks passed
@wesbillman wesbillman deleted the pinky/message-link-autolink branch June 24, 2026 16:47
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