Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update compare table

Steven Teyb6b0f47d1eee
diff --git a/packages/utils/src/constants/plan-compare.tsx b/packages/utils/src/constants/plan-compare.tsx
index 91064d43bf..645bbd21b2 100644
--- a/packages/utils/src/constants/plan-compare.tsx
+++ b/packages/utils/src/constants/plan-compare.tsx
@@ -38,9 +38,12 @@ export const PLAN_COMPARE_FEATURES: {
text: ({ plan }) => (
<>
<strong>
- {plan.name === "Enterprise" ? "∞" : nFormatter(plan.limits.links)}
+ {plan.name === "Enterprise"
+ ? "Unlimited"
+ : nFormatter(plan.limits.links)}
</strong>{" "}
- new links/mo
+ new links
+ {plan.name === "Enterprise" ? "" : "/mo"}
</>
),
},
@@ -161,29 +164,19 @@ export const PLAN_COMPARE_FEATURES: {
<>
<strong>
{plan.name === "Enterprise"
- ? "∞"
+ ? "Unlimited"
: nFormatter(plan.limits.clicks)}
</strong>{" "}
- tracked clicks/mo
+ tracked clicks
+ {plan.name === "Enterprise" ? "" : "/mo"}
</>
),
href: "https://dub.co/help/article/dub-analytics-limits",
},
{
- text: ({ id }) => (
+ text: ({ plan }) => (
<>
- <strong>
- {
- {
- free: "30 day",
- pro: "1 year",
- business: "3 year",
- advanced: "5 year",
- enterprise: "∞",
- }[id]
- }
- </strong>{" "}
- retention
+ <strong>{plan.limits.retention}</strong> retention
</>
),
},
@@ -233,12 +226,15 @@ export const PLAN_COMPARE_FEATURES: {
text: ({ id, plan }) =>
id === "free" || id === "pro" ? (
"No tracked sales"
- ) : id === "enterprise" ? (
- "∞ tracked sales"
) : (
<>
- <strong>${nFormatter(plan.limits.sales / 100)}</strong> tracked
- sales/mo
+ <strong>
+ {plan.name === "Enterprise"
+ ? "Unlimited"
+ : `${nFormatter(plan.limits.sales)}`}
+ </strong>{" "}
+ tracked sales
+ {plan.name === "Enterprise" ? "" : "/mo"}
</>
),
},
@@ -316,7 +312,11 @@ export const PLAN_COMPARE_FEATURES: {
{
text: ({ plan }) => (
<>
- <strong>{nFormatter(plan.limits.domains, { full: true })}</strong>{" "}
+ <strong>
+ {plan.name === "Enterprise"
+ ? "Unlimited"
+ : nFormatter(plan.limits.domains, { full: true })}
+ </strong>{" "}
custom domains
</>
),
@@ -393,7 +393,12 @@ export const PLAN_COMPARE_FEATURES: {
{
text: ({ plan }) => (
<>
- <strong>{nFormatter(plan.limits.users)}</strong> user
+ <strong>
+ {plan.name === "Enterprise"
+ ? "Unlimited"
+ : nFormatter(plan.limits.users)}
+ </strong>{" "}
+ user
{plan.limits.users === 1 ? "" : "s"}
</>
),
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index 2446ddcf25..57edf1b129 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -28,6 +28,7 @@ export const PLANS = [
users: 1,
ai: 10,
api: 60,
+ retention: "30-day",
},
cta: {
text: "Start for free",
@@ -99,6 +100,7 @@ export const PLANS = [
users: 3,
ai: 1000,
api: 600,
+ retention: "1-year",
},
features: [
{ id: "clicks", text: "50K tracked clicks/mo" },
@@ -166,6 +168,7 @@ export const PLANS = [
users: 10,
ai: 1000,
api: 3000,
+ retention: "3-year",
},
featureTitle: "Everything in Pro, plus:",
features: [
@@ -244,6 +247,7 @@ export const PLANS = [
users: 20,
ai: 1000,
api: 3000,
+ retention: "5-year",
},
featureTitle: "Everything in Business, plus:",
features: [
@@ -297,6 +301,7 @@ export const PLANS = [
users: 500,
ai: 10000,
api: 10000,
+ retention: "Unlimited",
},
featureTitle: "Everything in Advanced, plus:",
features: [