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
Closed
Conversation
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
|
Merging to
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 |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.tspnpm --filter @posthog/ui exec vitest run src/features/message-editor/tiptap/MentionChipView.test.tsxpnpm --filter @posthog/ui typecheckAutomatic notifications
Created with PostHog Code