gristlabs_grist-core/app/client
Jarosław Sadziński d13b9b9019 (core) Billing for formula assistant
Summary:
Adding limits for AI calls and connecting those limits with a Stripe Account.

- New table in homedb called `limits`
- All calls to the AI are not routed through DocApi and measured.
- All products now contain a special key `assistantLimit`, with a default value 0
- Limit is reset every time the subscription has changed its period
- The billing page is updated with two new options that describe the AI plan
- There is a new popup that allows the user to upgrade to a higher plan
- Tiers are read directly from the Stripe product with a volume pricing model

Test Plan: Updated and added

Reviewers: georgegevoian, paulfitz

Reviewed By: georgegevoian

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D3907
2023-07-10 13:24:08 +02:00
..
aclui (core) Fix ACL bug with rec.id in formula 2023-04-26 00:31:52 -07:00
components (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
lib (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
models (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
ui (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
ui2018 (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
widgets (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
app.css (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
app.js (core) i18 2022-09-29 18:02:09 +02:00
billingMain.ts (core) Add basic activation page to grist-ee 2022-08-23 10:30:52 -07:00
browserCheck.ts (core) On mobile, only show a warning for older and unknown browsers rather than for all 2023-06-01 11:15:21 -04:00
declarations.d.ts (core) Migrating commands to typescript 2023-04-24 09:48:40 +02:00
DefaultHooks.ts support other SQLite wrappers, and various hooks needed by grist-static (#516) 2023-05-23 15:17:28 -04:00
errorMain.ts (core) Enable MFA configuration (and add SMS) 2022-01-19 13:55:54 -08:00
exposeModulesForTests.js support other SQLite wrappers, and various hooks needed by grist-static (#516) 2023-05-23 15:17:28 -04:00
Hooks.ts support other SQLite wrappers, and various hooks needed by grist-static (#516) 2023-05-23 15:17:28 -04:00
logo.css (core) Cleanup removing some old unused files, fixing logo.css, and removing #grist-app. 2020-10-09 17:04:09 -04:00
tsconfig.json (core) Migrate to SRP and add change password dialog 2022-03-16 21:35:06 -07:00