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.

Keep Android table gestures on the page

rcourtmana5e879c0c9a5
diff --git a/docs/release-control/v6/internal/records/frontend-platform-canonicalization-audit-2026-08-24.md b/docs/release-control/v6/internal/records/frontend-platform-canonicalization-audit-2026-08-24.md
index b8a2606994..89de0fd01a 100644
--- a/docs/release-control/v6/internal/records/frontend-platform-canonicalization-audit-2026-08-24.md
+++ b/docs/release-control/v6/internal/records/frontend-platform-canonicalization-audit-2026-08-24.md
@@ -251,8 +251,29 @@ projection. An independent Computer Use swipe over Docker's windowed container
table at 390×844 moved the page from the host summary to the footer while
preserving the table as part of that single page scroll. Focused runtime and
source-contract tests protect the shared owner and every consumer.
-Updated visual evidence is stored as
-`post-docker-windowed-touch-page-scroll-390x844.jpg` alongside the audit
+
+Customer verification on Chrome Android then identified a distinct remaining
+effect: the container table itself elastically stretched while the page stayed
+fixed. The prior Computer Use proof was invalid for this path because the page
+had initialized at desktop width before device emulation was enabled, leaving
+the 12-row demo below the 140-row desktop window rather than exercising phone
+windowing. Chrome's newer non-root overscroll effect also made the horizontal
+table wrapper visibly stretch at its vertical boundary even after touch
+listeners were removed.
+
+The final canonical rule is structural. `Table` exposes the explicit
+`phoneVerticalScrollOwner` variant, and every `PlatformDetailTable` selects the
+page owner. Below 40rem the responsive platform table already fits its
+prioritized columns, so `.table-scroll-shell-phone-page` uses `overflow: clip`
+and is not a nested scrollport on either axis. Wider horizontal tables retain
+their rail, with `overscroll-behavior-y: chain` where Chromium supports it so
+vertical propagation has no table-local stretch effect. A fresh 390×844 Chrome
+reload performed after emulation was enabled and with a forced six-item phone
+window measured both Docker wrappers at `overflow-x: clip`, `overflow-y: clip`,
+`scrollWidth === clientWidth === 372`, and vertical overscroll `chain`. The
+production 36-item phone budget was restored after that diagnostic run.
+Updated evidence is stored as
+`post-docker-chrome-android-page-scroll-owner-390x844.jpg` alongside the audit
captures.
## Remaining exceptions
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index a5acb4e4bc..c487724cbb 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -118,6 +118,15 @@ header band, borders, single-line density, responsive table class, and overflow
boundary. Provider-specific columns and cell contents are intentional variants,
but a drawer or expanded row must not rebuild raw `table` / `thead` / `tbody`
chrome or duplicate the shared header class strings.
+`PlatformDetailTable` also declares `phoneVerticalScrollOwner="page"` through
+the shared `Table` API. At the phone stage, canonical platform columns already
+fit their real container, so that variant clips accidental overflow instead of
+creating a nested scrollport that Chrome Android can stretch. Wider tables keep
+horizontal overflow, while `overscroll-behavior-y: chain` progressively removes
+Chromium's table-local boundary effect without blocking propagation to the app
+scroll shell. A platform page must not remove this variant or create a competing
+phone table scroller to recover columns that should be handled by responsive
+priority.
Expandable platform summary rows use
`getPlatformResourceDetailRowInteractionProps` (or
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 3a152a52bb..c68dfdfe88 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -603,6 +603,9 @@ describe('App architecture', () => {
expect(appStylesSource).toContain('contain: paint');
expect(appStylesSource).toContain('overflow-y: hidden');
expect(appStylesSource).toContain('overscroll-behavior-x: contain');
+ expect(appStylesSource).toContain('overscroll-behavior-y: chain');
+ expect(appStylesSource).toContain('.table-scroll-shell.table-scroll-shell-phone-page');
+ expect(appStylesSource).toContain('overflow: clip');
expect(appStylesSource).toContain('.progress-fill-frame');
expect(appStylesSource).toContain('.metric-fill-geometry');
expect(appStylesSource).toContain('.animated-number');
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index f4ee05a14d..6334d7ffb8 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -1387,6 +1387,11 @@ describe('shared primitive guardrails', () => {
expect(frontendIndexCssSource).toContain('contain: paint');
expect(frontendIndexCssSource).toContain('overflow-y: hidden');
expect(frontendIndexCssSource).toContain('overscroll-behavior-x: contain');
+ expect(frontendIndexCssSource).toContain('overscroll-behavior-y: chain');
+ expect(frontendIndexCssSource).toContain('.table-scroll-shell.table-scroll-shell-phone-page');
+ expect(frontendIndexCssSource).toContain('overflow: clip');
+ expect(tableSource).toContain("phoneVerticalScrollOwner?: 'page' | 'table'");
+ expect(tableSource).toContain('table-scroll-shell-phone-page');
expect(windowedPageScrollSource).toContain(
"addEventListener('scroll', options.onScroll, { passive: true })",
);
@@ -5371,6 +5376,7 @@ describe('shared primitive guardrails', () => {
);
expect(sharedPlatformPageSource).toContain('TableCard class={props.cardClass');
expect(sharedPlatformPageSource).toContain('export function PlatformDetailTable');
+ expect(sharedPlatformPageSource).toContain('phoneVerticalScrollOwner="page"');
expect(sharedPlatformPageSource).toContain('export function PlatformDetailTableHeader');
expect(sharedPlatformPageSource).toContain('export function PlatformDetailTableBody');
expect(sharedPlatformPageSource).toContain('class={`${PLATFORM_TABLE_HEADER_ROW_CLASS}');
diff --git a/frontend-modern/src/components/shared/Table.tsx b/frontend-modern/src/components/shared/Table.tsx
index 2d4a7ad96f..6d2fdbb506 100644
--- a/frontend-modern/src/components/shared/Table.tsx
+++ b/frontend-modern/src/components/shared/Table.tsx
@@ -1,6 +1,7 @@
import { JSX, splitProps } from 'solid-js';
export interface TableProps extends JSX.HTMLAttributes<HTMLTableElement> {
+ phoneVerticalScrollOwner?: 'page' | 'table';
wrapperClass?: string;
wrapperProps?: JSX.HTMLAttributes<HTMLDivElement>;
wrapperRef?: (el: HTMLDivElement) => void;
@@ -11,6 +12,7 @@ export function Table(props: TableProps) {
const [local, rest] = splitProps(props, [
'class',
'children',
+ 'phoneVerticalScrollOwner',
'wrapperClass',
'wrapperProps',
'wrapperRef',
@@ -19,7 +21,7 @@ export function Table(props: TableProps) {
<div
{...local.wrapperProps}
ref={local.wrapperRef}
- class={`table-scroll-shell w-full min-w-0 max-w-full overflow-x-auto touch-scroll ${local.wrapperClass || ''}`}
+ class={`table-scroll-shell w-full min-w-0 max-w-full overflow-x-auto touch-scroll ${local.phoneVerticalScrollOwner === 'page' ? 'table-scroll-shell-phone-page' : ''} ${local.wrapperClass || ''}`}
>
<table
class={`w-full border-collapse text-left whitespace-nowrap ${local.class || ''}`}
diff --git a/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx b/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx
index 54af3db792..4691fbf0fa 100644
--- a/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx
@@ -63,6 +63,8 @@ describe('PulseDataGrid', () => {
expect(tableSource).toContain(
'table-scroll-shell w-full min-w-0 max-w-full overflow-x-auto touch-scroll',
);
+ expect(tableSource).toContain("phoneVerticalScrollOwner?: 'page' | 'table'");
+ expect(tableSource).toContain('table-scroll-shell-phone-page');
expect(tableSource).toContain('height?: string | number;');
expect(tableSource).not.toContain('style={{');
expect(tableSource).not.toContain('style={');
diff --git a/frontend-modern/src/components/shared/__tests__/Table.test.tsx b/frontend-modern/src/components/shared/__tests__/Table.test.tsx
index 4c1116be82..484cecc996 100644
--- a/frontend-modern/src/components/shared/__tests__/Table.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/Table.test.tsx
@@ -20,6 +20,22 @@ describe('TableBody', () => {
expect(tableSource).not.toContain('style={');
});
+ it('exposes an explicit phone page-scroll owner variant', () => {
+ render(() => (
+ <Table phoneVerticalScrollOwner="page">
+ <tbody>
+ <tr>
+ <td>phone row</td>
+ </tr>
+ </tbody>
+ </Table>
+ ));
+
+ expect(screen.getByText('phone row').closest('.table-scroll-shell')).toHaveClass(
+ 'table-scroll-shell-phone-page',
+ );
+ });
+
it('keeps default dividers when no custom divider classes are provided', () => {
render(() => (
<Table>
diff --git a/frontend-modern/src/features/platformPage/__tests__/PlatformDetailTable.test.tsx b/frontend-modern/src/features/platformPage/__tests__/PlatformDetailTable.test.tsx
index beeac1c292..19b6ab1364 100644
--- a/frontend-modern/src/features/platformPage/__tests__/PlatformDetailTable.test.tsx
+++ b/frontend-modern/src/features/platformPage/__tests__/PlatformDetailTable.test.tsx
@@ -26,6 +26,7 @@ describe('PlatformDetailTable', () => {
const table = screen.getByRole('table');
expect(table).toHaveClass('platform-table', 'min-w-[0px]', 'table-fixed', 'text-xs');
+ expect(table.parentElement).toHaveClass('table-scroll-shell-phone-page');
expect(table.querySelector('thead tr')).toHaveClass('bg-surface-alt', 'border-border');
expect(table.querySelector('tbody')).toHaveClass('divide-y', 'divide-border');
});
diff --git a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
index bd805de3c8..cda4a05496 100644
--- a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
+++ b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
@@ -262,9 +262,15 @@ describe('platform overview layout guardrails', () => {
expect(source).toContain('PlatformDetailTableBody');
expect(source).toContain('getPlatformTableHeadClassForKind');
expect(source).toContain('getPlatformTableCellClassForKind');
- expect(source).not.toMatch(/import \{[^}]*\bTable\b[^}]*\} from '@\/components\/shared\/Table'/);
- expect(source).not.toMatch(/import \{[^}]*\bTableHeader\b[^}]*\} from '@\/components\/shared\/Table'/);
- expect(source).not.toMatch(/import \{[^}]*\bTableBody\b[^}]*\} from '@\/components\/shared\/Table'/);
+ expect(source).not.toMatch(
+ /import \{[^}]*\bTable\b[^}]*\} from '@\/components\/shared\/Table'/,
+ );
+ expect(source).not.toMatch(
+ /import \{[^}]*\bTableHeader\b[^}]*\} from '@\/components\/shared\/Table'/,
+ );
+ expect(source).not.toMatch(
+ /import \{[^}]*\bTableBody\b[^}]*\} from '@\/components\/shared\/Table'/,
+ );
expect(source).not.toContain('PLATFORM_TABLE_HEADER_ROW_CLASS');
expect(source).not.toContain('PLATFORM_TABLE_BODY_CLASS');
expect(source).not.toContain('<table');
@@ -278,9 +284,7 @@ describe('platform overview layout guardrails', () => {
expect(proxmoxMailGatewayDrawerSource).toContain(
'<PlatformDetailTable class="min-w-0 table-fixed text-xs">',
);
- expect(sharedPlatformPageSource).toContain(
- '<Table {...props} class={getPlatformTableClass(props.class)} />',
- );
+ expect(sharedPlatformPageSource).toContain('phoneVerticalScrollOwner="page"');
expect(proxmoxMailGatewayDrawerSource).toContain(
'platform-table-mobile-w-10 platform-table-narrow-hidden md:w-[15%]',
);
diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
index f8a08ef139..28fe7cda40 100644
--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
@@ -292,7 +292,9 @@ export function getPlatformTableClass(tableClass?: string): string {
// tables. Domain-specific columns remain caller-owned; the table chrome does
// not fork merely because it is nested.
export function PlatformDetailTable(props: TableProps) {
- return <Table {...props} class={getPlatformTableClass(props.class)} />;
+ return (
+ <Table {...props} class={getPlatformTableClass(props.class)} phoneVerticalScrollOwner="page" />
+ );
}
export function PlatformDetailTableHeader(props: { children: JSX.Element; class?: string }) {
diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.css
index 767f9fcb00..f75054ca84 100644
--- a/frontend-modern/src/index.css
+++ b/frontend-modern/src/index.css
@@ -221,6 +221,19 @@
/* Tables own horizontal overflow only; vertical gestures belong to the page. */
overflow-y: hidden;
overscroll-behavior-x: contain;
+ /* Newer Chromium renders elastic stretch on nested scrollers. `chain` keeps
+ vertical propagation to the app shell without the table-local effect. */
+ overscroll-behavior-y: auto;
+ overscroll-behavior-y: chain;
+ }
+
+ /* Canonical platform tables already collapse to their prioritized phone
+ columns. Remove their nested scrollport entirely at that stage so Android
+ Chrome cannot stretch the table instead of handing the gesture to the app. */
+ @media (max-width: 39.999rem) {
+ .table-scroll-shell.table-scroll-shell-phone-page {
+ overflow: clip;
+ }
}
/*