From 490e7dee8540341a51a6448a9afdcac09e69bc55 Mon Sep 17 00:00:00 2001 From: Matt Aitken Date: Tue, 21 Jul 2026 16:03:25 +0100 Subject: [PATCH] fix(webapp): tidy Usage page credits display Label the Usage page credits panel "Credits" instead of "Promo credits", so it reads correctly for any credit source (not just promo-code redemptions). Stop showing the "Included usage" allowance for Enterprise organizations: Enterprise inherits the Pro plan's includedUsage, but enterprise orgs bill against prepaid credits rather than a per-month included-usage tier, so the marker was misleading. --- .../_app.orgs.$organizationSlug.settings.usage/route.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.usage/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.usage/route.tsx index 2cc8b01110b..48d719932cf 100644 --- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.usage/route.tsx +++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.usage/route.tsx @@ -114,6 +114,9 @@ export default function Page() { const currentPlan = useCurrentPlan(); const billingLimit = useBillingLimit(); const planLimitCents = currentPlan?.v3Subscription?.plan?.limits.includedUsage ?? 0; + // Enterprise bills against prepaid credits, not a per-month included-usage tier, + // so the "Included usage" marker doesn't apply. + const isEnterprise = currentPlan?.v3Subscription?.plan?.type === "enterprise"; const billingLimitDollars = isCurrentMonth ? getUsageBarBillingLimitDollars(billingLimit, planLimitCents) : undefined; @@ -157,7 +160,7 @@ export default function Page() {
- Promo credits + Credits

{formatCurrency(promoCredits.remainingCents / 100, false)}

@@ -215,7 +218,9 @@ export default function Page() {