From d48982eb042fbe456db5a48b248785add8016480 Mon Sep 17 00:00:00 2001 From: Zyy Date: Fri, 23 Oct 2026 12:24:21 +0800 Subject: [PATCH] fix(frontend): refine dashboard copy and summary value size Co-authored-by: Codex --- frontend/src/i18n/locales/en/dashboard.json | 4 ++-- frontend/src/views/dashboard/presenter.ts | 2 +- frontend/src/views/usage/components/UsageSummaryCards.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/i18n/locales/en/dashboard.json b/frontend/src/i18n/locales/en/dashboard.json index dc05965ea..254844f2d 100644 --- a/frontend/src/i18n/locales/en/dashboard.json +++ b/frontend/src/i18n/locales/en/dashboard.json @@ -30,7 +30,7 @@ }, "activeAccounts": { "title": "Active account usage", - "sortByRecent": "Sort by recent use", + "sortByRecent": "Sorted by last used", "empty": "No recent account requests", "recent": "Recently" }, @@ -65,7 +65,7 @@ }, "comparedWithYesterday": "vs. yesterday", "trends": { - "title": "Usage trends", + "title": "Trends", "metric": "Trend indicator", "highlight": "Highlight the {label} series", "empty": "No trend data", diff --git a/frontend/src/views/dashboard/presenter.ts b/frontend/src/views/dashboard/presenter.ts index 3218489c6..d1f89e7b6 100644 --- a/frontend/src/views/dashboard/presenter.ts +++ b/frontend/src/views/dashboard/presenter.ts @@ -132,7 +132,7 @@ function metricCards( const hasTodayRequests = traffic.todayRequestsValue > 0 return [ { - title: t('accounts.account'), + title: t('accounts.fields.count'), value: credentials.total, valueRaw: credentials.totalValue, valueFormatter: formatAccountCount, diff --git a/frontend/src/views/usage/components/UsageSummaryCards.vue b/frontend/src/views/usage/components/UsageSummaryCards.vue index 3664e7d91..3c0e49c9b 100644 --- a/frontend/src/views/usage/components/UsageSummaryCards.vue +++ b/frontend/src/views/usage/components/UsageSummaryCards.vue @@ -69,7 +69,7 @@ const items = computed(() => [ {{ item.label }} - + {{ item.value }}