(core) Product update popups and hosted stripe integration

Summary:
- Showing nudge to individual users to sign up for free team plan.
- Implementing billing page to upgrade from free team to pro.
- New modal with upgrade options and free team site signup.
- Integrating Stripe-hosted UI for checkout and plan management.

Test Plan: updated tests

Reviewers: georgegevoian

Reviewed By: georgegevoian

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3456
This commit is contained in:
Jarosław Sadziński
2022-06-08 19:54:00 +02:00
parent 3b4d936013
commit d92a761f6e
27 changed files with 841 additions and 1328 deletions

View File

@@ -98,6 +98,7 @@ export const PRODUCTS: IProduct[] = [
},
// These are products set up in stripe.
// TODO: this is not true anymore
{
name: 'starter',
features: starterFeatures,
@@ -108,21 +109,22 @@ export const PRODUCTS: IProduct[] = [
},
{
name: 'team',
features: teamFeatures,
features: teamFeatures
},
// This is a product for a team site that is no longer in good standing, but isn't yet
// to be removed / deactivated entirely.
{
name: 'suspended',
features: suspendedFeatures,
features: suspendedFeatures
},
{
name: 'teamFree',
features: teamFreeFeatures,
features: teamFreeFeatures
},
];
/**
* Get names of products for different situations.
*/