Skip to content

Commit bc544c1

Browse files
talissoncostaclaude
andcommitted
refactor(usage): keep the section titles with the rest of the copy
Two were still inline while their siblings sat in COPY, which made the block look like it held some of the prose rather than all of it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent bcd955a commit bc544c1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • frontend/web/components/pages/usage

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ const COPY = {
2929
'We are unable to show exact billing periods for your subscription plan.',
3030
noPlanLimit: 'This installation has no plan limit.',
3131
overLimitTitle: 'Your organisation has exceeded its plan limit',
32+
planTitle: 'Your plan',
3233
// Says access, not flags: the API does not expose stop_serving_flags.
3334
recovery:
3435
'Upgrading restores access straight away. Otherwise access returns once' +
3536
' your usage has stayed under the limit for 30 days.',
3637
restrictedTitle: 'Your organisation is restricted',
3738
staysVisible: 'Your usage stays visible below so you can see what happened.',
39+
usageTitle: 'Your usage',
3840
}
3941

4042
export type BannerContext = {
@@ -79,7 +81,7 @@ export const planSectionCopy = (
7981
if (!limit) {
8082
return {
8183
hint: sentences(`API calls over ${window}.`, COPY.noPlanLimit),
82-
title: 'Your usage',
84+
title: COPY.usageTitle,
8385
}
8486
}
8587

@@ -90,7 +92,7 @@ export const planSectionCopy = (
9092
basis.reason === 'no-period' &&
9193
COPY.noBillingPeriod,
9294
),
93-
title: 'Your plan',
95+
title: COPY.planTitle,
9496
}
9597
}
9698

0 commit comments

Comments
 (0)