Skip to content

fix: add copy-to-clipboard button for shareable marketplace links#101

Open
Danieliushka wants to merge 1 commit intoprofullstack:masterfrom
Danieliushka:fix/copy-share-button
Open

fix: add copy-to-clipboard button for shareable marketplace links#101
Danieliushka wants to merge 1 commit intoprofullstack:masterfrom
Danieliushka:fix/copy-share-button

Conversation

@Danieliushka
Copy link
Copy Markdown

Summary

Fixes #100 — adds a "Copy Link" button to all marketplace listing cards so users can copy the shareable public URL instead of manually constructing it or sharing dashboard links that 404.

Changes

  • New CopyLinkButton component (src/components/ui/CopyLinkButton.tsx) — click to copy, shows green check for 2s
  • Added to: GigCard, AgentCard, MCP listings, Prompt listings
  • Uses e.preventDefault() + e.stopPropagation() so it works inside <Link> wrappers without navigating

Test plan

  • Click copy button on a gig card → URL copied to clipboard
  • Click copy button on an agent card → correct /u/{username} URL
  • Click copy button on MCP/Prompt cards → correct slug-based URL
  • Paste copied URL in incognito → page loads (not 404)

🤖 Generated with Claude Code

Users were sharing dashboard URLs (which 404) instead of public links.
Adds a small CopyLinkButton component (link icon → green check on copy)
to GigCard, AgentCard, MCP listing cards, and Prompt listing cards so
the correct public URL is one click away.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

add copy button to shareable links in marketplaces

1 participant