From d463272cf2140865903d1da346986a1e2c4fbb17 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sat, 25 Oct 2025 14:57:40 +0200 Subject: [PATCH] Remove Config field and fix Build/Agent hash display - Remove Config field completely from NixOS section - Build: now shows NixOS system hash (from /run/current-system) - Agent: shows cm-dashboard package hash (first 8 chars) Build and Agent now display different hashes as intended. --- dashboard/src/ui/widgets/system.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dashboard/src/ui/widgets/system.rs b/dashboard/src/ui/widgets/system.rs index c3793a3..18f0800 100644 --- a/dashboard/src/ui/widgets/system.rs +++ b/dashboard/src/ui/widgets/system.rs @@ -422,16 +422,11 @@ impl SystemWidget { Span::styled("NixOS:", Typography::widget_title()) ])); - let build_text = self.nixos_build.as_deref().unwrap_or("unknown"); - lines.push(Line::from(vec![ - Span::styled(format!("Build: {}", build_text), Typography::secondary()) - ])); - let config_text = self.config_hash.as_deref().unwrap_or("unknown"); lines.push(Line::from(vec![ - Span::styled(format!("Config: {}", config_text), Typography::secondary()) + Span::styled(format!("Build: {}", config_text), Typography::secondary()) ])); - + let agent_hash_text = self.agent_hash.as_deref().unwrap_or("unknown"); let short_hash = if agent_hash_text.len() > 8 && agent_hash_text != "unknown" { &agent_hash_text[..8]