From 06a602c5ef777a5a80cabecc4ce609d62d3478bf Mon Sep 17 00:00:00 2001 From: rcourtman Date: Mon, 20 Apr 2026 10:39:57 +0100 Subject: [PATCH] ledger: collapse "Collection" column into the system subtitle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ledger had two columns that told the same story twice: "Coverage" (the Monitor* surfaces) and "Collection" ("API" / "Agent" / "Docker" / "Kubernetes"). The Collection column repeated information the System column's subtitle already carries (the product label — "Proxmox VE", "Pulse Unified Agent", etc.) in a less informative form: "API" doesn't tell a new user anything the word "Proxmox VE" below the row name doesn't already imply. Drop the Collection column and rewrite the subtitle to speak the explainer's vocabulary directly. Platform-API-backed rows now render "Platform API · Proxmox VE" / "Platform API · TrueNAS" / etc. — the exact two-mode split the explainer just taught at the top of the page. Agent / Docker / Kubernetes rows keep their product-name subtitle ("Pulse Unified Agent" / "Docker" / "Kubernetes"); the product name already carries the source. Table widths rebalanced (Coverage now gets the space Collection used). colSpan for error rows drops 6→5 / 5→4. Test fixtures drop the collectionLabel field; the "renders one row per monitored system" case asserts the new "Platform API · TrueNAS" subtitle string. --- .../components/Settings/ConnectionsTable.tsx | 14 ++------ .../__tests__/ConnectionsTable.test.tsx | 8 ++--- .../InfrastructureWorkspace.test.tsx | 1 - .../Settings/connectionsTableModel.ts | 1 - .../Settings/useConnectionsLedger.ts | 36 +++++++++---------- 5 files changed, 22 insertions(+), 38 deletions(-) diff --git a/frontend-modern/src/components/Settings/ConnectionsTable.tsx b/frontend-modern/src/components/Settings/ConnectionsTable.tsx index a19b6677d..5d907b1fd 100644 --- a/frontend-modern/src/components/Settings/ConnectionsTable.tsx +++ b/frontend-modern/src/components/Settings/ConnectionsTable.tsx @@ -48,7 +48,7 @@ export const ConnectionsTable: Component = (props) => { const hasActions = () => Boolean(props.actions) || Boolean(props.onEdit); - const colSpan = () => (hasActions() ? 6 : 5); + const colSpan = () => (hasActions() ? 5 : 4); return ( @@ -90,13 +90,10 @@ export const ConnectionsTable: Component = (props) => { System - + Coverage - - + Status