Skip to content

feat : added copy routine name to clipboard in routine cards#1898

Open
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:pr/1893-copy-routine-name
Open

feat : added copy routine name to clipboard in routine cards#1898
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:pr/1893-copy-routine-name

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Summary of What Has Been Done

Added a "Copy Name" option to the routine card menu and routine overview modal menu. Clicking it copies the routine name text to the clipboard and shows a toast confirmation.

Changes Made

  1. frontend/src/components/Routine/RoutineCard.jsx:
    • Added handleCopyName async function that writes routine.name to clipboard and shows a toast
    • Added "Copy Name" menu button with a Copy icon between "Copy Share Link" and "Copy Summary"
  2. frontend/src/components/Routine/RoutineOverviewModal.jsx:
    • Added handleCopyName async function
    • Added "Copy Name" menu button in the modal's options menu

Impact it Made

Users can quickly copy a routine's name for use in external tools (spreadsheets, documents, etc.) without needing to manually select text.

Closes #1893

Note: Please assign this PR to the tmdeveloper007 account.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat : add copy routine name to clipboard in routine cards

1 participant