From 98b23df2edfddfd419f9603c21a9e218e4448bd8 Mon Sep 17 00:00:00 2001 From: lingniu Date: Fri, 3 Jul 2026 22:45:17 +0800 Subject: [PATCH] feat(platform): highlight quality link health --- .../apps/web/src/pages/Quality.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vehicle-data-platform/apps/web/src/pages/Quality.tsx b/vehicle-data-platform/apps/web/src/pages/Quality.tsx index be54f866..8485b2dd 100644 --- a/vehicle-data-platform/apps/web/src/pages/Quality.tsx +++ b/vehicle-data-platform/apps/web/src/pages/Quality.tsx @@ -4,6 +4,12 @@ import { api } from '../api/client'; import type { OpsHealth, QualityIssueRow } from '../api/types'; import { PageHeader } from '../components/PageHeader'; +const statusColor: Record = { + ok: 'green', + warning: 'orange', + error: 'red' +}; + function formatLag(value?: number | null) { return value == null ? '未接入' : value.toLocaleString(); } @@ -91,7 +97,12 @@ export function Quality() { pagination={false} columns={[ { title: '链路', dataIndex: 'name' }, - { title: '状态', dataIndex: 'status' }, + { + title: '状态', + render: (_: unknown, row: { status: string }) => ( + {row.status} + ) + }, { title: '说明', dataIndex: 'detail' } ]} />