diff --git a/frontend/src/components/orgs-list.ts b/frontend/src/components/orgs-list.ts index d3ff1561..fdb407d2 100644 --- a/frontend/src/components/orgs-list.ts +++ b/frontend/src/components/orgs-list.ts @@ -703,6 +703,17 @@ export class OrgsList extends BtrixElement { description: msg("Canceled"), }; break; + case SubscriptionStatus.PaymentNeverMade: + subscription = { + icon: html` + `, + description: msg("Payment Never Made"), + }; + break; default: break; } diff --git a/frontend/src/features/admin/stats.ts b/frontend/src/features/admin/stats.ts index b950cbf2..b87fd2cc 100644 --- a/frontend/src/features/admin/stats.ts +++ b/frontend/src/features/admin/stats.ts @@ -22,6 +22,7 @@ export function computeStats(orgData: OrgData[] = []) { trialing: 0, trialingCancelled: 0, pausedPaymentFailed: 0, + paymentNeverMade: 0, cancelled: 0, }; @@ -50,6 +51,9 @@ export function computeStats(orgData: OrgData[] = []) { case SubscriptionStatus.PausedPaymentFailed: subscriptions.pausedPaymentFailed++; break; + case SubscriptionStatus.PaymentNeverMade: + subscriptions.paymentNeverMade++; + break; case SubscriptionStatus.Cancelled: subscriptions.cancelled++; break; @@ -164,6 +168,12 @@ export class Component extends BtrixElement { subscriptions.pausedPaymentFailed, )}`} + ${msg("Payment never made")}: + ${html`${this.localize.number( + subscriptions.paymentNeverMade, + )}`} ${msg("Cancelled subscriptions")}: ${html`${this.localize.number(subscriptions.cancelled)}`}