gristlabs_grist-core/app/client/models
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
..
entities (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
AppModel.ts (core) Exclude additional pages from needsOrg 2023-07-06 11:46:30 -04:00
BaseRowModel.js
ClientColumnGetters.ts
ColumnACIndexes.ts
ColumnCache.ts
ColumnFilter.ts (core) Fix date filter for DateTime columns. 2023-01-18 10:18:15 +01:00
ColumnFilterMenuModel.ts
ColumnToMap.ts
ConnectState.ts
DataRowModel.ts
DataTableModel.js
DataTableModelWithDiff.ts
DocData.ts (core) forward more kinds of edits to a virtual table 2023-06-26 12:05:34 -04:00
DocModel.ts (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
DocPageModel.ts (core) Floating formula editor 2023-06-02 17:59:22 +02:00
errors.ts (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
features.ts (core) Draft version of AI assistant 2023-03-24 10:07:26 +01:00
gristConfigCache.ts
gristUrlState.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
HomeModel.ts
MetaRowModel.js
MetaTableModel.js
modelUtil.js
NotifyModel.ts (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
QuerySet.ts (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
rowset.ts (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
rowuid.js
RuleOwner.ts
SearchModel.ts (core) Highlight rows used as a selector in linking, but do not show 'inactive' cursors. 2023-06-21 12:21:19 -04:00
SectionFilter.ts (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
Styles.ts
TableData.ts
TableModel.js
TelemetryModel.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
TreeModel.ts
UserManagerModel.ts (core) User language switcher 2023-01-26 09:47:14 +01:00
UserPrefs.ts (core) Improve dark mode 2023-04-12 01:58:48 -04:00
ViewFieldConfig.ts
VirtualTable.ts (core) Adds a UI panel for managing webhooks 2023-05-08 18:25:27 -04:00
WorkspaceInfo.ts