Repository navigation
Description
Summary
Remove the team-member seat limit for cloud plans, so an organization can invite unlimited teammates in cloud mode. Today the paid cloud tiers cap team size (Starter = 1, Growth = 3), while Self-Hosted and Enterprise are already unlimited (-1). We want to drop that cap on the cloud plans too.
What to change
-1 is already the codebase's "unlimited" sentinel for plan limits (used by Self-Hosted and Enterprise, and special-cased everywhere the limit is read), so this is mostly a config change:
- Set
maxTeamMembers: -1on the Starter and Growth plans, in BOTH plan configs — they must stay in sync:web/src/config/plans.ts(Starter ~line 112, Growth ~line 149)server/src/config/plans.js(Starter ~line 43, Growth ~line 73)
Everything downstream already keys off -1, so it flows through automatically:
enforceLimit(orgId, 'maxTeamMembers', …)ininviteMember(web/src/lib/actions/team.ts) becomes a no-op (within limit is always true for-1).getTeamInfo'scanInvite = max === -1 || …becomes always-true, so the "Seat limit reached" upsell banner inweb/src/components/settings/team-section.tsxno longer shows, and the seat label already renders "N seats used" (no "of M") for-1.- The plan switcher already prints "Unlimited" for
-1.
UI follow-up (small)
The onboarding plan card currently only lists team members when maxTeamMembers > 1 (onboarding/page.tsx ~line 1557), so with -1 that line disappears for Starter/Growth. Prefer showing "Unlimited team members" for -1 instead of hiding it, so the perk stays visible (mirror how the plan switcher handles -1).
Non-goals
- Self-Hosted and Enterprise are unchanged (already
-1). - Other plan limits (prompts, volumes, audits, etc.) are unchanged — this is only about
maxTeamMembers. - No Stripe/billing change is needed for the limit itself; seats aren't metered.
How to test
- On a Starter or Growth (cloud) org, go to Settings → Team → invite more than the old cap (2+ for Starter, 4+ for Growth) → invites succeed; no "Seat limit reached" banner.
- The seat label reads "N seats used" (no "of M").
- The onboarding plan cards show "Unlimited team members" for those plans.
- Self-Hosted / Enterprise behave exactly as before.
Notes
- Keep the two plan configs (
web+server) identical — a mismatch would let the UI and the server disagree on the limit.
Activity