Skip to content

feat: add copy to clipboard button to plan mode#3103

Merged
MattPua merged 2 commits into
mainfrom
posthog-code/plan-copy-to-clipboard
Jul 2, 2026
Merged

feat: add copy to clipboard button to plan mode#3103
MattPua merged 2 commits into
mainfrom
posthog-code/plan-copy-to-clipboard

Conversation

@MattPua

@MattPua MattPua commented Jul 2, 2026

Copy link
Copy Markdown
Member

Adds a copy-to-clipboard button to the plan view.

CleanShot 2026-07-02 at 13 12 49@2x

Created with PostHog Code

@trunk-io

trunk-io Bot commented Jul 2, 2026

Copy link
Copy Markdown

😎 Merged manually by @MattPua - details.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 39d6aac.

@greptile-apps

greptile-apps Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "feat(permissions): add copy-to-clipboard..." | Re-trigger Greptile

Comment thread packages/ui/src/features/permissions/PlanContent.tsx Outdated
@MattPua MattPua marked this pull request as ready for review July 2, 2026 17:15
Generated-By: PostHog Code
Task-Id: 79ef621f-c6c9-4795-aa8c-f435835f4fdc
@MattPua MattPua added the Stamphog This will request an autostamp by stamphog on small changes label Jul 2, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Purely additive UI change — adds a copy-to-clipboard button. The bot's clipboard-Promise concern was resolved with async/await and try/catch. The remaining setTimeout without unmount cleanup is a cosmetic pattern issue, not a production risk.

@MattPua MattPua merged commit 3cfd449 into main Jul 2, 2026
27 checks passed
@MattPua MattPua deleted the posthog-code/plan-copy-to-clipboard branch July 2, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant