Copy project path from header badge#1967
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved This PR adds a simple UI convenience feature - clicking the project path badge copies it to clipboard with toast feedback. The changes use existing hooks and components, are self-contained, and have no runtime behavior implications beyond the new click interaction. You can customize Macroscope's approvability policy. Learn more. |
Summary
Validation
Note
Low Risk
Low risk UI-only change that adds clipboard copying and toast feedback; main risk is minor UX/accessibility regressions if
openInCwdis null or clipboard API is unavailable.Overview
Makes the chat header’s project name badge interactive: clicking it now copies
openInCwdto the clipboard.Adds tooltip state (copy/coped/unavailable) and triggers success/error toasts via
toastManagerusing the shareduseCopyToClipboardhook, while leaving the existingOpenInPickercontrol unchanged.Reviewed by Cursor Bugbot for commit c9ee7c8. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Copy project folder path to clipboard from chat header badge
Makes the project name badge in ChatHeader.tsx clickable, copying the project folder path (
openInCwd) to the clipboard. A tooltip reflects the current state: unavailable, copied, or ready to copy. Success and error toasts are shown viatoastManageron copy attempts. The button is disabled when no folder path is available.Macroscope summarized c9ee7c8.