Skip to content

Fix/663 copy link button - #676

Merged
vishnukothakapu merged 3 commits into
vishnukothakapu:mainfrom
bindusreeseetha:fix/663-copy-link-button
Aug 10, 2026
Merged

Fix/663 copy link button#676
vishnukothakapu merged 3 commits into
vishnukothakapu:mainfrom
bindusreeseetha:fix/663-copy-link-button

Conversation

@bindusreeseetha

@bindusreeseetha bindusreeseetha commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Description

Implements #663 by adding a copy-to-clipboard button to public profile link cards.

Changes

  • Added a small copy icon to public profile link cards
  • Copies the actual link URL to the clipboard
  • Prevents the copy action from triggering link navigation
  • Shows a "Link copied!" success toast
  • Supports both list and grid layouts

Closes #663

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

@bindusreeseetha is attempting to deploy a commit to the vishnukothakapu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@bindusreeseetha, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 51 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 4c4624d2-5f59-4575-be6c-40bf1cedead7

📥 Commits

Reviewing files that changed from the base of the PR and between 95011ad and 870dea3.

📒 Files selected for processing (1)
  • app/[username]/ProfileLinkItem.tsx
📝 Walkthrough

Walkthrough

Changes

Profile link copy flow

Layer / File(s) Summary
Copy controls and link layouts
app/[username]/ProfileLinkItem.tsx
ProfileLinkItem computes link URLs, copies URLs to the clipboard, and shows success or failure toasts. Grid and list layouts separate link content from the copy button.
Profile notification rendering
app/[username]/page.tsx
The public profile page renders Toaster at the bottom center.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant ProfileLinkItem
  participant ClipboardAPI as navigator.clipboard
  participant ToastAPI as react-hot-toast
  ProfileLinkItem->>ClipboardAPI: write link.url
  ClipboardAPI-->>ProfileLinkItem: success or failure
  ProfileLinkItem->>ToastAPI: show success or error toast
Loading

Possibly related PRs

Suggested labels: type:feature, level:beginner

Suggested reviewers: dev1822

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: adding a copy link button and related notifications.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@app/`[username]/ProfileLinkItem.tsx:
- Around line 23-31: Update handleCopy to avoid copying link.url when
link.pinCode exists; instead copy the absolute internal profile URL that
enforces the PIN-protected route, while preserving direct destination copying
for unprotected links.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a133855b-70bb-4b00-b295-33a4d0f4c4ad

📥 Commits

Reviewing files that changed from the base of the PR and between 9d46b19 and 95011ad.

📒 Files selected for processing (2)
  • app/[username]/ProfileLinkItem.tsx
  • app/[username]/page.tsx

Comment thread app/[username]/ProfileLinkItem.tsx
@bindusreeseetha

bindusreeseetha commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

@vishnukothakapu
Hi! I’ve implemented issue #663 and addressed the review feedback for PIN-protected links. The remaining Vercel check requires maintainer authorization. Thank you!

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
linkid Ready Ready Preview Aug 10, 2026 3:40pm

@vishnukothakapu
vishnukothakapu merged commit 841ca45 into vishnukothakapu:main Aug 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy to Clipboard Button for Links

3 participants