Fix Status::Inactive aggregation priority for green title bar
All checks were successful
Build and Release / build-and-release (push) Successful in 2m9s
All checks were successful
Build and Release / build-and-release (push) Successful in 2m9s
- Move Status::Inactive to lowest priority in enum (before Ok) - Status aggregation now prefers Ok over Inactive in mixed scenarios - Title bar stays green when mixing active and inactive services - Inactive services still show gray icons but don't affect overall status - Ensures healthy systems with stopped services maintain green status
This commit is contained in:
@@ -82,8 +82,8 @@ impl MetricValue {
|
||||
/// Health status for metrics
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub enum Status {
|
||||
Ok,
|
||||
Inactive, // Same priority as Ok for aggregation
|
||||
Inactive, // Lowest priority - treated as good
|
||||
Ok, // Second lowest - also good
|
||||
Unknown,
|
||||
Offline,
|
||||
Pending,
|
||||
|
||||
Reference in New Issue
Block a user