Skip to content

Commit 47dce2e

Browse files
authored
remove growth trial eligibility (#6070)
1 parent 8b46952 commit 47dce2e

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

apps/dashboard/src/@/api/team.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type Team = {
2525
billingPlan: "pro" | "growth" | "free" | "starter";
2626
billingStatus: "validPayment" | (string & {}) | null;
2727
billingEmail: string | null;
28-
growthTrialEligible: boolean | null;
28+
growthTrialEligible: false;
2929
enabledScopes: EnabledTeamScope[];
3030
};
3131

apps/dashboard/src/components/settings/Account/Billing/Pricing.tsx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,18 @@ export const BillingPricing: React.FC<BillingPricingProps> = ({
5757
}, [validTeamPlan]);
5858

5959
const growthCardCta: CtaLink | undefined = useMemo(() => {
60-
const trialTitle = "Claim your 1-month free";
61-
6260
switch (validTeamPlan) {
6361
// free > growth
6462
case "free": {
6563
return {
66-
label: team.growthTrialEligible ? trialTitle : "Get started",
64+
label: "Get started",
6765
};
6866
}
6967

7068
// starter > growth
7169
case "starter": {
7270
return {
73-
label: team.growthTrialEligible ? trialTitle : "Upgrade",
71+
label: "Upgrade",
7472
};
7573
}
7674

@@ -87,7 +85,7 @@ export const BillingPricing: React.FC<BillingPricingProps> = ({
8785
};
8886
}
8987
}
90-
}, [team, validTeamPlan]);
88+
}, [validTeamPlan]);
9189

9290
const proCta: CtaLink | undefined = useMemo(() => {
9391
// pro > pro
@@ -138,20 +136,16 @@ export const BillingPricing: React.FC<BillingPricingProps> = ({
138136
title: growthCardCta.label,
139137
tracking: {
140138
category: "account",
141-
label: team.growthTrialEligible
142-
? "claimGrowthTrial"
143-
: "growthPlan",
139+
label: "growthPlan",
144140
},
145141
variant: "default",
146-
hint: team.growthTrialEligible
147-
? "Your free trial will end after 30 days."
148-
: undefined,
142+
hint: undefined,
149143
}
150144
: undefined
151145
}
152-
canTrialGrowth={team.growthTrialEligible || false}
146+
canTrialGrowth={false}
153147
// upsell growth plan if user is on free plan
154-
highlighted={validTeamPlan === "free"}
148+
highlighted={validTeamPlan === "free" || validTeamPlan === "starter"}
155149
teamSlug={team.slug}
156150
redirectToCheckout={redirectToCheckout}
157151
/>

apps/dashboard/src/stories/stubs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function teamStub(id: string, billingPlan: Team["billingPlan"]): Team {
4242
createdAt: new Date().toISOString(),
4343
updatedAt: new Date().toISOString(),
4444
billingEmail: "[email protected]",
45-
growthTrialEligible: true,
45+
growthTrialEligible: false,
4646
enabledScopes: [
4747
"pay",
4848
"storage",

packages/service-utils/src/core/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export type TeamResponse = {
4949
updatedAt: Date | null;
5050
billingEmail: string | null;
5151
billingStatus: "noPayment" | "validPayment" | "invalidPayment" | null;
52-
growthTrialEligible: boolean | null;
52+
growthTrialEligible: false;
5353
enabledScopes: ServiceName[];
5454
};
5555

0 commit comments

Comments
 (0)