From 4af37f9b15a5ad38505934d50fc76cf6c50960d7 Mon Sep 17 00:00:00 2001 From: Talisson Costa Date: Tue, 1 Sep 2026 13:36:29 -0300 Subject: [PATCH] fix(usage): reword the plan hint when we have no billing period "This organisation has no billing period" names an absence in the customer's account, so a customer on a contract reads it as something being wrong with theirs. Matt's wording puts the limitation on us instead, which is where it belongs: we hold the dates only for Chargebee subscriptions. Still shown only to paid organisations. A free plan has no billing period by design, so there is nothing we are failing to show. Co-Authored-By: Claude Opus 5 (1M context) --- frontend/web/components/pages/usage/__tests__/utils.test.ts | 6 +++--- frontend/web/components/pages/usage/utils.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/web/components/pages/usage/__tests__/utils.test.ts b/frontend/web/components/pages/usage/__tests__/utils.test.ts index 5dc2c2de19a3..37184ecc63c2 100644 --- a/frontend/web/components/pages/usage/__tests__/utils.test.ts +++ b/frontend/web/components/pages/usage/__tests__/utils.test.ts @@ -106,8 +106,8 @@ describe('UsageDashboard utils', () => { expect(basis).toEqual({ reason: 'free', window: 'rolling' }) expect(allowanceWindow(basis)).toBeUndefined() - expect(planSectionCopy(basis, 50000).hint).not.toContain( - 'no billing period', + expect(planSectionCopy(basis, 50000).hint).toBe( + 'Usage against your plan limit over the last 30 days.', ) }) @@ -119,7 +119,7 @@ describe('UsageDashboard utils', () => { expect(basis).toEqual({ reason: 'no-period', window: 'rolling' }) expect(planSectionCopy(basis, 50000).hint).toContain( - 'has no billing period', + 'unable to show exact billing periods', ) }) }) diff --git a/frontend/web/components/pages/usage/utils.ts b/frontend/web/components/pages/usage/utils.ts index d68c72305977..853b90de916c 100644 --- a/frontend/web/components/pages/usage/utils.ts +++ b/frontend/web/components/pages/usage/utils.ts @@ -46,7 +46,7 @@ export const planSectionCopy = ( return { hint: `Usage against your plan limit over ${allowanceWindowLabel( basis, - )}. This organisation has no billing period.`, + )}. We are unable to show exact billing periods for your subscription plan.`, title: 'Your plan', } }