generated from coulomb/repo-seed
fix(dashboard): hide escalation notes on resolved/superseded decisions
- `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 <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||
<div class="dec-title">${d.title}</div>
|
||||
${snippet ? html`<div class="dec-snippet">${snippet}${snippet.length < (d.description || d.rationale || "").length ? "…" : ""}</div>` : ""}
|
||||
${d.decided_by ? html`<div class="dec-resolved-by">✓ ${d.decided_by}${decided ? " · " + decided : ""}</div>` : ""}
|
||||
${d.escalation_note ? html`<div class="dec-escalation-note">${d.escalation_note}</div>` : ""}
|
||||
${d.escalation_note && !["resolved", "superseded"].includes(d.status) ? html`<div class="dec-escalation-note">${d.escalation_note}</div>` : ""}
|
||||
</div>`;
|
||||
})}</div>`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user