gristlabs_grist-core/app/client/widgets
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
..
AbstractWidget.js
AttachmentsEditor.ts
AttachmentsWidget.ts
BaseEditor.js
CellStyle.ts
CheckBox.css
CheckBoxEditor.js
ChoiceEditor.js
ChoiceListCell.ts
ChoiceListEditor.ts
ChoiceListEntry.ts
ChoiceTextBox.ts
ChoiceToken.ts
ConditionalStyle.ts
CurrencyPicker.ts
DateEditor.js
DateTextBox.js
DateTimeEditor.css
DateTimeEditor.js
DateTimeTextBox.js
DiffBox.ts
DiscussionEditor.ts
EditorButtons.ts
EditorPlacement.ts
EditorTooltip.ts
ErrorDom.ts
FieldBuilder.css
FieldBuilder.ts
FieldEditor.ts
FloatingEditor.ts
FormulaAssistant.ts
FormulaEditor.ts
HyperLinkEditor.ts
HyperLinkTextBox.ts
NewAbstractWidget.ts
NewBaseEditor.ts
NTextBox.ts
NTextEditor.ts
NumericTextBox.ts
Reference.css
Reference.ts
ReferenceEditor.ts
ReferenceList.ts
ReferenceListEditor.ts
Spinner.css
Spinner.ts
Switch.css
TextBox.css
TextEditor.css
TextEditor.js
Toggle.ts
TZAutocomplete.ts
UserType.ts
UserTypeImpl.ts