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.
This commit is contained in:
rcourtman 2026-05-10 23:28:30 +01:00
parent 9f43a22fb1
commit 112d42801a

View file

@ -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);