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.

consider 10_000 links as mega workspace

Steven Teyc2b7cb4cc5c3
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx
index 8a205d2138..7aa340aeaa 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx
@@ -108,7 +108,7 @@ export default function PlanUsage() {
requiresUpgrade: plan === "free" || plan === "pro",
},
];
- if (totalLinks && totalLinks > 100_000) {
+ if (totalLinks && totalLinks > 10_000) {
// Find the links tab and move it to the first position
const linksTabIndex = tabs.findIndex((tab) => tab.id === "links");
if (linksTabIndex !== -1) {
@@ -268,7 +268,7 @@ function UsageTabCard({
const { slug, totalLinks } = useWorkspace();
const defaultActiveTab = useMemo(() => {
- if (totalLinks && totalLinks > 100_000) {
+ if (totalLinks && totalLinks > 10_000) {
return "links";
}
return "events";
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/usage-chart.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/usage-chart.tsx
index d031d532df..be9fa94700 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/usage-chart.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/usage-chart.tsx
@@ -36,7 +36,7 @@ export function UsageChart() {
const { totalLinks } = useWorkspace();
const defaultActiveTab = useMemo(() => {
- if (totalLinks && totalLinks > 100_000) {
+ if (totalLinks && totalLinks > 10_000) {
return "links";
}
return "events";