gristlabs_grist-core/app/client/ui2018
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
..
breadcrumbs.ts (core) Add initial tutorials implementation 2023-03-22 10:09:02 -04:00
buttons.ts (core) Styling text button for left alignment 2023-04-27 13:03:38 +02:00
buttonSelect.ts
checkbox.ts
ColorPalette.ts
ColorSelect.ts (core) Save choice config on focus loss 2023-05-08 14:16:10 -04:00
cssVars.ts (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
draggableList.ts
editableLabel.ts (core) Draft version of AI assistant 2023-03-24 10:07:26 +01:00
IconList.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
icons.ts
links.ts (core) Hides the link icon in print view 2023-01-19 09:55:12 +01:00
loaders.ts
menus.ts (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
modals.ts (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
pages.ts (core) Detect when a page initial is an emoji, avoid repeating it, and style it better 2023-06-30 16:57:35 -04:00
popups.ts
search.ts Remove prefix from translations keys 2023-01-03 16:01:45 +01:00
select.ts