From 5d6b8e6253f8ac609d992204117a22e20ced3089 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Thu, 20 Nov 2025 18:09:59 +0100 Subject: [PATCH] Treat pending status as OK for title bar color aggregation Apply same logic used for inactive status to pending status. Pending services now contribute to OK count instead of being ignored, preventing blue title bar during service transitions. --- Cargo.lock | 6 +++--- agent/Cargo.toml | 2 +- dashboard/Cargo.toml | 2 +- dashboard/src/ui/mod.rs | 2 +- shared/Cargo.toml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2883192..bd3f6ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.94" +version = "0.1.95" dependencies = [ "anyhow", "chrono", @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.94" +version = "0.1.95" dependencies = [ "anyhow", "async-trait", @@ -324,7 +324,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.94" +version = "0.1.95" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 4b1954f..001c698 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.95" +version = "0.1.96" edition = "2021" [dependencies] diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 5ac4420..880ce20 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.95" +version = "0.1.96" edition = "2021" [dependencies] diff --git a/dashboard/src/ui/mod.rs b/dashboard/src/ui/mod.rs index 11822e5..df2bd68 100644 --- a/dashboard/src/ui/mod.rs +++ b/dashboard/src/ui/mod.rs @@ -675,7 +675,7 @@ impl TuiApp { match metric.status { Status::Critical => has_critical = true, Status::Warning => has_warning = true, - Status::Pending => {}, // Ignore pending for title bar color + Status::Pending => ok_count += 1, // Treat pending as OK for aggregation Status::Ok => ok_count += 1, Status::Inactive => ok_count += 1, // Treat inactive as OK for aggregation Status::Unknown => {}, // Ignore unknown for aggregation diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 5595ef7..09a95ad 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.95" +version = "0.1.96" edition = "2021" [dependencies]