Skip to content

feat : add copy routine name to clipboard in routine cards #1893

Description

@tmdeveloper007

Summary of What Needs to be Done

Routine cards and the routine overview modal are missing a "Copy Routine Name" option in their menus. Users should be able to quickly copy just the routine name text to clipboard.

Changes that Need to be Made

  1. In frontend/src/components/Routine/RoutineCard.jsx:
    • Add a new menu item button labeled "Copy Name" that copies routine.name to clipboard using navigator.clipboard.writeText
    • Use a "copy" icon from lucide-react for the button
    • Show a toast confirming the name was copied
  2. In frontend/src/components/Routine/RoutineOverviewModal.jsx:
    • Add the same "Copy Name" menu item to the routine overview modal

Impact that it would Provide

Users can quickly grab routine names for use in other tools (spreadsheets, notes, etc.) without needing to manually select and copy text.

Note: Please assign this issue to the tmdeveloper007 account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendIssues related to UI/UX

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions