Skip to content

Commit bf1052e

Browse files
fix(usage): reword the plan hint when we have no billing period (#8430)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 1d5b043 commit bf1052e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/web/components/pages/usage/__tests__/utils.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ describe('UsageDashboard utils', () => {
106106

107107
expect(basis).toEqual({ reason: 'free', window: 'rolling' })
108108
expect(allowanceWindow(basis)).toBeUndefined()
109-
expect(planSectionCopy(basis, 50000).hint).not.toContain(
110-
'no billing period',
109+
expect(planSectionCopy(basis, 50000).hint).toBe(
110+
'Usage against your plan limit over the last 30 days.',
111111
)
112112
})
113113

@@ -119,7 +119,7 @@ describe('UsageDashboard utils', () => {
119119

120120
expect(basis).toEqual({ reason: 'no-period', window: 'rolling' })
121121
expect(planSectionCopy(basis, 50000).hint).toContain(
122-
'has no billing period',
122+
'unable to show exact billing periods',
123123
)
124124
})
125125
})

frontend/web/components/pages/usage/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const planSectionCopy = (
4646
return {
4747
hint: `Usage against your plan limit over ${allowanceWindowLabel(
4848
basis,
49-
)}. This organisation has no billing period.`,
49+
)}. We are unable to show exact billing periods for your subscription plan.`,
5050
title: 'Your plan',
5151
}
5252
}

0 commit comments

Comments
 (0)