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(frontend): unify mobile platform table density
rcourtman9bec2a52b518
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 073d9eda7d..b60d355839 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1092,9 +1092,13 @@ not a replacement status card, CTA band, or page-local nested card.fills the available width and that second minimum would override thephone-width policy. Platform consumers must explicitly select five to sevenhigh-value phone columns when that many meaningful fields exist, keep the- identity column near one third of the available width, use the shared compact- label and column-width classes, and preserve the fuller tablet and desktop- presentation. They must not rely on a global rule that reveals every hidden+ identity column at the canonical 30 percent of the available width, use the+ shared compact label and column-width classes, and preserve the fuller tablet+ and desktop presentation. `PlatformTableShell` marks every owned table with+ the shared `platform-table` class; direct Workloads and Storage consumers and+ nested provider detail tables must apply that same marker so the phone+ contract cannot vary by rendering path. They must not rely on a global rule+ that reveals every hiddencolumn: phone priority remains source-specific because state, capacity,freshness, and recovery posture do not carry equal value for every resourcetype.diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 5669d56c2a..1e04fc7ea3 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -1935,7 +1935,7 @@ layout policy, and scroll coordination back into one mixed owner or the rendershell.The same shared layout policy now treats the phone branch as a zero-overflowfixed-width table rather than preserving a 640-pixel intrinsic floor. The-shared state model must select one bounded identity track plus five to seven+shared state model must select one identity track fixed at 30 percent plus five to sevensource-relevant health or activity tracks, normalize those widths to theavailable container, and keep the document and table shell at scroll-widthparity. That denser phone projection remains pure model/class work: it must notdiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex dc6c0a6d57..f83544791c 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -1912,7 +1912,7 @@ must not treat starteris likewise API/AI-owned transport: storage and recovery may consume theresulting incident context, but must not define storage-local approvalargument keys or bypass the shared `internal/agentcapabilities` helper.-5. Keep recovery history table width budgeting derived from the canonical column specs in `frontend-modern/src/utils/recoveryTablePresentation.ts`, not from raw visible-column counts, so normalized subject labels and optional column sets cannot drift the right-edge badges and controls off-screen. Storage-pool, physical-disk, backup-server, coverage, and recoverable-artifact compact models must follow the same source-owned budgeting rule: expose the five to seven highest-value phone fields when the source provides them, keep identity near one third, use compact labels for narrow evidence fields, and normalize the selected tracks to the container without a horizontal rail. Desktop column sets and storage/recovery evidence semantics must remain unchanged.+5. Keep recovery history table width budgeting derived from the canonical column specs in `frontend-modern/src/utils/recoveryTablePresentation.ts`, not from raw visible-column counts, so normalized subject labels and optional column sets cannot drift the right-edge badges and controls off-screen. Storage-pool, physical-disk, backup-server, coverage, and recoverable-artifact compact models must follow the same source-owned budgeting rule: expose the five to seven highest-value phone fields when the source provides them, fix identity at the shared 30-percent track, use compact labels for narrow evidence fields, and normalize the selected tracks to the container without a horizontal rail. Desktop column sets and storage/recovery evidence semantics must remain unchanged.6. Keep at least one browser-level desktop recovery proof in the governed `recovery-product-surface` policy so right-edge column visibility and wrapper-fit regressions are caught at rendered layout time instead of only through unit-level width math7. Keep the retired dashboard route from becoming a passive no-resourcescompatibility shell. First-session handoff now belongs to Infrastructurediff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex a1e0816672..97e7a8b6ef 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -359,8 +359,8 @@ filter semantics, drawer handoffs, and resource projections, whileThat shell also owns responsive width composition. Source tables may declaredesktop breakpoint floors, but the phone branch must fit its selected columnsinside the available container without a horizontal rail. Each unified-resource-consumer selects five to seven high-value source fields when they exist, keeps-identity near one third of the width, and uses shared compact-label and phone+consumer selects five to seven high-value source fields when they exist, fixes+identity at 30 percent of the width, and uses shared compact-label and phonewidth classes so the remaining tracks stay readable. No global reveal rule mayoverride those source-specific priorities.Future platform tables must keep that split: row data and platform semantics@@ -1219,7 +1219,7 @@ AI-only summary payloads, or page-local heuristics.owns the column-priority breakpoints for host and service infrastructurerows. When the app shell leaves tablet-sized space during live resize, thetable hides lower-priority metadata first. At phone width, the state model- must remove the old 640-pixel floor, preserve identity at roughly one third+ must remove the old 640-pixel floor, preserve identity at exactly 30 percentof the table, and allocate the remaining width across the boundedsource-relevant health and activity columns. Both the document and tableshell must remain free of horizontal overflow; desktop and tablet stagesdiff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 29637ed60b..6e436890cd 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,42 +1,131 @@{"version": 1,- "base_sha": "006d5da1c7881a43bdfbb7357b6a7a84395ebb8b",- "verified_at": "2026-08-18T18:22:00Z",+ "base_sha": "550b68fb13ee806287e2a54f00af4f1e1ddc5f6b",+ "verified_at": "2026-08-18T18:42:36Z","result": "passed","changed_paths": [- "frontend-modern/src/api/nodes.ts",- "frontend-modern/src/components/Settings/useNodeModalState.ts"+ "frontend-modern/src/components/Storage/StoragePoolRow.tsx",+ "frontend-modern/src/components/Storage/StoragePoolsTable.tsx",+ "frontend-modern/src/components/Workloads/WorkloadsTable.tsx",+ "frontend-modern/src/components/Workloads/guestRowModel.tsx",+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx",+ "frontend-modern/src/features/docker/dockerContainerTableModel.ts",+ "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx",+ "frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx",+ "frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx",+ "frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx",+ "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx",+ "frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx",+ "frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx",+ "frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx",+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx",+ "frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx",+ "frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx",+ "frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx",+ "frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts",+ "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts",+ "frontend-modern/src/features/standalone/AvailabilityChecksTable.tsx",+ "frontend-modern/src/features/storageBackups/storagePagePresentation.ts",+ "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx",+ "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx",+ "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx",+ "frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx",+ "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx",+ "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx",+ "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx",+ "frontend-modern/src/features/vmware/VsphereActivityTable.tsx",+ "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx",+ "frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx",+ "frontend-modern/src/features/vmware/VsphereNetworksTable.tsx",+ "frontend-modern/src/index.css"],"content_sha256": {- "frontend-modern/src/api/nodes.ts": "fb258752aafdb6ec0be631732512b131196c51a890c6f2d4c050992c4c800a36",- "frontend-modern/src/components/Settings/useNodeModalState.ts": "bd3124418c5f6006205d2a0056fc7d93666f7aaf20dda7aa861fb199d76cf5ba"+ "frontend-modern/src/components/Storage/StoragePoolRow.tsx": "6e2deeb6f91a936971031f48f245ff9281a9bfddad23168ffef4d26a0fcdf87f",+ "frontend-modern/src/components/Storage/StoragePoolsTable.tsx": "58a2cf8105a58a513eaaf6d005078340a2073869e8388dba159dff4df5c268ac",+ "frontend-modern/src/components/Workloads/WorkloadsTable.tsx": "78a7a615c0b3c1ad06abc276f0ea62fa8773339161a11de10c2e9d1019ea3c73",+ "frontend-modern/src/components/Workloads/guestRowModel.tsx": "1433f0bbc94c8a6e26b2f26d1bb915dd901c68765b5fb17a9cdfb559ccafaf3a",+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx": "c9e4819ceafcc16d48404b65b148253725254254f8a07ca12789dc568d53c61d",+ "frontend-modern/src/features/docker/dockerContainerTableModel.ts": "3bcbba1d0b47e5faf1f3452db8ff7b3c2631dfb96be2c45b5b0fc6e6c3c31f7a",+ "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx": "6a2adaccf3b8c5d7823d0bd3f6d98feb18f8ebb9bf31aa1b2ee7a2904efe3125",+ "frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx": "5922128c7e5da6a0768959354a623594801380a4b23aeeb57a5fd4a9301832c5",+ "frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx": "5f8d93e526145cb233e44cfb8fb9964c245e0d85348a8f216735c9361dd445d1",+ "frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx": "519642d8f8c3bc4144cf3706d420302546d41825aa6b176132998f52dec248ac",+ "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx": "cb4b5a11ec784968cf17f958cbbf126d29ccf627ce16aaaf40bb3a4852f1e8ab",+ "frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx": "a84786b62101383e645b2ae2e3f62279d700f958c59e9721f3e7d760395e6680",+ "frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx": "ca03327cb7981a334dd78078202283f3e0855d558570b716e613666e72d3a92e",+ "frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx": "4fbf7280ed6ca8ea7dd00fe8c373c0cae03d3744d7f0d004130f9a2dbe7c4098",+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "e8ec632435578bde23574df21e979dc31afa63d68a3537787154533069ebd4cd",+ "frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx": "00d4a4c69450b2815b1016d7e2adfe7c93f5ad95e2f990b450e33a5843389c7e",+ "frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx": "e4f80f30f200f0d36e6c32849215e6cca59963206fb0e46693c15fabd03810b8",+ "frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx": "0bdf635feea6065226a5b1bc4805eb6669625a30d96303bfadd168c2b9963548",+ "frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts": "4bab56739f5bbcf180cad260aadc1ece204f2f506f28421ea2eaa57f3122e4b5",+ "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts": "5051817de46f6680097d0264c45f8fc0f2c55f6b1fbba66d85f3a5e6f814ab26",+ "frontend-modern/src/features/standalone/AvailabilityChecksTable.tsx": "2777008cad865f36713ad707dde03fc0151439f28ab3804c19251bacce6eac99",+ "frontend-modern/src/features/storageBackups/storagePagePresentation.ts": "3420397ed1832360092fba52af14665d0fbb480028fdef233406eb64d3fe36e7",+ "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx": "bd888238983cde09599dc5f7cc732fd64db773e9c18bd823beab8edcad2a9f9b",+ "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx": "620ee447f121d48ff023e62f1bef3c3a1896336b3280c97e3fbe064d6a40433b",+ "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx": "83a926b3e0df13076d1a66db4cae4985348ae7e4cb4b5375a88f6c5d2155f157",+ "frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx": "3c60bb3cdbbd591598381453ee82272d4d9f6ce270a7c35b0e159a79ef0e1535",+ "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx": "23529b6b6706b213fd22c1b631500a15b02635779d77e7871f5300fbde128477",+ "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx": "3872e327ed124053a6dc32ae366c6c978a275044ce0ff47a890142ece7097e52",+ "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx": "08f069b7934c90302d631bbca4c3fc086c5c69e37de07974e95f46c4e9d928c2",+ "frontend-modern/src/features/vmware/VsphereActivityTable.tsx": "c245ec6cbeb92c505ded5ee2999daaf1b8d84e10fc3b1c1bed408573139e5284",+ "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx": "0caf9eb4900939e463f8321409cd712540e508052b87ca4b87d74b277316662c",+ "frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx": "7e59cebc381ebbfd407936bd675b30ffe145631dac441866f4ffd8b460d32a25",+ "frontend-modern/src/features/vmware/VsphereNetworksTable.tsx": "c8a5fa5e993171f4a69475782f9223d5a47bc0d122ce68b0ce7de60eb650ee46",+ "frontend-modern/src/index.css": "5d4afa25d06188cd33ac1bf694c65722275a2d82fc3b6459adb072369a369d32"},"routes": [- "/settings/infrastructure"+ "/proxmox/overview",+ "/proxmox/storage?source=proxmox-all",+ "/proxmox/replication",+ "/proxmox/backups",+ "/proxmox/ceph",+ "/docker/overview",+ "/docker/images",+ "/docker/storage",+ "/docker/networks",+ "/docker/swarm",+ "/kubernetes/overview",+ "/kubernetes/services",+ "/kubernetes/storage",+ "/kubernetes/configuration",+ "/truenas/overview",+ "/truenas/storage",+ "/truenas/services",+ "/truenas/apps",+ "/truenas/vms",+ "/truenas/shares",+ "/truenas/protection",+ "/vmware/overview",+ "/vmware/storage",+ "/vmware/networks",+ "/vmware/health",+ "/vmware/activity",+ "/standalone/machines",+ "/standalone/availability"],"viewports": [{- "width": 1311,- "height": 1234+ "width": 1440,+ "height": 1000},{- "width": 375,- "height": 812+ "width": 390,+ "height": 844}],"states": [- "Add Proxmox VE dialog on the Connect via API path with Node Name enacon and an endpoint URL typed",- "Setup command generated: POST /api/setup-script-url returned 200 with the setup token after the copy-command action",- "Auto-registration completed against the isolated backend using that setup token with serverName pve01: connection created and listed as enacon, not pve01",- "Connected systems list showing the enacon connection under Proxmox VE",- "Mobile 375x812 Add Proxmox VE dialog with the Node Name field typed into"+ "Demo-data primary tables across every Proxmox, Docker, Kubernetes, TrueNAS, vSphere, and standalone route with a visible table",+ "Phone tables at 390px with canonical 30 percent identity tracks, five to seven source-relevant fields where available, and document/table scroll-width parity",+ "Proxmox Ceph expanded cluster with nested Pool and Service inventory tables",+ "Desktop Proxmox overview with all breakpoint columns visible and no document or wrapper overflow",+ "Expanded Proxmox node detail at desktop width"],"interactions": [- "opened Add infrastructure and picked Proxmox VE",- "typed the connection name and endpoint URL (input events)",- "triggered the copy-command action that requests /api/setup-script-url with the typed name",- "read the response setup token and completed POST /api/auto-register with it (simulated node-side script) with a different self-reported hostname",- "confirmed via GET /api/config/nodes and the connected systems list that the connection took the typed name",- "repeated the dialog and name typing at the mobile viewport"+ "navigated the complete platform route matrix at 390x844 and inspected rendered table headers, computed identity widths, table overflow, and document overflow",+ "expanded West Production A from the Proxmox node table and verified the controlled detail panel remained within the document",+ "switched to 1440x1000 and verified the full Proxmox desktop column sets and wrapper fit",+ "returned the deliverable preview to Proxmox Overview at 390x844"]}diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.tsindex 8b70b09c61..f0482c8c8e 100644--- a/frontend-modern/src/__tests__/App.architecture.test.ts+++ b/frontend-modern/src/__tests__/App.architecture.test.ts@@ -566,6 +566,9 @@ describe('App architecture', () => {expect(appStylesSource).toContain('--color-grouped-table-row-bg: rgba(51, 65, 85, 0.58);');expect(appStylesSource).toContain('.table-scroll-shell');expect(appStylesSource).toContain('container-type: inline-size');+ expect(appStylesSource).toContain('.table-fixed.platform-table th.platform-table-name-column');+ expect(appStylesSource).toContain('th.platform-table-mobile-w-10');+ expect(appStylesSource).toMatch(/th\.platform-table-name-column\s*\{\s*width:\s*30%;\s*\}/);expect(appStylesSource).toContain('@container (min-width: 72rem)');expect(appStylesSource).toContain('.hidden.md\\:table-cell');expect(appStylesSource).toContain('contain: paint');diff --git a/frontend-modern/src/components/Storage/StoragePoolRow.tsx b/frontend-modern/src/components/Storage/StoragePoolRow.tsxindex 34e665325f..18f3c5c03c 100644--- a/frontend-modern/src/components/Storage/StoragePoolRow.tsx+++ b/frontend-modern/src/components/Storage/StoragePoolRow.tsx@@ -31,6 +31,7 @@ import {type StoragePoolTableLayoutMode,} from '@/features/storageBackups/storagePagePresentation';import type { SummaryGroupMemberInteractionState } from '@/components/shared/summaryCardInteraction';+import { getPlatformTableCellClassForKind } from '@/features/platformPage/sharedPlatformPage';import { EnhancedStorageBar } from './EnhancedStorageBar';import { StoragePoolDetail } from './StoragePoolDetail';import {@@ -87,7 +88,10 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {{...props.alertDataAttrs}><td- class={columnClass(STORAGE_POOL_ROW_NAME_CELL_CLASS, 'name')}+ class={columnClass(+ `${STORAGE_POOL_ROW_NAME_CELL_CLASS} ${getPlatformTableCellClassForKind('name')}`,+ 'name',+ )}data-storage-column="name"><div class="flex min-w-0 items-center gap-1.5">@@ -106,7 +110,10 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td- class={columnClass(STORAGE_POOL_ROW_ISSUE_CELL_CLASS, 'state')}+ class={columnClass(+ `${STORAGE_POOL_ROW_ISSUE_CELL_CLASS} ${getPlatformTableCellClassForKind('text')}`,+ 'state',+ )}data-storage-column="state"><Show@@ -123,7 +130,10 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td- class={columnClass(STORAGE_POOL_ROW_TYPE_CELL_CLASS, 'type')}+ class={columnClass(+ `${STORAGE_POOL_ROW_TYPE_CELL_CLASS} ${getPlatformTableCellClassForKind('text')}`,+ 'type',+ )}data-storage-column="type"><span class={STORAGE_POOL_ROW_TEXT_TRUNCATE_CLASS} title={row().topologyLabel}>@@ -132,7 +142,10 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td- class={columnClass(STORAGE_POOL_ROW_HOST_CELL_CLASS, 'host')}+ class={columnClass(+ `${STORAGE_POOL_ROW_HOST_CELL_CLASS} ${getPlatformTableCellClassForKind('text')}`,+ 'host',+ )}data-storage-column="host"><span class={STORAGE_POOL_ROW_TEXT_TRUNCATE_CLASS} title={row().hostLabel}>@@ -141,7 +154,10 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td- class={columnClass(STORAGE_POOL_ROW_PROTECTION_CELL_CLASS, 'protection')}+ class={columnClass(+ `${STORAGE_POOL_ROW_PROTECTION_CELL_CLASS} ${getPlatformTableCellClassForKind('badge')}`,+ 'protection',+ )}data-storage-column="protection"><Show@@ -158,7 +174,10 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td- class={columnClass(STORAGE_POOL_ROW_USAGE_CELL_CLASS, 'usage')}+ class={columnClass(+ `${STORAGE_POOL_ROW_USAGE_CELL_CLASS} ${getPlatformTableCellClassForKind('metric-bar')}`,+ 'usage',+ )}data-storage-column="usage"><Show@@ -179,7 +198,10 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td- class={columnClass(STORAGE_POOL_ROW_GROWTH_CELL_CLASS, 'growth')}+ class={columnClass(+ `${STORAGE_POOL_ROW_GROWTH_CELL_CLASS} ${getPlatformTableCellClassForKind('numeric-value')}`,+ 'growth',+ )}data-storage-column="growth"><spandiff --git a/frontend-modern/src/components/Storage/StoragePoolsTable.tsx b/frontend-modern/src/components/Storage/StoragePoolsTable.tsxindex 0a50e833d4..39bd11fd4e 100644--- a/frontend-modern/src/components/Storage/StoragePoolsTable.tsx+++ b/frontend-modern/src/components/Storage/StoragePoolsTable.tsx@@ -3,6 +3,7 @@ import ArrowDownIcon from 'lucide-solid/icons/arrow-down';import ArrowUpIcon from 'lucide-solid/icons/arrow-up';import ArrowUpDownIcon from 'lucide-solid/icons/arrow-up-down';import { Table, TableBody, TableHead, TableHeader, TableRow } from '@/components/shared/Table';+import { getPlatformTableHeadClassForKind } from '@/features/platformPage/sharedPlatformPage';import {getStoragePoolColumnWidthPercent,getStoragePoolTableColumns,@@ -145,7 +146,11 @@ export const StoragePoolsTable: Component<StoragePoolsTableProps> = (props) => {<For each={getStoragePoolTableColumns(props.storageGrowthColumnLabel)}>{(column) => (<TableHead- class={columnClass(column.className, column.id, 'table-cell')}+ class={columnClass(+ `${getPlatformTableHeadClassForKind(column.kind)} ${column.className}`,+ column.id,+ 'table-cell',+ )}data-storage-column={column.id}aria-label={column.label}aria-sort={diff --git a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx b/frontend-modern/src/components/Workloads/WorkloadsTable.tsxindex 55ac2b4f0e..3756407079 100644--- a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx+++ b/frontend-modern/src/components/Workloads/WorkloadsTable.tsx@@ -73,7 +73,7 @@ export function WorkloadsTable(props: WorkloadsTableProps) {><TablewrapperRef={props.setTableWrapperRef}- class={`workload-table table-fixed ${props.isMobile() ? `workload-table--mobile ${WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS}` : 'workload-table--desktop min-w-full'}`}+ class={`platform-table workload-table table-fixed ${props.isMobile() ? `workload-table--mobile ${WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS}` : 'workload-table--desktop min-w-full'}`}><colgroup><For each={props.workloadTableVisibleColumns()}>diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsxindex 365921ea25..61a2c09507 100644--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx@@ -1091,14 +1091,14 @@ describe('GUEST_COLUMNS', () => {it('derives mobile overrides from the canonical guest column model', () => {expect(getGuestColumnStyle('name', true)).toEqual({- width: '33%',- 'max-width': '33%',+ width: '30%',+ 'max-width': '30%',});expect(getGuestColumnStyle('cpu', true)).toEqual({- width: '11%',- 'max-width': '11%',+ width: '11.4925%',+ 'max-width': '11.4925%',});- expect(getGuestColumnWidthStyle('name', true)).toEqual({ width: '33%' });+ expect(getGuestColumnWidthStyle('name', true)).toEqual({ width: '30%' });expect(getGuestColumnWidthStyle('diskIo', true)).toEqual({ width: '170px' });});diff --git a/frontend-modern/src/components/Workloads/guestRowModel.tsx b/frontend-modern/src/components/Workloads/guestRowModel.tsxindex 0e442391eb..0843636ae4 100644--- a/frontend-modern/src/components/Workloads/guestRowModel.tsx+++ b/frontend-modern/src/components/Workloads/guestRowModel.tsx@@ -2,6 +2,10 @@ import type { JSX } from 'solid-js';import type { ColumnDef } from '@/hooks/useColumnVisibility';import type { SummaryGroupMemberInteractionState } from '@/components/shared/summaryCardInteraction';+import {+ getPlatformTableWeightedColumnWidthStyle,+ PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT,+} from '@/features/platformPage/sharedPlatformPage';import type { WorkloadGuest, ViewMode } from '@/types/workloads';import { createVisibleCanonicalTypeColumn } from '@/utils/typeColumnDefinition';import type {@@ -435,8 +439,6 @@ const percentageColumn = (width: string): GuestColumnWidthOverride => ({maxWidth: width,});-const formatPercentage = (value: number): string => `${Number(value.toFixed(4))}%`;-// Responsive weights are normalized against the currently visible column set.// That keeps each workload view mode full-width without assuming one fixed set.const GUEST_COLUMN_RESPONSIVE_WEIGHTS: Record<@@ -500,14 +502,18 @@ const getResponsiveColumnOverride = (if (layoutMode === 'wide') return undefined;const weights = GUEST_COLUMN_RESPONSIVE_WEIGHTS[layoutMode];- const columnWeight = weights[columnId];- if (!columnWeight) return undefined;+ if (!weights[columnId]) return undefined;const activeIds = visibleColumnIds?.length ? visibleColumnIds : Object.keys(weights);- const totalWeight = activeIds.reduce((total, id) => total + (weights[id] ?? 0), 0);- if (totalWeight <= 0) return undefined;-- return percentageColumn(formatPercentage((columnWeight / totalWeight) * 100));+ const style = getPlatformTableWeightedColumnWidthStyle(+ columnId,+ weights,+ activeIds,+ layoutMode === 'phone' || layoutMode === 'mobile'+ ? { columnId: 'name', widthPercent: PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT }+ : undefined,+ );+ return typeof style.width === 'string' ? percentageColumn(style.width) : undefined;};const getGuestColumnSizing = (diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 4bd54b4485..e86ce8cc93 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -1315,11 +1315,14 @@ 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(+ '.table-scroll-shell > .table-fixed.platform-table th.platform-table-name-column',+ );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(frontendIndexCssSource).toContain('th.kubernetes-service-name-column');- expect(frontendIndexCssSource).toContain('th.kubernetes-network-name-column');+ expect(frontendIndexCssSource).not.toContain('th.kubernetes-service-name-column');+ expect(frontendIndexCssSource).not.toContain('th.kubernetes-network-name-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/features/docker/DockerNetworksTable.tsx b/frontend-modern/src/features/docker/DockerNetworksTable.tsxindex b54fb9fee6..31adf3b0c4 100644--- a/frontend-modern/src/features/docker/DockerNetworksTable.tsx+++ b/frontend-modern/src/features/docker/DockerNetworksTable.tsx@@ -55,26 +55,26 @@ const DOCKER_NETWORK_COLUMN_WIDTH_CLASS: Record<> = {compact: {network: 'w-[30%]',- attached: 'w-[34%]',- attention: 'w-[18%]',- subnet: 'w-[18%]',- driver: 'w-0',+ attached: 'w-[25%]',+ attention: 'w-[15%]',+ subnet: 'w-[15%]',+ driver: 'w-[15%]',host: 'w-0',},basic: {- network: 'w-[38%]',- attached: 'w-[42%]',- attention: 'w-[20%]',- subnet: 'w-0',- driver: 'w-0',+ network: 'w-[30%]',+ attached: 'w-[25%]',+ attention: 'w-[15%]',+ subnet: 'w-[15%]',+ driver: 'w-[15%]',host: 'w-0',},operational: {network: 'w-[25%]',- attached: 'w-[35%]',+ attached: 'w-[30%]',attention: 'w-[15%]',- subnet: 'w-[25%]',- driver: 'w-0',+ subnet: 'w-[20%]',+ driver: 'w-[10%]',host: 'w-0',},expanded: {@@ -415,8 +415,8 @@ export const DockerNetworksTable: Component<DockerNetworksTableProps> = (props)const layout = createMemo(() =>getPlatformTableContainerLayout(observedWidth.width() ?? 1920, [480, 720, 960, 1200]),);- const showSubnet = createMemo(() => layout() !== 'basic');- const showDriver = createMemo(() => ['expanded', 'full'].includes(layout()));+ const showSubnet = () => true;+ const showDriver = () => true;const showHost = createMemo(() => layout() === 'full');const columnWidthClass = (column: DockerNetworkColumn) =>DOCKER_NETWORK_COLUMN_WIDTH_CLASS[layout()][column];diff --git a/frontend-modern/src/features/docker/__tests__/dockerContainerTableModel.test.ts b/frontend-modern/src/features/docker/__tests__/dockerContainerTableModel.test.tsindex dbbb5290bb..fda0418d9f 100644--- a/frontend-modern/src/features/docker/__tests__/dockerContainerTableModel.test.ts+++ b/frontend-modern/src/features/docker/__tests__/dockerContainerTableModel.test.ts@@ -13,7 +13,7 @@ describe('dockerContainerTableModel', () => {expect(ids).toEqual(['container', 'state', 'cpu', 'memory', 'restarts', 'updates']);expect(getDockerContainerColumnWidthStyle('container', 'phone', ids)).toEqual({- width: '32%',+ width: '30%',});});diff --git a/frontend-modern/src/features/docker/dockerContainerTableModel.ts b/frontend-modern/src/features/docker/dockerContainerTableModel.tsindex 856a53a63a..9b08459c10 100644--- a/frontend-modern/src/features/docker/dockerContainerTableModel.ts+++ b/frontend-modern/src/features/docker/dockerContainerTableModel.ts@@ -2,7 +2,10 @@ import type { JSX } from 'solid-js';import type { WorkloadTableLayoutMode } from '@/components/Workloads/guestRowModel';import type { PlatformTableColumnKind } from '@/features/platformPage/columnAlignment';-import { getPlatformTableWeightedColumnWidthStyle } from '@/features/platformPage/sharedPlatformPage';+import {+ getPlatformTableWeightedColumnWidthStyle,+ PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT,+} from '@/features/platformPage/sharedPlatformPage';export type DockerContainerTableColumnId =| 'container'@@ -181,7 +184,14 @@ export const getDockerContainerColumnWidthStyle = (layoutMode === 'wide'? DOCKER_CONTAINER_DESKTOP_WIDTHS: DOCKER_CONTAINER_RESPONSIVE_WIDTHS[layoutMode];- return getPlatformTableWeightedColumnWidthStyle(columnId, weights, visibleColumnIds);+ return getPlatformTableWeightedColumnWidthStyle(+ columnId,+ weights,+ visibleColumnIds,+ layoutMode === 'phone' || layoutMode === 'mobile'+ ? { columnId: 'container', widthPercent: PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT }+ : undefined,+ );};// The Docker container table already has a row detail drawer for forensicdiff --git a/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsxindex 3bf326260a..7ed1a39712 100644--- a/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx+++ b/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx@@ -163,22 +163,28 @@ export const KubernetesAlertsTable: Component<{tableClass="min-w-full table-fixed text-xs md:min-w-[960px]"header={<>- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[22%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('name')} platform-table-mobile-w-30 md:w-[22%]`}+ >Resource</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('badge')} md:w-[10%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('badge')} platform-table-mobile-w-15 md:w-[10%]`}+ >Severity</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[34%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-25 md:w-[34%]`}+ >Alert</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[14%]`}+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[14%]`}>Scope</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden lg:table-cell md:w-[10%]`}+ class={`${getPlatformTableHeadClassForKind('numeric-value')} platform-table-mobile-w-15 md:w-[10%]`}>Started</TableHead>@@ -259,9 +265,7 @@ export const KubernetesAlertsTable: Component<{{incident.label}</span></TableCell>- <TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden md:table-cell`}- >+ <TableCell class={getPlatformTableCellClassForKind('text')}><span class="block truncate text-base-content" title={scopeText()}>{scopeText()}</span>@@ -271,7 +275,7 @@ export const KubernetesAlertsTable: Component<{</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content lg:table-cell`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}>{formatPlatformAlertStartedAt(incident.startedAt)}</TableCell>diff --git a/frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsxindex 211e479532..aec31c4ed5 100644--- a/frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx+++ b/frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx@@ -182,14 +182,14 @@ export const KubernetesAutoscalingTable: Component<{kind="text"sort={sort}sortKey="target"- class="platform-table-mobile-w-30 md:w-[18%]"+ class="platform-table-mobile-w-20 md:w-[18%]">Target</PlatformSortableTableHead><PlatformSortableTableHeadkind="text"sort={sort}- class="hidden sm:table-cell md:w-[10%]"+ class="platform-table-mobile-w-20 md:w-[10%]">Bounds</PlatformSortableTableHead>@@ -283,7 +283,7 @@ export const KubernetesAutoscalingTable: Component<{</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>{bounds(resource)}</TableCell>diff --git a/frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsxindex a77d563e35..bee2c3c2a3 100644--- a/frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx+++ b/frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx@@ -258,7 +258,7 @@ export const KubernetesConfigTable: Component<{kind="name"sort={sort}sortKey="resource"- class="md:w-[18%]"+ class="platform-table-mobile-w-30 md:w-[18%]">Resource</PlatformSortableTableHead>@@ -266,7 +266,7 @@ export const KubernetesConfigTable: Component<{kind="text"sort={sort}sortKey="kind"- class="md:w-[13%]"+ class="platform-table-mobile-w-15 md:w-[13%]">Kind</PlatformSortableTableHead>@@ -274,7 +274,7 @@ export const KubernetesConfigTable: Component<{kind="text"sort={sort}sortKey="scope"- class="hidden sm:table-cell md:w-[16%]"+ class="platform-table-mobile-w-20 md:w-[16%]">Scope</PlatformSortableTableHead>@@ -282,11 +282,15 @@ export const KubernetesConfigTable: Component<{kind="text"sort={sort}sortKey="lifecycle"- class="md:w-[16%]"+ class="platform-table-mobile-w-20 md:w-[16%]"><PlatformResponsiveTableLabel compact="Status" full="Lifecycle / trust" /></PlatformSortableTableHead>- <PlatformSortableTableHead kind="text" sort={sort} class="md:w-[14%]">+ <PlatformSortableTableHead+ kind="text"+ sort={sort}+ class="platform-table-mobile-w-15 md:w-[14%]"+ ><PlatformResponsiveTableLabel compact="Data" full="Data shape" /></PlatformSortableTableHead><PlatformSortableTableHead@@ -356,7 +360,7 @@ export const KubernetesConfigTable: Component<{{kind()}</TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}><span class="inline-block max-w-[13rem] truncate" title={scope()}>{scope()}diff --git a/frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsxindex 547d920c67..56a6885ed4 100644--- a/frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx+++ b/frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx@@ -285,7 +285,7 @@ export const KubernetesControllersTable: Component<{kind="text"sort={sort}sortKey="kind"- class="platform-table-mobile-w-25 md:w-[9%]"+ class="platform-table-mobile-w-15 md:w-[9%]">Kind</PlatformSortableTableHead>@@ -301,7 +301,7 @@ export const KubernetesControllersTable: Component<{kind="text"sort={sort}sortKey="target"- class="hidden sm:table-cell md:w-[12%]"+ class="platform-table-mobile-w-20 md:w-[12%]">Target</PlatformSortableTableHead>@@ -403,7 +403,7 @@ export const KubernetesControllersTable: Component<{</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}><span class="inline-block max-w-[12rem] truncate" title={target()}>{target()}diff --git a/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsxindex 731450f912..6183e80875 100644--- a/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx+++ b/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx@@ -4,6 +4,7 @@ import { TableCell, TableHead, TableRow } from '@/components/shared/Table';import { asTrimmedString } from '@/utils/stringUtils';import {PLATFORM_HEALTH_FILTER_OPTIONS,+ PlatformResponsiveTableLabel,PlatformTableEmptyState,PlatformTableNumberValue,PlatformTableRelativeTimeValue,@@ -105,7 +106,9 @@ export const KubernetesEventsTable: Component<{tableClass="min-w-full table-fixed text-xs md:min-w-[1180px]"header={<>- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[16%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('name')} platform-table-mobile-w-30 md:w-[16%]`}+ >Event</TableHead><TableHead@@ -113,24 +116,30 @@ export const KubernetesEventsTable: Component<{>Scope</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[10%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[10%]`}+ >Type</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[14%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[14%]`}+ >Reason</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden sm:table-cell md:w-[15%]`}+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-20 md:w-[15%]`}>Object</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[7%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('numeric-value')} platform-table-mobile-w-10 md:w-[7%]`}+ >Count</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[13%]`}+ class={`${getPlatformTableHeadClassForKind('numeric-value')} platform-table-mobile-w-10 md:w-[13%]`}>- Observed+ <PlatformResponsiveTableLabel compact="Seen" full="Observed" /></TableHead><TableHeadclass={`${getPlatformTableHeadClassForKind('text')} hidden sm:table-cell md:w-[10%]`}@@ -206,7 +215,7 @@ export const KubernetesEventsTable: Component<{</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}><spanclass="inline-block max-w-[13rem] truncate"@@ -221,7 +230,7 @@ export const KubernetesEventsTable: Component<{<PlatformTableNumberValue value={resource.kubernetes?.count} /></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}><spanclass="inline-block max-w-[12rem] truncate"diff --git a/frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsxindex 7c1b0cc528..5057ecda09 100644--- a/frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx+++ b/frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx@@ -210,7 +210,7 @@ export const KubernetesNetworkingTable: Component<{kind="text"sort={sort}sortKey="kind"- class="kubernetes-network-kind-column md:w-[12%]"+ class="kubernetes-network-kind-column platform-table-mobile-w-15 md:w-[12%]">Kind</PlatformSortableTableHead>@@ -218,7 +218,7 @@ export const KubernetesNetworkingTable: Component<{kind="text"sort={sort}sortKey="scope"- class="hidden sm:table-cell md:w-[14%]"+ class="platform-table-mobile-w-20 md:w-[14%]">Scope</PlatformSortableTableHead>@@ -226,7 +226,7 @@ export const KubernetesNetworkingTable: Component<{kind="text"sort={sort}sortKey="typeClass"- class="kubernetes-network-class-column md:w-[12%]"+ class="kubernetes-network-class-column platform-table-mobile-w-15 md:w-[12%]"><PlatformResponsiveTableLabel compact="Class" full="Type / class" /></PlatformSortableTableHead>@@ -240,7 +240,7 @@ export const KubernetesNetworkingTable: Component<{<PlatformSortableTableHeadkind="text"sort={sort}- class="kubernetes-network-ports-column md:w-[12%]"+ class="kubernetes-network-ports-column platform-table-mobile-w-20 md:w-[12%]">Ports</PlatformSortableTableHead>@@ -305,7 +305,7 @@ export const KubernetesNetworkingTable: Component<{{networkKind(resource)}</TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}><span class="inline-block max-w-[12rem] truncate" title={scope()}>{scope()}diff --git a/frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsxindex e472b627a4..ff17c4a438 100644--- a/frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx+++ b/frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx@@ -239,21 +239,29 @@ export const KubernetesPolicyTable: Component<{tableClass="min-w-full table-fixed text-xs md:min-w-[1180px]"header={<>- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[17%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('name')} platform-table-mobile-w-30 md:w-[17%]`}+ >Resource</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[14%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[14%]`}+ >Kind</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden sm:table-cell md:w-[15%]`}+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[15%]`}>Scope</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[15%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-20 md:w-[15%]`}+ ><PlatformResponsiveTableLabel compact="Policy" full="Policy shape" /></TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[16%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-20 md:w-[16%]`}+ ><PlatformResponsiveTableLabel compact="Limits" full="Spec / limits" /></TableHead><TableHead@@ -318,7 +326,7 @@ export const KubernetesPolicyTable: Component<{{policyKind(resource)}</TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}><span class="inline-block max-w-[13rem] truncate" title={scope()}>{scope()}diff --git a/frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsxindex 05a2d4b88c..e149383276 100644--- a/frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx+++ b/frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx@@ -272,7 +272,7 @@ export const KubernetesStorageTable: Component<{kind="name"sort={sort}sortKey="resource"- class="md:w-[19%]"+ class="platform-table-mobile-w-30 md:w-[19%]">Resource</PlatformSortableTableHead>@@ -280,7 +280,7 @@ export const KubernetesStorageTable: Component<{kind="text"sort={sort}sortKey="kind"- class="md:w-[10%]"+ class="platform-table-mobile-w-15 md:w-[10%]">Kind</PlatformSortableTableHead>@@ -296,7 +296,7 @@ export const KubernetesStorageTable: Component<{kind="text"sort={sort}sortKey="phase"- class="md:w-[14%]"+ class="platform-table-mobile-w-20 md:w-[14%]"><PlatformResponsiveTableLabel compact="State" full="Binding / phase" /></PlatformSortableTableHead>@@ -304,7 +304,7 @@ export const KubernetesStorageTable: Component<{kind="text"sort={sort}sortKey="class"- class="hidden sm:table-cell md:w-[10%]"+ class="platform-table-mobile-w-20 md:w-[10%]">Class</PlatformSortableTableHead>@@ -312,7 +312,7 @@ export const KubernetesStorageTable: Component<{kind="numeric-value"sort={sort}sortKey="size"- class="md:w-[8%]"+ class="platform-table-mobile-w-15 md:w-[8%]">Size</PlatformSortableTableHead>@@ -394,7 +394,7 @@ export const KubernetesStorageTable: Component<{{bindingOrPhase(resource)}</TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>{storageClass(resource)}</TableCell>diff --git a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.tsindex 56871c4f2c..843a25c68c 100644--- a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts+++ b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts@@ -338,32 +338,32 @@ describe('platform overview layout guardrails', () => {/sortKey="scope"[\s\S]{0,120}?class="w-\[15%\] md:w-\[15%\]"/,);expect(kubernetesNetworkingTableSource).toMatch(- /sortKey="scope"[\s\S]{0,120}?class="hidden sm:table-cell md:w-\[14%\]"/,+ /sortKey="scope"[\s\S]{0,120}?class="platform-table-mobile-w-20 md:w-\[14%\]"/,);expect(kubernetesStorageTableSource).toMatch(- /sortKey="class"[\s\S]{0,120}?class="hidden sm:table-cell md:w-\[10%\]"/,+ /sortKey="class"[\s\S]{0,120}?class="platform-table-mobile-w-20 md:w-\[10%\]"/,);expect(kubernetesConfigTableSource).toMatch(- /sortKey="scope"[\s\S]{0,120}?class="hidden sm:table-cell md:w-\[16%\]"/,+ /sortKey="scope"[\s\S]{0,120}?class="platform-table-mobile-w-20 md:w-\[16%\]"/,);expect(kubernetesPolicyTableSource).toContain(- "getPlatformTableHeadClassForKind('text')} hidden sm:table-cell md:w-[15%]",+ "getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[15%]",);});it('keeps remaining platform phone identity and actions usable', () => {expect(truenasStorageTopologyTableSource).toMatch(- /sortKey="kind"[\s\S]{0,120}?class="hidden sm:table-cell md:w-\[10%\]"/,+ /sortKey="kind"[\s\S]{0,120}?class="platform-table-mobile-w-15 md:w-\[10%\]"/,);expect(truenasStorageTopologyTableSource).toContain("return 'pl-6 sm:pl-11'");expect(truenasStorageTopologyTableSource).toMatch(- /sortKey="resource"[\s\S]{0,120}?class="w-\[47%\] md:w-\[32%\]"/,+ /sortKey="resource"[\s\S]{0,120}?class="platform-table-mobile-w-30 md:w-\[32%\]"/,);expect(vsphereNetworksTableSource).toMatch(- /sortKey="network"[\s\S]{0,120}?class="w-\[80%\] sm:w-\[45%\] md:w-\[24%\]"/,+ /sortKey="network"[\s\S]{0,120}?class="platform-table-mobile-w-30 md:w-\[24%\]"/,);expect(vsphereNetworksTableSource).toMatch(- /sortKey="type"[\s\S]{0,120}?class="hidden sm:table-cell sm:w-\[35%\] md:w-\[13%\]"/,+ /sortKey="type"[\s\S]{0,120}?class="platform-table-mobile-w-15 md:w-\[13%\]"/,);expect(agentsMachinesTableSource).toContain('class="min-h-11 min-w-11 sm:min-h-0 sm:min-w-0"');expect(agentsMachinesTableSource).toContain(@@ -400,7 +400,8 @@ describe('platform overview layout guardrails', () => {expect(dockerPageSurfaceSource).toContain('<DockerVolumesTable');expect(dockerPageSurfaceSource).toContain('<DockerNetworksTable');expect(dockerNetworksTableSource).toContain('DOCKER_NETWORK_COLUMN_WIDTH_CLASS');- expect(dockerNetworksTableSource).toContain("attached: 'w-[35%]'");+ expect(dockerNetworksTableSource).toContain("attached: 'w-[25%]'");+ expect(dockerNetworksTableSource).toContain("driver: 'w-[15%]'");expect(dockerNetworksTableSource).toContain("attention: 'w-[15%]'");expect(dockerPageSurfaceSource).not.toContain('<WorkloadsSurface');expect(dockerPageSurfaceSource).toContain('<DockerSwarmNodesTable');@@ -476,7 +477,7 @@ describe('platform overview layout guardrails', () => {expect(vmwarePageSurfaceSource).toContain('<VsphereDatastoresTable');expect(vmwarePageSurfaceSource).toContain('<VsphereNetworksTable');expect(vsphereNetworksTableSource).toMatch(- /sortKey="vms"[\s\S]{0,120}?class="w-\[20%\] md:w-\[7%\]"/,+ /sortKey="vms"[\s\S]{0,120}?class="platform-table-mobile-w-15 md:w-\[7%\]"/,);expect(vmwarePageSurfaceSource).toContain('<VsphereActivityTable');expect(vmwarePageSurfaceSource).not.toContain('<StorageSurface');diff --git a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.tsindex da004b42f9..e4d8688181 100644--- a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts+++ b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts@@ -103,12 +103,12 @@ describe('getPlatformTableResponsiveMinWidthClass', () => {});it('removes the conflicting full-width minimum when composing table classes', () => {- expect(getPlatformTableClass()).toBe('min-w-[0px]');+ expect(getPlatformTableClass()).toBe('platform-table min-w-[0px]');expect(getPlatformTableClass('min-w-full table-fixed text-xs md:min-w-[1120px]')).toBe(- 'min-w-[0px] table-fixed text-xs',+ 'platform-table min-w-[0px] table-fixed text-xs',);expect(getPlatformTableClass('min-w-full min-w-[850px] table-fixed md:min-w-[1320px]')).toBe(- 'min-w-[850px] table-fixed',+ 'platform-table min-w-[850px] table-fixed',);});});@@ -710,6 +710,19 @@ describe('getPlatformTableWeightedColumnWidthStyle', () => {it('returns a zero width when no visible weighted columns are present', () => {expect(getPlatformTableWeightedColumnWidthStyle('node', {}, [])).toEqual({ width: '0%' });});++ it('pins the phone identity track and normalizes the remaining visible columns', () => {+ const weights = { name: 40, cpu: 20, memory: 20, disk: 20 };+ const visibleColumnIds = ['name', 'cpu', 'memory', 'disk'] as const;+ const anchor = { columnId: 'name' as const, widthPercent: 30 };++ expect(+ getPlatformTableWeightedColumnWidthStyle('name', weights, visibleColumnIds, anchor),+ ).toEqual({ width: '30%' });+ expect(+ getPlatformTableWeightedColumnWidthStyle('cpu', weights, visibleColumnIds, anchor),+ ).toEqual({ width: '23.3333%' });+ });});describe('formatPlatformTableIntegerValue', () => {diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsxindex 22c4d635b8..07f6fd8333 100644--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx@@ -237,6 +237,8 @@ export const getPlatformTableContainerLayout = (export const PLATFORM_TABLE_CARD_CLASS = 'rounded-md';export const PLATFORM_TABLE_HEADER_ROW_CLASS = 'bg-surface-alt text-muted border-b border-border';export const PLATFORM_TABLE_BODY_CLASS = 'divide-y divide-border';+export const PLATFORM_TABLE_CLASS = 'platform-table';+export const PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT = 30;// Responsive platform tables already decide which columns remain useful at// each breakpoint. A shared 48rem floor defeated that work by forcing a// horizontal rail even when the visible columns could fit the real container.@@ -265,7 +267,9 @@ export function getPlatformTableClass(tableClass?: string): string {).join(' ');- return `${getPlatformTableResponsiveMinWidthClass(tableClass)} ${featureClasses}`.trim();+ return [PLATFORM_TABLE_CLASS, getPlatformTableResponsiveMinWidthClass(tableClass), featureClasses]+ .filter(Boolean)+ .join(' ');}export type PlatformTableShellProps = {@@ -699,8 +703,27 @@ export const getPlatformTableWeightedColumnWidthStyle = <ColumnId extends stringcolumnId: ColumnId,weights: Partial<Record<ColumnId, number>>,visibleColumnIds: readonly ColumnId[],+ anchor?: {+ columnId: ColumnId;+ widthPercent: number;+ },): JSX.CSSProperties => {const columnWeight = weights[columnId] ?? 0;+ const anchorIsVisible = anchor !== undefined && visibleColumnIds.includes(anchor.columnId);+ if (anchorIsVisible) {+ const anchorWidth = Math.min(100, Math.max(0, anchor.widthPercent));+ if (columnId === anchor.columnId) {+ return { width: formatPlatformTableWidthPercentage(anchorWidth) };+ }++ const remainingWeight = visibleColumnIds.reduce(+ (total, id) => total + (id === anchor.columnId ? 0 : (weights[id] ?? 0)),+ 0,+ );+ const width = remainingWeight > 0 ? (columnWeight / remainingWeight) * (100 - anchorWidth) : 0;+ return { width: formatPlatformTableWidthPercentage(width) };+ }+const totalWeight = visibleColumnIds.reduce((total, id) => total + (weights[id] ?? 0), 0);const width = totalWeight > 0 ? (columnWeight / totalWeight) * 100 : 0;diff --git a/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx b/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsxindex 7615bf9e4f..da7696c006 100644--- a/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx@@ -160,7 +160,7 @@ export const ProxmoxCephClusterDrawer: Component<{when={pools().length > 0}fallback={<p class="text-xs text-muted">No pools reported.</p>}>- <Table class="min-w-0 table-fixed text-xs">+ <Table class="platform-table min-w-0 table-fixed text-xs"><TableHeader><TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}><TableHead class={getPlatformTableHeadClassForKind('name')}>Pool</TableHead>@@ -233,7 +233,7 @@ export const ProxmoxCephClusterDrawer: Component<{when={services().length > 0}fallback={<p class="text-xs text-muted">No services reported.</p>}>- <Table class="min-w-0 table-fixed text-xs">+ <Table class="platform-table min-w-0 table-fixed text-xs"><TableHeader><TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}><TableHead class={getPlatformTableHeadClassForKind('name')}>Service</TableHead>diff --git a/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsxindex e992cefad2..d0832a15fb 100644--- a/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx@@ -54,8 +54,8 @@ export const CEPH_PHONE_COLUMNS: readonly CephPhoneColumn[] = [];export const CEPH_PHONE_COLUMN_WIDTHS: Readonly<Record<CephPhoneColumn, number>> = {- cluster: 31,- health: 14,+ cluster: 30,+ health: 15,quorum: 13,osds: 14,pools: 14,diff --git a/frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsxindex c06f6fb226..171887fe77 100644--- a/frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx@@ -44,9 +44,9 @@ type ReplicationColumn =| 'error';export const REPLICATION_PHONE_COLUMNS: readonly ReplicationColumn[] = [+ 'guest','status','job',- 'guest','route','lastSync','nextSync',@@ -54,10 +54,10 @@ export const REPLICATION_PHONE_COLUMNS: readonly ReplicationColumn[] = [export const REPLICATION_PHONE_COLUMN_WIDTHS: Readonly<Partial<Record<ReplicationColumn, number>>> ={- status: 17,- job: 13,- guest: 26,- route: 19,+ status: 15,+ job: 12,+ guest: 30,+ route: 18,lastSync: 13,nextSync: 12,};@@ -67,10 +67,10 @@ const REPLICATION_COLUMN_WIDTH_CLASS: Record<Record<ReplicationColumn, string>> = {compact: {- status: 'w-[17%]',- job: 'w-[13%]',- guest: 'w-[26%]',- route: 'w-[19%]',+ status: 'w-[15%]',+ job: 'w-[12%]',+ guest: 'w-[30%]',+ route: 'w-[18%]',schedule: 'w-0',lastSync: 'w-[13%]',nextSync: 'w-[12%]',@@ -369,6 +369,11 @@ export const ProxmoxReplicationTable: Component<{}header={<>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('name')} ${columnWidthClass('guest')}`}+ >+ Guest+ </TableHead><TableHeadclass={`${getPlatformTableHeadClassForKind('text')} ${columnWidthClass('status')}`}>@@ -381,11 +386,6 @@ export const ProxmoxReplicationTable: Component<{Job</TableHead></Show>- <TableHead- class={`${getPlatformTableHeadClassForKind('name')} ${columnWidthClass('guest')}`}- >- Guest- </TableHead><TableHeadclass={`${getPlatformTableHeadClassForKind('text')} ${columnWidthClass('route')}`}title="Source → target"@@ -443,6 +443,11 @@ export const ProxmoxReplicationTable: Component<{const targetNode = (job.targetNode ?? '').trim() || '—';return (<TableRow class="hover:bg-surface-hover">+ <TableCell+ class={`${getPlatformTableCellClassForKind('name')} text-base-content`}+ >+ {formatGuestLabel(job)}+ </TableCell><TableCell class={getPlatformTableCellClassForKind('text')}><div class="flex items-center gap-2"><StatusDot@@ -463,11 +468,6 @@ export const ProxmoxReplicationTable: Component<{<span title={job.id}>{job.jobId || job.id}</span></TableCell></Show>- <TableCell- class={`${getPlatformTableCellClassForKind('name')} text-base-content`}- >- {formatGuestLabel(job)}- </TableCell><TableCellclass={`${getPlatformTableCellClassForKind('text')} text-base-content`}>diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxCephTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxCephTable.test.tsxindex c6f6db69cb..3fbeeb7d53 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxCephTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxCephTable.test.tsx@@ -45,8 +45,8 @@ describe('ProxmoxCephTable', () => {'capacity',]);expect(CEPH_PHONE_COLUMN_WIDTHS).toEqual({- cluster: 31,- health: 14,+ cluster: 30,+ health: 15,quorum: 13,osds: 14,pools: 14,diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxReplicationTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxReplicationTable.test.tsxindex cc36d8256e..bfbf2af598 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxReplicationTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxReplicationTable.test.tsx@@ -32,18 +32,18 @@ afterEach(() => {describe('ProxmoxReplicationTable', () => {it('keeps identity, route, and both sync horizons visible on phones', () => {expect(REPLICATION_PHONE_COLUMNS).toEqual([+ 'guest','status','job',- 'guest','route','lastSync','nextSync',]);expect(REPLICATION_PHONE_COLUMN_WIDTHS).toEqual({- status: 17,- job: 13,- guest: 26,- route: 19,+ status: 15,+ job: 12,+ guest: 30,+ route: 18,lastSync: 13,nextSync: 12,});diff --git a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupsTablePresentation.test.ts b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupsTablePresentation.test.tsindex f53feb1851..45d7aca8b2 100644--- a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupsTablePresentation.test.ts+++ b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupsTablePresentation.test.ts@@ -46,8 +46,8 @@ describe('Proxmox backups responsive table presentation', () => {'used','backups',]);- expect(getBackupServerColumnWidthStyle('server', 'compact')).toEqual({ width: '31%' });- expect(getBackupServerColumnWidthStyle('used', 'compact')).toEqual({ width: '22%' });+ expect(getBackupServerColumnWidthStyle('server', 'compact')).toEqual({ width: '30%' });+ expect(getBackupServerColumnWidthStyle('used', 'compact')).toEqual({ width: '22.3188%' });expect(ids(getBackupServerColumns('basic'))).toEqual(['server','status',@@ -85,7 +85,7 @@ describe('Proxmox backups responsive table presentation', () => {ids(getCoverageColumns('compact', everySource)),),).toEqual({- width: '28%',+ width: '30%',});expect(ids(getCoverageColumns('operational', everySource))).toEqual(['workload',diff --git a/frontend-modern/src/features/proxmox/__tests__/proxmoxHostTableModel.test.ts b/frontend-modern/src/features/proxmox/__tests__/proxmoxHostTableModel.test.tsindex 94ed567c8d..f64902e1c3 100644--- a/frontend-modern/src/features/proxmox/__tests__/proxmoxHostTableModel.test.ts+++ b/frontend-modern/src/features/proxmox/__tests__/proxmoxHostTableModel.test.ts@@ -14,10 +14,10 @@ describe('proxmoxHostTableModel', () => {expect(ids).toEqual(['node', 'cpu', 'memory', 'disk', 'temp', 'uptime']);expect(getProxmoxHostTableMinWidthClass('phone')).toBe('min-w-[0px]');- expect(getProxmoxHostColumnWidthStyle('node', 'phone', ids)).toEqual({ width: '32%' });- expect(getProxmoxHostColumnWidthStyle('disk', 'phone', ids)).toEqual({ width: '13%' });- expect(getProxmoxHostColumnWidthStyle('temp', 'phone', ids)).toEqual({ width: '15%' });- expect(getProxmoxHostColumnWidthStyle('uptime', 'phone', ids)).toEqual({ width: '14%' });+ expect(getProxmoxHostColumnWidthStyle('node', 'phone', ids)).toEqual({ width: '30%' });+ expect(getProxmoxHostColumnWidthStyle('disk', 'phone', ids)).toEqual({ width: '13.3824%' });+ expect(getProxmoxHostColumnWidthStyle('temp', 'phone', ids)).toEqual({ width: '15.4412%' });+ expect(getProxmoxHostColumnWidthStyle('uptime', 'phone', ids)).toEqual({ width: '14.4118%' });});it('prioritizes live utilization columns in the mobile host table', () => {@@ -26,12 +26,16 @@ describe('proxmoxHostTableModel', () => {expect(ids).toEqual(['node', 'cpu', 'memory', 'disk', 'temp', 'uptime']);expect(getProxmoxHostTableMinWidthClass('mobile')).toBe('min-w-[0px]');- expect(getProxmoxHostColumnWidthStyle('node', 'mobile', ids)).toEqual({ width: '32%' });- expect(getProxmoxHostColumnWidthStyle('cpu', 'mobile', ids)).toEqual({ width: '13%' });- expect(getProxmoxHostColumnWidthStyle('memory', 'mobile', ids)).toEqual({ width: '13%' });- expect(getProxmoxHostColumnWidthStyle('disk', 'mobile', ids)).toEqual({ width: '13%' });- expect(getProxmoxHostColumnWidthStyle('temp', 'mobile', ids)).toEqual({ width: '15%' });- expect(getProxmoxHostColumnWidthStyle('uptime', 'mobile', ids)).toEqual({ width: '14%' });+ expect(getProxmoxHostColumnWidthStyle('node', 'mobile', ids)).toEqual({ width: '30%' });+ expect(getProxmoxHostColumnWidthStyle('cpu', 'mobile', ids)).toEqual({ width: '13.3824%' });+ expect(getProxmoxHostColumnWidthStyle('memory', 'mobile', ids)).toEqual({+ width: '13.3824%',+ });+ expect(getProxmoxHostColumnWidthStyle('disk', 'mobile', ids)).toEqual({ width: '13.3824%' });+ expect(getProxmoxHostColumnWidthStyle('temp', 'mobile', ids)).toEqual({ width: '15.4412%' });+ expect(getProxmoxHostColumnWidthStyle('uptime', 'mobile', ids)).toEqual({+ width: '14.4118%',+ });});it('adds operational context before inventory metadata on tablet', () => {diff --git a/frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts b/frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.tsindex b741aaf1e2..f6c90a458c 100644--- a/frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts+++ b/frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts@@ -1,7 +1,10 @@import type { JSX } from 'solid-js';import type { PlatformTableColumnKind } from '@/features/platformPage/columnAlignment';-import { getPlatformTableWeightedColumnWidthStyle } from '@/features/platformPage/sharedPlatformPage';+import {+ getPlatformTableWeightedColumnWidthStyle,+ PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT,+} from '@/features/platformPage/sharedPlatformPage';export type ProxmoxBackupsTableLayoutMode ='compact' | 'basic' | 'operational' | 'expanded' | 'full';@@ -151,6 +154,9 @@ export const getBackupServerColumnWidthStyle = (columnId,BACKUP_SERVER_WEIGHTS[layout],BACKUP_SERVER_VISIBLE[layout],+ layout === 'compact' || layout === 'basic'+ ? { columnId: 'server', widthPercent: PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT }+ : undefined,);export const COVERAGE_COLUMNS: readonly BackupTableColumn<CoverageColumnId>[] = [@@ -244,7 +250,14 @@ export const getCoverageColumnWidthStyle = (layout: ProxmoxBackupsTableLayoutMode,visibleColumnIds: readonly CoverageColumnId[],): JSX.CSSProperties =>- getPlatformTableWeightedColumnWidthStyle(columnId, COVERAGE_WEIGHTS[layout], visibleColumnIds);+ getPlatformTableWeightedColumnWidthStyle(+ columnId,+ COVERAGE_WEIGHTS[layout],+ visibleColumnIds,+ layout === 'compact' || layout === 'basic'+ ? { columnId: 'workload', widthPercent: PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT }+ : undefined,+ );export const RECOVERABLE_COLUMNS: readonly BackupTableColumn<RecoverableColumnId>[] = [{ id: 'workload', label: 'Workload', kind: 'name' },@@ -321,6 +334,9 @@ export const getRecoverableColumnWidthStyle = (columnId,RECOVERABLE_WEIGHTS[layout],RECOVERABLE_VISIBLE[layout],+ layout === 'compact' || layout === 'basic'+ ? { columnId: 'workload', widthPercent: PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT }+ : undefined,);export const isCompactBackupIdentityLayout = (layout: ProxmoxBackupsTableLayoutMode): boolean =>diff --git a/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts b/frontend-modern/src/features/proxmox/proxmoxHostTableModel.tsindex 572570ef59..400bbda2e6 100644--- a/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts+++ b/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts@@ -2,7 +2,10 @@ import type { JSX } from 'solid-js';import type { WorkloadTableLayoutMode } from '@/components/Workloads/guestRowModel';import type { PlatformTableColumnKind } from '@/features/platformPage/columnAlignment';-import { getPlatformTableWeightedColumnWidthStyle } from '@/features/platformPage/sharedPlatformPage';+import {+ getPlatformTableWeightedColumnWidthStyle,+ PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT,+} from '@/features/platformPage/sharedPlatformPage';export type ProxmoxHostTableColumnId ='node' | 'version' | 'uptime' | 'cpu' | 'memory' | 'disk' | 'temp' | 'vms' | 'cts' | 'cluster';@@ -140,7 +143,14 @@ export const getProxmoxHostColumnWidthStyle = (): JSX.CSSProperties => {const weights =layoutMode === 'wide' ? HOST_COLUMN_DESKTOP_WIDTHS : HOST_COLUMN_RESPONSIVE_WEIGHTS[layoutMode];- return getPlatformTableWeightedColumnWidthStyle(columnId, weights, visibleColumnIds);+ return getPlatformTableWeightedColumnWidthStyle(+ columnId,+ weights,+ visibleColumnIds,+ layoutMode === 'phone' || layoutMode === 'mobile'+ ? { columnId: 'node', widthPercent: PLATFORM_TABLE_PHONE_IDENTITY_WIDTH_PERCENT }+ : undefined,+ );};// The compact identity-plus-metrics layout is deliberately percentage based,diff --git a/frontend-modern/src/features/standalone/AvailabilityChecksTable.tsx b/frontend-modern/src/features/standalone/AvailabilityChecksTable.tsxindex f14ee14b64..f9aa65169b 100644--- a/frontend-modern/src/features/standalone/AvailabilityChecksTable.tsx+++ b/frontend-modern/src/features/standalone/AvailabilityChecksTable.tsx@@ -7,6 +7,7 @@ import { StatusDot } from '@/components/shared/StatusDot';import { TableCell, TableHead, TableRow } from '@/components/shared/Table';import {PLATFORM_HEALTH_FILTER_OPTIONS,+ PlatformResponsiveTableLabel,PlatformTableDurationValue,PlatformTableEmptyState,PlatformTableRelativeTimeValue,@@ -134,28 +135,30 @@ export const AvailabilityChecksTable: Component<{tableClass="min-w-full table-fixed text-xs md:min-w-[900px]"header={<>- <TableHead class={`${getPlatformTableHeadClassForKind('name')} w-[42%] md:w-[20%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('name')} platform-table-mobile-w-30 md:w-[20%]`}+ >Check</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[12%]`}+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[12%]`}>Method</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[22%]`}+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-25 md:w-[22%]`}>Target</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('numeric-value')} w-[28%] md:w-[12%]`}+ class={`${getPlatformTableHeadClassForKind('numeric-value')} platform-table-mobile-w-15 md:w-[12%]`}>Result</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[10%]`}+ class={`${getPlatformTableHeadClassForKind('numeric-value')} platform-table-mobile-w-15 md:w-[10%]`}>- Checked+ <PlatformResponsiveTableLabel compact="Seen" full="Checked" /></TableHead><TableHeadclass={`${getPlatformTableHeadClassForKind('numeric-value')} hidden lg:table-cell lg:w-[10%]`}@@ -196,9 +199,7 @@ export const AvailabilityChecksTable: Component<{data-availability-check-row={check.id}class="text-[11px] sm:text-xs">- <TableCell- class={`${getPlatformTableCellClassForKind('name')} w-[42%] md:w-auto`}- >+ <TableCell class={getPlatformTableCellClassForKind('name')}><div class="flex min-w-0 items-center gap-2"><StatusDotsize="sm"@@ -213,24 +214,21 @@ export const AvailabilityChecksTable: Component<{{check.name}</span></div>- <span class="mt-0.5 block truncate pl-5 text-[9px] text-muted sm:text-[10px] md:hidden">- {method()} · {target()}- </span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>{method()}</TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}><span class="block truncate" title={target()}>{target()}</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('numeric-value')} w-[28%] text-base-content md:w-auto`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}><span class={probe()?.toneClassName ?? ''} title={probe()?.detailLabel}>{result()}@@ -250,7 +248,7 @@ export const AvailabilityChecksTable: Component<{</Show></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content md:table-cell`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}><PlatformTableRelativeTimeValuevalue={availability()?.lastChecked}diff --git a/frontend-modern/src/features/standalone/__tests__/AvailabilityChecksTable.test.tsx b/frontend-modern/src/features/standalone/__tests__/AvailabilityChecksTable.test.tsxindex d204fd00a2..27fe2ec47a 100644--- a/frontend-modern/src/features/standalone/__tests__/AvailabilityChecksTable.test.tsx+++ b/frontend-modern/src/features/standalone/__tests__/AvailabilityChecksTable.test.tsx@@ -72,6 +72,21 @@ describe('AvailabilityChecksTable', () => {expect(screen.getByText('7 ms')).toBeInTheDocument();});+ it('keeps five high-value columns visible in the shared phone layout', () => {+ const { container } = renderTable([availabilityResource()]);+ const headers = [...container.querySelectorAll('thead th')];++ expect(headers).toHaveLength(8);+ expect(headers[0]).toHaveClass('platform-table-name-column', 'platform-table-mobile-w-30');+ expect(headers[1]).toHaveClass('platform-table-mobile-w-15');+ expect(headers[1]).not.toHaveClass('hidden');+ expect(headers[2]).toHaveClass('platform-table-mobile-w-25');+ expect(headers[2]).not.toHaveClass('hidden');+ expect(headers[3]).toHaveClass('platform-table-mobile-w-15');+ expect(headers[4]).toHaveClass('platform-table-mobile-w-15');+ expect(headers[4]).not.toHaveClass('hidden');+ });+it('places failing checks before healthy checks by default', () => {const view = renderTable([availabilityResource({ id: 'healthy', name: 'Healthy', displayName: 'Healthy' }),diff --git a/frontend-modern/src/features/storageBackups/__tests__/storagePagePresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/storagePagePresentation.test.tsindex 2accfcbcb4..15eb436d90 100644--- a/frontend-modern/src/features/storageBackups/__tests__/storagePagePresentation.test.ts+++ b/frontend-modern/src/features/storageBackups/__tests__/storagePagePresentation.test.ts@@ -52,8 +52,8 @@ describe('storagePagePresentation', () => {expect(getStoragePoolColumnWidthPercent('operational', 'usage')).toBe(21);expect(isStoragePoolColumnVisible('compact', 'host')).toBe(true);expect(isStoragePoolColumnVisible('compact', 'protection')).toBe(true);- expect(getStoragePoolColumnWidthPercent('compact', 'name')).toBe(33);- expect(getStoragePoolColumnWidthPercent('compact', 'usage')).toBe(12);+ expect(getStoragePoolColumnWidthPercent('compact', 'name')).toBe(30);+ expect(getStoragePoolColumnWidthPercent('compact', 'usage')).toBe(13);expect(getStoragePoolColumnWidthPercent('compact', 'growth')).toBe(0);});});diff --git a/frontend-modern/src/features/storageBackups/storagePagePresentation.ts b/frontend-modern/src/features/storageBackups/storagePagePresentation.tsindex 6ce48d6373..eb58296720 100644--- a/frontend-modern/src/features/storageBackups/storagePagePresentation.ts+++ b/frontend-modern/src/features/storageBackups/storagePagePresentation.ts@@ -1,4 +1,5 @@import type { StorageSortKey } from './storageModelCore';+import type { PlatformTableColumnKind } from '@/features/platformPage/columnAlignment';export type StorageViewOption = {value: 'pools' | 'disks';@@ -15,6 +16,7 @@ export type StoragePoolTableColumn = {sortKey: StorageSortKey;className: string;colClassName: string;+ kind: PlatformTableColumnKind;};export type StoragePoolTableLayoutMode = 'compact' | 'operational' | 'full';@@ -42,7 +44,7 @@ const STORAGE_POOL_COLUMN_WIDTHS: Record<StoragePoolTableLayoutMode,Partial<Record<StoragePoolTableColumnId, number>>> = {- compact: { name: 33, state: 16, type: 12, host: 15, protection: 12, usage: 12 },+ compact: { name: 30, state: 16, type: 13, host: 16, protection: 12, usage: 13 },operational: { name: 29, state: 20, host: 15, protection: 15, usage: 21 },full: { name: 20, state: 14, type: 10, host: 12, protection: 13, usage: 20, growth: 11 },};@@ -58,7 +60,7 @@ export const getStoragePoolColumnWidthPercent = (): number => STORAGE_POOL_COLUMN_WIDTHS[layout][columnId] ?? 0;const STORAGE_POOL_TABLE_HEADER_CLASS =- 'overflow-hidden text-ellipsis whitespace-nowrap px-1 sm:px-1.5 lg:px-2 py-0.5 text-left text-[10px] sm:text-[11px] lg:text-xs font-medium uppercase tracking-wider';+ 'overflow-hidden text-ellipsis whitespace-nowrap text-[10px] sm:text-[11px] lg:text-xs uppercase tracking-wider';export const STORAGE_VIEW_OPTIONS: readonly StorageViewOption[] = [{ value: 'pools', label: 'Storage' },@@ -75,6 +77,7 @@ export const getStoragePoolTableColumns = (sortKey: 'name',className: STORAGE_POOL_TABLE_HEADER_CLASS,colClassName: '',+ kind: 'name',},{id: 'state',@@ -83,6 +86,7 @@ export const getStoragePoolTableColumns = (sortKey: 'state',className: STORAGE_POOL_TABLE_HEADER_CLASS,colClassName: '',+ kind: 'text',},{id: 'type',@@ -91,6 +95,7 @@ export const getStoragePoolTableColumns = (sortKey: 'type',className: STORAGE_POOL_TABLE_HEADER_CLASS,colClassName: '',+ kind: 'text',},{id: 'host',@@ -99,6 +104,7 @@ export const getStoragePoolTableColumns = (sortKey: 'host',className: STORAGE_POOL_TABLE_HEADER_CLASS,colClassName: '',+ kind: 'text',},{id: 'protection',@@ -107,6 +113,7 @@ export const getStoragePoolTableColumns = (sortKey: 'protection',className: STORAGE_POOL_TABLE_HEADER_CLASS,colClassName: '',+ kind: 'badge',},{id: 'usage',@@ -115,6 +122,7 @@ export const getStoragePoolTableColumns = (sortKey: 'usage',className: STORAGE_POOL_TABLE_HEADER_CLASS,colClassName: '',+ kind: 'metric-bar',},{id: 'growth',@@ -123,13 +131,14 @@ export const getStoragePoolTableColumns = (sortKey: 'growth',className: STORAGE_POOL_TABLE_HEADER_CLASS,colClassName: '',+ kind: 'numeric-value',},];export const STORAGE_CONTENT_CARD_BODY_CLASS = 'p-2';export const STORAGE_POOLS_EMPTY_STATE_CLASS = 'p-6 text-sm text-muted';export const STORAGE_POOLS_LOADING_STATE_CLASS = 'p-6 text-sm text-muted';-export const STORAGE_POOLS_TABLE_CLASS = 'w-full table-fixed text-xs';+export const STORAGE_POOLS_TABLE_CLASS = 'platform-table w-full table-fixed text-xs';export const STORAGE_POOLS_HEADER_ROW_CLASS = 'bg-surface-alt text-muted border-b border-border';export const STORAGE_POOLS_BODY_CLASS = 'divide-y divide-border';diff --git a/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx b/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsxindex 4b691bf4b8..83f6691562 100644--- a/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx+++ b/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx@@ -165,19 +165,23 @@ export const TrueNASAlertsTable: Component<{<TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[20%]`}>Resource</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('badge')} md:w-[10%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('badge')} platform-table-mobile-w-15 md:w-[10%]`}+ >Severity</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[32%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-25 md:w-[32%]`}+ >Alert</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[13%]`}+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[13%]`}>Source</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden lg:table-cell md:w-[10%]`}+ class={`${getPlatformTableHeadClassForKind('numeric-value')} platform-table-mobile-w-15 md:w-[10%]`}>Started</TableHead>@@ -251,9 +255,7 @@ export const TrueNASAlertsTable: Component<{{incident.label}</span></TableCell>- <TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden md:table-cell`}- >+ <TableCell class={`${getPlatformTableCellClassForKind('text')}`}><span class="block truncate" title={incident.code}>{formatPlatformAlertCode(incident.code, 'truenas')}</span>@@ -262,7 +264,7 @@ export const TrueNASAlertsTable: Component<{</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content lg:table-cell`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}>{formatPlatformAlertStartedAt(incident.startedAt)}</TableCell>diff --git a/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx b/frontend-modern/src/features/truenas/TrueNASAppsTable.tsxindex 85394a4cb3..11220a6940 100644--- a/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx+++ b/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx@@ -245,7 +245,7 @@ export const TrueNASAppsTable: Component<{kind="name"sort={sort}sortKey="app"- class="truenas-app-name-column md:w-[17%]"+ class="platform-table-mobile-w-30 truenas-app-name-column md:w-[17%]">App</PlatformSortableTableHead>@@ -261,7 +261,7 @@ export const TrueNASAppsTable: Component<{kind="metric-bar"sort={sort}sortKey="cpu"- class="truenas-app-cpu-column md:w-[9%]"+ class="platform-table-mobile-w-15 truenas-app-cpu-column md:w-[9%]">CPU</PlatformSortableTableHead>@@ -269,7 +269,7 @@ export const TrueNASAppsTable: Component<{kind="metric-bar"sort={sort}sortKey="memory"- class="truenas-app-memory-column md:w-[12%]"+ class="platform-table-mobile-w-20 truenas-app-memory-column md:w-[12%]">Memory</PlatformSortableTableHead>@@ -277,7 +277,7 @@ export const TrueNASAppsTable: Component<{kind="numeric-value"sort={sort}sortKey="containers"- class="truenas-app-containers-column hidden sm:table-cell md:w-[12%]"+ class="platform-table-mobile-w-15 truenas-app-containers-column md:w-[12%]">Containers</PlatformSortableTableHead>@@ -299,7 +299,7 @@ export const TrueNASAppsTable: Component<{kind="badge"sort={sort}sortKey="updates"- class="truenas-app-updates-column md:w-[10%]"+ class="platform-table-mobile-w-20 truenas-app-updates-column md:w-[10%]"><PlatformResponsiveTableLabel compact="Upd." full="Updates" /></PlatformSortableTableHead>@@ -414,7 +414,7 @@ export const TrueNASAppsTable: Component<{</Show></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden sm:table-cell tabular-nums`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} tabular-nums`}>{appContainerCount(app()) || '-'}</TableCell>diff --git a/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx b/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsxindex e5728f4fde..ace20f4fd9 100644--- a/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx+++ b/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx@@ -186,7 +186,7 @@ export const TrueNASNetworkSharesTable: Component<{kind="name"sort={sort}sortKey="share"- class="md:w-[23%]"+ class="platform-table-mobile-w-30 md:w-[23%]">Share</PlatformSortableTableHead>@@ -194,7 +194,7 @@ export const TrueNASNetworkSharesTable: Component<{kind="text"sort={sort}sortKey="protocol"- class="md:w-[11%]"+ class="platform-table-mobile-w-15 md:w-[11%]">Protocol</PlatformSortableTableHead>@@ -202,11 +202,15 @@ export const TrueNASNetworkSharesTable: Component<{kind="text"sort={sort}sortKey="path"- class="hidden md:table-cell md:w-[27%]"+ class="platform-table-mobile-w-25 md:w-[27%]">Path</PlatformSortableTableHead>- <PlatformSortableTableHead kind="text" sort={sort} class="md:w-[19%]">+ <PlatformSortableTableHead+ kind="text"+ sort={sort}+ class="platform-table-mobile-w-15 md:w-[19%]"+ >Access</PlatformSortableTableHead><PlatformSortableTableHead@@ -220,7 +224,7 @@ export const TrueNASNetworkSharesTable: Component<{kind="badge"sort={sort}sortKey="state"- class="md:w-[7%]"+ class="platform-table-mobile-w-15 md:w-[7%]">State</PlatformSortableTableHead>@@ -284,7 +288,7 @@ export const TrueNASNetworkSharesTable: Component<{</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}><spanclass="block truncate font-mono text-[11px]"diff --git a/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx b/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsxindex 6f1ba23bdc..9b612227b9 100644--- a/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx+++ b/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx@@ -449,7 +449,7 @@ export const TrueNASProtectionTable: Component<{kind="name"sort={sort}sortKey="dataset"- class="md:w-[22%]"+ class="platform-table-mobile-w-30 md:w-[22%]">Dataset</PlatformSortableTableHead>@@ -457,7 +457,7 @@ export const TrueNASProtectionTable: Component<{kind="text"sort={sort}sortKey="artifact"- class="md:w-[25%]"+ class="platform-table-mobile-w-25 md:w-[25%]">Artifact</PlatformSortableTableHead>@@ -465,7 +465,7 @@ export const TrueNASProtectionTable: Component<{kind="text"sort={sort}sortKey="target"- class="hidden md:table-cell md:w-[23%]"+ class="platform-table-mobile-w-15 md:w-[23%]">Target</PlatformSortableTableHead>@@ -473,7 +473,7 @@ export const TrueNASProtectionTable: Component<{kind="numeric-value"sort={sort}sortKey="completed"- class="md:w-[12%]"+ class="platform-table-mobile-w-15 md:w-[12%]"><PlatformResponsiveTableLabel compact="Finished" full="Completed" /></PlatformSortableTableHead>@@ -489,7 +489,7 @@ export const TrueNASProtectionTable: Component<{kind="badge"sort={sort}sortKey="outcome"- class="md:w-[9%]"+ class="platform-table-mobile-w-15 md:w-[9%]">Outcome</PlatformSortableTableHead>@@ -545,9 +545,7 @@ export const TrueNASProtectionTable: Component<{</span></Show></TableCell>- <TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden md:table-cell`}- >+ <TableCell class={getPlatformTableCellClassForKind('text')}><span class="block truncate text-base-content" title={target()}>{target()}</span>diff --git a/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx b/frontend-modern/src/features/truenas/TrueNASServicesTable.tsxindex e96039790a..91d242a77b 100644--- a/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx+++ b/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx@@ -251,7 +251,7 @@ export const TrueNASServicesTable: Component<{kind="name"sort={sort}sortKey="service"- class="md:w-[24%]"+ class="platform-table-mobile-w-30 md:w-[24%]">Service</PlatformSortableTableHead>@@ -259,7 +259,7 @@ export const TrueNASServicesTable: Component<{kind="badge"sort={sort}sortKey="state"- class="md:w-[14%]"+ class="platform-table-mobile-w-15 md:w-[14%]">State</PlatformSortableTableHead>@@ -267,7 +267,7 @@ export const TrueNASServicesTable: Component<{kind="badge"sort={sort}sortKey="boot"- class="md:w-[14%]"+ class="platform-table-mobile-w-15 md:w-[14%]">Boot</PlatformSortableTableHead>@@ -275,7 +275,7 @@ export const TrueNASServicesTable: Component<{kind="text"sort={sort}sortKey="pids"- class="hidden sm:table-cell md:w-[20%]"+ class="platform-table-mobile-w-15 md:w-[20%]">PIDs</PlatformSortableTableHead>@@ -283,7 +283,7 @@ export const TrueNASServicesTable: Component<{kind="text"sort={sort}sortKey="system"- class="md:w-[28%]"+ class="platform-table-mobile-w-25 md:w-[28%]">System</PlatformSortableTableHead>@@ -344,7 +344,7 @@ export const TrueNASServicesTable: Component<{</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden sm:table-cell`}+ class={getPlatformTableCellClassForKind('text')}title={pids().title || undefined}><span class="tabular-nums text-base-content">{pids().label}</span>diff --git a/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx b/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsxindex 2b3df13cb9..b1c85167fe 100644--- a/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx+++ b/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx@@ -342,7 +342,7 @@ export const TrueNASStorageTopologyTable: Component<{kind="name"sort={sort}sortKey="resource"- class="w-[47%] md:w-[32%]"+ class="platform-table-mobile-w-30 md:w-[32%]">Resource</PlatformSortableTableHead>@@ -350,7 +350,7 @@ export const TrueNASStorageTopologyTable: Component<{kind="text"sort={sort}sortKey="kind"- class="hidden sm:table-cell md:w-[10%]"+ class="platform-table-mobile-w-15 md:w-[10%]">Kind</PlatformSortableTableHead>@@ -358,7 +358,7 @@ export const TrueNASStorageTopologyTable: Component<{kind="metric-bar"sort={sort}sortKey="usage"- class="w-[28%] md:w-[28%]"+ class="platform-table-mobile-w-25 md:w-[28%]"><PlatformResponsiveTableLabel compact="Usage" full="Usage / Size" /></PlatformSortableTableHead>@@ -366,7 +366,7 @@ export const TrueNASStorageTopologyTable: Component<{kind="numeric-value"sort={sort}sortKey="disks"- class="hidden sm:table-cell md:w-[8%]"+ class="platform-table-mobile-w-15 md:w-[8%]">Disks</PlatformSortableTableHead>@@ -382,7 +382,7 @@ export const TrueNASStorageTopologyTable: Component<{kind="badge"sort={sort}sortKey="health"- class="w-[25%] md:w-[14%]"+ class="platform-table-mobile-w-15 md:w-[14%]">Health</PlatformSortableTableHead>@@ -423,7 +423,7 @@ export const TrueNASStorageTopologyTable: Component<{/></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} table-cell`}><span class="text-base-content">{kindLabel(row.kind)}</span></TableCell>@@ -431,7 +431,7 @@ export const TrueNASStorageTopologyTable: Component<{<CapacityCell row={row} /></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}><PlatformTableNumberValuevalue={row.kind === 'pool' ? row.counts.disks : undefined}diff --git a/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx b/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsxindex 3271cdf202..176fc85238 100644--- a/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx+++ b/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx@@ -204,14 +204,19 @@ export const TrueNASVirtualMachinesTable: Component<{tableClass="min-w-full table-fixed text-xs md:min-w-[960px]"header={<>- <PlatformSortableTableHead kind="name" sort={sort} sortKey="vm" class="md:w-[22%]">+ <PlatformSortableTableHead+ kind="name"+ sort={sort}+ sortKey="vm"+ class="platform-table-mobile-w-30 md:w-[22%]"+ >VM</PlatformSortableTableHead><PlatformSortableTableHeadkind="badge"sort={sort}sortKey="state"- class="md:w-[10%]"+ class="platform-table-mobile-w-15 md:w-[10%]">State</PlatformSortableTableHead>@@ -219,7 +224,7 @@ export const TrueNASVirtualMachinesTable: Component<{kind="numeric-value"sort={sort}sortKey="cpu"- class="md:w-[10%]"+ class="platform-table-mobile-w-15 md:w-[10%]">CPU</PlatformSortableTableHead>@@ -227,7 +232,7 @@ export const TrueNASVirtualMachinesTable: Component<{kind="numeric-value"sort={sort}sortKey="memory"- class="md:w-[10%]"+ class="platform-table-mobile-w-15 md:w-[10%]">Memory</PlatformSortableTableHead>@@ -235,7 +240,7 @@ export const TrueNASVirtualMachinesTable: Component<{kind="text"sort={sort}sortKey="boot"- class="hidden md:table-cell md:w-[11%]"+ class="platform-table-mobile-w-25 md:w-[11%]">Boot</PlatformSortableTableHead>@@ -326,7 +331,7 @@ export const TrueNASVirtualMachinesTable: Component<{{formatPlatformTableBytesValue(vm()?.memoryBytes, '-')}</TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>{vm()?.bootloader || '-'}</TableCell>diff --git a/frontend-modern/src/features/truenas/__tests__/TrueNASStorageTopologyTable.test.tsx b/frontend-modern/src/features/truenas/__tests__/TrueNASStorageTopologyTable.test.tsxindex 67213a737e..014dad0dad 100644--- a/frontend-modern/src/features/truenas/__tests__/TrueNASStorageTopologyTable.test.tsx+++ b/frontend-modern/src/features/truenas/__tests__/TrueNASStorageTopologyTable.test.tsx@@ -64,6 +64,15 @@ describe('TrueNASStorageTopologyTable', () => {'[data-truenas-storage-row="dataset:dataset-photos"]',);const rawRow = container.querySelector('[data-truenas-storage-row="dataset:dataset-raw"]');+ const headers = [...container.querySelectorAll('thead th')];++ expect(headers[0]).toHaveClass('platform-table-name-column', 'platform-table-mobile-w-30');+ expect(headers[1]).toHaveClass('platform-table-mobile-w-15');+ expect(headers[1]).not.toHaveClass('hidden');+ expect(headers[2]).toHaveClass('platform-table-mobile-w-25');+ expect(headers[3]).toHaveClass('platform-table-mobile-w-15');+ expect(headers[3]).not.toHaveClass('hidden');+ expect(headers[5]).toHaveClass('platform-table-mobile-w-15');expect(mediaRow).toHaveAttribute('data-truenas-storage-depth', '1');expect(photosRow).toHaveAttribute('data-truenas-storage-depth', '2');diff --git a/frontend-modern/src/features/vmware/VsphereActivityTable.tsx b/frontend-modern/src/features/vmware/VsphereActivityTable.tsxindex 3a5322d4d1..3cf45993dc 100644--- a/frontend-modern/src/features/vmware/VsphereActivityTable.tsx+++ b/frontend-modern/src/features/vmware/VsphereActivityTable.tsx@@ -306,7 +306,7 @@ export const VsphereActivityTable: Component<{kind="name"sort={sort}sortKey="resource"- class="md:w-[20%]"+ class="platform-table-mobile-w-30 md:w-[20%]">Resource</PlatformSortableTableHead>@@ -314,7 +314,7 @@ export const VsphereActivityTable: Component<{kind="badge"sort={sort}sortKey="type"- class="md:w-[8%]"+ class="platform-table-mobile-w-15 md:w-[8%]">Type</PlatformSortableTableHead>@@ -322,7 +322,7 @@ export const VsphereActivityTable: Component<{kind="text"sort={sort}sortKey="activity"- class="md:w-[34%]"+ class="platform-table-mobile-w-25 md:w-[34%]">Activity</PlatformSortableTableHead>@@ -330,7 +330,7 @@ export const VsphereActivityTable: Component<{kind="badge"sort={sort}sortKey="state"- class="md:w-[10%]"+ class="platform-table-mobile-w-15 md:w-[10%]">State</PlatformSortableTableHead>@@ -354,7 +354,7 @@ export const VsphereActivityTable: Component<{kind="numeric-value"sort={sort}sortKey="when"- class="hidden xl:table-cell md:w-[8%]"+ class="platform-table-mobile-w-15 md:w-[8%]">When</PlatformSortableTableHead>@@ -446,7 +446,7 @@ export const VsphereActivityTable: Component<{</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content xl:table-cell`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}><PlatformTableDateTimeValuevalue={activity.occurredAt || activity.observedAt}diff --git a/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx b/frontend-modern/src/features/vmware/VsphereAlertsTable.tsxindex 53cf672e83..05e644fba8 100644--- a/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx+++ b/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx@@ -173,17 +173,23 @@ export const VsphereAlertsTable: Component<{tableClass="min-w-full table-fixed text-xs md:min-w-[1040px]"header={<>- <TableHead class={`${getPlatformTableHeadClassForKind('name')} md:w-[20%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('name')} platform-table-mobile-w-30 md:w-[20%]`}+ >Resource</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('badge')} md:w-[10%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('badge')} platform-table-mobile-w-15 md:w-[10%]`}+ >Severity</TableHead>- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[34%]`}>+ <TableHead+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-25 md:w-[34%]`}+ >Signal</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[14%]`}+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[14%]`}>vCenter</TableHead>@@ -193,7 +199,7 @@ export const VsphereAlertsTable: Component<{Entity</TableHead><TableHead- class={`${getPlatformTableHeadClassForKind('text')} hidden xl:table-cell md:w-[10%]`}+ class={`${getPlatformTableHeadClassForKind('numeric-value')} platform-table-mobile-w-15 md:w-[10%]`}>Started</TableHead>@@ -260,9 +266,7 @@ export const VsphereAlertsTable: Component<{{incident.label}</span></TableCell>- <TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden md:table-cell`}- >+ <TableCell class={getPlatformTableCellClassForKind('text')}><spanclass="block truncate text-base-content"title={meta()?.connectionName || meta()?.vcenterHost}@@ -284,7 +288,7 @@ export const VsphereAlertsTable: Component<{</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content xl:table-cell`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}>{formatPlatformAlertStartedAt(incident.startedAt)}</TableCell>diff --git a/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx b/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsxindex a6701c0329..7a6135a95b 100644--- a/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx+++ b/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx@@ -197,25 +197,30 @@ export const VsphereDatastoresTable: Component<{kind="name"sort={sort}sortKey="datastore"- class="md:w-[21%]"+ class="platform-table-mobile-w-30 md:w-[21%]">Datastore</PlatformSortableTableHead>- <PlatformSortableTableHead kind="text" sort={sort} sortKey="type" class="md:w-[9%]">+ <PlatformSortableTableHead+ kind="text"+ sort={sort}+ sortKey="type"+ class="platform-table-mobile-w-15 md:w-[9%]"+ >Type</PlatformSortableTableHead><PlatformSortableTableHeadkind="metric-bar"sort={sort}sortKey="capacity"- class="md:w-[18%]"+ class="platform-table-mobile-w-25 md:w-[18%]">Capacity</PlatformSortableTableHead><PlatformSortableTableHeadkind="text"sort={sort}- class="hidden sm:table-cell md:w-[14%]"+ class="platform-table-mobile-w-15 md:w-[14%]">Hosts</PlatformSortableTableHead>@@ -223,7 +228,7 @@ export const VsphereDatastoresTable: Component<{kind="numeric-value"sort={sort}sortKey="vms"- class="hidden sm:table-cell md:w-[7%]"+ class="platform-table-mobile-w-15 md:w-[7%]">VMs</PlatformSortableTableHead>@@ -309,13 +314,13 @@ export const VsphereDatastoresTable: Component<{</Show></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}title={hosts().title}><span class="block truncate">{hosts().label}</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content tabular-nums sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content tabular-nums`}>{consumerCount(datastore)}</TableCell>diff --git a/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx b/frontend-modern/src/features/vmware/VsphereNetworksTable.tsxindex cde5d00a3a..1ecb44008e 100644--- a/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx+++ b/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx@@ -173,7 +173,7 @@ export const VsphereNetworksTable: Component<{kind="name"sort={sort}sortKey="network"- class="w-[80%] sm:w-[45%] md:w-[24%]"+ class="platform-table-mobile-w-30 md:w-[24%]">Network</PlatformSortableTableHead>@@ -181,14 +181,14 @@ export const VsphereNetworksTable: Component<{kind="text"sort={sort}sortKey="type"- class="hidden sm:table-cell sm:w-[35%] md:w-[13%]"+ class="platform-table-mobile-w-15 md:w-[13%]">Type</PlatformSortableTableHead><PlatformSortableTableHeadkind="text"sort={sort}- class="hidden sm:table-cell md:w-[18%]"+ class="platform-table-mobile-w-20 md:w-[18%]">Hosts</PlatformSortableTableHead>@@ -196,7 +196,7 @@ export const VsphereNetworksTable: Component<{kind="numeric-value"sort={sort}sortKey="vms"- class="w-[20%] md:w-[7%]"+ class="platform-table-mobile-w-15 md:w-[7%]">VMs</PlatformSortableTableHead>@@ -211,7 +211,7 @@ export const VsphereNetworksTable: Component<{kind="text"sort={sort}sortKey="datacenter"- class="hidden md:table-cell md:w-[12%]"+ class="platform-table-mobile-w-20 md:w-[12%]">Datacenter</PlatformSortableTableHead>@@ -269,14 +269,14 @@ export const VsphereNetworksTable: Component<{</div></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}><span class="font-mono text-[11px] text-base-content">{networkType(network)}</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}title={hosts().title}><span class="block truncate">{hosts().label}</span>@@ -293,7 +293,7 @@ export const VsphereNetworksTable: Component<{<span class="block truncate">{vms().label}</span></TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}title={datacenter()}><span class="block truncate">{datacenter()}</span>diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.cssindex 71081d07e0..c4ee9ca113 100644--- a/frontend-modern/src/index.css+++ b/frontend-modern/src/index.css@@ -1020,7 +1020,7 @@ body,* taller, then let unusually long labels provide a container-aware compact* form below the first table-column reveal breakpoint.*/-.table-scroll-shell > .table-fixed th {+.table-scroll-shell > .table-fixed.platform-table th {padding-right: 0.375rem;padding-left: 0.375rem;font-size: 11px;@@ -1046,7 +1046,7 @@ body,}@container (max-width: 33.999rem) {- .table-scroll-shell > .table-fixed th {+ .table-scroll-shell > .table-fixed.platform-table th {padding-right: 0.25rem;padding-left: 0.25rem;font-size: 10px;@@ -1054,68 +1054,42 @@ body,}/*- * On a phone the expand control and health dot otherwise consume nearly the- * whole resource cell. Identity is the user's anchor, so semantic `name`- * columns receive the largest share before secondary values are divided.+ * Proxmox Overview is the phone-density reference: identity receives a+ * stable 30% anchor and the remaining operational tracks share the rest.+ * Keeping that anchor at the shared table boundary prevents each provider+ * from silently choosing a different mobile table geometry.*/- .table-scroll-shell > .table-fixed th.platform-table-name-column {- width: 40%;+ .table-scroll-shell > .table-fixed.platform-table th.platform-table-name-column {+ width: 30%;}- .table-scroll-shell > .table-fixed th.platform-table-mobile-w-30 {+ .table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-30 {width: 30%;}- .table-scroll-shell > .table-fixed th.platform-table-mobile-w-25 {+ .table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-25 {width: 25%;}- .table-scroll-shell > .table-fixed th.platform-table-mobile-w-20 {+ .table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-20 {width: 20%;}- .table-scroll-shell > .table-fixed th.platform-table-mobile-w-15 {+ .table-scroll-shell > .table-fixed.platform-table 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%;+ .table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-10 {+ width: 10%;}}-/* On narrow phones, preserving enough identity to distinguish similar app,- service, and ingress names is more useful than giving every compact metric- the same space. Detail rows retain the full secondary values on demand. */+/* Long identities may use a second line on the narrowest supported phones,+ but they keep the same shared 30% track as every other platform table. */@container (max-width: 23.999rem) {- .table-scroll-shell > .table-fixed th.truenas-app-name-column,- .table-scroll-shell > .table-fixed th.kubernetes-service-name-column,- .table-scroll-shell > .table-fixed th.kubernetes-network-name-column {- width: 52%;- }-- .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,- .table-scroll-shell > .table-fixed th.kubernetes-service-type-column,- .table-scroll-shell > .table-fixed th.kubernetes-service-ip-column,- .table-scroll-shell > .table-fixed th.kubernetes-service-ports-column,- .table-scroll-shell > .table-fixed th.kubernetes-network-kind-column,- .table-scroll-shell > .table-fixed th.kubernetes-network-class-column,- .table-scroll-shell > .table-fixed th.kubernetes-network-ports-column {- width: 16%;- }-- .table-scroll-shell > .table-fixed td:first-child .truenas-app-name-value,- .table-scroll-shell > .table-fixed td:first-child .kubernetes-service-name-value,- .table-scroll-shell > .table-fixed td:first-child .kubernetes-network-name-value {+ .table-scroll-shell > .table-fixed.platform-table td:first-child .truenas-app-name-value,+ .table-scroll-shell > .table-fixed.platform-table td:first-child .kubernetes-service-name-value,+ .table-scroll-shell > .table-fixed.platform-table td:first-child .kubernetes-network-name-value {display: -webkit-box;overflow: hidden;overflow-wrap: anywhere;