From 9894edfe9fcd790bda0f6dbbb45de981cbd38add Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 26 Jun 2026 14:08:06 +0000 Subject: [PATCH] fix: show sentinel identity on dashboard --- .../dashboard.css | 31 ++++++++++++++++++- ...wlab-node-web-sentinel-dashboard-assets.ts | 7 ++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/scripts/assets/web-probe-sentinel-dashboard/dashboard.css b/scripts/assets/web-probe-sentinel-dashboard/dashboard.css index be60af49..973b5891 100644 --- a/scripts/assets/web-probe-sentinel-dashboard/dashboard.css +++ b/scripts/assets/web-probe-sentinel-dashboard/dashboard.css @@ -96,13 +96,38 @@ h2 { } #sentinel-subtitle { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 3px 6px; margin-top: 2px; font-size: 12px; overflow-wrap: anywhere; } +.sentinel-subtitle-separator { + color: #a3adba; +} + +.sentinel-id-chip { + display: inline-flex; + align-items: center; + max-width: min(58vw, 560px); + min-height: 18px; + padding: 1px 5px; + border: 1px solid #d8e0ea; + border-radius: 5px; + background: #eef2f7; + color: #344054; + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; + font-size: 11px; + font-weight: 600; + line-height: 1.35; + overflow-wrap: anywhere; + white-space: normal; +} + #sentinel-origin-note { - margin-left: 6px; color: #97a1b0; font-size: 11px; } @@ -1208,6 +1233,10 @@ select { flex: 1 1 auto; } + .sentinel-id-chip { + max-width: 100%; + } + .status-pill { justify-content: center; } diff --git a/scripts/src/hwlab-node-web-sentinel-dashboard-assets.ts b/scripts/src/hwlab-node-web-sentinel-dashboard-assets.ts index 2a937103..fcc2bfe9 100644 --- a/scripts/src/hwlab-node-web-sentinel-dashboard-assets.ts +++ b/scripts/src/hwlab-node-web-sentinel-dashboard-assets.ts @@ -44,7 +44,12 @@ export function renderWebProbeSentinelDashboardHtml(config: DashboardShellConfig

HWLAB Web哨兵

-

${escapeHtml(config.node)} / ${escapeHtml(config.lane)}

+

+ ${escapeHtml(config.node)} / ${escapeHtml(config.lane)} + · + ${escapeHtml(config.sentinelId)} + +