Skip to content

Partner overview link action#4166

Open
marcusljf wants to merge 1 commit into
mainfrom
partner-overview-links
Open

Partner overview link action#4166
marcusljf wants to merge 1 commit into
mainfrom
partner-overview-links

Conversation

@marcusljf

@marcusljf marcusljf commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator
  • Changing link hover and action function
  • Shows tooltip of the action, changes the cursor to pointer, and the copy button displays the "copied" message.
  • The link was being copied to the clipboard before, just making it more clear in the UI

Before

CleanShot.2026-07-15.at.13.20.57.mp4

After

CleanShot.2026-07-15.at.13.21.14.mp4

Summary by CodeRabbit

  • Bug Fixes
    • Improved the copy-link control in enrolled program rewards.
    • The control now provides clearer feedback and correctly reflects when copying is unavailable.

@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
dub Ready Ready Preview Jul 15, 2026 8:37pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The reward link copy UI replaces CopyText with a tooltip-wrapped button that directly copies link.copyValue, uses copyDisabled for its disabled state, and displays link.displayText.

Changes

Reward link copy control

Layer / File(s) Summary
Replace reward link copy control
apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/page-client.tsx
Removes the CopyText import and replaces its usage with a tooltip-wrapped button that copies the link value and reflects the existing disabled condition.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: steven-tey, devkiran

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and relevant to the partner overview link interaction change.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch partner-overview-links

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
`@apps/web/app/`(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/page-client.tsx:
- Around line 810-811: Update the Tooltip around the copy-link button to use the
existing copied state for its content, displaying a copied message after the
link is copied and retaining “Copy link” otherwise. Keep the existing
copyDisabled behavior unchanged.
🪄 Autofix (Beta)

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

Run ID: 365e1b59-11e9-4f4b-88a3-752b62264992

📥 Commits

Reviewing files that changed from the base of the PR and between 41f0f58 and 2bf0b48.

📒 Files selected for processing (1)
  • apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/page-client.tsx

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