Skip to content

Show the program destination URL in the marketplace#3455

Merged
steven-tey merged 3 commits intomainfrom
program-marketplace-url
Feb 12, 2026
Merged

Show the program destination URL in the marketplace#3455
steven-tey merged 3 commits intomainfrom
program-marketplace-url

Conversation

@marcusljf
Copy link
Collaborator

@marcusljf marcusljf commented Feb 11, 2026

Instead of the partner searching the web for the company, we'll show the domain of the group destination URL from the default link settings. Also strips additional paths if any are added to keep things simple.

Featured Default
CleanShot 2026-02-10 at 17 24 17@2x CleanShot 2026-02-10 at 17 24 12@2x

Summary by CodeRabbit

  • New Features

    • Added a Website section to program marketplace pages that displays normalized links (http/https), opens in a new tab, shows a link icon, and truncates long domains for readability.
  • UI Improvements

    • Rewards and Category labels now toggle between inverted or neutral text colors based on image darkness for more consistent contrast.

Instead of the partner searching the web for the company, we should the domain of the group destination URL from the default link settings.
@vercel
Copy link
Contributor

vercel bot commented Feb 11, 2026

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

Project Deployment Actions Updated (UTC)
dub Canceled Canceled Feb 12, 2026 4:25am

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 11, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Adds a conditional Website block to the marketplace program page that renders a truncated external link using getDomainWithoutWWW and a Hyperlink icon; imports updated to include Hyperlink and getDomainWithoutWWW; Rewards and Category label text-color logic simplified.

Changes

Cohort / File(s) Summary
Website display & UI tweaks
apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/[programSlug]/page.tsx
Imported Hyperlink from @dub/ui/icons and getDomainWithoutWWW from @dub/utils; compute/display website when program.url exists as an external link opening in a new tab with a Hyperlink icon and truncated domain; simplified Rewards/Category label text color logic based on isDarkImage.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Poem

🐇 I found a link that likes to run,
A tiny domain that basks in sun,
An icon hops beside the name,
I chew the bytes and love the game,
Tiny paws, a joyous run 🌿

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and clearly summarizes the main change: displaying the program destination URL in the marketplace UI, which is the primary purpose of this PR.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch program-marketplace-url

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 and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In
`@apps/web/app/`(ee)/partners.dub.co/(dashboard)/programs/marketplace/[programSlug]/page.tsx:
- Line 132: The label spans for "Rewards" and "Category" currently use a
hardcoded className "block text-xs font-medium text-neutral-400" which doesn't
adapt to dark header images; update those span elements (the label elements
surrounding "Rewards" and "Category") to conditionally apply the inverted text
color when isDarkImage is true (matching how the adjacent value components like
ProgramCategory apply "text-content-inverted")—use the same conditional class
logic or classNames helper used elsewhere so labels switch between
"text-neutral-400" and "text-content-inverted" based on isDarkImage to preserve
contrast.
🧹 Nitpick comments (1)
apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/[programSlug]/page.tsx (1)

188-212: Website section looks good overall; minor nit on duplicate external-link indicators.

Both a Hyperlink icon (Line 208) and a text arrow (Line 209) signal "external link." Consider dropping one for a cleaner appearance—though this is purely cosmetic.

@steven-tey steven-tey merged commit 78e604a into main Feb 12, 2026
6 of 8 checks passed
@steven-tey steven-tey deleted the program-marketplace-url branch February 12, 2026 04:25
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.

2 participants