Fix dashboard UI: correct pending color (blue) and use host_status_summary metric

This commit is contained in:
2025-10-21 19:32:37 +02:00
parent 7ead8ee98a
commit f4b5bb814d
5 changed files with 54 additions and 17 deletions

View File

@@ -143,7 +143,7 @@ impl Theme {
pub fn status_color(status: Status) -> Color {
match status {
Status::Ok => Self::success(),
Status::Pending => Self::info(), // Blue for pending
Status::Pending => Self::highlight(), // Blue for pending
Status::Warning => Self::warning(),
Status::Critical => Self::error(),
Status::Unknown => Self::muted_text(),
@@ -258,7 +258,7 @@ impl StatusIcons {
let icon = Self::get_icon(status);
let status_color = match status {
Status::Ok => Theme::success(), // Green
Status::Pending => Theme::info(), // Blue
Status::Pending => Theme::highlight(), // Blue
Status::Warning => Theme::warning(), // Yellow
Status::Critical => Theme::error(), // Red
Status::Unknown => Theme::muted_text(), // Gray