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.

Move node preview control below table

rcourtman1fbf10e2c2fc
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 9aaaba8633..160d4e13ec 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -2152,11 +2152,14 @@ default` instead of fusing provider and badge text such as
must not leave the same title floating above the filter card or recreate
table-header chrome outside the canonical Workloads frame.
Large provider inventories use the shared `createPlatformTablePreview` and
- `PlatformTablePreviewToggle` boundary to keep the controlled workload table
+ `PlatformTablePreviewFooter` boundary to keep the controlled workload table
in the initial reading flow: Proxmox shows eight node rows by default on
- larger layouts and four on phone-sized layouts, with an accessible,
- reversible show-all control in the Nodes header. Expansion is deliberate
- session state and must not persist a page-burying expanded default.
+ larger layouts and four on phone-sized layouts. The accessible, reversible
+ show-all control belongs below the bounded rows, where a shared fade,
+ remaining-row hint, and directional chevron communicate that the list
+ continues; it must not compete with topology context in the Nodes header.
+ Expansion is deliberate session state and must not persist a page-burying
+ expanded default.
Docker / Podman, Kubernetes, TrueNAS, VMware vSphere, and Standalone Machines must continue using their shared
`PlatformTableToolbar` counters and table headers; none may add a parallel
estate card grid or provider-only spotlight surface.
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index a7bfa77c58..aa80b1057b 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -2064,6 +2064,12 @@ table owners. Proxmox host row version, uptime, temperature, CPU, memory, disk,
network I/O, and disk I/O presentation must derive from canonical resource
facets and the shared `nodeFromResource` adapter; platform pages must not
rebuild resource identity, merge policy, or metric-target inference locally.
+The bounded Proxmox node preview must preserve that canonical row ordering and
+render its expansion affordance through the shared platform-table continuation
+footer after the visible rows. The footer may dim the final row edge and expose
+the remaining-row count, but expanding or collapsing it only changes the
+client-side visible slice; it must not refetch, reorder, or redefine the
+canonical resource collection.
The registry and presentation coalescer also own metric-source freshness. When
two source facets contribute the same metric, source priority decides only if
both sources have equivalent freshness. A stale source must not hold CPU,
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 9d5b3ea6de..3d44892874 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,17 +1,15 @@
{
"version": 1,
- "base_sha": "a585eab712a7e80ef4b148c650fa5a34ff01e2c7",
- "verified_at": "2026-08-24T10:18:41Z",
+ "base_sha": "095b0124557f04672a2b08530eba1da732ebf5b6",
+ "verified_at": "2026-08-24T10:30:06Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx",
- "frontend-modern/src/components/Workloads/WorkloadsTable.tsx",
- "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx"
+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx": "466fe1160c58bba42fbce61e74f602a8ddc30ef463c38b0c07968881d70d8bca",
- "frontend-modern/src/components/Workloads/WorkloadsTable.tsx": "9849f4f54fa5eab0cb5394c683cbdf72a4831672672609f2ee9a8801246f0962",
- "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx": "1e6daf19456ff79e7181e8117bbb2064feb53b852438294a58dd2fa5197b3817"
+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "83568958f52d09910fb15ec3d350cbeb30d04050849470601fb2941e995746f5",
+ "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx": "f9f76a8da5d7d721196acfe92052564e056404ceb07ffae77e2b25f2b347fc7b"
},
"routes": ["/proxmox"],
"viewports": [
@@ -25,17 +23,16 @@
}
],
"states": [
- "managed hot-dev mock estate with the Proxmox Nodes and Guests sections visible",
- "phone Guests filter controls and populated workload table",
- "phone filtered-empty workload table state",
- "desktop Guests filter controls and populated workload table"
+ "managed hot-dev mock estate with the bounded Proxmox Nodes preview visible",
+ "phone node preview collapsed to four rows",
+ "phone node preview expanded through the continuation footer",
+ "desktop node preview collapsed to eight rows"
],
"interactions": [
- "confirmed Guests and its inventory count render inside the canonical grey table-card header band at 390x844",
- "confirmed the phone table remains within the viewport without new horizontal overflow",
- "applied a no-match search and confirmed the Guests header remains attached to the empty table card",
- "confirmed the same table-card header treatment at 1280x720 desktop width",
- "cleared the temporary verification search",
+ "confirmed the final phone row fades into a full-width footer labelled Show all 50 nodes with 46 more below",
+ "clicked the phone footer and confirmed it expanded in one action, removed the fade, and changed to Show fewer nodes",
+ "collapsed the preview and confirmed the desktop footer reports 42 more below after eight visible rows",
+ "confirmed the desktop node card has no new horizontal overflow",
"restored the browser viewport after verification"
]
}
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index c78aa720a1..60447163ba 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -5270,7 +5270,8 @@ describe('shared primitive guardrails', () => {
expect(sharedPlatformPageSource).toContain("className !== 'min-w-full'");
expect(sharedPlatformPageSource).toContain('class={getPlatformTableClass(props.tableClass)}');
expect(sharedPlatformPageSource).toContain('export function createPlatformTablePreview');
- expect(sharedPlatformPageSource).toContain('export function PlatformTablePreviewToggle');
+ expect(sharedPlatformPageSource).toContain('export function PlatformTablePreviewFooter');
+ expect(sharedPlatformPageSource).toContain('data-platform-table-preview-footer');
expect(sharedPlatformPageSource).toContain('aria-expanded={props.expanded}');
for (const [path, source] of [
diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
index 800ecce773..8c557c7106 100644
--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
@@ -281,6 +281,7 @@ export function getPlatformTableClass(tableClass?: string): string {
export type PlatformTableShellProps = {
title?: JSX.Element;
actions?: JSX.Element;
+ footer?: JSX.Element;
tableClass?: string;
tableWrapperClass?: string;
cardClass?: string;
@@ -300,6 +301,7 @@ export function PlatformTableShell(props: PlatformTableShellProps) {
</TableHeader>
<TableBody class={PLATFORM_TABLE_BODY_CLASS}>{props.body}</TableBody>
</Table>
+ {props.footer}
</TableCard>
);
}
@@ -331,10 +333,11 @@ export function createPlatformTablePreview<Row>(options: {
};
}
-export function PlatformTablePreviewToggle(props: {
+export function PlatformTablePreviewFooter(props: {
expanded: boolean;
canExpand: boolean;
total: number;
+ visibleCount: number;
noun: string;
showCount?: boolean;
onToggle: () => void;
@@ -342,24 +345,47 @@ export function PlatformTablePreviewToggle(props: {
const collapsedLabel = () =>
props.showCount === false ? `Show all ${props.noun}` : `Show all ${props.total} ${props.noun}`;
const label = () => (props.expanded ? `Show fewer ${props.noun}` : collapsedLabel());
+ const hiddenCount = () => Math.max(0, props.total - props.visibleCount);
return (
<Show when={props.canExpand}>
- <button
- type="button"
- class="inline-flex min-h-11 min-w-11 items-center justify-center gap-1 rounded px-1.5 text-[11px] font-medium text-muted transition-colors hover:bg-surface-hover hover:text-base-content focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 sm:min-h-8"
- aria-expanded={props.expanded}
- aria-label={label()}
- onClick={props.onToggle}
+ <div
+ class="relative z-10 border-t border-border bg-surface"
+ data-platform-table-preview-footer
>
- <span>{label()}</span>
- <Show
- when={props.expanded}
- fallback={<ChevronDownIcon class="h-3.5 w-3.5" aria-hidden="true" />}
- >
- <ChevronUpIcon class="h-3.5 w-3.5" aria-hidden="true" />
+ <Show when={!props.expanded}>
+ <div
+ class="pointer-events-none absolute inset-x-0 bottom-full h-9 bg-gradient-to-t from-surface via-surface/80 to-transparent"
+ aria-hidden="true"
+ />
</Show>
- </button>
+ <button
+ type="button"
+ class="group inline-flex min-h-11 w-full items-center justify-center gap-2 px-3 py-2 text-[11px] font-semibold text-muted transition-colors hover:bg-surface-hover hover:text-base-content focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-blue-500"
+ aria-expanded={props.expanded}
+ aria-label={label()}
+ onClick={props.onToggle}
+ >
+ <Show
+ when={props.expanded}
+ fallback={
+ <ChevronDownIcon
+ class="h-4 w-4 transition-transform group-hover:translate-y-0.5"
+ aria-hidden="true"
+ />
+ }
+ >
+ <ChevronUpIcon
+ class="h-4 w-4 transition-transform group-hover:-translate-y-0.5"
+ aria-hidden="true"
+ />
+ </Show>
+ <span>{label()}</span>
+ <Show when={!props.expanded && props.showCount !== false}>
+ <span class="text-[10px] font-medium text-muted">{hiddenCount()} more below</span>
+ </Show>
+ </button>
+ </div>
</Show>
);
}
diff --git a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
index 8d596e4ce4..2483d829a9 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
@@ -34,7 +34,7 @@ import {
PlatformSortableTableHead,
PlatformTableEmptyState,
PlatformTableMetricFallback,
- PlatformTablePreviewToggle,
+ PlatformTablePreviewFooter,
PlatformTableShell,
PlatformWindowedRows,
createPlatformTablePreview,
@@ -308,16 +308,19 @@ export const ProxmoxNodesTable: Component<{
</Show>
</span>
</Show>
- <PlatformTablePreviewToggle
- expanded={nodePreview.expanded()}
- canExpand={nodePreview.canExpand()}
- total={filteredNodes().length}
- noun="nodes"
- showCount={inventoryCountsVisible()}
- onToggle={toggleNodePreview}
- />
</span>
}
+ footer={
+ <PlatformTablePreviewFooter
+ expanded={nodePreview.expanded()}
+ canExpand={nodePreview.canExpand()}
+ total={filteredNodes().length}
+ visibleCount={nodePreview.visibleRows().length}
+ noun="nodes"
+ showCount={inventoryCountsVisible()}
+ onToggle={toggleNodePreview}
+ />
+ }
cardClass="proxmox-nodes-card"
tableClass={`${getProxmoxHostTableMinWidthClass(layoutMode())} table-fixed text-xs`}
colgroup={
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxNodesTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxNodesTable.test.tsx
index ff8edcf579..7dd3be44cf 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxNodesTable.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxNodesTable.test.tsx
@@ -145,6 +145,11 @@ describe('ProxmoxNodesTable', () => {
expect(screen.getAllByRole('row')).toHaveLength(9);
const showAll = screen.getByRole('button', { name: 'Show all 10 nodes' });
expect(showAll).toHaveAttribute('aria-expanded', 'false');
+ expect(showAll.closest('[data-platform-table-preview-footer]')).toBeInTheDocument();
+ expect(showAll.parentElement).toHaveTextContent('2 more below');
+ expect(
+ screen.getByRole('table').compareDocumentPosition(showAll) & Node.DOCUMENT_POSITION_FOLLOWING,
+ ).toBeTruthy();
fireEvent.click(showAll);
expect(screen.getAllByRole('row')).toHaveLength(11);
@@ -171,6 +176,7 @@ describe('ProxmoxNodesTable', () => {
expect(screen.getAllByRole('row')).toHaveLength(5);
expect(screen.getByRole('button', { name: 'Show all 6 nodes' })).toBeVisible();
+ expect(screen.getByText('2 more below')).toBeVisible();
});
it('hides node and topology totals through the page-owned inventory preference', () => {