0}>
+
+
+
+ {props.model().summary.runningGuestCount} running
+
+ 0}>
+ |
+
+
+ {props.model().summary.degradedGuestCount} attention
+
+
+ |
+
+
+ {props.model().summary.stoppedGuestCount} stopped
+
+
+
);
}
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx
index d8d7f578af..abe29b247b 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx
@@ -154,6 +154,41 @@ describe('ProxmoxPageSurface contract', () => {
);
});
+ it('renders the v5-style guest totals strip from the page summary', () => {
+ setResources([
+ makeResource({
+ id: 'agent:pve-1',
+ type: 'agent',
+ proxmox: { nodeName: 'pve-1', clusterName: 'homelab' },
+ }),
+ makeResource({
+ id: 'vm-100',
+ type: 'vm',
+ status: 'running',
+ proxmox: { nodeName: 'pve-1', vmid: 100 },
+ }),
+ makeResource({
+ id: 'vm-101',
+ type: 'vm',
+ status: 'degraded',
+ proxmox: { nodeName: 'pve-1', vmid: 101 },
+ }),
+ makeResource({
+ id: 'vm-102',
+ type: 'vm',
+ status: 'stopped',
+ proxmox: { nodeName: 'pve-1', vmid: 102 },
+ }),
+ ]);
+
+ render(() =>