The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update pricing table
Steven Tey1ea47da140b5
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/upgrade/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/upgrade/page-client.tsxindex 70258b73a3..cfb23b0d70 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/upgrade/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/upgrade/page-client.tsx@@ -6,6 +6,7 @@ import {ChartLine,Check,CircleQuestion,+ ConnectedDots4,Globe,Hyperlink,Icon,@@ -23,9 +24,10 @@ const COMPARE_FEATURE_ICONS: Record<(typeof PLAN_COMPARE_FEATURES)[number]["category"],Icon> = {- "Short links": Hyperlink,- Domains: Globe,+ Links: Hyperlink,Analytics: ChartLine,+ Partners: ConnectedDots4,+ Domains: Globe,Workspace: Users2,Support: CircleQuestion,API: Plug2,@@ -222,41 +224,53 @@ export function WorkspaceBillingUpgradePageClient() {</tr></thead><tbody className="contents">- {features.map(({ check, text }, idx) => (- <tr key={idx} className="contents bg-white">- {plans.map((plan) => {- const id = plan.name.toLowerCase();- const isChecked =- typeof check === "boolean"- ? check- : check === undefined ||- (check[id] ?? check.default ?? false);+ {features.map(({ check, text, href }, idx) => {+ const As = href ? "a" : "span";- return (- <td- key={id}- className={cn(- "flex items-center gap-2 border-b border-neutral-200 bg-white px-5 py-4",- !isChecked && "text-neutral-300",- )}- >- {isChecked ? (- <Check className="size-3 text-neutral-500" />- ) : (- <span className="w-3">•</span>- )}- <span>- {/* @ts-ignore */}- {text({- id,- plan,- })}- </span>- </td>- );- })}- </tr>- ))}+ return (+ <tr key={idx} className="contents bg-white">+ {plans.map((plan) => {+ const id = plan.name.toLowerCase();+ const isChecked =+ typeof check === "boolean"+ ? check+ : check === undefined ||+ (check[id] ?? check.default ?? false);++ return (+ <td+ key={id}+ className={cn(+ "flex items-center gap-2 border-b border-neutral-200 bg-white px-5 py-4",+ !isChecked && "text-neutral-300",+ )}+ >+ {isChecked ? (+ <Check className="size-3 text-neutral-500" />+ ) : (+ <span className="w-3">•</span>+ )}+ <As+ href={href}+ target="_blank"+ {...(href && {+ className:+ "underline decoration-dotted underline-offset-2 cursor-help",+ })}+ >+ {typeof text === "function"+ ? (text({+ id,+ plan,+ }) as React.ReactNode)+ : text}+ </As>+ </td>+ );+ })}+ </tr>+ );+ })}</tbody></table></div>diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsxindex a2281e25b4..944c4316a9 100644--- a/packages/utils/src/constants/pricing.tsx+++ b/packages/utils/src/constants/pricing.tsx@@ -315,7 +315,10 @@ export const PLANS = [export const PLAN_COMPARE_FEATURES: {category: string;features: {- text: (d: { id: string; plan: (typeof PLANS)[number] }) => ReactNode;+ text:+ | string+ | ((d: { id: string; plan: (typeof PLANS)[number] }) => ReactNode);+ href?: string;check?:| boolean| {@@ -329,7 +332,7 @@ export const PLAN_COMPARE_FEATURES: {}[];}[] = [{- category: "Short links",+ category: "Links",features: [{text: () => (@@ -341,36 +344,69 @@ export const PLAN_COMPARE_FEATURES: {{text: ({ plan }) => (<>- <strong>{nFormatter(plan.limits.links)}</strong> new links/mo+ <strong>+ {plan.name === "Enterprise" ? "∞" : nFormatter(plan.limits.links)}+ </strong>{" "}+ new links/mo</>),},{- text: () => (+ text: ({ plan }) => (+ <>+ <strong>+ {plan.limits.tags === INFINITY_NUMBER+ ? "Unlimited"+ : nFormatter(plan.limits.tags)}+ </strong>{" "}+ tags+ </>+ ),+ href: "https://dub.co/help/article/how-to-use-tags",+ },+ {+ check: {+ free: false,+ default: true,+ },+ text: ({ plan }) => (<>- <strong>Unlimited</strong> redirects+ <strong>+ {plan.limits.folders === INFINITY_NUMBER+ ? "Unlimited"+ : nFormatter(plan.limits.folders)}+ </strong>{" "}+ folders</>),},{- text: () => <>QR Codes</>,+ text: "Custom QR codes",+ href: "https://dub.co/help/article/custom-qr-codes",+ },+ {+ text: "UTM builder",+ href: "https://dub.co/help/article/utm-builder",},{- text: () => <>UTM Builder</>,+ text: "UTM templates",+ href: "https://dub.co/help/article/utm-templates",},{check: {free: false,default: true,},- text: () => <>Custom link previews</>,+ text: "Custom link previews",+ href: "https://dub.co/help/article/custom-link-previews",},{check: {free: false,default: true,},- text: () => <>Link cloaking</>,+ text: "Link cloaking",+ href: "https://dub.co/help/article/link-cloaking",},{@@ -378,72 +414,55 @@ export const PLAN_COMPARE_FEATURES: {free: false,default: true,},- text: () => <>Link expiration</>,+ text: "Link expiration",+ href: "https://dub.co/help/article/link-expiration",},{check: {free: false,default: true,},- text: () => <>Password protection</>,+ text: "Password protection",+ href: "https://dub.co/help/article/password-protected-links",},{check: {free: false,default: true,},- text: () => <>Device targeting</>,+ text: "Device targeting",+ href: "https://dub.co/help/article/device-targeting",},{check: {free: false,default: true,},- text: () => <>Geo targeting</>,+ text: "Geo targeting",+ href: "https://dub.co/help/article/geo-targeting",},],},{- category: "Domains",+ category: "Analytics",features: [{- text: ({ plan }) => (- <>- <strong>{nFormatter(plan.limits.domains, { full: true })}</strong>{" "}- custom domains- </>- ),- },- {- text: () => <>SSL certificates</>,- },- {- check: {- default: true,- free: false,- },- text: () => (- <>- Premium <strong>dub.link</strong> domain- </>- ),+ text: "Advanced analytics",+ href: "https://dub.co/help/article/dub-analytics",},{- check: {- default: true,- free: false,- },- text: () => (+ text: ({ plan }) => (<>- Free <strong>.link</strong> domain+ <strong>+ {plan.name === "Enterprise"+ ? "∞"+ : nFormatter(plan.limits.clicks)}+ </strong>{" "}+ tracked clicks/mo</>),+ href: "https://dub.co/help/article/dub-analytics-limits",},- ],- },- {- category: "Analytics",- features: [{text: ({ id }) => (<>@@ -454,7 +473,7 @@ export const PLAN_COMPARE_FEATURES: {pro: "1 year",business: "3 year",advanced: "5 year",- enterprise: "Unlimited",+ enterprise: "∞",}[id]}</strong>{" "}@@ -463,15 +482,30 @@ export const PLAN_COMPARE_FEATURES: {),},{- text: () => <>Advanced analytics</>,+ check: {+ default: false,+ business: true,+ advanced: true,+ enterprise: true,+ },+ text: "Real-time events stream",+ href: "https://dub.co/help/article/real-time-events-stream",},{- text: ({ plan }) => (- <>- <strong>{nFormatter(plan.limits.clicks)}</strong> tracked clicks/mo- </>- ),+ check: {+ default: false,+ business: true,+ advanced: true,+ enterprise: true,+ },+ text: "Conversion tracking",+ href: "https://dub.co/help/article/dub-conversions",},+ ],+ },+ {+ category: "Partners",+ features: [{check: {default: false,@@ -479,11 +513,37 @@ export const PLAN_COMPARE_FEATURES: {advanced: true,enterprise: true,},- text: () => (- <>- <strong>Real-time</strong> events stream- </>- ),+ text: "Partner management",+ href: "https://dub.co/help/article/dub-partners",+ },+ {+ check: {+ default: false,+ business: true,+ advanced: true,+ enterprise: true,+ },+ text: ({ id, plan }) =>+ id === "free" || id === "pro" ? (+ "No tracked sales"+ ) : id === "enterprise" ? (+ "∞ tracked sales"+ ) : (+ <>+ <strong>${nFormatter(plan.limits.sales / 100)}</strong> tracked+ sales/mo+ </>+ ),+ },+ {+ check: {+ default: false,+ business: true,+ advanced: true,+ enterprise: true,+ },+ text: "1-click global payouts",+ href: "https://dub.co/help/article/partner-payouts",},{check: {@@ -492,7 +552,93 @@ export const PLAN_COMPARE_FEATURES: {advanced: true,enterprise: true,},- text: () => <>Conversion tracking</>,+ text: ({ id }) =>+ id === "free" || id === "pro" ? (+ "No payouts"+ ) : (+ <>+ <strong>+ {+ {+ business: "7%",+ advanced: "5%",+ enterprise: "3%",+ }[id]+ }+ </strong>{" "}+ payout fees+ </>+ ),+ href: "https://dub.co/help/article/partner-payouts#payout-fees-and-timing",+ },+ {+ check: {+ default: false,+ business: true,+ advanced: true,+ enterprise: true,+ },+ text: "Tax compliance",+ href: "https://dub.co/help/article/partner-payouts#tax-compliance",+ },+ {+ check: {+ default: false,+ business: false,+ advanced: true,+ enterprise: true,+ },+ text: "White-labeling support",+ href: "https://dub.co/help/article/dub-partners#white-labeled-in-app-dashboard",+ },+ {+ check: {+ default: false,+ business: false,+ advanced: true,+ enterprise: true,+ },+ text: "Branded email domains",+ },+ ],+ },+ {+ category: "Domains",+ features: [+ {+ text: ({ plan }) => (+ <>+ <strong>{nFormatter(plan.limits.domains, { full: true })}</strong>{" "}+ custom domains+ </>+ ),+ },+ {+ text: () => <>SSL certificates</>,+ },+ {+ check: {+ default: true,+ free: false,+ },+ text: () => (+ <>+ Premium <strong>dub.link</strong> domain+ </>+ ),+ href: "https://dub.co/help/article/default-dub-domains#premium-dublink-domain",+ },+ {+ check: {+ default: true,+ free: false,+ },+ text: () => (+ <>+ Free <strong>.link</strong> domain+ </>+ ),+ href: "https://dub.co/help/article/free-dot-link-domain",},],},@@ -510,30 +656,32 @@ export const PLAN_COMPARE_FEATURES: {{check: {default: false,+ advanced: true,enterprise: true,},- text: () => <>SSO/SAML</>,+ text: "Role-based access control",},{check: {default: false,enterprise: true,},- text: () => <>Custom SLA</>,+ text: "SAML/SSO",+ href: "https://dub.co/help/category/saml-sso",},{check: {default: false,enterprise: true,},- text: () => <>Audit logs</>,+ text: "Custom SLA",},{check: {default: false,enterprise: true,},- text: () => <>Role-based controls</>,+ text: "Audit logs",},],},@@ -544,12 +692,16 @@ export const PLAN_COMPARE_FEATURES: {text: ({ id }) => (<><strong>- {{- free: "Basic",- pro: "Elevated",- }[id] ?? "Priority"}- </strong>{" "}- {id === "enterprise" ? "with SLA" : "support"}+ {+ {+ free: "Basic support",+ pro: "Elevated support",+ business: "Priority support",+ advanced: "Priority via Slack",+ enterprise: "Priority with SLA",+ }[id]+ }+ </strong></>),},@@ -570,7 +722,12 @@ export const PLAN_COMPARE_FEATURES: {category: "API",features: [{- text: () => <>API access</>,+ text: "API Access",+ href: "https://dub.co/docs/api-reference/introduction",+ },+ {+ text: "Native SDKs",+ href: "https://dub.co/docs/sdks/overview",},{text: ({ id, plan }) => (@@ -591,11 +748,8 @@ export const PLAN_COMPARE_FEATURES: {advanced: true,enterprise: true,},- text: () => (- <>- <strong>Event webhooks</strong>- </>- ),+ text: "Event webhooks",+ href: "https://dub.co/docs/concepts/webhooks/introduction",},],},