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
Make infrastructure settings ledger responsive
rcourtman6c6221b4affb
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 991ee7b2f9..b60d7bdff5 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -386,7 +386,14 @@ an add-only capacity posture.sessions must redirect any non-inventory infrastructure deep link back to`/settings/infrastructure`, suppress the add-system entry point, and hideconfiguration-only sections so presentation-policy restrictions still- hold.+ hold. That top ledger must also stay readable inside the governed settings+ shell at ordinary desktop widths: when the settings rail leaves the table+ without room for the full six-column ledger, `ConnectionsTable.tsx` must+ collapse collection and last-activity into row metadata instead of forcing+ horizontal scrolling just to reach primary controls. The dedicated+ collection and last-activity columns may return only once the workspace has+ enough width to show the full ledger without clipping headers or row+ actions.8. Keep post-install lifecycle completion explicit inside`frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`and `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`.diff --git a/frontend-modern/src/components/Settings/ConnectionsTable.tsx b/frontend-modern/src/components/Settings/ConnectionsTable.tsxindex e23dd6138f..eeafc03c44 100644--- a/frontend-modern/src/components/Settings/ConnectionsTable.tsx+++ b/frontend-modern/src/components/Settings/ConnectionsTable.tsx@@ -57,93 +57,95 @@ export const ConnectionsTable: Component<ConnectionsTableProps> = (props) => {<div class="px-4 py-10 text-center text-sm text-muted">No monitored systems yet.</div>}>- <div class="overflow-auto">- <Table class="min-w-[1040px] w-full divide-y divide-border text-sm">- <TableHeader class="bg-surface-alt">- <TableRow>- <TableHead class="py-2 pl-4 pr-3 text-left text-xs font-semibold uppercase tracking-wide text-muted">- System+ <Table class="w-full table-fixed divide-y divide-border text-sm !whitespace-normal">+ <TableHeader class="bg-surface-alt">+ <TableRow>+ <TableHead class="w-[30%] py-2 pl-4 pr-3 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:w-[20%]">+ System+ </TableHead>+ <TableHead class="w-[36%] px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:w-[30%]">+ Coverage+ </TableHead>+ <TableHead class="hidden w-[14%] px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:table-cell">+ Collection+ </TableHead>+ <TableHead class="w-[16%] px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:w-[10%]">+ Status+ </TableHead>+ <TableHead class="hidden w-[14%] px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:table-cell">+ Last activity+ </TableHead>+ <Show when={props.onManageRow}>+ <TableHead class="w-[18%] px-4 py-2 text-right text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:w-[12%]">+ Manage</TableHead>- <TableHead class="px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted">- Coverage- </TableHead>- <TableHead class="px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted">- Collection- </TableHead>- <TableHead class="px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted">- Status- </TableHead>- <TableHead class="px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted">- Last activity- </TableHead>- <Show when={props.onManageRow}>- <TableHead class="px-4 py-2 text-right text-xs font-semibold uppercase tracking-wide text-muted">- Manage- </TableHead>- </Show>- </TableRow>- </TableHeader>- <TableBody class="divide-y divide-border bg-surface">- <For each={props.rows()}>- {(row) => (- <TableRow class="even:bg-surface-alt">- <TableCell class="py-3 pl-4 pr-3 align-top">- <div class="min-w-0 space-y-1">- <div class="font-medium text-base-content">{row.name}</div>- <Show when={row.host}>- <div class="truncate text-xs text-muted">{row.host}</div>- </Show>- <Show when={row.subtitle}>- <div class="text-xs text-muted">{row.subtitle}</div>- </Show>- </div>- </TableCell>+ </Show>+ </TableRow>+ </TableHeader>+ <TableBody class="divide-y divide-border bg-surface">+ <For each={props.rows()}>+ {(row) => (+ <TableRow class="even:bg-surface-alt">+ <TableCell class="py-3 pl-4 pr-3 align-top">+ <div class="min-w-0 space-y-1">+ <div class="break-words font-medium text-base-content">{row.name}</div>+ <Show when={row.host}>+ <div class="break-words text-xs text-muted">{row.host}</div>+ </Show>+ <Show when={row.subtitle}>+ <div class="break-words text-xs text-muted">{row.subtitle}</div>+ </Show>+ <div class="text-xs text-muted 2xl:hidden">{row.collectionLabel}</div>+ </div>+ </TableCell>- <TableCell class="px-3 py-3 align-top">- <div class="flex flex-wrap gap-1.5">- <For each={row.coverageLabels}>- {(label) => (- <span class="inline-flex items-center rounded-full border border-border bg-surface px-2 py-0.5 text-xs font-medium text-base-content">- {label}- </span>- )}- </For>- </div>- </TableCell>+ <TableCell class="px-3 py-3 align-top">+ <div class="flex flex-wrap gap-1.5">+ <For each={row.coverageLabels}>+ {(label) => (+ <span class="inline-flex items-center rounded-full border border-border bg-surface px-2 py-0.5 text-xs font-medium text-base-content whitespace-nowrap">+ {label}+ </span>+ )}+ </For>+ </div>+ </TableCell>- <TableCell class="px-3 py-3 align-top text-base-content">- {row.collectionLabel}- </TableCell>+ <TableCell class="hidden px-3 py-3 align-top whitespace-nowrap text-base-content 2xl:table-cell">+ {row.collectionLabel}+ </TableCell>- <TableCell class="px-3 py-3 align-top">+ <TableCell class="px-3 py-3 align-top">+ <div class="space-y-1"><span- class={`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${row.statusClassName}`}+ class={`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap ${row.statusClassName}`}>{row.statusLabel}</span>- </TableCell>+ <div class="text-xs text-muted 2xl:hidden">{row.lastActivityText}</div>+ </div>+ </TableCell>- <TableCell class="px-3 py-3 align-top text-muted">- {row.lastActivityText}- </TableCell>+ <TableCell class="hidden px-3 py-3 align-top whitespace-nowrap text-muted 2xl:table-cell">+ {row.lastActivityText}+ </TableCell>- <Show when={props.onManageRow}>- <TableCell class="px-4 py-3 align-top text-right">- <button- type="button"- onClick={() => props.onManageRow?.(row)}- class="inline-flex min-h-10 sm:min-h-9 items-center rounded-md border border-border px-3 py-2 text-sm font-medium text-base-content transition-colors hover:bg-surface-hover"- >- {row.manageLabel}- </button>- </TableCell>- </Show>- </TableRow>- )}- </For>- </TableBody>- </Table>- </div>+ <Show when={props.onManageRow}>+ <TableCell class="px-4 py-3 align-top text-right">+ <button+ type="button"+ onClick={() => props.onManageRow?.(row)}+ class="inline-flex min-h-10 w-full items-center justify-center rounded-md border border-border px-3 py-2 text-sm font-medium text-base-content whitespace-nowrap transition-colors hover:bg-surface-hover sm:min-h-9 2xl:w-auto"+ >+ {row.manageLabel}+ </button>+ </TableCell>+ </Show>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></Show></Card>);diff --git a/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx b/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsxindex 5c2c1714dc..c3d21590ef 100644--- a/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx@@ -55,12 +55,25 @@ describe('ConnectionsTable', () => {expect(screen.getByText('pbs-docker')).toBeInTheDocument();expect(screen.getByText('Ignored by Pulse')).toBeInTheDocument();expect(screen.getByText('Host telemetry')).toBeInTheDocument();- expect(screen.getByText('API')).toBeInTheDocument();- expect(screen.getByText('Agent')).toBeInTheDocument();+ expect(screen.getAllByText('API')).toHaveLength(2);+ expect(screen.getAllByText('Agent')).toHaveLength(2);expect(screen.getByText('Ignored')).toBeInTheDocument();expect(screen.getByText('online')).toBeInTheDocument();});+ it('uses the responsive ledger layout without the legacy fixed minimum width', () => {+ render(() => (+ <ConnectionsTable rows={() => [row()]} onManageRow={vi.fn()} />+ ) as any);++ const table = screen.getByRole('table');+ expect(table).toHaveClass('table-fixed');+ expect(table.className).toContain('!whitespace-normal');+ expect(table.className).not.toContain('min-w-[1040px]');+ expect(screen.getAllByText('Agent')).toHaveLength(2);+ expect(screen.getAllByText('5s ago')).toHaveLength(2);+ });+it('surfaces configured header actions when provided', () => {const onAddSystem = vi.fn();render(() => (