From 4393a501e6bbd36e00552eea38ebb751732caa8b Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 11 Mar 2026 22:09:43 +0100 Subject: [PATCH] fix(dashboard): scope decided_at sort to resolved/superseded only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous fix applied the decided_at branch to all status groups, causing open decisions without decided_at (e.g. COULOMBCORE decision) to sort last behind any open decision that had decided_at set. Now: decided_at desc only for resolved/superseded; open/escalated use deadline asc → created_at desc. Co-Authored-By: Claude Sonnet 4.6 --- dashboard/src/decisions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/decisions.md b/dashboard/src/decisions.md index 643ff6e..3784b5e 100644 --- a/dashboard/src/decisions.md +++ b/dashboard/src/decisions.md @@ -31,7 +31,7 @@ const decState = (async function*() { const dr = (rank[a.status] ?? 9) - (rank[b.status] ?? 9); if (dr !== 0) return dr; // Resolved / superseded: most recently decided first - if (a.decided_at || b.decided_at) { + if (a.status === "resolved" || a.status === "superseded") { if (a.decided_at && b.decided_at) return b.decided_at.localeCompare(a.decided_at); return a.decided_at ? -1 : 1; }