Skip to content

fix(account): a gate names the plan its feature needs, and a paid account is never told to buy a paid plan - #4822

Merged
datlechin merged 3 commits into
mainfrom
fix/team-library-plan-wording
Dec 2, 2026
Merged

datlechin merged 3 commits into
mainfrom
fix/team-library-plan-wording

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • Every gate said " needs a paid plan", so a Pro account read "Team Library needs a paid plan". The apps know no plan (core 0016); which plan has which feature is Polar's, served by GET /v2/pricing.
  • While a sign-in with a current entitlement holds, the account reads that catalog once a run, unsigned, on every server but a company's. PlanCatalog::plan_for names the plan with the fewest features that unlocks a code. The FFI gives it as AccountService::plan_for. Signed out, no call is made.
  • Mac and Windows gates name that plan: "Team Library needs a Team plan" with "Upgrade to Team", "Compare & Sync needs a Pro plan". With no plan to name, an account that has paid reads " isn't included in your plan", never "needs a paid plan".
  • Core ADR 0113 records it and amends 0016, 0099 and Windows 0023. Linux shows only Included or Not included.

Test plan

  • tablepro-account: plans::tests (Team for the team features, Pro for the rest, a renewal unlocks nothing), the_plan_catalog_is_read_once_and_names_the_plan_that_unlocks_a_feature, a_current_sign_in_reads_the_plan_catalog_while_the_account_runs, signed_out_the_plan_catalog_is_not_asked_for.
  • Mac LicensePresentationTests: a Pro account is told Team Library and Team Catalog need Team, with Upgrade to Team; without the catalog it reads "isn't included in your plan". Changed on purpose: signedOutGate, upgradeGate, personalFreePlan and gateAlertWithAction pinned paidPlanRequirement and .upgrade, and now pin the new titles and .upgrade(plan:). AccountServicesTests carries the core's plan into the state.
  • Windows LicenseGateTests: the notice carries the plan and whether the account has paid.
  • Local: tablepro-account 262/262, tablepro-ffi account 43/43, Windows build, TablePro.App.Model.Tests, TablePro.Interop.Tests AccountTests, Mac build, 5 account suites 112/112, iOS AccountModelTests 12/12, lint, l10n.

datlechin added a commit that referenced this pull request Dec 1, 2026
@datlechin
datlechin force-pushed the fix/team-library-plan-wording branch from d945f46 to f34c0eb Compare December 1, 2026 22:50
@datlechin
datlechin merged commit 25e99d6 into main Dec 2, 2026
32 of 34 checks passed
@datlechin
datlechin deleted the fix/team-library-plan-wording branch December 2, 2026 03:16
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