From a97b885081582da9afb3bd8902503f33fb713576 Mon Sep 17 00:00:00 2001 From: enzo Date: Wed, 22 Jul 2026 20:22:50 +0800 Subject: [PATCH] fix: comma-separate D-level profiles, map restart to blue in timeline - D-level profile names now joined with commas instead of concatenated spans - Gateway trend restart indicator changed from yellow to blue (red/orange/blue scheme) Co-Authored-By: Claude --- frontend/src/pages/DashboardPage.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend/src/pages/DashboardPage.tsx b/frontend/src/pages/DashboardPage.tsx index 1d9e03a..5825f62 100644 --- a/frontend/src/pages/DashboardPage.tsx +++ b/frontend/src/pages/DashboardPage.tsx @@ -35,7 +35,7 @@ const statusIcon = (s: string) => { const trendColor = (item: GatewayTrendItem): string => { if (item.heartbeat_timeouts > 0) return 'var(--red)' if (item.feishu_disconnects > 0) return 'var(--orange)' - if (item.restarts > 0) return 'var(--yellow)' + if (item.restarts > 0) return 'var(--blue)' return 'var(--green)' } @@ -98,11 +98,9 @@ function HealthBarChart({ {dist.d_profiles && dist.d_profiles.length > 0 && (
D 级 Profile: - {dist.d_profiles.map((name) => ( - - {name} - - ))} + + {dist.d_profiles.join(', ')} +
)} @@ -207,7 +205,7 @@ export default function DashboardPage() { return { time: hourLabel(item.hour), - type: item.heartbeat_timeouts > 0 ? 'red' : item.feishu_disconnects > 0 ? 'orange' : item.restarts > 0 ? 'orange' : 'green', + type: item.heartbeat_timeouts > 0 ? 'red' : item.feishu_disconnects > 0 ? 'orange' : item.restarts > 0 ? 'blue' : 'green', tooltip: tooltipText, color: trendColor(item), } @@ -286,7 +284,7 @@ export default function DashboardPage() { ● 正常 ● 心跳超时 ● 飞书断连 - ● 重启 + ● 重启