Conversation
Adding dropdown functionality to the partner profile to allow for copying partner ID.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThe PR restructures the partner actions popover in the partners dashboard layout, refactoring the action menu from a responsive-width container to a full-width grouped structure with multiple action sections, and introduces new partner management actions (Archive, Reactivate, Deactivate, Ban, Unban) alongside a Copy Partner ID feature. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
Split by partner actions/settings and status changes.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@apps/web/app/app.dub.co/`(dashboard)/[slug]/(ee)/program/partners/[partnerId]/layout.tsx:
- Around line 362-371: The click handler for the MenuItem currently calls
navigator.clipboard.writeText(partner.id) without awaiting or handling errors;
update the onClick to be async and wrap the await
navigator.clipboard.writeText(partner.id) in a try-catch, call
toast.success("Partner ID copied!") and setIsOpen(false) only after the awaited
write succeeds, and in the catch call toast.error with a helpful message (e.g.,
"Failed to copy Partner ID") so permission or other errors are surfaced; keep
references to MenuItem, navigator.clipboard.writeText, partner.id, setIsOpen,
and toast.success/toast.error to locate and modify the handler.
Adding dropdown functionality to the partner profile to allow for copying partner ID. Split by actions/settings and status changes (destructive).
CleanShot.2026-02-05.at.11.20.09.mp4
Summary by CodeRabbit