From f8c3d9e5e7fdaaeb8d1761b14683269ee304ba5a Mon Sep 17 00:00:00 2001 From: 0xFirekeeper <0xFirekeeper@gmail.com> Date: Thu, 1 Oct 2026 13:53:08 +0700 Subject: [PATCH] [Dashboard] Point Starter upsells to Growth Co-Authored-By: Claude Opus 5.5 --- .../src/@/components/blocks/GatedSwitch.tsx | 15 +++++++++------ .../src/@/components/blocks/upsell-wrapper.tsx | 9 +++++---- .../dashboard/src/@/constants/planToTierRecord.ts | 4 ++++ .../create/_common/storage-error-upsell.tsx | 6 +++--- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/apps/dashboard/src/@/components/blocks/GatedSwitch.tsx b/apps/dashboard/src/@/components/blocks/GatedSwitch.tsx index 8ef75d27092..9f12b1e73ef 100644 --- a/apps/dashboard/src/@/components/blocks/GatedSwitch.tsx +++ b/apps/dashboard/src/@/components/blocks/GatedSwitch.tsx @@ -4,7 +4,10 @@ import type { Team } from "@/api/team/get-team"; import { Button } from "@/components/ui/button"; import { Switch } from "@/components/ui/switch"; import { ToolTipLabel } from "@/components/ui/tooltip"; -import { planToTierRecordForGating } from "@/constants/planToTierRecord"; +import { + getUpgradePlan, + planToTierRecordForGating, +} from "@/constants/planToTierRecord"; import { cn } from "@/lib/utils"; import { getTeamPlanBadgeLabel, TeamPlanBadge } from "./TeamPlanBadge"; @@ -25,6 +28,7 @@ export const GatedSwitch: React.FC = ( const isUpgradeRequired = planToTierRecordForGating[props.currentPlan] < planToTierRecordForGating[props.requiredPlan]; + const upgradePlan = getUpgradePlan(props.requiredPlan); return ( = (

- {getTeamPlanBadgeLabel(props.requiredPlan, false)}+ + {getTeamPlanBadgeLabel(upgradePlan, false)}+ {" "} plan required

@@ -45,12 +49,11 @@ export const GatedSwitch: React.FC = (
@@ -62,7 +65,7 @@ export const GatedSwitch: React.FC = (
{isUpgradeRequired && ( @@ -97,7 +99,7 @@ export function UpsellContent(props: {