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(proxmox): give the workload VMID its own column on coverage and recoverable
rcourtman607f07dafd56
diff --git a/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsxindex 7792bbe2bb..39931bc7a1 100644--- a/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx@@ -82,14 +82,15 @@ export function ProxmoxCoverageTable(props: {<TableCard class={PLATFORM_TABLE_CARD_CLASS}><Table class="min-w-[1200px] table-fixed text-xs"><colgroup>- <col style={{ width: '20%' }} />- <col style={{ width: '11%' }} />- <col style={{ width: '12%' }} />- <col style={{ width: '13%' }} />+ <col style={{ width: '17%' }} />+ <col style={{ width: '7%' }} /><col style={{ width: '11%' }} /><col style={{ width: '11%' }} />+ <col style={{ width: '13%' }} /><col style={{ width: '11%' }} /><col style={{ width: '11%' }} />+ <col style={{ width: '9%' }} />+ <col style={{ width: '10%' }} /></colgroup><TableHeader><TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>@@ -102,6 +103,7 @@ export function ProxmoxCoverageTable(props: {align="left"headClass={getPlatformTableHeadClassForKind('name')}/>+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>VMID</TableHead><TableHead class={getPlatformTableHeadClassForKind('text')}>Node</TableHead><SortableHeadlabel="Posture"@@ -188,9 +190,16 @@ export function ProxmoxCoverageTable(props: {aria-hidden="true"/></button>- <span class="truncate font-semibold">{row.workload.label}</span>+ <span class="truncate font-semibold">+ {row.workload.name || row.workload.label}+ </span></div></TableCell>+ <TableCell+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-muted font-mono text-[11px] tabular-nums`}+ >+ {row.workload.vmid || '—'}+ </TableCell><TableCellclass={`${getPlatformTableCellClassForKind('text')} text-base-content truncate font-mono text-[11px]`}>@@ -275,7 +284,7 @@ export function ProxmoxCoverageTable(props: {</TableRow><Show when={isExpanded()}><TableRow class="bg-surface-alt/40">- <TableCell class="px-3 py-2" colspan={8}>+ <TableCell class="px-3 py-2" colspan={9}><Showwhen={evidence().length > 0}fallback={diff --git a/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsxindex 60713becb8..042f4107ec 100644--- a/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx@@ -72,12 +72,13 @@ export function ProxmoxRecoverableTable(props: {dumping all the slack into the trailing Details column on wideviewports. */}<colgroup>+ <col style={{ width: '15%' }} />+ <col style={{ width: '7%' }} />+ <col style={{ width: '8%' }} /><col style={{ width: '17%' }} />- <col style={{ width: '9%' }} />- <col style={{ width: '18%' }} />- <col style={{ width: '11%' }} />- <col style={{ width: '13%' }} /><col style={{ width: '10%' }} />+ <col style={{ width: '12%' }} />+ <col style={{ width: '9%' }} /><col style={{ width: '22%' }} /></colgroup><TableHeader>@@ -91,6 +92,7 @@ export function ProxmoxRecoverableTable(props: {align="left"headClass={getPlatformTableHeadClassForKind('name')}/>+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>VMID</TableHead><SortableHeadlabel="Source"sortKey="source"@@ -147,9 +149,16 @@ export function ProxmoxRecoverableTable(props: {class={`${getPlatformTableCellClassForKind('name')} text-base-content`}><div class="min-w-0">- <div class="truncate font-semibold">{artifact.workload.label}</div>+ <div class="truncate font-semibold">+ {artifact.workload.name || artifact.workload.label}+ </div></div></TableCell>+ <TableCell+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-muted font-mono text-[11px] tabular-nums`}+ >+ {artifact.workload.vmid || '—'}+ </TableCell><TableCellclass={`${getPlatformTableCellClassForKind('text')} text-base-content`}>diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsxindex 25a9297a68..bd15ceb5ba 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx@@ -124,7 +124,7 @@ describe('ProxmoxBackupsTable', () => {<ProxmoxBackupsTable emptyIcon={<span />} hasPBS workloads={[workloadResource]} />));- expect(await screen.findByText('pbs-docker (CT 112)')).toBeInTheDocument();+ expect(await screen.findByText('pbs-docker')).toBeInTheDocument();expect(screen.getAllByText('Current').length).toBeGreaterThan(0);await fireEvent.click(screen.getByRole('button', { name: /source details/i }));@@ -170,7 +170,7 @@ describe('ProxmoxBackupsTable', () => {<ProxmoxBackupsTable emptyIcon={<span />} hasPBS workloads={[workloadResource]} />));- expect(await screen.findByText('pbs-docker (CT 112)')).toBeInTheDocument();+ expect(await screen.findByText('pbs-docker')).toBeInTheDocument();expect(screen.queryByRole('button', { name: /pbs artifacts/i })).not.toBeInTheDocument();await fireEvent.click(await screen.findByRole('button', { name: /restore points/i }));@@ -179,7 +179,7 @@ describe('ProxmoxBackupsTable', () => {expect(screen.getAllByText('PBS').length).toBeGreaterThan(0);expect(screen.getByText('PVE archive')).toBeInTheDocument();expect(screen.getAllByText('Snapshot').length).toBeGreaterThan(0);- expect(screen.getAllByText('pbs-docker (CT 112)').length).toBeGreaterThan(0);+ expect(screen.getAllByText('pbs-docker').length).toBeGreaterThan(0);await fireEvent.click(screen.getByRole('button', { name: /source details/i }));await fireEvent.click(screen.getByRole('button', { name: 'Snapshots 1' }));@@ -193,7 +193,7 @@ describe('ProxmoxBackupsTable', () => {<ProxmoxBackupsTable emptyIcon={<span />} hasPBS workloads={[workloadResource]} />));- await screen.findByText('pbs-docker (CT 112)');+ await screen.findByText('pbs-docker');await fireEvent.click(screen.getByRole('button', { name: /show restore evidence for pbs-docker/i }),