From 985cd39b2a28292058b731280c0b10ed6c0948f0 Mon Sep 17 00:00:00 2001 From: Torsten Ueberschar Date: Sun, 19 Apr 2026 14:40:22 +0200 Subject: [PATCH] =?UTF-8?q?v2.0.16=20=E2=80=94=20oumta-dashboard:=20green?= =?UTF-8?q?=20dot=20for=20rollout-only=20clusters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clusters with no state-transition events (e.g. a clean rollout that didn't cause a degradation) now show a green dot instead of blue. Rationale: absence of a transition means the workload stayed in its existing state — the rollout went through unscathed, which is the healthy outcome a reader is scanning for. Co-Authored-By: Claude Opus 4.7 (1M context) --- config.php | 2 +- public/plugins/oumta-dashboard/oumta-dashboard.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config.php b/config.php index 4c5c3bc..155f840 100644 --- a/config.php +++ b/config.php @@ -1,7 +1,7 @@ healthy" shows a * green dot even if it contains degraded/warning events along the way. - * Returns null when no state-change event is present; callers fall - * back to dominantSev in that case (e.g. rollout-only clusters). */ + * A cluster without any state transition (rollouts or image changes + * that didn't flip state) counts as "uneventful" → also green, since + * the absence of a transition means the workload stayed in whatever + * state it was in. */ function clusterOutcomeSev(events) { for (const e of events) { const m = /->\s*(\w+)\s*$/.exec(e.message || ''); @@ -307,7 +309,7 @@ function clusterOutcomeSev(events) { case 'unavailable': return 'error'; } } - return null; + return 'recovered'; } function sameDay(a, b) {