gristlabs_grist-core/app/client/ui
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
..
AccountPage.ts
AccountPageCss.ts
AccountWidget.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
AddNewButton.ts
AddNewTip.ts
ApiKey.ts (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
App.css (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
App.ts support other SQLite wrappers, and various hooks needed by grist-static (#516) 2023-05-23 15:17:28 -04:00
AppHeader.ts (core) Add optional telemetry to grist-core 2023-06-07 12:00:51 -04:00
AppUI.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
BottomBar.ts
buttons.ts
CellContextMenu.ts (core) Add cut, copy, and paste to context menu 2023-05-10 00:48:15 -04:00
CodeHighlight.ts
ColumnFilterCalendarView.ts
ColumnFilterMenu.ts (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
ColumnFilterMenuUtils.ts
ColumnTitle.ts (core) updates from grist-core 2023-05-15 12:01:19 -04:00
contextMenu.ts
cssInput.ts
CustomSectionConfig.ts
CustomThemes.ts (core) Remove a defunct URL constant and a product flavor. 2023-05-05 18:28:04 -04:00
DateRangeOptions.ts
DescriptionConfig.ts feature widget description (#483) 2023-05-12 09:08:28 -04:00
DocHistory.ts
DocMenu.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
DocMenuCss.ts
DocTour.ts
DocTutorial.css (core) Fix browser history bug with tutorials 2023-04-19 00:22:42 -04:00
DocTutorial.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
DocTutorialRenderer.ts (core) Fix browser history bug with tutorials 2023-04-19 00:22:42 -04:00
DocumentSettings.ts (core) Add cut, copy, and paste to context menu 2023-05-10 00:48:15 -04:00
DuplicateTable.ts
errorPages.ts
ExampleCard.ts
ExampleInfo.ts
FieldConfig.ts (core) Floating formula editor 2023-06-02 17:59:22 +02:00
FieldContextMenu.ts (core) Add cut, copy, and paste to context menu 2023-05-10 00:48:15 -04:00
FieldMenus.ts
FileDialog.ts
FilterBar.ts (core) Wrap buttons in filter bar 2023-06-06 11:34:49 -04:00
FilterConfig.ts
FloatingPopup.ts (core) Floating formula editor 2023-06-02 17:59:22 +02:00
forms.ts (core) Floating formula editor 2023-06-02 17:59:22 +02:00
googleAuth.ts
GridOptions.ts
GridViewMenus.ts
GristTooltips.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
HomeImports.ts
HomeIntro.ts (core) Add GRIST_UI_FEATURES env variable 2023-05-22 16:05:51 -04:00
HomeLeftPane.ts (core) Add GRIST_UI_FEATURES env variable 2023-05-22 16:05:51 -04:00
inputs.ts
LanguageMenu.ts
LeftPanelCommon.ts (core) Add GRIST_UI_FEATURES env variable 2023-05-22 16:05:51 -04:00
LoginPagesCss.ts (core) Improve the look and behavior of /welcome/teams page (also shown for /welcome/start) 2023-06-13 20:40:59 -04:00
MakeCopyMenu.ts (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
MenuToggle.ts
mouseDrag.ts
MultiSelector.ts
NotifyUI.ts (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
OnBoardingPopups.ts (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
OpenUserManager.ts
OpenVideoTour.ts (core) Add optional telemetry to grist-core 2023-06-07 12:00:51 -04:00
PagePanels.ts
Pages.ts
PageWidgetPicker.ts
PinnedDocs.ts
ProductUpgradesStub.ts
RelativeDatesOptions.ts
RenamePopupStyles.ts feature widget description (#483) 2023-05-12 09:08:28 -04:00
resizeHandle.ts
RightPanel.ts (core) Highlight rows used as a selector in linking, but do not show 'inactive' cursors. 2023-06-21 12:21:19 -04:00
RightPanelStyles.ts
RowContextMenu.ts
sanitizeHTML.ts
searchDropdown.ts
selectBy.ts
sendToDrive.ts
setupPage.ts
shadowScroll.ts
ShareMenu.ts (core) Polish doc tutorials 2023-06-23 23:56:20 -04:00
ShortcutKey.ts
SiteSwitcher.ts (core) Add GRIST_UI_FEATURES env variable 2023-05-22 16:05:51 -04:00
SortConfig.ts
SortFilterConfig.ts
SupportGristNudge.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
SupportGristPage.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
TemplateDocs.ts
ThemeConfig.ts
Tools.ts
tooltips.ts (core) Floating formula editor 2023-06-02 17:59:22 +02:00
TopBar.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
TopBarCss.ts
transientInput.ts
transitions.ts
TreeViewComponent.ts
TreeViewComponentCss.ts
TriggerFormulas.ts
TutorialCard.ts (core) Add GRIST_UI_FEATURES env variable 2023-05-22 16:05:51 -04:00
UserImage.ts
UserItem.ts
UserManager.ts (core) Add cut, copy, and paste to context menu 2023-05-10 00:48:15 -04:00
ViewLayoutMenu.ts
viewport.ts
ViewSectionMenu.ts
VisibleFieldsConfig.ts (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
WebhookPage.ts (core) Adds a UI panel for managing webhooks 2023-05-08 18:25:27 -04:00
WelcomeCoachingCall.ts (core) Add optional telemetry to grist-core 2023-06-07 12:00:51 -04:00
WelcomePage.ts (core) Improve the look and behavior of /welcome/teams page (also shown for /welcome/start) 2023-06-13 20:40:59 -04:00
WelcomeQuestions.ts
WelcomeSitePicker.ts (core) Improve the look and behavior of /welcome/teams page (also shown for /welcome/start) 2023-06-13 20:40:59 -04:00
WelcomeTour.ts rename welcomeTour file to WelcomeTour (#489) 2023-04-17 11:12:30 -04:00
WidgetTitle.ts feature widget description (#483) 2023-05-12 09:08:28 -04:00
widgetTypes.ts
YouTubePlayer.ts