refactor: Clean up unused clipboard handler and dead code in ResultDashboard #230
Copy link
Copy link
Open
Labels
Description
In src/features/comparison/components/result-dashboard.tsx, clipboard copying logic is defined but never rendered.
Motivation
Unused hooks and dead functions clutter the component and confuse contributors. We should either wire this up to an active button or clean up the unused state.
Tasks
- Inspect
result-dashboard.tsxlines 65 and 113-128 (useClipboardCopyandhandleCopy). - Either:
- Option A (Recommended): Add a small 'Copy Raw JSON' / 'Debug Data' action button or dropdown item that invokes
handleCopyfor developers needing raw payload data. - Option B: Remove the unused
handleCopy,copied, and unused icon imports (Check,Copy).
- Option A (Recommended): Add a small 'Copy Raw JSON' / 'Debug Data' action button or dropdown item that invokes
- Run
pnpm lintandnpx tsc --noEmitto ensure clean code.
Tip
🚀 Want to contribute?
Comment assign me to be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨
Reactions are currently unavailable
Activity