Skip to content

Show the plan paid for in billing; add the Max plan - #13

Merged
mehfuzh merged 1 commit into
mainfrom
billing-plan-and-max
Nov 19, 2026
Merged

mehfuzh merged 1 commit into
mainfrom
billing-plan-and-max

Conversation

@mehfuzh

@mehfuzh mehfuzh commented Nov 19, 2026

Copy link
Copy Markdown
Member

Why

Admin and hand-granted premium accounts showed as Pro/admin on the billing page; an admin's admin plan outranked every plan card, so it could never upgrade. Needs smartloop-labs/slp-api#179 (deployed), which adds billing_plan and the Max tier.

What

  • Billing page, /upgrade, account menu and profile badge read billing_plan: the plan the account pays for. Accounts with no subscription show Free and can buy a plan.
  • Model access and usage gates still follow is_paid/is_premium, so premium entitlements are unchanged.
  • Max added to purchasable plans, plan ranks, plan cards and labels; the web-search upsell now offers Max to Plus accounts.

Testing

tsc --noEmit clean.

Billing, /upgrade, the account menu and the profile badge read the API's
new billing_plan: the plan the account pays for. Admin and hand-granted
premium accounts with no subscription now show Free and can buy a plan
(an admin's 'admin' plan outranked every card, so it could never
upgrade). Model access still follows is_paid/is_premium.

Max is added to the purchasable plans, plan ranks, cards and labels.
@mehfuzh
mehfuzh merged commit 40ae4d1 into main Nov 19, 2026
1 check passed
@mehfuzh
mehfuzh deleted the billing-plan-and-max branch November 19, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant