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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Fix dashboard estate projection stability
rcourtmanab57a4c144b5
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 021268bbc7..ed768c06d8 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -230,10 +230,17 @@ regression protection.responsive workload column priority and width model. `DashboardWorkloadTable`,`WorkloadTableHeader`, and `WorkloadPanel` must consume one sharedlayout-visible column set so headers, colgroups, and rows stay aligned during- live resize. Tablet and compact workload stages must normalize active column- widths against the currently visible column IDs, show higher-priority workload- information before exposing detail-heavy Net I/O and Disk I/O columns, and- avoid horizontal overflow at mobile, tablet, compact, and full desktop widths.+ live resize. View-mode-specific column sets in+ `frontend-modern/src/components/Dashboard/guestRowModel.tsx` must retain+ core monitoring metrics when narrowing scope: app-container mode keeps CPU,+ memory, disk, and the responsive Net I/O and Disk I/O columns available,+ while the layout priority model decides when detail-heavy I/O columns are+ rendered. Filtering to a workload type must not silently remove capacity or+ I/O observability that remains available in the all-workloads table. Tablet+ and compact workload stages must normalize active column widths against the+ currently visible column IDs, show higher-priority workload information+ before exposing detail-heavy Net I/O and Disk I/O columns, and avoid+ horizontal overflow at mobile, tablet, compact, and full desktop widths.28. Keep summary-card hover emphasis on one bounded rendering budget: when a summary row is active, shared sparkline and density-map primitives must promote the selected series and demote background series through the same active-series ID rather than layering a second page-local highlight pass, so zoom-range and hover scrubbing stay visually coherent without reintroducing multi-series overdraw on the hot summary cards. Density maps on that hot path must stay overview-first under focus: preserve the multi-entity heatmap rows, layer focused-entity detail inside the card, and avoid swapping transient hover into a separate single-series chart path.29. Keep public self-hosted checkout handoff endpoints on the adjacentcommercial/router boundary, not the summary-chart hot path. Whendiff --git a/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsxindex a54ac54dbe..a3622cd0f5 100644--- a/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx+++ b/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx@@ -940,9 +940,10 @@ describe('VIEW_MODE_COLUMNS', () => {expect(VIEW_MODE_COLUMNS['app-container']!.has('context')).toBe(true);});- it('app-container mode does not include disk or netIo', () => {- expect(VIEW_MODE_COLUMNS['app-container']!.has('disk')).toBe(false);- expect(VIEW_MODE_COLUMNS['app-container']!.has('netIo')).toBe(false);+ it('app-container mode keeps capacity and I/O metrics available', () => {+ expect(VIEW_MODE_COLUMNS['app-container']!.has('disk')).toBe(true);+ expect(VIEW_MODE_COLUMNS['app-container']!.has('netIo')).toBe(true);+ expect(VIEW_MODE_COLUMNS['app-container']!.has('diskIo')).toBe(true);});it('pod mode includes namespace and image', () => {diff --git a/frontend-modern/src/components/Dashboard/guestRowModel.tsx b/frontend-modern/src/components/Dashboard/guestRowModel.tsxindex 1958cf5930..5d348c501f 100644--- a/frontend-modern/src/components/Dashboard/guestRowModel.tsx+++ b/frontend-modern/src/components/Dashboard/guestRowModel.tsx@@ -520,11 +520,14 @@ export const VIEW_MODE_COLUMNS: Record<ViewMode, Set<string> | null> = {'name','cpu','memory',+ 'disk','uptime','image','context','tags','update',+ 'diskIo',+ 'netIo','link',]),pod: new Set(['name', 'cpu', 'memory', 'image', 'namespace', 'context', 'link']),diff --git a/frontend-modern/src/stores/__tests__/websocket-unified.test.ts b/frontend-modern/src/stores/__tests__/websocket-unified.test.tsindex 72445b54e1..22eb900a20 100644--- a/frontend-modern/src/stores/__tests__/websocket-unified.test.ts+++ b/frontend-modern/src/stores/__tests__/websocket-unified.test.ts@@ -181,6 +181,52 @@ describe('websocket store unified resource contract', () => {}});+ it('preserves connected infrastructure when raw updates omit that projection', async () => {+ const { store, dispose } = await createStoreHarness();+ try {+ await waitForOpenTick();++ emitMessage({+ type: 'initialState',+ data: {+ connectedInfrastructure: [+ {+ id: 'primary:agent:pve1',+ name: 'pve1',+ displayName: 'pve1',+ status: 'active',+ healthStatus: 'online',+ surfaces: [{ id: 'pve:pve1', kind: 'proxmox', label: 'PVE data' }],+ },+ ],+ resources: [{ id: 'node-1', type: 'agent', name: 'pve1', status: 'online' }],+ lastUpdate: 1739059200000,+ activeAlerts: [],+ recentlyResolved: [],+ },+ });++ emitMessage({+ type: 'rawData',+ data: {+ resources: [+ { id: 'node-1', type: 'agent', name: 'pve1', status: 'online' },+ { id: 'vm-101', type: 'vm', name: 'web-server', status: 'running' },+ ],+ lastUpdate: 1739059260000,+ activeAlerts: [],+ recentlyResolved: [],+ },+ });++ expect(store.state.connectedInfrastructure).toHaveLength(1);+ expect(store.state.connectedInfrastructure[0]?.id).toBe('primary:agent:pve1');+ expect(store.state.resources).toHaveLength(2);+ } finally {+ dispose();+ }+ });+it('preserves canonical resource details when realtime payloads are thinner', async () => {const { store, dispose } = await createStoreHarness();try {diff --git a/frontend-modern/src/stores/websocket.ts b/frontend-modern/src/stores/websocket.tsindex 1a682e863e..be0f2dc632 100644--- a/frontend-modern/src/stores/websocket.ts+++ b/frontend-modern/src/stores/websocket.ts@@ -354,13 +354,15 @@ export function createWebSocketStore(url: string) {// Canonical resource contract:// `state.resources` is the authoritative frontend model.// `state.connectedInfrastructure` is the authoritative reporting projection.- const connectedInfrastructure = Array.isArray(message.data.connectedInfrastructure)- ? (message.data.connectedInfrastructure as ConnectedInfrastructureItem[])- : [];- setState(- 'connectedInfrastructure',- reconcile(connectedInfrastructure, { key: 'id' }),- );+ if (message.data.connectedInfrastructure !== undefined) {+ const connectedInfrastructure = Array.isArray(message.data.connectedInfrastructure)+ ? (message.data.connectedInfrastructure as ConnectedInfrastructureItem[])+ : [];+ setState(+ 'connectedInfrastructure',+ reconcile(connectedInfrastructure, { key: 'id' }),+ );+ }if (message.data.metrics !== undefined) setState('metrics', message.data.metrics);if (message.data.performance !== undefined)setState('performance', message.data.performance);