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.

preserve readable mobile platform tables

rcourtmanb96640ccdc56
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 0f0c32fdd0..9783e8283f 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -990,7 +990,11 @@ not a replacement status card, CTA band, or page-local nested card.
Dense platform tables must also preserve readable columns at phone widths.
`PlatformTableShell` owns the responsive minimum-width policy, preserves any
explicit base floor declared by the feature table, and otherwise applies
- the shared platform minimum before breakpoint-specific widths take over.
+ the shared platform minimum before breakpoint-specific widths take over. Its
+ class composition removes a consumer's redundant `min-w-full` token because
+ the shared `Table` already fills the available width and that second
+ minimum would override the phone-width floor, squeezing names and metrics
+ into unreadable slivers.
Narrow viewports keep document-level overflow
contained by `Table` and scroll the table itself; feature tables must not
squeeze every declared column into the viewport, override the shared floor,
@@ -3502,10 +3506,13 @@ label and destination intent; they must not own CTA button chrome.
Platform table frames are one of those registry-backed templates.
`frontend-modern/src/features/platformPage/sharedPlatformPage.tsx` owns
`PlatformTableShell`, including the canonical table card, header row, and body
-divide styling. Platform table frames now have no local-frame exceptions in
-`shared-template-registry.json`: new and existing platform tables must compose
-`PlatformTableShell` instead of recreating the `TableCard`, header row, or body
-divide frame locally. Platform table consumers must preserve the owner split:
+divide styling. It also owns the final responsive table-class composition, so
+feature tables may supply breakpoint floors but cannot accidentally override
+the shared phone-width floor with `min-w-full`. Platform table frames now have
+no local-frame exceptions in `shared-template-registry.json`: new and existing
+platform tables must compose `PlatformTableShell` instead of recreating the
+`TableCard`, header row, or body divide frame locally. Platform table consumers
+must preserve the owner split:
frontend-primitives owns the repeated `PlatformTableShell` frame and guardrail
registry, while platform and unified-resource consumers own the source-specific
row fields, drawers, and resource semantics.
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index d9d7d6dccc..4a4e5989a4 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -344,6 +344,10 @@ table frame is frontend-primitives-owned. Docker / Podman, Kubernetes, Proxmox,
Standalone, TrueNAS, and vSphere platform tables own source-specific row fields,
filter semantics, drawer handoffs, and resource projections, while
`PlatformTableShell` owns the shared table card, header row, and body frame.
+That shell also owns the responsive minimum-width composition: source tables
+may declare their desktop breakpoint floors, while the shared shell removes
+the redundant `min-w-full` minimum that would otherwise squeeze phone-width
+names and metrics below the canonical readable-column floor.
Future platform tables must keep that split: row data and platform semantics
stay in the unified-resource consumer, and the repeated table shell stays in the
shared frontend primitive.
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 52c093ce32..25e8a6a289 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,17 +1,13 @@
{
"version": 1,
- "base_sha": "85b0530439992e461e3270278118ba5d018b3dcb",
- "verified_at": "2026-08-03T14:30:18Z",
+ "base_sha": "4e67a93d4966ca98892ef31c0c0219959442c58b",
+ "verified_at": "2026-08-03T16:42:17Z",
"result": "passed",
- "changed_paths": [
- "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx",
- "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx"
- ],
+ "changed_paths": ["frontend-modern/src/features/platformPage/sharedPlatformPage.tsx"],
"content_sha256": {
- "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "f6b3e7f839197e2662765cd69f17911fa86c8f97922dda3d93a87ca21e7c984b",
- "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx": "ebb84ed0fc935309efa62c04f3cc4e7d13eea38ff0d2b6473a892430617fa433"
+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "baa823e127fd74bc8d9abd6d0c05c82d4822a182ba374927e3e04e980b02406a"
},
- "routes": ["/vmware/overview", "/proxmox/backups"],
+ "routes": ["/kubernetes/overview", "/docker/overview"],
"viewports": [
{
"width": 1280,
@@ -23,18 +19,23 @@
}
],
"states": [
- "Desktop vSphere overview filter rail with its default actions and with a Node filter active",
- "Phone-width vSphere overview filter rail collapsed, expanded with no active chips, expanded with a Node chip, and reset after Clear filters",
- "Phone-width vSphere View preferences open above the mobile navigation",
- "Desktop and phone-width Proxmox backup filter rails in their collapsed and expanded states"
+ "Desktop Kubernetes overview with cluster and deployment tables plus the default workload filter rail",
+ "Phone-width Kubernetes overview with the filter rail collapsed and expanded",
+ "Phone-width Kubernetes cluster and deployment tables at their leading columns and horizontally scrolled metric columns",
+ "Desktop Docker overview with host and container tables plus the default container filter rail",
+ "Phone-width Docker overview with the filter rail collapsed and expanded",
+ "Phone-width Docker host table at its leading columns and horizontally scrolled memory and disk columns"
],
"interactions": [
- "Expanded the phone-width vSphere filter rail and confirmed Add filter, Saved, and View share one action row while Trend range remains on its own row",
- "Selected Node: esxi-01.lab.local and confirmed the active chip stays with Add filter while Clear filters, Saved and View, and Trend range wrap without clipping",
- "Cleared the Node filter and confirmed the compact Add filter, Saved, and View action row returned",
- "Opened View preferences at 390 by 844 and measured the panel fully inside the viewport with clear separation from the fixed mobile navigation",
- "Closed View preferences with Escape and confirmed the panel disappeared, aria-expanded reset, and focus returned to View",
- "Confirmed the vSphere desktop action rail remains aligned after the shared layout change",
- "Confirmed Proxmox Backups remains aligned on desktop and phone-width layouts, including collapsed and expanded filter rails"
+ "Measured the Kubernetes cluster table at 390 by 844 and confirmed its computed minimum width is 768 pixels, its leading name cell is 192 pixels, and full cluster names remain readable",
+ "Scrolled the Kubernetes cluster table horizontally and confirmed Nodes, CPU, and Memory remain reachable inside the table-owned scroll shell",
+ "Expanded the Kubernetes workload filter rail after table scrolling and confirmed Add filter, Saved, and the row count remain aligned without clipping",
+ "Confirmed the Kubernetes desktop cluster and deployment tables retain their complete column layout",
+ "Confirmed Docker host names and container names remain readable at phone width",
+ "Scrolled the Docker host table horizontally and confirmed Memory and Disk metrics remain reachable",
+ "Measured both Docker table wrappers and confirmed 768-pixel tables scroll inside 344-pixel wrappers while the 390-pixel document has no horizontal overflow",
+ "Expanded the Docker container filter rail and confirmed Add filter, Saved, View, and the container count wrap without clipping",
+ "Confirmed the Docker desktop host and container tables retain their complete column layout",
+ "Read browser warnings and errors after the final responsive pass and confirmed none were present"
]
}
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index a357ac009d..d301a6af02 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -5213,9 +5213,9 @@ describe('shared primitive guardrails', () => {
expect(sharedPlatformPageSource).toContain(
"export const PLATFORM_TABLE_DEFAULT_RESPONSIVE_MIN_WIDTH_CLASS = 'min-w-[48rem]'",
);
- expect(sharedPlatformPageSource).toContain(
- 'getPlatformTableResponsiveMinWidthClass(props.tableClass)',
- );
+ expect(sharedPlatformPageSource).toContain('export function getPlatformTableClass');
+ expect(sharedPlatformPageSource).toContain("className !== 'min-w-full'");
+ expect(sharedPlatformPageSource).toContain('class={getPlatformTableClass(props.tableClass)}');
for (const [path, source] of [
['src/features/docker/DockerHostsTable.tsx', dockerHostsTableSource],
diff --git a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
index 56e8360208..0f7b6e841e 100644
--- a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
+++ b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
@@ -26,6 +26,7 @@ import {
filterPlatformResources,
formatPlatformTableTextValue,
getPlatformTableFiniteMetric,
+ getPlatformTableClass,
getPlatformResourceCountNoun,
getPlatformTableResponsiveMinWidthClass,
getPlatformTableWeightedColumnWidthStyle,
@@ -61,6 +62,16 @@ describe('getPlatformTableResponsiveMinWidthClass', () => {
),
).toBe('');
});
+
+ it('removes the conflicting full-width minimum when composing table classes', () => {
+ expect(getPlatformTableClass()).toBe('min-w-[48rem]');
+ 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]',
+ );
+ expect(getPlatformTableClass('min-w-full min-w-[850px] table-fixed md:min-w-[1320px]')).toBe(
+ 'min-w-[850px] table-fixed md:min-w-[1320px]',
+ );
+ });
});
describe('normalizePlatformResourceStatusFilter', () => {
diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
index 85b3424ff0..3cc0fe8bc3 100644
--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
@@ -132,6 +132,15 @@ export function getPlatformTableResponsiveMinWidthClass(tableClass?: string): st
return hasExplicitBaseFloor ? '' : PLATFORM_TABLE_DEFAULT_RESPONSIVE_MIN_WIDTH_CLASS;
}
+export function getPlatformTableClass(tableClass?: string): string {
+ const featureClasses = (tableClass ?? '')
+ .split(/\s+/)
+ .filter((className) => className.length > 0 && className !== 'min-w-full')
+ .join(' ');
+
+ return `${getPlatformTableResponsiveMinWidthClass(tableClass)} ${featureClasses}`.trim();
+}
+
export type PlatformTableShellProps = {
title?: JSX.Element;
actions?: JSX.Element;
@@ -147,12 +156,7 @@ export function PlatformTableShell(props: PlatformTableShellProps) {
return (
<TableCard class={props.cardClass ?? PLATFORM_TABLE_CARD_CLASS}>
<TableCardHeader title={props.title} actions={props.actions} />
- <Table
- class={`${getPlatformTableResponsiveMinWidthClass(props.tableClass)} ${
- props.tableClass ?? ''
- }`.trim()}
- wrapperClass={props.tableWrapperClass}
- >
+ <Table class={getPlatformTableClass(props.tableClass)} wrapperClass={props.tableWrapperClass}>
{props.colgroup}
<TableHeader>
<TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>{props.header}</TableRow>