Skip to content

feat: copy prompt icon#15

Open
trupix wants to merge 2 commits intocline:mainfrom
trupix:jose/copy-paste
Open

feat: copy prompt icon#15
trupix wants to merge 2 commits intocline:mainfrom
trupix:jose/copy-paste

Conversation

@trupix
Copy link

@trupix trupix commented Mar 16, 2026

Screen.Recording.2026-03-16.at.3.20.20.PM.mov

feat: add copy prompt button to task card header

Adds a hover-revealed copy-to-clipboard button to every task card header. Hovering over a card fades in the copy icon to the left of the column's action button (Play/Trash/Restore) with no gap between them. Clicking it writes the full task prompt to the clipboard and briefly shows a "Copied!" tooltip.

Implementation notes:

  • Visibility is driven by CSS group-hover/card:opacity-100 rather than a JS hover state — this avoids a known issue where @hello-pangea/dnd can swallow mouseenter/mouseleave events on draggable elements, which would cause the button to never appear
  • Removed the pre-existing isHovered state entirely; the card background highlight was already covered by Tailwind's hover:bg-surface-3 class, making the JS state redundant
  • Copy icon and column action button are grouped in a zero-gap flex container so they appear as a tight pair on hover

trupix added 2 commits March 16, 2026 13:39
Adds a hover-revealed copy-to-clipboard icon button in the card header
row of BoardCard. Clicking it copies the full raw card.prompt to the
clipboard and briefly shows a 'Copied!' tooltip for visual feedback.
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