Skip to content

Wire the Copy link button on the creator profile to the clipboard #15

Open

Description

@nanaf6203-bit

Labels / Complexity: bug, good first issue · Trivial — 2 points

Summary

The creator profile page (src/app/u/[username]/page.tsx) renders a "Copy link" button with no onClick handler, so clicking it does nothing, and creators cannot share their tip link from the profile as intended. The page is currently a server component, so the button must be extracted into a small client component (or the page converted) to attach interactivity.

Proposal

  • Give the button an onClick that writes the profile URL (for example, ${window.location.origin}/u/${username}) to the clipboard via navigator.clipboard.writeText.
  • Show feedback on success and failure using the existing toast provider (useToast in src/components/ui/toast/ToastProvider.tsx).
  • Handle the clipboard API being unavailable (for example, an insecure context) gracefully.
  • Extract the button into a client component so the server-rendered page can remain server-side.

Acceptance criteria

  • Clicking "Copy link" copies the profile URL to the clipboard.
  • The user sees success or failure feedback via a toast.
  • The button fails gracefully when the clipboard API is unavailable.
  • npm run typecheck passes.

Getting started

Files: src/app/u/[username]/page.tsx, src/components/ui/toast/ToastProvider.tsx. Verify with npm run dev and npm run typecheck.

Good first files to read: src/app/u/[username]/page.tsx and src/app/tip/[username]/page.tsx (which already uses useToast).

Activity

  1. Emmy6654 commented on Aug 19, 2026

    @Emmy6654

    Hi Team,

    I am applying for the frontend task: Wire the Copy link button on the creator profile to the clipboard.

    Unwired or dead UI elements directly diminish user trust and frictionlessly prevent users from sharing creator profiles across social platforms. Connecting the "Copy link" button to the browser's native navigator.clipboard API ensures a fast, reliable sharing experience, complete with visual state feedback (e.g., toast confirmation or button state transition) to signal success to the user.

    I will wire up the creator profile "Copy link" component, add fallback mechanisms for unsecure or unsupported contexts, and implement optimistic state feedback.

  2. DiegoMoron0102 commented on Aug 19, 2026

    @DiegoMoron0102

    Hi, I'd like to take this on. It's straightforward extract the button into a client component with navigator.clipboard.writeText, wire up the existing useToast for success/failure feedback, and add a fallback for when the clipboard API isn't available. I've looked at how useToast is already used in src/app/tip/[username]/page.tsx so I'll follow the same pattern. Should be a clean, small PR. Happy to pick it up if you assign it.

  3. Chidi-Dev1 commented on Aug 20, 2026

    @Chidi-Dev1

    Hi Maintainer,
    I'd be glad to take this issue. I've reviewed the requirements and I'm ready to begin.
    Please assign it to me. 🙏

  4. grantfox-oss commented on Aug 24, 2026

    @grantfox-oss

    🦊 GrantFox — @DiegoMoron0102 has been assigned to this issue as part of the Third Campaign campaign!

    Next steps:

    1. Open a Pull Request referencing this issue (e.g., Closes #15)
    2. Your PR will be reviewed by the StellarTips maintainers

    Good luck! Track your progress on GrantFox.

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

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignbugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions