feat: show current-cycle daily token peak

This commit is contained in:
2026-08-14 14:50:02 +08:00
parent 915d26d51d
commit c1985852e1
7 changed files with 48 additions and 5 deletions
+1 -1
View File
@@ -843,7 +843,7 @@ function AccountDashboardDetails({
/>
<Stat
icon={<TrendingUp />}
label="单日峰值"
label="本周期单日峰值"
v={num(dashboard.summary.peakDailyTokens)}
/>
<Stat
+1
View File
@@ -173,6 +173,7 @@ test("shows every account as a collapsible summary on the overview", async ({
first.getByRole("heading", { name: "每日 Token 趋势" }),
).toBeVisible();
await expect(first.getByText("本周期 Tokens")).toBeVisible();
await expect(first.getByText("本周期单日峰值")).toBeVisible();
await expect(first.getByText("123.5K", { exact: true })).toBeVisible();
await expect(first.getByText("按每日数据汇总")).toBeVisible();
await expect(page.locator(".account-detail")).toHaveCount(1);