From ddacfcbf158aeba38351886906c1a00d535dabf5 Mon Sep 17 00:00:00 2001
From: Resham Joshi <65915470+iamtoruk@users.noreply.github.com>
Date: Sat, 10 Oct 2026 07:06:10 +0200
Subject: [PATCH] fix(plans): word flat subscriptions past their price as API
value (#1723)
A preset subscription plan (SuperGrok, Cursor Pro, Google AI) past its price
showed "$X over" in red and "On pace to exceed", but a flat subscription is
not billed overage. Those cards now read "13.6x your plan's price in API
value" with a neutral bar and projection; custom plans keep the cap wording.
---
app/renderer/i18n/catalogs/plans.ts | 12 ++++++++++++
app/renderer/sections/Plans.test.tsx | 29 ++++++++++++++++++++++++----
app/renderer/sections/Plans.tsx | 15 ++++++++++++--
3 files changed, 50 insertions(+), 6 deletions(-)
diff --git a/app/renderer/i18n/catalogs/plans.ts b/app/renderer/i18n/catalogs/plans.ts
index 6158128c..6212a888 100644
--- a/app/renderer/i18n/catalogs/plans.ts
+++ b/app/renderer/i18n/catalogs/plans.ts
@@ -42,12 +42,14 @@ export const plans: SectionCatalog = {
'plans.date.unknown': 'unknown',
'plans.card.spentPercent': '{spent} · {percent}',
'plans.card.spentPercentOver': '{spent} · {percent} · {overage} over',
+ 'plans.card.spentValueMultiple': "{spent} · {multiple}x your plan's price in API value",
'plans.card.spentThisCycle': '{spent} this cycle',
'plans.card.budgetDetail': '{budget} / month budget · API-equivalent, not a live provider window · {provider}',
'plans.card.noPlanDetail': '{provider} · pay as you go, no plan',
'plans.pace.exceed': 'On pace to exceed; projected {projected} by {date}',
'plans.pace.near': '{percent} of budget used; projected {projected} by {date}',
'plans.pace.onTrack': 'On track',
+ 'plans.pace.value': 'Projected {projected} in API value by {date}',
},
fr: {
'plans.title': 'Forfaits',
@@ -90,12 +92,14 @@ export const plans: SectionCatalog = {
'plans.date.unknown': 'inconnu',
'plans.card.spentPercent': '{spent} · {percent}',
'plans.card.spentPercentOver': '{spent} · {percent} · {overage} de dépassement',
+ 'plans.card.spentValueMultiple': '{spent} · {multiple}x le prix de votre forfait en valeur API',
'plans.card.spentThisCycle': '{spent} sur ce cycle',
'plans.card.budgetDetail': '{budget} / budget mensuel · équivalent API, pas une fenêtre fournisseur en direct · {provider}',
'plans.card.noPlanDetail': "{provider} · paiement à l'usage, sans forfait",
'plans.pace.exceed': 'En voie de dépassement ; projection de {projected} au {date}',
'plans.pace.near': '{percent} du budget utilisé ; projection de {projected} au {date}',
'plans.pace.onTrack': 'Sur la bonne voie',
+ 'plans.pace.value': 'Projection de {projected} en valeur API au {date}',
},
ja: {
'plans.title': 'プラン',
@@ -138,12 +142,14 @@ export const plans: SectionCatalog = {
'plans.date.unknown': '不明',
'plans.card.spentPercent': '{spent} · {percent}',
'plans.card.spentPercentOver': '{spent} · {percent} · {overage} 超過',
+ 'plans.card.spentValueMultiple': '{spent} · プラン料金の{multiple}倍のAPI相当額',
'plans.card.spentThisCycle': '今サイクルで{spent}',
'plans.card.budgetDetail': '{budget} / 月間予算 · API相当、実際のプロバイダーウィンドウではありません · {provider}',
'plans.card.noPlanDetail': '{provider} · 従量課金、プランなし',
'plans.pace.exceed': '超過ペース:{date}までに{projected}の見込み',
'plans.pace.near': '予算の{percent}を使用済み:{date}までに{projected}の見込み',
'plans.pace.onTrack': '順調',
+ 'plans.pace.value': '{date}までにAPI相当額{projected}の見込み',
},
ko: {
'plans.title': '요금제',
@@ -186,12 +192,14 @@ export const plans: SectionCatalog = {
'plans.date.unknown': '알 수 없음',
'plans.card.spentPercent': '{spent} · {percent}',
'plans.card.spentPercentOver': '{spent} · {percent} · {overage} 초과',
+ 'plans.card.spentValueMultiple': '{spent} · 요금제 가격의 {multiple}배 API 환산 가치',
'plans.card.spentThisCycle': '이번 주기 {spent}',
'plans.card.budgetDetail': '{budget} / 월 예산 · API 환산, 실제 제공자 윈도우 아님 · {provider}',
'plans.card.noPlanDetail': '{provider} · 종량제, 요금제 없음',
'plans.pace.exceed': '초과 예상; {date}까지 {projected} 예상',
'plans.pace.near': '예산의 {percent} 사용됨; {date}까지 {projected} 예상',
'plans.pace.onTrack': '정상 진행',
+ 'plans.pace.value': '{date}까지 API 환산 {projected} 예상',
},
zhCN: {
'plans.title': '套餐',
@@ -234,12 +242,14 @@ export const plans: SectionCatalog = {
'plans.date.unknown': '未知',
'plans.card.spentPercent': '{spent} · {percent}',
'plans.card.spentPercentOver': '{spent} · {percent} · 超出 {overage}',
+ 'plans.card.spentValueMultiple': '{spent} · 相当于套餐价格 {multiple} 倍的 API 用量',
'plans.card.spentThisCycle': '本周期 {spent}',
'plans.card.budgetDetail': '{budget} / 每月预算 · 相当于 API 用量,并非实时提供商窗口 · {provider}',
'plans.card.noPlanDetail': '{provider} · 按量付费,无套餐',
'plans.pace.exceed': '预计将超支;预计到 {date} 为 {projected}',
'plans.pace.near': '已使用预算的 {percent};预计到 {date} 为 {projected}',
'plans.pace.onTrack': '进度正常',
+ 'plans.pace.value': '预计到 {date} API 用量价值 {projected}',
},
zhTW: {
'plans.title': '方案',
@@ -282,11 +292,13 @@ export const plans: SectionCatalog = {
'plans.date.unknown': '未知',
'plans.card.spentPercent': '{spent} · {percent}',
'plans.card.spentPercentOver': '{spent} · {percent} · 超出 {overage}',
+ 'plans.card.spentValueMultiple': '{spent} · 相當於方案價格 {multiple} 倍的 API 用量',
'plans.card.spentThisCycle': '本週期 {spent}',
'plans.card.budgetDetail': '{budget} / 每月預算 · 相當於 API 用量,並非即時供應商視窗 · {provider}',
'plans.card.noPlanDetail': '{provider} · 按量付費,無方案',
'plans.pace.exceed': '預計將超支;預計到 {date} 為 {projected}',
'plans.pace.near': '已使用預算的 {percent};預計到 {date} 為 {projected}',
'plans.pace.onTrack': '進度正常',
+ 'plans.pace.value': '預計到 {date} API 用量價值 {projected}',
},
}
diff --git a/app/renderer/sections/Plans.test.tsx b/app/renderer/sections/Plans.test.tsx
index ae41ea97..8e32c4e4 100644
--- a/app/renderer/sections/Plans.test.tsx
+++ b/app/renderer/sections/Plans.test.tsx
@@ -130,17 +130,17 @@ describe('Plans', () => {
expect(screen.queryByText('API usage')).not.toBeInTheDocument()
})
- it('keeps manual budget overage and clamped-track behavior', async () => {
+ it('keeps custom budget overage and clamped-track behavior', async () => {
getPlans.mockResolvedValue({
...baseStatus,
plans: {
- grok: { ...claudePlan, id: 'supergrok', provider: 'grok' },
+ grok: { ...claudePlan, id: 'custom', provider: 'grok' },
},
})
const { container } = render(