Skip to content

feat(account): every app asks for a license the same way, as support, and never asks someone who paid - #4729

Merged
datlechin merged 8 commits into
mainfrom
refactor/license-ask-unify
Nov 29, 2026
Merged

datlechin merged 8 commits into
mainfrom
refactor/license-ask-unify

Conversation

@datlechin

@datlechin datlechin commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The license ask's rules, who has paid, the app-* referrers and every purchase and sponsor link now live in one place, tablepro_account::support, and reach macOS, Linux and Windows through the FFI (core ADR 0099). The three hand-written copies had drifted.
  • Someone past the device limit, with a lapsed license, or on a company server is never asked to buy. macOS and Windows asked a paying customer on a fourth device. A signed-in account whose plan no check has read yet is not asked either.
  • When: the first ask comes on the 7th day of use once 10 queries finished, the second 14 days later after 5 more days of use, then every 90 days, at most 4 a year (it was day 30, then every 90 days). It shows only in the pause after a query finishes: two minutes past launch, nothing running, two seconds after the last key press or click (it was any focus change five minutes after launch). Other apps' asks start on day 3 to 14, and most donors give at the first or second ask.
  • The ask is framed as support for everyone: "If TablePro saves you time, please buy a license." I Use It Personally is gone on every platform. Signed out, the ask offers Sign In.
  • macOS: the ask is an NSAlert run as a sheet, which replaces the custom window. The Support window's Buy a License carries where it was opened from (app-support, app-sidebar, app-welcome). The Black Friday line is removed, since its sale ends before this ships.
  • Linux (ADR 0049): the ask toast stays until it is dismissed, and dismissing it reports not_now. Toasts that arrive later show first, and a license found while it shows takes it down. The main menu adds Support TablePro, and the metainfo gets a donation URL.
  • Windows (ADR 0032): the ask is a TeachingTip, which replaces the InfoBar. Help adds Support TablePro, and Settings offers Upgrade... for a Free account.
  • Purchase links that reported no click now send upgrade_clicked: the share sheet's Pro tag on macOS and Linux, and the paid-feature row on macOS. The About panel's Website label is now localized.

Tests changed on purpose: FeatureAccessTests (the audience reads the core's hasPaid), SupportLinksTests (the core's codes; icloud_sync now reads app-gate-icloud-sync), TelemetryTests and Windows LicenseAskTests (no personal answer), and Linux workspace/tests/shell.rs (one more primary menu action). Removed with their types: SupportAskScheduleTests, DatedSaleTests, DatedSaleScheduleTests.

Needs the maintainer: tablepro-cloud's docs/design/clients.md still describes I Use It Personally and the old Linux toast, and its portal's /billing records no ref, so an order placed from Upgrade... carries no attribution.

Screenshots

macOS, signed out (a debug build that skips the schedule and the wait). Before is the shipped sheet; after is the standard alert sheet.

Light Dark
Before Ask before, light Ask before, dark
After Ask after, light Ask after, dark

Help > Support TablePro:

Light Dark
Before Support before, light Support before, dark
After Support after, light Support after, dark

Windows: the UI test LicenseAskTests saves the tip and the Support TablePro dialog (64-support-tablepro) in the Windows jobs' screenshot artifact. Linux has no local build on this Mac.

Test plan

  • cargo test -p tablepro-account --lib support: 16 pass, including past the device limit, an unread plan, and a development stack, which covers nobody.
  • cargo test -p tablepro-ffi --lib account: 39 pass. C# bindings regenerated with uniffi-bindgen-cs 0.11.1.
  • macOS Unit plan: 34,703 of 34,719 pass. The 16 failures are AX reads of the test host's own windows (Settings lists, sync sheets) in a fresh worktree, unrelated to this change. The changed suites pass: 125 cases, then 44 and 18 after the last fixes.
  • Linux and Windows were not built here (no GTK or .NET on this Mac). CI's jobs are their check.

… and never asks someone who paid

The ask's rules, who has paid, the referrers and the purchase links move into tablepro_account::support and reach every app through the FFI (core ADR 0083). macOS shows the ask as an NSAlert sheet, Linux as a toast that stays until dismissed (ADR 0049), Windows as a teaching tip (ADR 0032). I Use It Personally and the Black Friday line are gone.
…unify

# Conflicts:
#	core/docs/decisions/README.md
…e after a finished query

First ask on the 7th day of use once 10 queries finished, the second 14 days later after 5 more days of use, then every 90 days, at most 4 a year. It shows only after a query finished, two minutes past launch and two seconds after the last input (core ADR 0098). Also fixes the Windows CA1822 build error.
…unify

# Conflicts:
#	windows/docs/decisions/README.md
#	windows/src/TablePro.Interop/Generated/tablepro_ffi.cs
…ExtManual, and Windows settings compare them by value
…unify

# Conflicts:
#	core/docs/decisions/README.md
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