From a389ead6de9035ddc0e011feec1ac92ecb71306e Mon Sep 17 00:00:00 2001 From: iris Date: Tue, 2 Jun 2026 22:27:08 +0200 Subject: [PATCH] fix(#1096): remove container name/port chip from dashboard card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop the 'h-sock :8421' meta span from the agent card head. ContainerView.container is now #[serde(skip)] since no frontend code reads it; the field stays in Rust for internal use. c.port remains serialized — used for fallback agent UI URLs. --- frontend/packages/dashboard/src/tabs.js | 1 - hive-c0re/src/container_view.rs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/packages/dashboard/src/tabs.js b/frontend/packages/dashboard/src/tabs.js index 855c8dca..c5662d13 100644 --- a/frontend/packages/dashboard/src/tabs.js +++ b/frontend/packages/dashboard/src/tabs.js @@ -779,7 +779,6 @@ window.marked = marked; {}, { noRefresh: true }, )); } - head.append(el('span', { class: 'meta' }, `${c.container} :${c.port}`)); if (c.deployed_sha) { head.append(el('span', { class: 'meta', title: 'sha currently locked in /meta/flake.lock' }, diff --git a/hive-c0re/src/container_view.rs b/hive-c0re/src/container_view.rs index 94dd00a2..40d0e97e 100644 --- a/hive-c0re/src/container_view.rs +++ b/hive-c0re/src/container_view.rs @@ -30,7 +30,9 @@ pub struct DashboardLink { pub struct ContainerView { /// Logical agent name (no `h-` prefix). Used in action URLs. pub name: String, - /// Container name as nixos-container sees it (`h-foo`). + /// Container name as nixos-container sees it (`h-foo`). Internal only; + /// not serialized to API responses since the dashboard no longer displays it. + #[serde(skip)] pub container: String, /// True when this is the manager agent. Informational — not used /// to gate any server-side actions. Computed from `name ==