Skip to content

Conversation

@omagoduck
Copy link

The copy button now shows a checkmark for 2 seconds after copying to provide visual feedback. Fixes #11401

Related GitHub Issue

Closes: #11401

Roo Code Task Context (Optional)

Description

This add visual feedback on clicking copy button on main task box.

Test Procedure

I tested it manually by using the extension.

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

Before:

Screen.Recording.2026-02-11.195125.mp4

After:

Screen.Recording.2026-02-11.195017.mp4

Documentation Updates

[x] No documentation updates are required.

Additional Notes

No additional notes.

Get in Touch

al_bayazid

The copy button now shows a checkmark for 2 seconds after copying to provide visual feedback.
Fixes RooCodeInc#11401
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. UI/UX UI/UX related or focused labels Feb 11, 2026
@roomote
Copy link
Contributor

roomote bot commented Feb 11, 2026

Rooviewer Clock   See task

Both items from the previous review have been addressed. The import now uses CheckIcon consistently and a test verifying the icon swap is in place. All 25 tests pass.

  • Use CheckIcon instead of Check to match the naming convention of all other icons in the import
  • Add a test in TaskActions.spec.tsx to verify the icon swap when showCopyFeedback is true
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

import { ShareButton } from "./ShareButton"
import { CloudTaskButton } from "./CloudTaskButton"
import { CopyIcon, DownloadIcon, Trash2Icon, FileJsonIcon, MessageSquareCodeIcon } from "lucide-react"
import { Check, CopyIcon, DownloadIcon, Trash2Icon, FileJsonIcon, MessageSquareCodeIcon } from "lucide-react"
Copy link
Contributor

Choose a reason for hiding this comment

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

Check breaks the naming convention used by every other icon in this import (CopyIcon, DownloadIcon, Trash2Icon, etc.). lucide-react exports CheckIcon as an alias, so switching to it keeps the line consistent and makes it easier to scan.

Suggested change
import { Check, CopyIcon, DownloadIcon, Trash2Icon, FileJsonIcon, MessageSquareCodeIcon } from "lucide-react"
import { CheckIcon, CopyIcon, DownloadIcon, Trash2Icon, FileJsonIcon, MessageSquareCodeIcon } from "lucide-react"

Fix it with Roo Code or mention @roomote and request a fix.

{item?.task && (
<LucideIconButton
icon={CopyIcon}
icon={showCopyFeedback ? Check : CopyIcon}
Copy link
Contributor

Choose a reason for hiding this comment

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

Corresponding update to match the CheckIcon rename in the import.

Suggested change
icon={showCopyFeedback ? Check : CopyIcon}
icon={showCopyFeedback ? CheckIcon : CopyIcon}

Fix it with Roo Code or mention @roomote and request a fix.

const [deleteTaskId, setDeleteTaskId] = useState<string | null>(null)
const { t } = useTranslation()
const { copyWithFeedback } = useCopyToClipboard()
const { copyWithFeedback, showCopyFeedback } = useCopyToClipboard()
Copy link
Contributor

Choose a reason for hiding this comment

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

The icon swap is the core behavior of this PR but there is no test covering it. TaskActions.spec.tsx already has thorough coverage for copy, delete, export, and share -- adding a test that mocks useCopyToClipboard to return showCopyFeedback: true and asserts that the button's rendered icon changes would keep parity. The issue investigation also called this out explicitly.

Fix it with Roo Code or mention @roomote and request a fix.

- Fix Check icon import name from Check to CheckIcon for consistency in TaskActions.tsx
- Add test to verify check icon is shown when showCopyFeedback is true
- Mock useCopyToClipboard hook in TaskActions.spec.tsx to test copy button functionality

This change resolves the import inconsistency and adds a test to ensure the copy button correctly shows a check icon after successful copy.
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files. UI/UX UI/UX related or focused

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] In main task box, copy button should give visual feedback.

1 participant