From 2eb46853bfeca94f668342a6f59e4e11e996986e Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Sat, 21 Mar 2026 19:01:14 +0800 Subject: [PATCH] Avoid duplicate backend summary notes in trend metrics --- frontend/lib/dashboard-utils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/lib/dashboard-utils.ts b/frontend/lib/dashboard-utils.ts index 73505b8b..5a30cbed 100644 --- a/frontend/lib/dashboard-utils.ts +++ b/frontend/lib/dashboard-utils.ts @@ -972,7 +972,11 @@ export function computeFrontTrendSignal( ]; if (backendNotes.length) { - backendNotes.slice(0, metrics.length).forEach((note, index) => { + const normalizedSummary = backendSummary.trim(); + const alignedNotes = backendNotes.filter( + (note) => String(note || "").trim() !== normalizedSummary, + ); + alignedNotes.slice(0, metrics.length).forEach((note, index) => { if (!note) return; metrics[index] = { ...metrics[index],