(core) suspend a team site after an AppSumo refund

Summary:
This suspends service to a team site for which an AppSumo refund has been made, and nudges users to their free personal account.

I expect that a refund request would fail for a site where user is also paying us for extra seats.

Test Plan: tested manually

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2912
This commit is contained in:
Paul Fitzpatrick
2021-07-13 10:46:26 -04:00
parent 6e15d44cf6
commit 1ce5e98996
5 changed files with 19 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ export class TopAppModelImpl extends Disposable implements TopAppModel {
org.billingAccount.product.name === 'suspended') {
this.notifier.createUserError(
'This team site is suspended. Documents can be read, but not modified.',
{actions: ['renew']}
{actions: ['renew', 'personal']}
);
}
}

View File

@@ -34,7 +34,7 @@ export interface IProgress extends Expirable {
}
// Identifies supported actions. These are implemented in NotifyUI.
export type NotifyAction = 'upgrade' | 'renew' | 'report-problem' | 'ask-for-help';
export type NotifyAction = 'upgrade' | 'renew' | 'personal' | 'report-problem' | 'ask-for-help';
export interface INotifyOptions {
message: string | (() => DomElementArg); // A string, or a function that builds dom.