From 6ea8afb6ff68596abd2809fad4357ae5ee23d071 Mon Sep 17 00:00:00 2001 From: tegwick Date: Sun, 1 Mar 2026 23:57:30 +0100 Subject: [PATCH] fix(dashboard): hide escalation notes on resolved/superseded decisions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `escalated` filter now excludes decisions with status resolved or superseded — a lingering escalation_note on a closed decision no longer triggers the warning box or shows the amber note on the card - Resolves D1 Vault backend appearing to re-surface an escalation alert Also resolved ADR-001 decision (was made/open, now made/resolved); overview blocking-decision count is now 0. Co-Authored-By: Claude Sonnet 4.6 --- dashboard/src/decisions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/src/decisions.md b/dashboard/src/decisions.md index 4c36e42..ad51a48 100644 --- a/dashboard/src/decisions.md +++ b/dashboard/src/decisions.md @@ -78,7 +78,7 @@ const filtered = data.filter(d => (!filters.search || d.title.toLowerCase().includes(filters.search.toLowerCase())) ); -const escalated = filtered.filter(d => d.escalation_note); +const escalated = filtered.filter(d => d.escalation_note && !["resolved", "superseded"].includes(d.status)); const STATUS_BORDER = {open: "steelblue", escalated: "#f59e0b", resolved: "#22c55e", superseded: "#aaa"}; const TYPE_CLASS = {pending: "badge-pending", made: "badge-made"}; @@ -347,7 +347,7 @@ if (filtered.length === 0) {
${d.title}
${snippet ? html`
${snippet}${snippet.length < (d.description || d.rationale || "").length ? "…" : ""}
` : ""} ${d.decided_by ? html`
✓ ${d.decided_by}${decided ? " · " + decided : ""}
` : ""} - ${d.escalation_note ? html`
${d.escalation_note}
` : ""} + ${d.escalation_note && !["resolved", "superseded"].includes(d.status) ? html`
${d.escalation_note}
` : ""} `; })}`); }