Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

fix(message-editor): restore pasted text chip expansion - #3542

Closed
adboio wants to merge 1 commit into
mainfrom
posthog-code/restore-pasted-text-chip-click
Closed

fix(message-editor): restore pasted text chip expansion#3542
adboio wants to merge 1 commit into
mainfrom
posthog-code/restore-pasted-text-chip-click

Conversation

@adboio

@adboio adboio commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Problem

A recent message-editor change made repeat-paste the only way to undo long-text chip conversion, removing the existing click-to-expand interaction. Users still expect a “Pasted text” chip to expand when clicked.

Changes

  • Restore click-to-expand while keeping repeat-paste undo.
  • Retain pasted source text in editor-local state instead of reading files through the UI host boundary.
  • Cover the chip interaction with a focused component test.

How did you test this?

  • pnpm exec biome check --write --unsafe packages/ui/src/features/message-editor/tiptap/MentionChipNode.ts packages/ui/src/features/message-editor/tiptap/MentionChipView.tsx packages/ui/src/features/message-editor/tiptap/MentionChipView.test.tsx packages/ui/src/features/message-editor/tiptap/extensions.ts packages/ui/src/features/message-editor/tiptap/useTiptapEditor.ts
  • pnpm --filter @posthog/ui exec vitest run src/features/message-editor/tiptap/MentionChipView.test.tsx
  • pnpm --filter @posthog/ui typecheck

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Keep repeat-paste undo while restoring click-to-expand for pasted text chips created in the editor.

Generated-By: PostHog Code
Task-Id: 184d0714-e375-4e46-b080-685247045bcb
@trunk-io

trunk-io Bot commented Jul 17, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 2c3a3b1.

@adboio adboio closed this Jul 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant