Show member caps on pricing and in members settings
SA
1mo ago+607+607+012345678901234567890123456789-14-14-01234567890123456789
Stacked on #9242. Merge that first; this PR's base is its branch.
Summary
Shows each plan's member cap (Autumn max_seats, set on every paid plan in #9242) on the pricing pages and in members settings.
- Catalog:
PlanFamily.maxSeatsis read frommax_seatson any of the family's plans.finiteSeatLimit()turns the unlimited sentinel (2147483647, or anything from 1,000,000 up) intonullfor display. - Pricing (marketing):
- The "Team members" comparison row is now per plan: "Up to 5" for Pro, "Unlimited" for Team and Ultra. If a plan declares no
max_seats, the row falls back to the static value. - Each paid card also lists "Up to 5 members" or "Unlimited members".
- The markdown export of the pricing page (
md/[...path]) reads the same values.
- The "Team members" comparison row is now per plan: "Up to 5" for Pro, "Unlimited" for Team and Ultra. If a plan declares no
- API:
billing.activePlangets a newseatLimitfield (number | null). The field is only added, so released clients are unaffected. - Desktop members settings:
- Shows "N of M members" when the plan has a real cap.
- When members plus pending, unexpired invitations reach the cap, "Invite member" is disabled, with a note and an "Upgrade to Team" link to
/settings/billing/plans. This matches how the server counts in #9242. - A client talking to an API without
seatLimitreads it asundefinedand shows nothing.
- i18n: 7 new messages, translated in all 17 locales. Plan names such as "Team" are left untranslated.
Not covered: there is no members page in web, so web is unchanged. Mobile is out of scope.
Deploy order
The API (billing.activePlan.seatLimit) must be live before a desktop build that reads it ships (packages/trpc/AGENTS.md, rule 9). Until then the desktop shows no cap, which is safe because the server still enforces it.
Test plan
-
bun test: sharedbilling.test.ts(34), marketing pricing/md/plan-prices (12), auth billing (86) - Typecheck: shared, trpc, auth, marketing, desktop
-
bun run check:i18npasses; i18n package tests (169) - Biome check
- Not verified in the running desktop app or rendered pricing page. To check: on a Pro org with 5 members, members settings show "5 of 5 members" and Invite is disabled with the Upgrade link; on a Team org, no count shows. On /pricing, the Team members row reads Up to 5 / Unlimited / Unlimited.
Summary by cubic
Pricing pages previously showed static member allowances; they now show each plan’s member cap, and desktop member settings show usage and block invites when the organization reaches its cap. Full organizations get a link to upgrade to Team.
- Pricing cards, the comparison table, and the markdown export show per-plan limits; plans without a declared cap keep the static fallback.
- Pending, unexpired invitations count toward the cap. Unlimited sentinel values display as “Unlimited.”
billing.activePlannow includesseatLimit. Deploy the API before desktop; older APIs omit the cap, so desktop shows no usage or invite limit.