Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(connections): tidy agent ledger rows

rcourtmanc1e94878c552
diff --git a/frontend-modern/src/components/Settings/useConnectionsLedger.ts b/frontend-modern/src/components/Settings/useConnectionsLedger.ts
index 5f6ac606f0..e6756b771c 100644
--- a/frontend-modern/src/components/Settings/useConnectionsLedger.ts
+++ b/frontend-modern/src/components/Settings/useConnectionsLedger.ts
@@ -61,6 +61,7 @@ const SURFACE_LABELS: Record<string, string> = {
queues: 'Queues',
quarantine: 'Quarantine',
domainStats: 'Domain stats',
+ host: 'Host',
hosts: 'Hosts',
datasets: 'Datasets',
pools: 'Pools',
@@ -125,11 +126,14 @@ export const connectionToRow = (connection: Connection): InfrastructureSystemRow
activeScopeKeys.length > 0
? activeScopeKeys.map(surfaceLabel)
: connection.surfaces.map(surfaceLabel);
+ const name = connection.name || connection.address || connection.id;
+ const host =
+ connection.address && connection.address !== name ? connection.address : undefined;
return {
id: connection.id,
- name: connection.name || connection.address || connection.id,
+ name,
subtitle: subtitleFor(connection),
- host: connection.address,
+ host,
coverageLabels: coverage,
collectionLabel: collectionLabelFor(connection.type),
statusLabel: presentation.label,