Skip to content

refactor: Clean up unused clipboard handler and dead code in ResultDashboard #230

Open

Description

@O2sa

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.tsx lines 65 and 113-128 (useClipboardCopy and handleCopy).
  • Either:
    • Option A (Recommended): Add a small 'Copy Raw JSON' / 'Debug Data' action button or dropdown item that invokes handleCopy for developers needing raw payload data.
    • Option B: Remove the unused handleCopy, copied, and unused icon imports (Check, Copy).
  • Run pnpm lint and npx tsc --noEmit to ensure clean code.

Tip

🚀 Want to contribute?
Comment assign me to be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions