From be35f8a6ee08e8ce4f9fa2fd2b52f26e8ad44589 Mon Sep 17 00:00:00 2001 From: Zyy Date: Tue, 3 Nov 2026 17:31:57 +0800 Subject: [PATCH] fix(accounts): refine upstream quota display and layout Show quota availability consistently for unlimited and stale observations, keep pool summaries at the bottom, and compact plan counts with an inline overflow popover. Co-authored-by: Codex --- .../components/account/AccountPlanBadge.vue | 6 ++- .../account/AccountQuotaWindowDetails.vue | 4 -- .../account/AccountUpstreamStatus.vue | 8 +-- .../account/account-usage-window/presenter.ts | 7 ++- frontend/src/i18n/locales/en/accounts.json | 2 + .../src/i18n/locales/zh-Hans/accounts.json | 2 + .../src/i18n/locales/zh-Hant/accounts.json | 2 + .../account-quota-panel/PoolChart.vue | 54 +++++++++++++------ .../account-quota-panel/UpstreamPool.vue | 42 ++++++++++++--- .../components/account-quota-panel/index.vue | 25 +++++---- .../components/account-quota-panel/pool.ts | 24 ++++++--- .../account-quota-summary-cell/Entry.vue | 2 +- frontend/src/views/accounts/index.vue | 2 +- 13 files changed, 128 insertions(+), 52 deletions(-) diff --git a/frontend/src/components/account/AccountPlanBadge.vue b/frontend/src/components/account/AccountPlanBadge.vue index f995c222a..930552bae 100644 --- a/frontend/src/components/account/AccountPlanBadge.vue +++ b/frontend/src/components/account/AccountPlanBadge.vue @@ -13,6 +13,7 @@ const props = withDefaults( upstream?: AccountUpstream | null upstreamPeer?: boolean | null planTypeDisplay: string + count?: number size?: 'xs' | 'sm' | 'md' }>(), { @@ -62,13 +63,14 @@ const paletteClass = computed(() => { diff --git a/frontend/src/components/account/AccountQuotaWindowDetails.vue b/frontend/src/components/account/AccountQuotaWindowDetails.vue index c2003bbc0..60a4f7b0b 100644 --- a/frontend/src/components/account/AccountQuotaWindowDetails.vue +++ b/frontend/src/components/account/AccountQuotaWindowDetails.vue @@ -116,10 +116,6 @@ function quotaWindowCode(windowSeconds: number | null, role: AccountQuotaWindow[ -

- {{ item.observationDisplay }} -

-