Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

fix(ui): make platform tables container-responsive

rcourtmandda6ad440f6c
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 3021a4e187..406ef4027f 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,23 +1,99 @@
{
"version": 1,
- "base_sha": "3699dca8267b4a7522b8b193ee9749c0cf20dfd8",
- "verified_at": "2026-08-04T10:26:06Z",
+ "base_sha": "95745e77ca161831a4c5a90397b5723c2fc80e98",
+ "verified_at": "2026-08-04T11:37:59Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx",
- "frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx",
- "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx",
- "frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts"
+ "frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx",
+ "frontend-modern/src/components/Workloads/WorkloadsTable.tsx",
+ "frontend-modern/src/components/Workloads/guestRowModel.tsx",
+ "frontend-modern/src/features/docker/DockerImagesTable.tsx",
+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx",
+ "frontend-modern/src/features/docker/DockerPageSurface.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesPageSurface.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/ProxmoxMailGatewayTable.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx",
+ "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts",
+ "frontend-modern/src/features/standalone/StandalonePageSurface.tsx",
+ "frontend-modern/src/features/truenas/TrueNASPageSurface.tsx",
+ "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx",
+ "frontend-modern/src/features/truenas/TrueNASSystemsTable.tsx",
+ "frontend-modern/src/features/vmware/VmwarePageSurface.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/features/proxmox/ProxmoxBackupServersTable.tsx": "f181a1003f6f40dc33413c32a31223cc562997284e0314a0224f28b126f70eac",
- "frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx": "8531a197f43d429501c2daadb80229624611f637db5f3b489d944c708b52cb77",
- "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx": "a619652c69da5e0d6a8ca21cde9c3e0e18449a241a53b6ebcd87b9f1ea83d474",
- "frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts": "e7c323af3e58d6dc027e6f5dfc56be95efbd37d8e2eb7f3dad6c91645f7b90dc"
+ "frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx": "ef811962a39ef0c8c70060241b585f9612cf162c53071524a2d78359c679ada4",
+ "frontend-modern/src/components/Workloads/WorkloadsTable.tsx": "cfcbda5651a54698af4575f32dda894580108ccfc08d6b87e7b7e8e6b8d4d5ae",
+ "frontend-modern/src/components/Workloads/guestRowModel.tsx": "336410d2ffe6a72da7f2040156053f67c5503b2d37c0ac7230a7c28afc8a08f0",
+ "frontend-modern/src/features/docker/DockerImagesTable.tsx": "702d5b2813bca96ecbe632044d3f9dbeab5cb6fea6d634e4a4f9c194e3f10106",
+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx": "6179a35aa842b4600d16eb581bde4747a1971c9c9d71f2a18de885df2f474b64",
+ "frontend-modern/src/features/docker/DockerPageSurface.tsx": "e3b4aed8ca3650bdf8bd980c033decc3d6bb9ebfc428620b92bf03808d8dc700",
+ "frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx": "54bb033261f4853f31e0b9767be2f9a31886fd1dd2c49c5413fec0f3a840a22d",
+ "frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx": "35ec8051643c759d1b72058d04426e246b341401b8b96ca32147e404f444aee6",
+ "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx": "0d5d74c0055ba0365de433f90f2c7cf604b2998cdd59e5cd4fb11e8dde1208b7",
+ "frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx": "35723e8090b81d94ec68c29c1baa86e8b1ecf4e903338323136929fb6cbc77b5",
+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "53421e71c4046f18dbefa4978dc6c74bf2c852e9d26a4f3ab8c9e003df236dc1",
+ "frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx": "d1e17e02001cd1f88f6e98549115a8c37574a4288e61e5d3d708634d756d0c0d",
+ "frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx": "6bf47f03195639b2900f16d45539e633a77709860f17150ef400966d161c9f6d",
+ "frontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsx": "54a3c7a1127aa6d5e4822dd2c19ee9242789914a6ee1580bcbd6808fe482d265",
+ "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx": "4539a00569a64c06356c4b0a7decb608842e23c09259e5a12c0b1b40bcde1c5c",
+ "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx": "45a609aeea1ee0800a643b900a57d8d88af3be027e5a7f62c2708d1436b274a3",
+ "frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx": "0c273f41bcd0fbe269d5ec3e876bb5ffaff97542a7fd6327cea2b7785913cde6",
+ "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts": "c06ed9b86054a5cef7f4b30d3054619dbb291442d6810fc8761637fc6db59773",
+ "frontend-modern/src/features/standalone/StandalonePageSurface.tsx": "2ebcc5503c890bfea2f21eaed6c18e0ebb69625701f3884a7c17e62faaea504d",
+ "frontend-modern/src/features/truenas/TrueNASPageSurface.tsx": "46c506bbf9ca102e3018188e8b0e234d67ff188893d0ea16d95252508579c5ef",
+ "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx": "0b846223ff043bc2639f4d2e9fcc70438c02041165b739afebcdb9573c77ccbd",
+ "frontend-modern/src/features/truenas/TrueNASSystemsTable.tsx": "10a944844841d4188804aaf2a217067b4d0aae21357e7bd3264785f67b3d0308",
+ "frontend-modern/src/features/vmware/VmwarePageSurface.tsx": "45e71dc9be04a780c175f5c9ff757038f0d5c5df1c538605ec65fc8179cff84f",
+ "frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx": "76e1acfc2f56dd6e94b142625056bdda2c4ed0c4ce6feec833773e62906dc80e",
+ "frontend-modern/src/features/vmware/VsphereNetworksTable.tsx": "95e30af160d2e621acf0a1c09f43be788bb8d314c5b4d68790a3594a687e40c0",
+ "frontend-modern/src/index.css": "4498659bf01b186a9030fe96a58a3c9a0d3f5a901e374f6d9048faf6d2b02b62"
},
"routes": [
+ "/proxmox/overview",
+ "/proxmox/storage?tab=pools&source=proxmox-all",
+ "/proxmox/storage?tab=disks&source=proxmox-all",
+ "/proxmox/replication",
"/proxmox/backups?view=coverage",
- "/proxmox/backups?view=date"
+ "/proxmox/backups?view=date",
+ "/proxmox/ceph",
+ "/proxmox/mail",
+ "/docker/overview",
+ "/docker/images",
+ "/docker/storage",
+ "/docker/networks",
+ "/docker/swarm",
+ "/kubernetes/overview",
+ "/kubernetes/nodes",
+ "/kubernetes/workloads",
+ "/kubernetes/services",
+ "/kubernetes/storage",
+ "/kubernetes/configuration",
+ "/kubernetes/events",
+ "/truenas/overview",
+ "/truenas/storage",
+ "/truenas/services",
+ "/truenas/apps",
+ "/truenas/vms",
+ "/truenas/shares",
+ "/truenas/protection",
+ "/vmware/overview",
+ "/vmware/datastores",
+ "/vmware/networks",
+ "/vmware/health",
+ "/vmware/activity",
+ "/standalone/machines",
+ "/standalone/availability"
],
"viewports": [
{
@@ -25,15 +101,7 @@
"height": 900
},
{
- "width": 480,
- "height": 900
- },
- {
- "width": 640,
- "height": 900
- },
- {
- "width": 800,
+ "width": 768,
"height": 900
},
{
@@ -41,39 +109,31 @@
"height": 900
},
{
- "width": 1280,
- "height": 900
- },
- {
- "width": 1536,
+ "width": 1440,
"height": 900
},
{
"width": 1920,
"height": 900
- },
- {
- "width": 2560,
- "height": 900
}
],
"states": [
- "Coverage and By date views across compact, basic, operational, expanded, and full container-aware table layouts",
- "Compact 375px view showing operator-priority columns with workload identity details folded into the primary cell and no horizontal page or table overflow",
- "Intermediate 480px, 640px, 800px, and 1024px layouts progressively adding node, source, resource, capacity, and task context only when the measured table container can support it",
- "Wide 1280px, 1536px, 1920px, and 2560px layouts restoring the full operational detail set with readable, unclipped headings",
- "Assistant open at 1280px, 1536px, and 1920px viewport widths, verifying layouts respond to the reduced content container rather than the browser viewport",
- "Expanded coverage evidence for a protected workload and the independently measured orphaned-backup nested table at reduced container widths",
- "Server summary, protection coverage, dated recoverable backups, expanded evidence, and provider detail grids all with scrollWidth equal to clientWidth and zero document overflow"
+ "All 34 primary platform routes loaded with the 213-resource mock inventory across Proxmox, Docker, Kubernetes, TrueNAS, VMware, and standalone machines",
+ "Every platform page root used the same wide data surface geometry at 1024px and 1920px so platform switching did not move content laterally",
+ "All primary tables at 375px and 1024px had scrollWidth equal to clientWidth with zero document overflow",
+ "Compact, intermediate, expanded, and full table layouts progressively exposed operator-priority columns from each table's measured container width",
+ "Proxmox overview compact tables showed Node, CPU, Mem, and Disk for hosts and Name, Up, CPU, Mem, and Disk for workloads",
+ "Proxmox storage pools and disks, replication, backup coverage and date views, Ceph, and mail tables retained the most useful operational fields at each width",
+ "Expanded Ceph cluster detail used independent responsive layouts for its narrower nested pool and service tables",
+ "Docker image and network, Kubernetes controller, autoscaling and event, TrueNAS system and topology, and VMware datastore and network tables restored supporting detail only when space allowed",
+ "The Docker Swarm mock empty state and all non-table platform views remained aligned and free of page overflow"
],
"interactions": [
- "Switched repeatedly between Coverage and By date views while resizing through the full viewport matrix",
- "Searched for bazarr and confirmed the filtered 1 of 35 workload result",
- "Sorted the coverage table by Workload and exercised the Unknown posture filter before restoring All",
- "Expanded and collapsed the bazarr coverage row to inspect backup evidence, provider detail grids, wrapped explanations, and compact task accessibility text",
- "Expanded the orphaned-backups group and verified its nested table chooses a layout from its own narrower container",
- "Filtered the dated feed to PVE file source and confirmed two of 862 backups, then restored all sources",
- "Selected Tue 4 Aug in the date navigator and confirmed 42 of 862 backups in the dated group, then cleared the date filter",
- "Opened and closed the Assistant while checking responsive column selection, header clipping, shell overflow, and document overflow"
+ "Switched repeatedly between all six platform roots and confirmed identical content-shell left edges and widths",
+ "Navigated every primary platform route and switched Proxmox storage pools and disks plus backup coverage and date query views",
+ "Resized pages through 375px, 768px, 1024px, 1440px, and 1920px while inspecting visible headers, table bounds, and document bounds",
+ "Expanded Proxmox Ceph cluster detail and verified nested tables responded to their own containers instead of the browser viewport",
+ "Compared compact operator-priority columns with intermediate and full layouts across each platform's native tables",
+ "Visually reviewed representative screenshots for Proxmox overview, Docker images, Kubernetes workloads, TrueNAS overview, VMware overview and networks, including narrow and wide layouts"
]
}
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 2922bd44e7..0d860a184d 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -13,6 +13,14 @@ import type { Resource } from '@/types/resource';
const appStylesSource = readFileSync(join(process.cwd(), 'src/index.css'), 'utf8');
const headerAuditSource = readFileSync(join(process.cwd(), 'scripts/header-audit.mjs'), 'utf8');
const integrationTestsDir = join(process.cwd(), '..', 'tests', 'integration', 'tests');
+const platformSurfaceSources = [
+ 'features/proxmox/ProxmoxPageSurface.tsx',
+ 'features/docker/DockerPageSurface.tsx',
+ 'features/kubernetes/KubernetesPageSurface.tsx',
+ 'features/truenas/TrueNASPageSurface.tsx',
+ 'features/vmware/VmwarePageSurface.tsx',
+ 'features/standalone/StandalonePageSurface.tsx',
+].map((path) => readFileSync(join(process.cwd(), 'src', path), 'utf8'));
function readIntegrationTestSources(dir: string): Array<{ path: string; source: string }> {
return readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
@@ -108,6 +116,12 @@ describe('App architecture', () => {
expect(appStylesSource).toContain('--pulse-shell-max-width: min(97vw, 1920px)');
});
+ it('keeps every infrastructure platform on the same wide shell contract', () => {
+ platformSurfaceSources.forEach((source) => {
+ expect(source).toMatch(/data-testid="[^"]+-page" class="pulse-wide-data-surface /);
+ });
+ });
+
it('keeps App as the entry shell that delegates runtime and chrome ownership', () => {
expect(appSource).toContain(
"import { AppLayout, sessionHasSettingsAccess } from '@/AppLayout';",
@@ -416,7 +430,10 @@ describe('App architecture', () => {
expect(appStylesSource).toContain('--color-grouped-table-row-bg: rgba(226, 232, 240, 0.72);');
expect(appStylesSource).toContain('--color-grouped-table-row-bg: rgba(51, 65, 85, 0.58);');
expect(appStylesSource).toContain('.table-scroll-shell');
- expect(appStylesSource).toContain('contain: inline-size paint');
+ expect(appStylesSource).toContain('container-type: inline-size');
+ expect(appStylesSource).toContain('@container (min-width: 64rem)');
+ expect(appStylesSource).toContain('.hidden.md\\:table-cell');
+ expect(appStylesSource).toContain('contain: paint');
expect(appStylesSource).toContain('overscroll-behavior-x: contain');
expect(appStylesSource).toContain('.progress-fill-frame');
expect(appStylesSource).toContain('.metric-fill-geometry');
diff --git a/frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx b/frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx
index a3f1c674b1..24389ab83a 100644
--- a/frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx
@@ -27,8 +27,14 @@ export const getWorkloadColumnHeaderLabel = (
columnId: string,
defaultLabel: string,
memoryDisplayBasis: WorkloadsMemoryDisplayBasis,
-): string =>
- columnId === 'memory' && memoryDisplayBasis === 'host' ? `${defaultLabel} · Host` : defaultLabel;
+ compact = false,
+): string => {
+ if (compact && columnId === 'availability') return 'Up';
+ if (compact && columnId === 'memory') return 'Mem';
+ return columnId === 'memory' && memoryDisplayBasis === 'host'
+ ? `${defaultLabel} · Host`
+ : defaultLabel;
+};
// Canonical alignment per column kind (see
// frontend-modern/src/features/platformPage/columnAlignment.ts).
@@ -62,7 +68,12 @@ export function WorkloadTableHeader(props: WorkloadTableHeaderProps) {
const isSortable = !!sortKeyForCol;
const isSorted = () => sortKeyForCol && props.sortKey() === sortKeyForCol;
const label = () =>
- getWorkloadColumnHeaderLabel(col.id, col.label, props.workloadMemoryDisplayBasis());
+ getWorkloadColumnHeaderLabel(
+ col.id,
+ col.label,
+ props.workloadMemoryDisplayBasis(),
+ props.isMobile(),
+ );
return (
<TableHead
diff --git a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx b/frontend-modern/src/components/Workloads/WorkloadsTable.tsx
index 1fbf4dfa05..7c372762f9 100644
--- a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadsTable.tsx
@@ -9,7 +9,7 @@ import type { WorkloadsState } from './useWorkloadsState';
import { WorkloadPanel } from './WorkloadPanel';
import { WorkloadTableHeader } from './WorkloadTableHeader';
-export const WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS = 'min-w-[36rem]';
+export const WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS = 'min-w-[0px]';
type WorkloadsTableProps = Pick<
WorkloadsState,
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index ebe7cc810d..130d837123 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -1038,14 +1038,14 @@ describe('GUEST_COLUMNS', () => {
it('derives mobile overrides from the canonical guest column model', () => {
expect(getGuestColumnStyle('name', true)).toEqual({
- width: '46.3158%',
- 'max-width': '46.3158%',
+ width: '40%',
+ 'max-width': '40%',
});
expect(getGuestColumnStyle('cpu', true)).toEqual({
- width: '17.8947%',
- 'max-width': '17.8947%',
+ width: '17%',
+ 'max-width': '17%',
});
- expect(getGuestColumnWidthStyle('name', true)).toEqual({ width: '46.3158%' });
+ expect(getGuestColumnWidthStyle('name', true)).toEqual({ width: '40%' });
expect(getGuestColumnWidthStyle('diskIo', true)).toEqual({ width: '170px' });
});
diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadTableHeader.test.ts b/frontend-modern/src/components/Workloads/__tests__/WorkloadTableHeader.test.ts
index d626ecb72c..fa1fa2ceab 100644
--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadTableHeader.test.ts
+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadTableHeader.test.ts
@@ -14,4 +14,9 @@ describe('getWorkloadColumnHeaderLabel', () => {
it('does not relabel unrelated columns', () => {
expect(getWorkloadColumnHeaderLabel('cpu', 'CPU', 'host')).toBe('CPU');
});
+
+ it('uses compact labels for narrow operational columns', () => {
+ expect(getWorkloadColumnHeaderLabel('availability', 'Avail', 'guest', true)).toBe('Up');
+ expect(getWorkloadColumnHeaderLabel('memory', 'Mem', 'host', true)).toBe('Mem');
+ });
});
diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx
index 83a944ba09..72a8c5aaa7 100644
--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx
@@ -1491,7 +1491,7 @@ describe('Workloads performance contract', () => {
expect(workloadsWorkloadTableSource).not.toContain('style={{');
expect(workloadsWorkloadTableSource).toContain('style={getGuestColumnWidthStyle(');
expect(workloadsWorkloadTableSource).toContain(
- "WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS = 'min-w-[36rem]'",
+ "WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS = 'min-w-[0px]'",
);
expect(workloadsWorkloadTableSource).toContain('workload-table--mobile');
expect(workloadsWorkloadTableSource).toContain('WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS');
diff --git a/frontend-modern/src/components/Workloads/guestRowModel.tsx b/frontend-modern/src/components/Workloads/guestRowModel.tsx
index 6990fbbe3b..38471c4c11 100644
--- a/frontend-modern/src/components/Workloads/guestRowModel.tsx
+++ b/frontend-modern/src/components/Workloads/guestRowModel.tsx
@@ -438,9 +438,10 @@ const GUEST_COLUMN_RESPONSIVE_WEIGHTS: Record<
Record<string, number>
> = {
mobile: {
- name: 44,
+ name: 40,
+ availability: 8,
cpu: 17,
- memory: 17,
+ memory: 18,
disk: 17,
},
tablet: {
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 4c223921a0..2dd7951981 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -1297,7 +1297,8 @@ describe('shared primitive guardrails', () => {
'table-scroll-shell w-full min-w-0 max-w-full overflow-x-auto touch-scroll',
);
expect(frontendIndexCssSource).toContain('.table-scroll-shell');
- expect(frontendIndexCssSource).toContain('contain: inline-size paint');
+ expect(frontendIndexCssSource).toContain('container-type: inline-size');
+ expect(frontendIndexCssSource).toContain('contain: paint');
expect(frontendIndexCssSource).toContain('overscroll-behavior-x: contain');
expect(tableSource).toContain('w-full border-collapse text-left whitespace-nowrap');
expect(tableCardSource).toContain('TABLE_CARD_FRAME_CLASS');
@@ -5218,7 +5219,7 @@ describe('shared primitive guardrails', () => {
expect(sharedPlatformPageSource).toContain('TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}');
expect(sharedPlatformPageSource).toContain('TableBody class={PLATFORM_TABLE_BODY_CLASS}');
expect(sharedPlatformPageSource).toContain(
- "export const PLATFORM_TABLE_DEFAULT_RESPONSIVE_MIN_WIDTH_CLASS = 'min-w-[48rem]'",
+ "export const PLATFORM_TABLE_DEFAULT_RESPONSIVE_MIN_WIDTH_CLASS = 'min-w-[0px]'",
);
expect(sharedPlatformPageSource).toContain('export function getPlatformTableClass');
expect(sharedPlatformPageSource).toContain("className !== 'min-w-full'");
diff --git a/frontend-modern/src/features/docker/DockerImagesTable.tsx b/frontend-modern/src/features/docker/DockerImagesTable.tsx
index 80bf485959..55ff841889 100644
--- a/frontend-modern/src/features/docker/DockerImagesTable.tsx
+++ b/frontend-modern/src/features/docker/DockerImagesTable.tsx
@@ -153,7 +153,7 @@ export const DockerImagesTable: Component<
kind="text"
sort={sort}
sortKey="usedBy"
- class="md:w-[24%]"
+ class="hidden sm:table-cell md:w-[24%]"
>
Used by
</PlatformSortableTableHead>
@@ -214,7 +214,7 @@ export const DockerImagesTable: Component<
{dockerHostName(resource)}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}
>
<span
class="inline-block max-w-[20rem] truncate"
diff --git a/frontend-modern/src/features/docker/DockerNetworksTable.tsx b/frontend-modern/src/features/docker/DockerNetworksTable.tsx
index 832d423df5..8287655876 100644
--- a/frontend-modern/src/features/docker/DockerNetworksTable.tsx
+++ b/frontend-modern/src/features/docker/DockerNetworksTable.tsx
@@ -9,9 +9,11 @@ import {
PlatformTableToolbar,
createPlatformTableFilterState,
getPlatformTableCellClassForKind,
+ getPlatformTableContainerLayout,
getPlatformTableHeadClassForKind,
PlatformTableShell,
} from '@/features/platformPage/sharedPlatformPage';
+import { useObservedElementWidth } from '@/hooks/useObservedElementWidth';
import {
PlatformResourceDetailToggleButton,
createPlatformResourceDetailState,
@@ -359,6 +361,16 @@ export const DockerNetworksTable: Component<DockerNetworksTableProps> = (props)
filter: filterNetworks,
});
const drawer = createPlatformResourceDetailState({ idPrefix: 'docker-network-drawer' });
+ const observedWidth = useObservedElementWidth();
+ const layout = createMemo(() =>
+ getPlatformTableContainerLayout(observedWidth.width() ?? 1920, [480, 720, 960, 1200]),
+ );
+ const showSubnet = createMemo(() => !['compact', 'basic'].includes(layout()));
+ const showDriver = createMemo(() => ['expanded', 'full'].includes(layout()));
+ const showHost = createMemo(() => layout() === 'full');
+ const visibleColumnCount = createMemo(
+ () => 3 + Number(showSubnet()) + Number(showDriver()) + Number(showHost()),
+ );
return (
<Show
@@ -371,7 +383,7 @@ export const DockerNetworksTable: Component<DockerNetworksTableProps> = (props)
/>
}
>
- <div class="space-y-3">
+ <div ref={observedWidth.setElement} class="space-y-3" data-docker-networks-layout={layout()}>
<Show when={props.showToolbar !== false}>
<PlatformTableToolbar
search={tableState.search}
@@ -398,33 +410,23 @@ export const DockerNetworksTable: Component<DockerNetworksTableProps> = (props)
>
<PlatformTableShell
title={props.title ?? 'Networks'}
- tableClass="min-w-[850px] table-fixed text-xs md:min-w-[1320px]"
+ tableClass="min-w-[0px] table-fixed text-xs"
header={
<>
- <TableHead class={`${getPlatformTableHeadClassForKind('name')} w-[220px]`}>
- Network
- </TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} w-[360px]`}>
+ <TableHead class={getPlatformTableHeadClassForKind('name')}>Network</TableHead>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>
Attached workloads
</TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} w-[150px]`}>
- Attention
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[300px]`}
- >
- Subnets
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[140px]`}
- >
- Driver
- </TableHead>
- <TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[140px]`}
- >
- Host
- </TableHead>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Attention</TableHead>
+ <Show when={showSubnet()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Subnets</TableHead>
+ </Show>
+ <Show when={showDriver()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Driver</TableHead>
+ </Show>
+ <Show when={showHost()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Host</TableHead>
+ </Show>
</>
}
body={
@@ -484,28 +486,34 @@ export const DockerNetworksTable: Component<DockerNetworksTableProps> = (props)
</span>
</span>
</TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- <span class="inline-block max-w-[18rem] truncate" title={subnets()}>
- {subnets()}
- </span>
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {dockerTextValue(resource.docker?.driver)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
- >
- {dockerHostName(resource)}
- </TableCell>
+ <Show when={showSubnet()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ <span class="inline-block max-w-[18rem] truncate" title={subnets()}>
+ {subnets()}
+ </span>
+ </TableCell>
+ </Show>
+ <Show when={showDriver()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerTextValue(resource.docker?.driver)}
+ </TableCell>
+ </Show>
+ <Show when={showHost()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {dockerHostName(resource)}
+ </TableCell>
+ </Show>
</TableRow>
<Show when={isExpanded()}>
<InlineDetailTableRow
cellId={detailRowId()}
- colspan={6}
+ colspan={visibleColumnCount()}
contentClass="grid gap-4 px-2 py-3 sm:px-4 sm:py-4 lg:grid-cols-[minmax(0,1fr)_minmax(16rem,24rem)]"
data-docker-network-detail-row={resource.id}
>
diff --git a/frontend-modern/src/features/docker/DockerPageSurface.tsx b/frontend-modern/src/features/docker/DockerPageSurface.tsx
index dce0c58186..32f501e723 100644
--- a/frontend-modern/src/features/docker/DockerPageSurface.tsx
+++ b/frontend-modern/src/features/docker/DockerPageSurface.tsx
@@ -99,7 +99,7 @@ export function DockerPageSurface() {
};
return (
- <div data-testid="docker-page" class="space-y-3">
+ <div data-testid="docker-page" class="pulse-wide-data-surface space-y-3">
<PlatformSectionTabs
tabs={tabs()}
active={activeTab()}
diff --git a/frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx
index d7d4dab744..82b3a940ad 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx
@@ -173,7 +173,7 @@ export const KubernetesAutoscalingTable: Component<{
kind="text"
sort={sort}
sortKey="scope"
- class="hidden md:table-cell md:w-[16%]"
+ class="hidden lg:table-cell md:w-[16%]"
>
Scope
</PlatformSortableTableHead>
@@ -185,7 +185,11 @@ export const KubernetesAutoscalingTable: Component<{
>
Scale target
</PlatformSortableTableHead>
- <PlatformSortableTableHead kind="text" sort={sort} class="md:w-[10%]">
+ <PlatformSortableTableHead
+ kind="text"
+ sort={sort}
+ class="hidden sm:table-cell md:w-[10%]"
+ >
Bounds
</PlatformSortableTableHead>
<PlatformSortableTableHead
@@ -204,13 +208,17 @@ export const KubernetesAutoscalingTable: Component<{
>
Desired
</PlatformSortableTableHead>
- <PlatformSortableTableHead kind="text" sort={sort} class="md:w-[11%]">
+ <PlatformSortableTableHead
+ kind="text"
+ sort={sort}
+ class="hidden sm:table-cell md:w-[11%]"
+ >
Metrics
</PlatformSortableTableHead>
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="hidden md:table-cell md:w-[7%]"
+ class="hidden lg:table-cell md:w-[7%]"
>
Labels
</PlatformSortableTableHead>
@@ -260,7 +268,7 @@ export const KubernetesAutoscalingTable: Component<{
</div>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content lg:table-cell`}
>
<span class="inline-block max-w-[12rem] truncate" title={scope()}>
{scope()}
@@ -274,7 +282,7 @@ export const KubernetesAutoscalingTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}
>
{bounds(resource)}
</TableCell>
@@ -293,7 +301,7 @@ export const KubernetesAutoscalingTable: Component<{
/>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}
>
<span
class="inline-block max-w-[10rem] truncate"
@@ -303,7 +311,7 @@ export const KubernetesAutoscalingTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content lg:table-cell`}
>
<span class="inline-block max-w-[8rem] truncate" title={labels().title}>
{labels().label}
diff --git a/frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx
index f44ff77e78..4120ab3088 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx
@@ -287,7 +287,7 @@ export const KubernetesControllersTable: Component<{
kind="text"
sort={sort}
sortKey="scope"
- class="hidden md:table-cell md:w-[14%]"
+ class="hidden lg:table-cell md:w-[14%]"
>
Scope
</PlatformSortableTableHead>
@@ -295,7 +295,7 @@ export const KubernetesControllersTable: Component<{
kind="text"
sort={sort}
sortKey="target"
- class="md:w-[12%]"
+ class="hidden sm:table-cell md:w-[12%]"
>
Target
</PlatformSortableTableHead>
@@ -303,7 +303,7 @@ export const KubernetesControllersTable: Component<{
kind="numeric-value"
sort={sort}
sortKey="current"
- class="md:w-[8%]"
+ class="hidden sm:table-cell md:w-[8%]"
>
Current
</PlatformSortableTableHead>
@@ -334,7 +334,7 @@ export const KubernetesControllersTable: Component<{
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="hidden md:table-cell md:w-[9%]"
+ class="hidden lg:table-cell md:w-[9%]"
>
Detail
</PlatformSortableTableHead>
@@ -390,21 +390,21 @@ export const KubernetesControllersTable: Component<{
{kind()}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content lg:table-cell`}
>
<span class="inline-block max-w-[12rem] truncate" title={scope()}>
{scope()}
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}
>
<span class="inline-block max-w-[12rem] truncate" title={target()}>
{target()}
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content sm:table-cell`}
>
<PlatformTableNumberValue value={currentValue(resource)} />
</TableCell>
@@ -426,7 +426,7 @@ export const KubernetesControllersTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content lg:table-cell`}
>
<span class="inline-block max-w-[14rem] truncate" title={detail()}>
{detail()}
diff --git a/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx
index ae4dd0e43b..731450f912 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx
@@ -109,7 +109,7 @@ export const KubernetesEventsTable: Component<{
Event
</TableHead>
<TableHead
- class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[15%]`}
+ class={`${getPlatformTableHeadClassForKind('text')} hidden lg:table-cell md:w-[15%]`}
>
Scope
</TableHead>
@@ -119,7 +119,9 @@ export const KubernetesEventsTable: Component<{
<TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[14%]`}>
Reason
</TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[15%]`}>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden sm:table-cell md:w-[15%]`}
+ >
Object
</TableHead>
<TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} md:w-[7%]`}>
@@ -130,7 +132,9 @@ export const KubernetesEventsTable: Component<{
>
Observed
</TableHead>
- <TableHead class={`${getPlatformTableHeadClassForKind('text')} md:w-[10%]`}>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('text')} hidden sm:table-cell md:w-[10%]`}
+ >
Message
</TableHead>
</>
@@ -180,7 +184,7 @@ export const KubernetesEventsTable: Component<{
</div>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content lg:table-cell`}
>
<span class="inline-block max-w-[12rem] truncate" title={scope()}>
{scope()}
@@ -202,7 +206,7 @@ export const KubernetesEventsTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}
>
<span
class="inline-block max-w-[13rem] truncate"
@@ -227,7 +231,7 @@ export const KubernetesEventsTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}
>
<span class="inline-block max-w-[16rem] truncate" title={message()}>
{message()}
diff --git a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
index 8119603701..578de7745d 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
@@ -87,7 +87,7 @@ export function KubernetesPageSurface() {
);
return (
- <div data-testid="kubernetes-page" class="space-y-3">
+ <div data-testid="kubernetes-page" class="pulse-wide-data-surface space-y-3">
<PlatformSectionTabs tabs={tabs()} active={activeTab()} ariaLabel="Kubernetes sections" />
<Show
diff --git a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
index 9bd9684546..6c82030519 100644
--- a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
+++ b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
@@ -27,6 +27,7 @@ import {
formatPlatformTableTextValue,
getPlatformTableFiniteMetric,
getPlatformTableClass,
+ getPlatformTableContainerLayout,
getPlatformResourceCountNoun,
getPlatformTableResponsiveMinWidthClass,
getPlatformTableWeightedColumnWidthStyle,
@@ -51,11 +52,11 @@ describe('getPlatformResourceCountNoun', () => {
});
describe('getPlatformTableResponsiveMinWidthClass', () => {
- it('keeps dense platform columns readable on narrow viewports', () => {
- expect(getPlatformTableResponsiveMinWidthClass()).toBe('min-w-[48rem]');
+ it('lets responsive columns fit their real container unless a table opts into a floor', () => {
+ expect(getPlatformTableResponsiveMinWidthClass()).toBe('min-w-[0px]');
expect(
getPlatformTableResponsiveMinWidthClass('min-w-full table-fixed text-xs md:min-w-[1120px]'),
- ).toBe('min-w-[48rem]');
+ ).toBe('min-w-[0px]');
expect(
getPlatformTableResponsiveMinWidthClass(
'min-w-[850px] table-fixed text-xs md:min-w-[1320px]',
@@ -64,16 +65,28 @@ describe('getPlatformTableResponsiveMinWidthClass', () => {
});
it('removes the conflicting full-width minimum when composing table classes', () => {
- expect(getPlatformTableClass()).toBe('min-w-[48rem]');
+ expect(getPlatformTableClass()).toBe('min-w-[0px]');
expect(getPlatformTableClass('min-w-full table-fixed text-xs md:min-w-[1120px]')).toBe(
- 'min-w-[48rem] table-fixed text-xs md:min-w-[1120px]',
+ '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 md:min-w-[1320px]',
+ 'min-w-[850px] table-fixed',
);
});
});
+describe('getPlatformTableContainerLayout', () => {
+ const breakpoints = [480, 720, 960, 1200] as const;
+
+ it('selects columns from the real table container width', () => {
+ expect(getPlatformTableContainerLayout(375, breakpoints)).toBe('compact');
+ expect(getPlatformTableContainerLayout(480, breakpoints)).toBe('basic');
+ expect(getPlatformTableContainerLayout(720, breakpoints)).toBe('operational');
+ expect(getPlatformTableContainerLayout(960, breakpoints)).toBe('expanded');
+ expect(getPlatformTableContainerLayout(1200, breakpoints)).toBe('full');
+ });
+});
+
describe('normalizePlatformResourceStatusFilter', () => {
it('normalizes route-specific legacy status vocabulary', () => {
expect(normalizePlatformResourceStatusFilter('running')).toBe('online');
diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
index 6e3de669bf..2500af735a 100644
--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
@@ -104,11 +104,29 @@ export function PlatformTableLoadingState(props: { title: string; description: s
}
export type PlatformTableCellAlign = 'left' | 'right' | 'center';
+export type PlatformTableContainerLayout =
+ 'compact' | 'basic' | 'operational' | 'expanded' | 'full';
+
+export const getPlatformTableContainerLayout = (
+ width: number,
+ breakpoints: readonly [number, number, number, number],
+): PlatformTableContainerLayout => {
+ if (!Number.isFinite(width) || width < breakpoints[0]) return 'compact';
+ if (width < breakpoints[1]) return 'basic';
+ if (width < breakpoints[2]) return 'operational';
+ if (width < breakpoints[3]) return 'expanded';
+ return 'full';
+};
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_DEFAULT_RESPONSIVE_MIN_WIDTH_CLASS = 'min-w-[48rem]';
+// 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.
+// Dense tables that genuinely need a larger canvas must opt into an explicit
+// base min-width; the default should use the space it actually receives.
+export const PLATFORM_TABLE_DEFAULT_RESPONSIVE_MIN_WIDTH_CLASS = 'min-w-[0px]';
export function getPlatformTableResponsiveMinWidthClass(tableClass?: string): string {
const hasExplicitBaseFloor = /(?:^|\s)min-w-\[[^\]]+\]/.test(tableClass ?? '');
@@ -118,7 +136,17 @@ export function getPlatformTableResponsiveMinWidthClass(tableClass?: string): st
export function getPlatformTableClass(tableClass?: string): string {
const featureClasses = (tableClass ?? '')
.split(/\s+/)
- .filter((className) => className.length > 0 && className !== 'min-w-full')
+ .filter(
+ (className) =>
+ className.length > 0 &&
+ className !== 'min-w-full' &&
+ // Viewport-responsive floors are especially harmful inside the app's
+ // resizable content pane: they can activate while the actual table
+ // container is much narrower. Keep explicit base floors for the few
+ // genuinely dense tables, but let ordinary responsive tables fill
+ // their real container and rely on their existing column priorities.
+ !/^(?:sm:|md:|lg:|xl:|2xl:)min-w-\[[^\]]+\]$/.test(className),
+ )
.join(' ');
return `${getPlatformTableResponsiveMinWidthClass(tableClass)} ${featureClasses}`.trim();
diff --git a/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx b/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx
index 1bbf436a48..3104e830cd 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx
@@ -88,7 +88,7 @@ function PoolUsageBar(props: { percent: number }) {
return (
<ProgressBar
value={clamped}
- class="h-4 w-32"
+ class="h-4 w-full min-w-[3.5rem] max-w-32"
fillClass={capacityToneFor(clamped)}
label={
<span class="absolute inset-0 flex items-center justify-center text-[10px] font-semibold text-base-content leading-none tabular-nums">
@@ -159,17 +159,21 @@ export const ProxmoxCephClusterDrawer: Component<{
when={pools().length > 0}
fallback={<p class="text-xs text-muted">No pools reported.</p>}
>
- <Table class="text-xs">
+ <Table class="min-w-0 table-fixed text-xs">
<TableHeader>
<TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
<TableHead class={getPlatformTableHeadClassForKind('name')}>Pool</TableHead>
<TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
Objects
</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden sm:table-cell`}
+ >
Stored
</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ <TableHead
+ class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden sm:table-cell`}
+ >
Avail
</TableHead>
<TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
@@ -195,12 +199,12 @@ export const ProxmoxCephClusterDrawer: Component<{
/>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content tabular-nums`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content tabular-nums sm:table-cell`}
>
{formatBytes(pool.storedBytes)}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-muted tabular-nums`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-muted tabular-nums sm:table-cell`}
>
{formatBytes(pool.availableBytes)}
</TableCell>
@@ -228,7 +232,7 @@ export const ProxmoxCephClusterDrawer: Component<{
when={services().length > 0}
fallback={<p class="text-xs text-muted">No services reported.</p>}
>
- <Table class="text-xs">
+ <Table class="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.tsx
index 1d972b0006..67de3543e0 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx
@@ -18,12 +18,14 @@ import {
formatPlatformTableBytesValue,
formatPlatformTablePercentValue,
getPlatformTableCellClassForKind,
+ getPlatformTableContainerLayout,
getPlatformTableHeadClassForKind,
type PlatformTableFilterOption,
PlatformTableEmptyState,
PlatformTableShell,
} from '@/features/platformPage/sharedPlatformPage';
import { PlatformResourceDetailToggleButton } from '@/features/platformPage/PlatformResourceDetailTableRow';
+import { useObservedElementWidth } from '@/hooks/useObservedElementWidth';
import type { Resource, ResourceCephServiceMeta } from '@/types/resource';
import { ProxmoxCephClusterDrawer } from './ProxmoxCephClusterDrawer';
@@ -220,6 +222,22 @@ export const ProxmoxCephTable: Component<{
const total = createMemo(() => props.resources.length);
const visible = createMemo(() => filtered().length);
+ const observedWidth = useObservedElementWidth();
+ const layout = createMemo(() =>
+ getPlatformTableContainerLayout(observedWidth.width() ?? 1920, [520, 720, 960, 1200]),
+ );
+ const showBasic = createMemo(() => layout() !== 'compact');
+ const showOperational = createMemo(() => ['operational', 'expanded', 'full'].includes(layout()));
+ const showDetail = createMemo(() => ['expanded', 'full'].includes(layout()));
+ const showFsid = createMemo(() => layout() === 'full');
+ const visibleColumnCount = createMemo(
+ () =>
+ 4 +
+ Number(showBasic()) * 2 +
+ Number(showOperational()) * 2 +
+ Number(showDetail()) +
+ Number(showFsid()),
+ );
return (
<Show
@@ -232,7 +250,7 @@ export const ProxmoxCephTable: Component<{
/>
}
>
- <div class="space-y-3">
+ <div ref={observedWidth.setElement} class="space-y-3" data-proxmox-ceph-layout={layout()}>
<PlatformTableToolbar
search={search}
onSearchChange={setSearch}
@@ -256,27 +274,41 @@ export const ProxmoxCephTable: Component<{
}
>
<PlatformTableShell
- tableClass="min-w-[1100px] text-xs"
+ tableClass="min-w-[0px] table-fixed text-xs"
header={
<>
<TableHead class={getPlatformTableHeadClassForKind('name')}>Cluster</TableHead>
<TableHead class={getPlatformTableHeadClassForKind('text')}>Health</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('text')}>FSID</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Quorum
- </TableHead>
+ <Show when={showFsid()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>FSID</TableHead>
+ </Show>
+ <Show when={showBasic()}>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Quorum
+ </TableHead>
+ </Show>
<TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
OSDs
</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>PGs</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Pools
- </TableHead>
+ <Show when={showOperational()}>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ PGs
+ </TableHead>
+ </Show>
+ <Show when={showBasic()}>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Pools
+ </TableHead>
+ </Show>
<TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
Capacity
</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('text')}>Services</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('text')}>Detail</TableHead>
+ <Show when={showOperational()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Services</TableHead>
+ </Show>
+ <Show when={showDetail()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Detail</TableHead>
+ </Show>
</>
}
body={
@@ -335,58 +367,70 @@ export const ProxmoxCephTable: Component<{
</div>
</Show>
</TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
- >
- <span class="inline-block max-w-[10rem] truncate" title={fsid}>
- {fsid}
- </span>
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
- >
- {quorumLabel(cluster.ceph)}
- </TableCell>
+ <Show when={showFsid()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
+ >
+ <span class="inline-block max-w-[10rem] truncate" title={fsid}>
+ {fsid}
+ </span>
+ </TableCell>
+ </Show>
+ <Show when={showBasic()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ {quorumLabel(cluster.ceph)}
+ </TableCell>
+ </Show>
<TableCell
class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
>
{osdLabel(cluster)}
</TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content tabular-nums`}
- >
- <Show
- when={(cluster.ceph?.numPGs ?? 0) > 0}
- fallback={<span class="text-muted">—</span>}
+ <Show when={showOperational()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content tabular-nums`}
>
- {cluster.ceph?.numPGs}
- </Show>
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
- >
- {poolsLabel(cluster)}
- </TableCell>
+ <Show
+ when={(cluster.ceph?.numPGs ?? 0) > 0}
+ fallback={<span class="text-muted">—</span>}
+ >
+ {cluster.ceph?.numPGs}
+ </Show>
+ </TableCell>
+ </Show>
+ <Show when={showBasic()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ {poolsLabel(cluster)}
+ </TableCell>
+ </Show>
<TableCell
class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
>
{capacityLabel(cluster)}
</TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
- >
- {summarizeServices(cluster.ceph?.services)}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
- >
- {healthMessageCell(cluster)}
- </TableCell>
+ <Show when={showOperational()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
+ >
+ {summarizeServices(cluster.ceph?.services)}
+ </TableCell>
+ </Show>
+ <Show when={showDetail()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ {healthMessageCell(cluster)}
+ </TableCell>
+ </Show>
</TableRow>
<Show when={isOpen()}>
<InlineDetailTableRow
cellId={detailRowId()}
- colspan={10}
+ colspan={visibleColumnCount()}
contentClass="px-4 py-4"
data-inline-detail-for={cluster.id}
>
diff --git a/frontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsx
index 3090ceb462..7509d8d97e 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsx
@@ -1,4 +1,4 @@
-import { For, Show, createSignal, type Component } from 'solid-js';
+import { For, Show, createMemo, createSignal, type Component } from 'solid-js';
import { InlineDetailTableRow } from '@/components/shared/InlineDetailTableRow';
import { StatusDot } from '@/components/shared/StatusDot';
import { TableCell, TableHead, TableRow } from '@/components/shared/Table';
@@ -13,11 +13,13 @@ import {
formatPlatformTableIntegerValue,
formatPlatformTableUptimeValue,
getPlatformTableCellClassForKind,
+ getPlatformTableContainerLayout,
getPlatformTableHeadClassForKind,
type PlatformResourceStatusFilter,
PlatformTableEmptyState,
PlatformTableShell,
} from '@/features/platformPage/sharedPlatformPage';
+import { useObservedElementWidth } from '@/hooks/useObservedElementWidth';
import { PlatformResourceDetailToggleButton } from '@/features/platformPage/PlatformResourceDetailTableRow';
import type { Resource } from '@/types/resource';
import { ProxmoxMailGatewayDrawer } from './ProxmoxMailGatewayDrawer';
@@ -41,6 +43,22 @@ export const ProxmoxMailGatewayTable: Component<{
});
const [selectedId, setSelectedId] = createSignal<string | null>(null);
const toggleSelected = (id: string) => setSelectedId((current) => (current === id ? null : id));
+ const observedWidth = useObservedElementWidth();
+ const layout = createMemo(() =>
+ getPlatformTableContainerLayout(observedWidth.width() ?? 1920, [520, 720, 960, 1200]),
+ );
+ const showBasic = createMemo(() => layout() !== 'compact');
+ const showOperational = createMemo(() => ['operational', 'expanded', 'full'].includes(layout()));
+ const showVirus = createMemo(() => ['expanded', 'full'].includes(layout()));
+ const showVersion = createMemo(() => layout() === 'full');
+ const visibleColumnCount = createMemo(
+ () =>
+ 4 +
+ Number(showBasic()) * 2 +
+ Number(showOperational()) * 2 +
+ Number(showVirus()) +
+ Number(showVersion()),
+ );
return (
<Show
@@ -49,7 +67,7 @@ export const ProxmoxMailGatewayTable: Component<{
<PlatformTableEmptyState title={props.emptyTitle} description={props.emptyDescription} />
}
>
- <div class="space-y-3">
+ <div ref={observedWidth.setElement} class="space-y-3" data-proxmox-mail-layout={layout()}>
<PlatformTableToolbar
search={tableState.search}
onSearchChange={tableState.setSearch}
@@ -72,29 +90,39 @@ export const ProxmoxMailGatewayTable: Component<{
}
>
<PlatformTableShell
- tableClass="min-w-[1080px] text-xs"
+ tableClass="min-w-[0px] table-fixed text-xs"
header={
<>
<TableHead class={getPlatformTableHeadClassForKind('name')}>Instance</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('text')}>Version</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Nodes
- </TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Uptime
- </TableHead>
+ <Show when={showVersion()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Version</TableHead>
+ </Show>
+ <Show when={showBasic()}>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Nodes
+ </TableHead>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Uptime
+ </TableHead>
+ </Show>
<TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
Mail in
</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Spam
- </TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Virus
- </TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Quarantine
- </TableHead>
+ <Show when={showOperational()}>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Spam
+ </TableHead>
+ </Show>
+ <Show when={showVirus()}>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Virus
+ </TableHead>
+ </Show>
+ <Show when={showOperational()}>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Quarantine
+ </TableHead>
+ </Show>
<TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
Queue
</TableHead>
@@ -142,26 +170,30 @@ export const ProxmoxMailGatewayTable: Component<{
</span>
</div>
</TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
- >
- {version()}
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
- >
- <PlatformTableNumberValue
- value={pmg()?.nodeCount}
- format={formatPlatformTableIntegerValue}
- />
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
- >
- {formatPlatformTableUptimeValue(
- instance.uptime ?? pmg()?.uptimeSeconds,
- )}
- </TableCell>
+ <Show when={showVersion()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
+ >
+ {version()}
+ </TableCell>
+ </Show>
+ <Show when={showBasic()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ <PlatformTableNumberValue
+ value={pmg()?.nodeCount}
+ format={formatPlatformTableIntegerValue}
+ />
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ {formatPlatformTableUptimeValue(
+ instance.uptime ?? pmg()?.uptimeSeconds,
+ )}
+ </TableCell>
+ </Show>
<TableCell
class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
>
@@ -170,30 +202,36 @@ export const ProxmoxMailGatewayTable: Component<{
format={formatPlatformTableIntegerValue}
/>
</TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
- >
- <PlatformTableNumberValue
- value={pmg()?.spamIn}
- format={formatPlatformTableIntegerValue}
- />
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
- >
- <PlatformTableNumberValue
- value={pmg()?.virusIn}
- format={formatPlatformTableIntegerValue}
- />
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
- >
- <PlatformTableNumberValue
- value={pmg()?.quarantine}
- format={formatPlatformTableIntegerValue}
- />
- </TableCell>
+ <Show when={showOperational()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ <PlatformTableNumberValue
+ value={pmg()?.spamIn}
+ format={formatPlatformTableIntegerValue}
+ />
+ </TableCell>
+ </Show>
+ <Show when={showVirus()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ <PlatformTableNumberValue
+ value={pmg()?.virusIn}
+ format={formatPlatformTableIntegerValue}
+ />
+ </TableCell>
+ </Show>
+ <Show when={showOperational()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ <PlatformTableNumberValue
+ value={pmg()?.quarantine}
+ format={formatPlatformTableIntegerValue}
+ />
+ </TableCell>
+ </Show>
<TableCell
class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
>
@@ -214,7 +252,7 @@ export const ProxmoxMailGatewayTable: Component<{
<Show when={isOpen()}>
<InlineDetailTableRow
cellId={detailRowId()}
- colspan={10}
+ colspan={visibleColumnCount()}
contentClass="px-4 py-4"
data-inline-detail-for={instance.id}
>
diff --git a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
index e5094aaf0d..1ba1e68e52 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
@@ -257,7 +257,7 @@ export const ProxmoxNodesTable: Component<{
<For each={visibleColumns()}>
{(column) => (
<PlatformSortableTableHead kind={column.kind} sort={sort} sortKey={column.id}>
- {column.label}
+ {layoutMode() === 'mobile' && column.id === 'memory' ? 'Mem' : column.label}
</PlatformSortableTableHead>
)}
</For>
diff --git a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
index fbe12667fe..c37b15b021 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
@@ -158,7 +158,7 @@ export function ProxmoxPageSurface() {
);
return (
- <div data-testid="proxmox-page" class="space-y-3">
+ <div data-testid="proxmox-page" class="pulse-wide-data-surface space-y-3">
<PlatformSectionTabs tabs={visibleTabs()} active={activeTab()} ariaLabel="Proxmox sections" />
<Show
diff --git a/frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx
index 7b9c7a7bc4..4eb6ac974c 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx
@@ -11,12 +11,14 @@ import {
PlatformTableDurationValue,
PlatformTableRelativeTimeValue,
getPlatformTableCellClassForKind,
+ getPlatformTableContainerLayout,
getPlatformTableHeadClassForKind,
type PlatformTableFilterOption,
PlatformTableEmptyState,
PlatformTableLoadingState,
PlatformTableShell,
} from '@/features/platformPage/sharedPlatformPage';
+import { useObservedElementWidth } from '@/hooks/useObservedElementWidth';
import type { ReplicationJob, ReplicationJobsResponse } from '@/types/api';
// Replication is a Proxmox-specific concept (zfs send/receive scheduled
@@ -183,6 +185,14 @@ export const ProxmoxReplicationTable: Component<{
const total = createMemo(() => (props.jobs ?? []).length);
const visible = createMemo(() => filtered().length);
+ const observedWidth = useObservedElementWidth();
+ const layout = createMemo(() =>
+ getPlatformTableContainerLayout(observedWidth.width() ?? 1920, [520, 720, 960, 1200]),
+ );
+ const showJob = createMemo(() => layout() !== 'compact');
+ const showNext = createMemo(() => layout() !== 'compact');
+ const showOperational = createMemo(() => ['operational', 'expanded', 'full'].includes(layout()));
+ const showError = createMemo(() => ['expanded', 'full'].includes(layout()));
return (
<Show
@@ -214,7 +224,11 @@ export const ProxmoxReplicationTable: Component<{
/>
}
>
- <div class="space-y-3">
+ <div
+ ref={observedWidth.setElement}
+ class="space-y-3"
+ data-proxmox-replication-layout={layout()}
+ >
<PlatformTableToolbar
search={search}
onSearchChange={setSearch}
@@ -238,29 +252,41 @@ export const ProxmoxReplicationTable: Component<{
}
>
<PlatformTableShell
- tableClass="min-w-[1200px] text-xs"
+ tableClass="min-w-[0px] table-fixed text-xs"
header={
<>
<TableHead class={getPlatformTableHeadClassForKind('text')}>Status</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('text')}>Job</TableHead>
+ <Show when={showJob()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Job</TableHead>
+ </Show>
<TableHead class={getPlatformTableHeadClassForKind('name')}>Guest</TableHead>
<TableHead class={getPlatformTableHeadClassForKind('text')}>
Source → Target
</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('text')}>Schedule</TableHead>
+ <Show when={showOperational()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>
+ Schedule
+ </TableHead>
+ </Show>
<TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
Last sync
</TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Next sync
- </TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Duration
- </TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
- Fail count
- </TableHead>
- <TableHead class={getPlatformTableHeadClassForKind('text')}>Error</TableHead>
+ <Show when={showNext()}>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Next sync
+ </TableHead>
+ </Show>
+ <Show when={showOperational()}>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Duration
+ </TableHead>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Fails
+ </TableHead>
+ </Show>
+ <Show when={showError()}>
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Error</TableHead>
+ </Show>
</>
}
body={
@@ -287,11 +313,13 @@ export const ProxmoxReplicationTable: Component<{
</span>
</div>
</TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
- >
- <span title={job.id}>{job.jobId || job.id}</span>
- </TableCell>
+ <Show when={showJob()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
+ >
+ <span title={job.id}>{job.jobId || job.id}</span>
+ </TableCell>
+ </Show>
<TableCell
class={`${getPlatformTableCellClassForKind('name')} text-base-content`}
>
@@ -306,56 +334,64 @@ export const ProxmoxReplicationTable: Component<{
<span>{targetNode}</span>
</span>
</TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
- >
- {job.schedule || '—'}
- </TableCell>
+ <Show when={showOperational()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content font-mono text-[11px]`}
+ >
+ {job.schedule || '—'}
+ </TableCell>
+ </Show>
<TableCell
class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
>
<PlatformTableRelativeTimeValue value={syncTimeValue(job)} />
</TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
- >
- <span class={NEXT_SYNC_TONE_CLASS[next.tone]}>{next.text}</span>
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
- >
- <PlatformTableDurationValue
- seconds={job.lastSyncDurationSeconds}
- fallbackText={job.lastSyncDurationHuman}
- />
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content tabular-nums`}
- >
- <Show
- when={(job.failCount ?? 0) > 0}
- fallback={<span class="text-muted">0</span>}
+ <Show when={showNext()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
>
- <span class="text-red-600 dark:text-red-300 font-semibold">
- {job.failCount}
- </span>
- </Show>
- </TableCell>
- <TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
- >
- <Show
- when={!!job.error?.trim()}
- fallback={<span class="text-muted">—</span>}
+ <span class={NEXT_SYNC_TONE_CLASS[next.tone]}>{next.text}</span>
+ </TableCell>
+ </Show>
+ <Show when={showOperational()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ >
+ <PlatformTableDurationValue
+ seconds={job.lastSyncDurationSeconds}
+ fallbackText={job.lastSyncDurationHuman}
+ />
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content tabular-nums`}
>
- <span
- class="inline-block max-w-[18rem] truncate text-red-600 dark:text-red-300"
- title={job.error ?? ''}
+ <Show
+ when={(job.failCount ?? 0) > 0}
+ fallback={<span class="text-muted">0</span>}
>
- {job.error}
- </span>
- </Show>
- </TableCell>
+ <span class="text-red-600 dark:text-red-300 font-semibold">
+ {job.failCount}
+ </span>
+ </Show>
+ </TableCell>
+ </Show>
+ <Show when={showError()}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ >
+ <Show
+ when={!!job.error?.trim()}
+ fallback={<span class="text-muted">—</span>}
+ >
+ <span
+ class="inline-block max-w-[18rem] truncate text-red-600 dark:text-red-300"
+ title={job.error ?? ''}
+ >
+ {job.error}
+ </span>
+ </Show>
+ </TableCell>
+ </Show>
</TableRow>
);
}}
diff --git a/frontend-modern/src/features/proxmox/__tests__/proxmoxHostTableModel.test.ts b/frontend-modern/src/features/proxmox/__tests__/proxmoxHostTableModel.test.ts
index db66571dce..2daa8d4836 100644
--- a/frontend-modern/src/features/proxmox/__tests__/proxmoxHostTableModel.test.ts
+++ b/frontend-modern/src/features/proxmox/__tests__/proxmoxHostTableModel.test.ts
@@ -13,7 +13,7 @@ describe('proxmoxHostTableModel', () => {
const ids = columns.map((column) => column.id);
expect(ids).toEqual(['node', 'cpu', 'memory', 'disk']);
- expect(getProxmoxHostTableMinWidthClass('mobile')).toBe('min-w-[36rem]');
+ expect(getProxmoxHostTableMinWidthClass('mobile')).toBe('min-w-[0px]');
expect(getProxmoxHostColumnWidthStyle('node', 'mobile', ids)).toEqual({ width: '40%' });
expect(getProxmoxHostColumnWidthStyle('cpu', 'mobile', ids)).toEqual({ width: '20%' });
expect(getProxmoxHostColumnWidthStyle('memory', 'mobile', ids)).toEqual({ width: '20%' });
diff --git a/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts b/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts
index 7fd52450f1..d241dd3134 100644
--- a/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts
+++ b/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts
@@ -131,14 +131,14 @@ export const getProxmoxHostColumnWidthStyle = (
return getPlatformTableWeightedColumnWidthStyle(columnId, weights, visibleColumnIds);
};
-// Each layout has an explicit readable floor. The shared platform shell
-// otherwise applies its generic 48rem minimum even to the four-column mobile
-// layout, causing needless overflow around tablet widths. Wider modes retain
-// progressively larger floors so metric bars and labels never collapse.
+// The compact identity-plus-metrics layout is deliberately percentage based,
+// so it can use the actual phone-width container without a hidden horizontal
+// rail. Wider modes retain progressively larger floors so their extra context
+// does not collapse into unreadable labels.
export const getProxmoxHostTableMinWidthClass = (
layoutMode: WorkloadTableLayoutMode,
-): 'min-w-[36rem]' | 'min-w-[50rem]' | 'min-w-[64rem]' | 'min-w-[1240px]' => {
- if (layoutMode === 'mobile') return 'min-w-[36rem]';
+): 'min-w-[0px]' | 'min-w-[50rem]' | 'min-w-[64rem]' | 'min-w-[1240px]' => {
+ if (layoutMode === 'mobile') return 'min-w-[0px]';
if (layoutMode === 'tablet') return 'min-w-[50rem]';
if (layoutMode === 'compact') return 'min-w-[64rem]';
return 'min-w-[1240px]';
diff --git a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
index 3a516b4f4c..861dd523af 100644
--- a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
+++ b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
@@ -210,7 +210,7 @@ export function StandalonePageSurface() {
});
return (
- <div data-testid="standalone-page" class="space-y-4">
+ <div data-testid="standalone-page" class="pulse-wide-data-surface space-y-4">
<PlatformSectionTabs
tabs={STANDALONE_TAB_SPECS}
active={activeTab()}
diff --git a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
index 37e9bf0012..8bf0ce05fd 100644
--- a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
@@ -91,7 +91,7 @@ export function TrueNASPageSurface() {
);
return (
- <div data-testid="truenas-page" class="space-y-3">
+ <div data-testid="truenas-page" class="pulse-wide-data-surface space-y-3">
<PlatformSectionTabs tabs={tabs()} active={activeTab()} ariaLabel="TrueNAS sections" />
<Show
diff --git a/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx b/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx
index 6d8c3ca99c..d2398e4044 100644
--- a/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx
@@ -365,7 +365,7 @@ export const TrueNASStorageTopologyTable: Component<{
kind="numeric-value"
sort={sort}
sortKey="disks"
- class="hidden md:table-cell md:w-[8%]"
+ class="hidden sm:table-cell md:w-[8%]"
>
Disks
</PlatformSortableTableHead>
@@ -428,7 +428,7 @@ export const TrueNASStorageTopologyTable: Component<{
<CapacityCell row={row} />
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content sm:table-cell`}
>
<PlatformTableNumberValue
value={row.kind === 'pool' ? row.counts.disks : undefined}
diff --git a/frontend-modern/src/features/truenas/TrueNASSystemsTable.tsx b/frontend-modern/src/features/truenas/TrueNASSystemsTable.tsx
index ff9d00f74a..15345584be 100644
--- a/frontend-modern/src/features/truenas/TrueNASSystemsTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASSystemsTable.tsx
@@ -245,7 +245,7 @@ export const TrueNASSystemsTable: Component<{
kind="numeric-value"
sort={sort}
sortKey="temp"
- class="hidden md:table-cell md:w-[6%]"
+ class="hidden sm:table-cell md:w-[6%]"
>
Temp
</PlatformSortableTableHead>
@@ -431,7 +431,7 @@ export const TrueNASSystemsTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content sm:table-cell`}
>
<PlatformTableTemperatureValue value={system.temperature} />
</TableCell>
diff --git a/frontend-modern/src/features/vmware/VmwarePageSurface.tsx b/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
index 7bf353808e..3d488d6b1c 100644
--- a/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
+++ b/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
@@ -136,7 +136,7 @@ export function VmwarePageSurface() {
);
return (
- <div data-testid="vmware-page" class="space-y-3">
+ <div data-testid="vmware-page" class="pulse-wide-data-surface space-y-3">
<PlatformSectionTabs tabs={tabs()} active={activeTab()} ariaLabel="VMware sections" />
<Show
diff --git a/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx b/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx
index e43107e017..a6701c0329 100644
--- a/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx
@@ -215,7 +215,7 @@ export const VsphereDatastoresTable: Component<{
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="hidden md:table-cell md:w-[14%]"
+ class="hidden sm:table-cell md:w-[14%]"
>
Hosts
</PlatformSortableTableHead>
@@ -223,7 +223,7 @@ export const VsphereDatastoresTable: Component<{
kind="numeric-value"
sort={sort}
sortKey="vms"
- class="hidden md:table-cell md:w-[7%]"
+ class="hidden sm:table-cell md:w-[7%]"
>
VMs
</PlatformSortableTableHead>
@@ -309,13 +309,13 @@ export const VsphereDatastoresTable: Component<{
</Show>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}
title={hosts().title}
>
<span class="block truncate">{hosts().label}</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content tabular-nums md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content tabular-nums sm:table-cell`}
>
{consumerCount(datastore)}
</TableCell>
diff --git a/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx b/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx
index 739b99c264..cc7f9aed05 100644
--- a/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx
@@ -188,7 +188,7 @@ export const VsphereNetworksTable: Component<{
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="hidden md:table-cell md:w-[18%]"
+ class="hidden sm:table-cell md:w-[18%]"
>
Hosts
</PlatformSortableTableHead>
@@ -196,7 +196,7 @@ export const VsphereNetworksTable: Component<{
kind="numeric-value"
sort={sort}
sortKey="vms"
- class="hidden md:table-cell md:w-[7%]"
+ class="hidden sm:table-cell md:w-[7%]"
>
VMs
</PlatformSortableTableHead>
@@ -274,13 +274,13 @@ export const VsphereNetworksTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content sm:table-cell`}
title={hosts().title}
>
<span class="block truncate">{hosts().label}</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content tabular-nums md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content tabular-nums sm:table-cell`}
>
{vmCount(network)}
</TableCell>
diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.css
index 12b071e302..b63353f1e3 100644
--- a/frontend-modern/src/index.css
+++ b/frontend-modern/src/index.css
@@ -186,10 +186,57 @@
}
.table-scroll-shell {
- contain: inline-size paint;
+ container-type: inline-size;
+ contain: paint;
overscroll-behavior-x: contain;
}
+ /*
+ Platform tables live inside a resizable application pane, so viewport
+ breakpoints do not describe the space the table actually owns. Reinterpret
+ the existing responsive table-cell priorities against the scroll shell's
+ inline size. This keeps the most useful base columns visible first, then
+ progressively restores context and diagnostic columns without either
+ squeezing ten columns into a tablet pane or reaching for a scrollbar.
+ */
+ .table-scroll-shell :is(th, td).hidden.sm\:table-cell,
+ .table-scroll-shell :is(th, td).hidden.md\:table-cell,
+ .table-scroll-shell :is(th, td).hidden.lg\:table-cell,
+ .table-scroll-shell :is(th, td).hidden.xl\:table-cell,
+ .table-scroll-shell :is(th, td).hidden.\32xl\:table-cell {
+ display: none;
+ }
+
+ @container (min-width: 34rem) {
+ .table-scroll-shell :is(th, td).hidden.sm\:table-cell {
+ display: table-cell;
+ }
+ }
+
+ @container (min-width: 64rem) {
+ .table-scroll-shell :is(th, td).hidden.md\:table-cell {
+ display: table-cell;
+ }
+ }
+
+ @container (min-width: 76rem) {
+ .table-scroll-shell :is(th, td).hidden.lg\:table-cell {
+ display: table-cell;
+ }
+ }
+
+ @container (min-width: 88rem) {
+ .table-scroll-shell :is(th, td).hidden.xl\:table-cell {
+ display: table-cell;
+ }
+ }
+
+ @container (min-width: 104rem) {
+ .table-scroll-shell :is(th, td).hidden.\32xl\:table-cell {
+ display: table-cell;
+ }
+ }
+
.app-scroll-shell {
scrollbar-gutter: stable;
}