From 112d42801ab49487bfc9d524a67cdf62c95ab630 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sun, 10 May 2026 23:28:30 +0100 Subject: [PATCH] Aggregate cluster source badge across attached agents The Infrastructure connected-systems table hardcoded the cluster header row's source to 'api', so a PVE cluster whose nodes all carry agents displayed as 'API' while a standalone PVE host with the same setup correctly displayed as 'API + Agent'. The backend already folds member agents into ConnectionSystem.Components as attachments (connections_grouping.go), so the row builder can use the same sourceFor() aggregation it uses for non-cluster rows. --- frontend-modern/src/components/Settings/useConnectionsLedger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend-modern/src/components/Settings/useConnectionsLedger.ts b/frontend-modern/src/components/Settings/useConnectionsLedger.ts index 47dc75df7..a3ddc5ad2 100644 --- a/frontend-modern/src/components/Settings/useConnectionsLedger.ts +++ b/frontend-modern/src/components/Settings/useConnectionsLedger.ts @@ -253,7 +253,7 @@ const buildRow = ( const coverageLabels = isCluster ? coverageLabelsFor(componentConnections).filter((label) => label !== hostTelemetryLabel) : coverageLabelsFor(componentConnections); - const source: InfrastructureSourceKind = isCluster ? 'api' : sourceFor(componentConnections); + const source: InfrastructureSourceKind = sourceFor(componentConnections); const subtitle = isCluster ? `Cluster ยท ${members.length} ${members.length === 1 ? 'node' : 'nodes'}` : subtitleFor(componentConnections, primaryConnection);