From bde53fcf344bb8f31904310d5c5280cdfcb8d858 Mon Sep 17 00:00:00 2001 From: jnsdls Date: Wed, 2 Jul 2025 18:51:42 +0000 Subject: [PATCH] Remove "starter" plan checks from team invitation logic (#7513) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## PR-Codex overview This PR focuses on refining the invitation feature within the onboarding and settings sections of the application. It simplifies the conditions for inviting team members based on the billing plan. ### Detailed summary - Removed `"Invite Team Members"` from the pricing options in `pricing.tsx`. - Updated the conditional rendering for the custom CTA in `InviteTeamMembers.tsx` to check only for the `"free"` billing plan. - Simplified the `inviteEnabled` condition in `InviteSection.tsx` to exclude the `"starter"` plan. - Adjusted the conditional check for displaying the bottom section in `InviteSection.tsx` to only check for the `"free"` plan. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **New Features** * Updated team plan features by removing "Invite Team Members" from the "growth" plan feature list. * **Bug Fixes** * Adjusted upgrade prompts and invite functionality so that upgrade options and invite restrictions now apply only to teams on the "free" plan, rather than both "free" and "starter" plans. --- apps/dashboard/src/@/utils/pricing.tsx | 1 - .../login/onboarding/team-onboarding/InviteTeamMembers.tsx | 3 +-- .../(team)/~/settings/members/InviteSection.tsx | 7 ++----- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/dashboard/src/@/utils/pricing.tsx b/apps/dashboard/src/@/utils/pricing.tsx index c961ec4b867..400b38560d7 100644 --- a/apps/dashboard/src/@/utils/pricing.tsx +++ b/apps/dashboard/src/@/utils/pricing.tsx @@ -23,7 +23,6 @@ export const TEAM_PLANS: Record< features: [ "Email Support", "48hr Guaranteed Response", - "Invite Team Members", "Custom In-App Wallet Auth", ], price: 99, diff --git a/apps/dashboard/src/app/(app)/login/onboarding/team-onboarding/InviteTeamMembers.tsx b/apps/dashboard/src/app/(app)/login/onboarding/team-onboarding/InviteTeamMembers.tsx index 76af32a734b..bbd88fd1942 100644 --- a/apps/dashboard/src/app/(app)/login/onboarding/team-onboarding/InviteTeamMembers.tsx +++ b/apps/dashboard/src/app/(app)/login/onboarding/team-onboarding/InviteTeamMembers.tsx @@ -87,8 +87,7 @@ export function InviteTeamMembersUI(props: { client={props.client} customCTASection={
- {(props.team.billingPlan === "free" || - props.team.billingPlan === "starter") && ( + {props.team.billingPlan === "free" && (