From 421da3f0d4ccf709f0d3b8149c21a1eb2e42aad2 Mon Sep 17 00:00:00 2001 From: William Drake Date: Mon, 28 Sep 2026 18:06:23 -0400 Subject: [PATCH] feat(accounts): align Claude reset credit query with Codex reset count button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Claude reset credit query rendered as a bare "Claude 重置额度" link, which reads like a redeem action, and dumped raw ISO timestamps and window keys. Render it like OpenAIQuotaResetCell instead: a read-only "次数 N" button sharing one row with the local query button via a #pre-actions slot, plus an expiry chip whose tooltip carries the grant label, cleared windows and limit requirement. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../components/account/AccountUsageCell.vue | 64 +++++----- .../account/ClaudeResetCreditsCell.vue | 111 ++++++++++++++---- .../__tests__/ClaudeResetCreditsCell.spec.ts | 39 ++++-- .../src/i18n/locales/en/admin/accounts.ts | 14 ++- .../src/i18n/locales/zh/admin/accounts.ts | 14 ++- 5 files changed, 180 insertions(+), 62 deletions(-) diff --git a/frontend/src/components/account/AccountUsageCell.vue b/frontend/src/components/account/AccountUsageCell.vue index 8c57bafbf8..ec1150c7da 100644 --- a/frontend/src/components/account/AccountUsageCell.vue +++ b/frontend/src/components/account/AccountUsageCell.vue @@ -77,44 +77,46 @@ color="amber" /> - -
- - {{ t('admin.accounts.usageWindow.passiveSampled') }} - - -
+ {{ t('admin.accounts.usageWindow.passiveSampled') }} + + + +
-
- + diff --git a/frontend/src/components/account/ClaudeResetCreditsCell.vue b/frontend/src/components/account/ClaudeResetCreditsCell.vue index f462b8e720..248b630745 100644 --- a/frontend/src/components/account/ClaudeResetCreditsCell.vue +++ b/frontend/src/components/account/ClaudeResetCreditsCell.vue @@ -1,28 +1,66 @@