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(ui): keep expanded tables responsive
rcourtman5f0cc94ad9c9
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 104295a595..36d50febd9 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,33 +1,45 @@{"version": 1,- "base_sha": "8e25badea1d13b32ca659aaa9f9727ecf1c32c17",- "verified_at": "2026-08-04T23:21:18Z",+ "base_sha": "58864f5ecc3abd351cf252b07995d605e3f7c498",+ "verified_at": "2026-08-05T11:30:51Z","result": "passed","changed_paths": [- "frontend-modern/src/components/Settings/APITokenManager.tsx",- "frontend-modern/src/components/Settings/APITokenManagerDialogs.tsx"+ "frontend-modern/src/components/shared/InlineDetailTableRow.tsx",+ "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx",+ "frontend-modern/src/index.css"],"content_sha256": {- "frontend-modern/src/components/Settings/APITokenManager.tsx": "46bd97089aab5be47b7595fc8abcbf15a908444d0922906433389222bc348777",- "frontend-modern/src/components/Settings/APITokenManagerDialogs.tsx": "7355009b809c47eae65c8704efc6c74ca673567dc7abdd24f8ef4ba247b5c1ca"+ "frontend-modern/src/components/shared/InlineDetailTableRow.tsx": "c614aee58b3953fdafb6e65035c73796dcc5ae3b6b8a55479632e61d95af1f12",+ "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx": "50374a199a49dcac90386a1b22cc45c38674225defba469bad3d1d263ae6b8df",+ "frontend-modern/src/index.css": "817c3f407d83909e43bb771019f0b7b460b498d0333e9eb3cac2fe697b5d78be"},- "routes": ["/settings/security/api"],+ "routes": [+ "/proxmox/overview",+ "/docker/overview",+ "/kubernetes/overview",+ "/truenas/apps",+ "/truenas/shares",+ "/vmware/overview"+ ],"viewports": [- { "width": 1440, "height": 1000 },- { "width": 390, "height": 844 }+ { "width": 320, "height": 900 },+ { "width": 375, "height": 812 },+ { "width": 768, "height": 900 },+ { "width": 1024, "height": 900 },+ { "width": 1280, "height": 900 },+ { "width": 1600, "height": 900 }],"states": [- "Rendered the API Access token inventory with five scoped credentials and no wildcard warning",- "Opened the deferred scope editor with the live settings:write selection and unchanged Save scopes action disabled",- "Opened the deferred revoke confirmation with the selected token name and irreversible-impact warning",- "Rendered the scope editor at 390px with a 358px dialog, bounded internal scrolling, and both footer actions visible",- "Confirmed both dialogs close cleanly and leave no dialog mounted",- "Observed no browser console errors across the desktop and narrow interaction matrix"+ "Rendered TrueNAS Apps with App, CPU, Memory, and Updates using the complete phone-width table instead of reserving hidden desktop tracks",+ "Kept expanded TrueNAS App and Share detail rows aligned as visible column counts changed from phone through desktop breakpoints",+ "Kept expanded Kubernetes deployment, Docker host, vSphere host, Proxmox node, and Proxmox workload rows aligned to their visible summary columns",+ "Measured visible header widths against table widths at 320, 375, 768, 1024, 1280, and 1600 pixels with no document overflow",+ "Visually inspected the expanded Proxmox node and workload details at phone width with operational columns and drawer content remaining readable"],"interactions": [- "Opened Edit scopes from a specific token card at 1440px, inspected the complete checkbox inventory, and cancelled without mutation",- "Opened Revoke from the same token card, verified the explicit confirmation boundary, and cancelled without revoking the token",- "Repeated the deferred Edit scopes load at 390px and verified Cancel and disabled Save scopes remained visible and usable",- "Closed the narrow scope editor and verified the dialog was removed without changing token state"+ "Expanded and collapsed representative resource rows using their disclosure controls across Proxmox, Docker, Kubernetes, TrueNAS, and vSphere",+ "Resized the live browser repeatedly across every audited breakpoint while each representative detail row remained open",+ "Sorted TrueNAS Apps by CPU through descending and ascending states, then restored the default order",+ "Verified responsive detail colspans returned to compact values after resizing from desktop back to phone width"]}diff --git a/frontend-modern/src/components/shared/InlineDetailTableRow.tsx b/frontend-modern/src/components/shared/InlineDetailTableRow.tsxindex b8abdfde3b..4286999223 100644--- a/frontend-modern/src/components/shared/InlineDetailTableRow.tsx+++ b/frontend-modern/src/components/shared/InlineDetailTableRow.tsx@@ -1,4 +1,4 @@-import { splitProps, type JSX } from 'solid-js';+import { createSignal, onCleanup, onMount, splitProps, type JSX } from 'solid-js';import { TableCell, TableRow, type TableRowProps } from './Table';@@ -35,12 +35,49 @@ export function InlineDetailTableRow(props: InlineDetailTableRowProps) {]);const containClicks = () => local.containClicks ?? true;const contentClass = () => local.contentClass ?? INLINE_DETAIL_TABLE_CONTENT_CLASS;+ const requestedColspan = () => local.colspan ?? local.colSpan ?? 1;+ const [effectiveColspan, setEffectiveColspan] = createSignal(requestedColspan());+ let detailRow: HTMLTableRowElement | undefined;++ const syncColspanToVisibleSummaryCells = () => {+ const summaryRow = detailRow?.previousElementSibling;+ if (!(summaryRow instanceof HTMLTableRowElement)) {+ setEffectiveColspan(requestedColspan());+ return;+ }++ const visibleColspan = Array.from(+ summaryRow.querySelectorAll<HTMLTableCellElement>(':scope > th, :scope > td'),+ ).reduce(+ (total, cell) =>+ window.getComputedStyle(cell).display === 'none' ? total : total + cell.colSpan,+ 0,+ );+ setEffectiveColspan(visibleColspan || requestedColspan());+ };++ onMount(() => {+ syncColspanToVisibleSummaryCells();+ window.addEventListener('resize', syncColspanToVisibleSummaryCells);++ const tableShell = detailRow?.closest('.table-scroll-shell');+ const observer =+ tableShell && typeof ResizeObserver === 'function'+ ? new ResizeObserver(syncColspanToVisibleSummaryCells)+ : undefined;+ if (tableShell) observer?.observe(tableShell);++ onCleanup(() => {+ window.removeEventListener('resize', syncColspanToVisibleSummaryCells);+ observer?.disconnect();+ });+ });return (- <TableRow class={local.class} {...rest}>+ <TableRow ref={detailRow} class={local.class} {...rest}><TableCellid={local.cellId}- colspan={local.colspan ?? local.colSpan}+ colspan={effectiveColspan()}class={joinClasses(INLINE_DETAIL_TABLE_CELL_CLASS, local.cellClass)}><divdiff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 2dd7951981..b21b69a2ee 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -1300,6 +1300,9 @@ describe('shared primitive guardrails', () => {expect(frontendIndexCssSource).toContain('container-type: inline-size');expect(frontendIndexCssSource).toContain('contain: paint');expect(frontendIndexCssSource).toContain('overscroll-behavior-x: contain');+ expect(frontendIndexCssSource).toContain('th.truenas-app-name-column');+ expect(frontendIndexCssSource).toContain('th.truenas-app-containers-column');+ expect(frontendIndexCssSource).toContain('th.truenas-app-updates-column');expect(tableSource).toContain('w-full border-collapse text-left whitespace-nowrap');expect(tableCardSource).toContain('TABLE_CARD_FRAME_CLASS');expect(tableCardSource).toContain('overflow-hidden');diff --git a/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsx b/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsxindex 337a7c1524..61b8865541 100644--- a/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsx@@ -1,4 +1,4 @@-import { render, screen } from '@solidjs/testing-library';+import { render, screen, waitFor } from '@solidjs/testing-library';import { describe, expect, it, vi } from 'vitest';import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';@@ -58,4 +58,28 @@ describe('InlineDetailTableRow', () => {expect(onRowClick).not.toHaveBeenCalled();});++ it('spans only the summary cells visible at the current responsive layout', async () => {+ render(() => (+ <Table>+ <TableBody>+ <tr>+ <td>Identity</td>+ <td style={{ display: 'none' }}>Desktop-only detail</td>+ <td>State</td>+ </tr>+ <InlineDetailTableRow colspan={3}>+ <div>Responsive detail content</div>+ </InlineDetailTableRow>+ </TableBody>+ </Table>+ ));++ await waitFor(() => {+ expect(screen.getByText('Responsive detail content').closest('td')).toHaveAttribute(+ 'colspan',+ '2',+ );+ });+ });});diff --git a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.tsindex f800c7ee5d..31c3793d43 100644--- a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts+++ b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts@@ -333,6 +333,9 @@ describe('platform overview layout guardrails', () => {expect(truenasPageSurfaceSource).not.toContain('<WorkloadsSurface');expect(truenasPageSurfaceSource).not.toContain('<TrueNASDisksTable');expect(truenasAppsTableSource).toContain('md:min-w-[960px]');+ expect(truenasAppsTableSource).toContain('truenas-app-name-column');+ expect(truenasAppsTableSource).toContain('truenas-app-containers-column');+ expect(truenasAppsTableSource).toContain('truenas-app-updates-column');expect(truenasAppsTableSource).not.toContain('Volumes');expect(truenasNetworkSharesTableSource).toContain('md:min-w-[960px]');expect(truenasNetworkSharesTableSource).not.toMatch(diff --git a/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx b/frontend-modern/src/features/truenas/TrueNASAppsTable.tsxindex 013b3df4ec..3ec7c20dd5 100644--- a/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx+++ b/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx@@ -234,14 +234,19 @@ export const TrueNASAppsTable: Component<{tableClass="min-w-full table-fixed text-xs md:min-w-[960px]"header={<>- <PlatformSortableTableHead kind="name" sort={sort} sortKey="app" class="md:w-[17%]">+ <PlatformSortableTableHead+ kind="name"+ sort={sort}+ sortKey="app"+ class="truenas-app-name-column md:w-[17%]"+ >App</PlatformSortableTableHead><PlatformSortableTableHeadkind="text"sort={sort}sortKey="version"- class="hidden md:table-cell md:w-[10%]"+ class="truenas-app-version-column hidden md:table-cell md:w-[10%]">Version</PlatformSortableTableHead>@@ -249,7 +254,7 @@ export const TrueNASAppsTable: Component<{kind="metric-bar"sort={sort}sortKey="cpu"- class="md:w-[9%]"+ class="truenas-app-cpu-column md:w-[9%]">CPU</PlatformSortableTableHead>@@ -257,7 +262,7 @@ export const TrueNASAppsTable: Component<{kind="metric-bar"sort={sort}sortKey="memory"- class="md:w-[12%]"+ class="truenas-app-memory-column md:w-[12%]">Memory</PlatformSortableTableHead>@@ -265,21 +270,21 @@ export const TrueNASAppsTable: Component<{kind="numeric-value"sort={sort}sortKey="containers"- class="hidden sm:table-cell md:w-[12%]"+ class="truenas-app-containers-column hidden sm:table-cell md:w-[12%]">Containers</PlatformSortableTableHead><PlatformSortableTableHeadkind="text"sort={sort}- class="hidden md:table-cell md:w-[18%]"+ class="truenas-app-ports-column hidden md:table-cell md:w-[18%]">Ports</PlatformSortableTableHead><PlatformSortableTableHeadkind="text"sort={sort}- class="hidden lg:table-cell md:w-[12%]"+ class="truenas-app-images-column hidden lg:table-cell md:w-[12%]">Images</PlatformSortableTableHead>@@ -287,7 +292,7 @@ export const TrueNASAppsTable: Component<{kind="badge"sort={sort}sortKey="updates"- class="md:w-[10%]"+ class="truenas-app-updates-column md:w-[10%]">Updates</PlatformSortableTableHead>diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.cssindex 272ca1ab07..bb9f05ecda 100644--- a/frontend-modern/src/index.css+++ b/frontend-modern/src/index.css@@ -931,6 +931,64 @@ body,.table-scroll-shell > .table-fixed th.platform-table-mobile-w-15 {width: 15%;}++ /* TrueNAS app identity, live load, and update posture are the useful phone+ scan. Allocate the entire row to those four visible tracks. */+ .table-scroll-shell > .table-fixed th.truenas-app-name-column {+ width: 40%;+ }++ .table-scroll-shell > .table-fixed th.truenas-app-cpu-column,+ .table-scroll-shell > .table-fixed th.truenas-app-memory-column,+ .table-scroll-shell > .table-fixed th.truenas-app-updates-column {+ width: 20%;+ }+}++/* Rebalance the TrueNAS app inventory whenever another priority tier appears.+ Hidden fixed-table tracks otherwise keep their desktop percentage and leave+ a large unused strip while visible operational columns become unreadable. */+@container (min-width: 34rem) and (max-width: 63.999rem) {+ .table-scroll-shell > .table-fixed th.truenas-app-name-column {+ width: 28%;+ }++ .table-scroll-shell > .table-fixed th.truenas-app-cpu-column {+ width: 15%;+ }++ .table-scroll-shell > .table-fixed th.truenas-app-memory-column,+ .table-scroll-shell > .table-fixed th.truenas-app-containers-column {+ width: 20%;+ }++ .table-scroll-shell > .table-fixed th.truenas-app-updates-column {+ width: 17%;+ }+}++@container (min-width: 64rem) and (max-width: 75.999rem) {+ .table-scroll-shell > .table-fixed th.truenas-app-name-column {+ width: 19%;+ }++ .table-scroll-shell > .table-fixed th.truenas-app-version-column,+ .table-scroll-shell > .table-fixed th.truenas-app-updates-column {+ width: 11%;+ }++ .table-scroll-shell > .table-fixed th.truenas-app-cpu-column {+ width: 10%;+ }++ .table-scroll-shell > .table-fixed th.truenas-app-memory-column,+ .table-scroll-shell > .table-fixed th.truenas-app-containers-column {+ width: 14%;+ }++ .table-scroll-shell > .table-fixed th.truenas-app-ports-column {+ width: 21%;+ }}/* Keep name column single line to avoid wrapping while giving it more space */