From 8978356c49364cc4d301fcfb3fe9fae307c33274 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Fri, 24 Oct 2025 19:17:04 +0200 Subject: [PATCH] Add directional status icons for service commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace generic hourglass with specific arrows: - ↑ (up) for starting services - ↓ (down) for stopping services - ↻ (circular) for restarting services Provides immediate visual feedback for service operations. --- dashboard/src/ui/widgets/services.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/dashboard/src/ui/widgets/services.rs b/dashboard/src/ui/widgets/services.rs index f3c8efe..b8e8d00 100644 --- a/dashboard/src/ui/widgets/services.rs +++ b/dashboard/src/ui/widgets/services.rs @@ -135,13 +135,15 @@ impl ServicesWidget { match status { CommandStatus::InProgress { command_type, target, .. } => { if target == service_name { - let status_text = match command_type { - CommandType::ServiceRestart => "restarting", - CommandType::ServiceStart => "starting", - CommandType::ServiceStop => "stopping", - _ => &info.status, - }; - return ("⏳".to_string(), status_text.to_string(), Theme::highlight()); + // Only show special icons for service commands + if let Some((icon, status_text)) = match command_type { + CommandType::ServiceRestart => Some(("↻", "restarting")), + CommandType::ServiceStart => Some(("↑", "starting")), + CommandType::ServiceStop => Some(("↓", "stopping")), + _ => None, // Don't handle non-service commands here + } { + return (icon.to_string(), status_text.to_string(), Theme::highlight()); + } } } _ => {} // Success/Failed states will show normal status