Skip to content

feat: add copy-to-clipboard button for template IDs on templates list…#378

Open
aditya2r wants to merge 1 commit into
useplunk:nextfrom
aditya2r:feature/copy-template-id
Open

feat: add copy-to-clipboard button for template IDs on templates list…#378
aditya2r wants to merge 1 commit into
useplunk:nextfrom
aditya2r:feature/copy-template-id

Conversation

@aditya2r
Copy link
Copy Markdown

@aditya2r aditya2r commented May 16, 2026

Description

Adds a "Copy template ID" button to each template card on the templates list page. This makes it easy to quickly copy a template's id for use in API calls without having to navigate into the template detail view.

  • Added ClipboardCopy icon button alongside existing Edit, Duplicate, and Delete actions
  • Uses navigator.clipboard.writeText() with toast feedback via sonner
  • Follows the same handler pattern (async/try/catch/toast) used by the existing handleDelete and handleDuplicate functions
image
  • feat: New feature (MINOR version bump)
  • fix: Bug fix (PATCH version bump)
  • feat!: Breaking change - new feature (MAJOR version bump)
  • fix!: Breaking change - bug fix (MAJOR version bump)
  • docs: Documentation update (no version bump)
  • chore: Maintenance/dependencies (no version bump)
  • refactor: Code refactoring (no version bump)
  • test: Adding tests (no version bump)
  • perf: Performance improvement (PATCH version bump)

Testing

  • Verified the button renders on each template card in the list view
  • Confirmed clicking the button copies the template UUID to clipboard and shows a success toast
  • The project builds without any errors

Checklist

  • PR title follows conventional commits format
  • Code builds successfully
  • Tests pass locally
  • Documentation updated (if needed)

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.

1 participant