From b5916a8aed08843c0570b20037172981cbd915e8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 15:45:25 +1100 Subject: [PATCH 1/2] fix(web): remove redundant usage labels below quota bars --- .../components/usage/UsageLimitsPooled.tsx | 196 ++++++------------ 1 file changed, 61 insertions(+), 135 deletions(-) diff --git a/apps/web/src/components/usage/UsageLimitsPooled.tsx b/apps/web/src/components/usage/UsageLimitsPooled.tsx index 8ec1c7a02afcd..4e3e3afca0330 100644 --- a/apps/web/src/components/usage/UsageLimitsPooled.tsx +++ b/apps/web/src/components/usage/UsageLimitsPooled.tsx @@ -351,145 +351,74 @@ function SegmentTriggers({ const resetsIn = formatResetsIn(window, now); const credits = account.limits.resetCredits?.availableCount ?? 0; return ( - <> - + } + > +
+ {/* Clipped inside the rounded clip so the bar's own corners keep their antialiasing. */} +
+
- } - > -
- {/* Clipped inside the rounded clip so the bar's own corners keep their antialiasing. */} -
+ {remaining < 100 && reset && refillPercent > 0 ? (
- {remaining < 100 && reset && refillPercent > 0 ? ( -
- ) : null} -
-
- {paceMark ? ( - - ) : null} - - {index} - -
- {showAccountName ? ( - ) : null} - {/* A single-account bar repeats the headline percentage. */} - {showAccountName ? ( - - {remaining}% - - ) : null} - {resetsIn || credits ? ( - - {resetsIn?.replace("resets in ", "↻ ") ?? ""} - {credits ? ( - <> - {resetsIn ? ( - - · - - ) : null} - - - {credits} - - - ) : null} - - ) : null}
- - - - ); -} - -function LegendRow({ - payload, - color, - now, - index, -}: { - readonly payload: SegmentPayload; - readonly color: string; - readonly now: number; - readonly index: number; -}) { - const popover = use(SegmentPopoverContext) ?? undefined; - const { account, window } = payload; - const remaining = remainingPercent(window); - const resetsIn = formatResetsIn(window, now); - const credits = account.limits.resetCredits?.availableCount ?? 0; - return ( - } - className="min-w-0 @2xl/pool:hidden" - > - +
+ {paceMark ? ( - Segment - {index} - - - {remaining}% - - {resetsIn?.replace("resets in ", "↻ ") ?? ""} - {credits ? ( - <> - {resetsIn ? · : null} - - - {credits} - - - {credits} reset {credits === 1 ? "credit" : "credits"} banked - - + ) : null} +
+ {showAccountName ? ( + ) : null} - + {/* A single-account bar repeats the headline percentage. */} + {showAccountName ? ( + {remaining}% + ) : null} + {resetsIn || credits ? ( + + {resetsIn?.replace("resets in ", "↻ ") ?? ""} + {credits ? ( + <> + {resetsIn ? ( + + · + + ) : null} + + + {credits} + + + ) : null} + + ) : null} +
); } @@ -505,7 +434,7 @@ function PoolBar({ }) { const restores = new Map(pool.resets.map((reset) => [reset.member.account.key, reset])); return ( -
+
- + $0 cap
) : null, From bea534e7c26886fef0d9036714cceca07bc89751 Mon Sep 17 00:00:00 2001 From: maria-rcks Date: Wed, 18 Nov 2026 08:53:54 +0000 Subject: [PATCH 2/2] fix(web): remove stale quota segment translations --- apps/web/src/i18n/translations/de.json | 1 - apps/web/src/i18n/translations/en.json | 1 - apps/web/src/i18n/translations/es.json | 1 - apps/web/src/i18n/translations/fr.json | 1 - apps/web/src/i18n/translations/ja.json | 1 - apps/web/src/i18n/translations/ko.json | 1 - apps/web/src/i18n/translations/pt-BR.json | 1 - apps/web/src/i18n/translations/ru.json | 1 - apps/web/src/i18n/translations/sv.json | 1 - apps/web/src/i18n/translations/zh.json | 1 - 10 files changed, 10 deletions(-) diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json index 648fd58859dbe..e41fd7dfcf84b 100644 --- a/apps/web/src/i18n/translations/de.json +++ b/apps/web/src/i18n/translations/de.json @@ -11811,7 +11811,6 @@ "09c0e00d7fb55402": "Reset-Guthaben wird verwendet…", "4df3ff1be768a7ab": "{name}: {remaining} % übrig", "1b16346722b65812": "{timeLeft} % des Zeitfensters übrig", - "7aaaff1c6484f25c": "Segment", "8bcab2ef61de6518": "0-$-Limit", "a16b48709357a5a7": "Nutzung verwalten", "a00e74aaa421c524": "übrig", diff --git a/apps/web/src/i18n/translations/en.json b/apps/web/src/i18n/translations/en.json index 599944358b5bb..90fc94711da45 100644 --- a/apps/web/src/i18n/translations/en.json +++ b/apps/web/src/i18n/translations/en.json @@ -11819,7 +11819,6 @@ "09c0e00d7fb55402": "Using reset credit…", "4df3ff1be768a7ab": "{name}: {remaining}% left", "1b16346722b65812": "{timeLeft}% of the window left", - "7aaaff1c6484f25c": "Segment", "8bcab2ef61de6518": "$0 cap", "a16b48709357a5a7": "Manage usage", "a00e74aaa421c524": "left", diff --git a/apps/web/src/i18n/translations/es.json b/apps/web/src/i18n/translations/es.json index 956f4e17a9617..a7eb88df8e2c4 100644 --- a/apps/web/src/i18n/translations/es.json +++ b/apps/web/src/i18n/translations/es.json @@ -11804,7 +11804,6 @@ "09c0e00d7fb55402": "Usando el crédito de restablecimiento…", "4df3ff1be768a7ab": "{name}: queda un {remaining}%", "1b16346722b65812": "Queda un {timeLeft}% de la ventana", - "7aaaff1c6484f25c": "Segmento", "8bcab2ef61de6518": "Límite de 0 $", "a16b48709357a5a7": "Gestionar uso", "a00e74aaa421c524": "restante", diff --git a/apps/web/src/i18n/translations/fr.json b/apps/web/src/i18n/translations/fr.json index 1c982cc6d6f58..8470468a3f2a2 100644 --- a/apps/web/src/i18n/translations/fr.json +++ b/apps/web/src/i18n/translations/fr.json @@ -11809,7 +11809,6 @@ "09c0e00d7fb55402": "Utilisation du crédit de réinitialisation…", "4df3ff1be768a7ab": "{name} : {remaining} % restant", "1b16346722b65812": "{timeLeft} % de la fenêtre restant", - "7aaaff1c6484f25c": "Segment", "8bcab2ef61de6518": "Plafond de 0 $", "a16b48709357a5a7": "Gérer l’utilisation", "a00e74aaa421c524": "restant", diff --git a/apps/web/src/i18n/translations/ja.json b/apps/web/src/i18n/translations/ja.json index 879531a396d2a..11c3c88df2efc 100644 --- a/apps/web/src/i18n/translations/ja.json +++ b/apps/web/src/i18n/translations/ja.json @@ -11759,7 +11759,6 @@ "09c0e00d7fb55402": "リセットクレジットを使用しています…", "4df3ff1be768a7ab": "{name}: 残り {remaining}%", "1b16346722b65812": "期間の残り {timeLeft}%", - "7aaaff1c6484f25c": "セグメント", "8bcab2ef61de6518": "上限 $0", "a16b48709357a5a7": "使用量を管理", "a00e74aaa421c524": "残り", diff --git a/apps/web/src/i18n/translations/ko.json b/apps/web/src/i18n/translations/ko.json index fae8ce2ec6fc4..454d134d5c6c9 100644 --- a/apps/web/src/i18n/translations/ko.json +++ b/apps/web/src/i18n/translations/ko.json @@ -11756,7 +11756,6 @@ "09c0e00d7fb55402": "초기화 크레딧 사용 중…", "4df3ff1be768a7ab": "{name}: {remaining}% 남음", "1b16346722b65812": "기간 {timeLeft}% 남음", - "7aaaff1c6484f25c": "구간", "8bcab2ef61de6518": "$0 한도", "a16b48709357a5a7": "사용량 관리", "a00e74aaa421c524": "남음", diff --git a/apps/web/src/i18n/translations/pt-BR.json b/apps/web/src/i18n/translations/pt-BR.json index 7010bef288b16..3ddab618191ec 100644 --- a/apps/web/src/i18n/translations/pt-BR.json +++ b/apps/web/src/i18n/translations/pt-BR.json @@ -11808,7 +11808,6 @@ "09c0e00d7fb55402": "Usando crédito de redefinição…", "4df3ff1be768a7ab": "{name}: {remaining}% restante", "1b16346722b65812": "{timeLeft}% da janela restante", - "7aaaff1c6484f25c": "Segmento", "8bcab2ef61de6518": "Limite de $0", "a16b48709357a5a7": "Gerenciar uso", "a00e74aaa421c524": "restante", diff --git a/apps/web/src/i18n/translations/ru.json b/apps/web/src/i18n/translations/ru.json index 0766d953dd02d..17693de297bdf 100644 --- a/apps/web/src/i18n/translations/ru.json +++ b/apps/web/src/i18n/translations/ru.json @@ -11809,7 +11809,6 @@ "09c0e00d7fb55402": "Использование кредита на сброс…", "4df3ff1be768a7ab": "{name}: осталось {remaining}%", "1b16346722b65812": "От окна осталось {timeLeft}%", - "7aaaff1c6484f25c": "Сегмент", "8bcab2ef61de6518": "Лимит $0", "a16b48709357a5a7": "Управление использованием", "a00e74aaa421c524": "осталось", diff --git a/apps/web/src/i18n/translations/sv.json b/apps/web/src/i18n/translations/sv.json index 5e6d1607edf31..988654a1b07f0 100644 --- a/apps/web/src/i18n/translations/sv.json +++ b/apps/web/src/i18n/translations/sv.json @@ -11817,7 +11817,6 @@ "09c0e00d7fb55402": "Använder återställningskredit…", "4df3ff1be768a7ab": "{name}: {remaining} % kvar", "1b16346722b65812": "{timeLeft} % av fönstret kvar", - "7aaaff1c6484f25c": "Segment", "8bcab2ef61de6518": "Tak på 0 $", "a16b48709357a5a7": "Hantera användning", "a00e74aaa421c524": "kvar", diff --git a/apps/web/src/i18n/translations/zh.json b/apps/web/src/i18n/translations/zh.json index c86b9e6c55e41..a69cd4db2034b 100644 --- a/apps/web/src/i18n/translations/zh.json +++ b/apps/web/src/i18n/translations/zh.json @@ -11834,7 +11834,6 @@ "09c0e00d7fb55402": "正在使用重置额度…", "4df3ff1be768a7ab": "{name}:剩余 {remaining}%", "1b16346722b65812": "窗口剩余 {timeLeft}%", - "7aaaff1c6484f25c": "分段", "8bcab2ef61de6518": "上限 $0", "a16b48709357a5a7": "管理用量", "a00e74aaa421c524": "剩余",