Skip to content

Commit bde53fc

Browse files
committed
Remove "starter" plan checks from team invitation logic (#7513)
<!-- start pr-codex --> ## 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}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 7437289 commit bde53fc

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

apps/dashboard/src/@/utils/pricing.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export const TEAM_PLANS: Record<
2323
features: [
2424
"Email Support",
2525
"48hr Guaranteed Response",
26-
"Invite Team Members",
2726
"Custom In-App Wallet Auth",
2827
],
2928
price: 99,

apps/dashboard/src/app/(app)/login/onboarding/team-onboarding/InviteTeamMembers.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ export function InviteTeamMembersUI(props: {
8787
client={props.client}
8888
customCTASection={
8989
<div className="flex gap-3">
90-
{(props.team.billingPlan === "free" ||
91-
props.team.billingPlan === "starter") && (
90+
{props.team.billingPlan === "free" && (
9291
<Button
9392
className="gap-2"
9493
onClick={() => {

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/settings/members/InviteSection.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ export function InviteSection(props: {
8585
let bottomSection: React.ReactNode = null;
8686
const maxAllowedInvitesAtOnce = 10;
8787
// invites are enabled if user has edit permission and team plan is not "free"
88-
const inviteEnabled =
89-
teamPlan !== "free" &&
90-
teamPlan !== "starter" &&
91-
props.userHasEditPermission;
88+
const inviteEnabled = teamPlan !== "free" && props.userHasEditPermission;
9289

9390
const form = useForm<InviteFormValues>({
9491
defaultValues: {
@@ -111,7 +108,7 @@ export function InviteSection(props: {
111108
},
112109
});
113110

114-
if (teamPlan === "free" || teamPlan === "starter") {
111+
if (teamPlan === "free") {
115112
bottomSection = (
116113
<div className="lg:px6 flex items-center justify-between gap-4 border-border border-t px-4 py-4">
117114
<p className="text-muted-foreground text-sm">

0 commit comments

Comments
 (0)