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.

Raise adaptive node preview thresholds

rcourtman78be1b1c2a33
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 160d4e13ec..c78b37d759 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -61,10 +61,12 @@ both the node and guest regions from the same result, so a large estate cannot
render contradictory counts or pay duplicate transport and reconciliation
costs.
The overview's bounded structural summary remains ahead of its long virtualized
-inventory at desktop and narrow widths. In particular, Proxmox must show its
-four-row phone node preview before the guest list instead of visually moving
-the nodes after the guest list's full virtual scroll extent; revealing the full
-node estate remains an explicit table-preview action.
+inventory at desktop and narrow widths. In particular, Proxmox must show up to
+six phone rows or twelve larger-layout rows before the guest list instead of
+visually moving the nodes after the guest list's full virtual scroll extent;
+estates at or below the applicable threshold render in full without a
+continuation control, while revealing a larger node estate remains an explicit
+table-preview action.
App-shell navigation tab lists rendered through reference-keyed `<For>`
consumers keep stable item identity across websocket state frames. AppLayout
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index aa80b1057b..b3573a0e72 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -401,10 +401,12 @@ show.
Large platform inventories may bound their initial row projection through the
shared platform-table preview primitive so the next canonical surface remains
in the initial reading flow. Proxmox node consumers retain the page model's
-canonical ordering, render eight rows on larger layouts and four rows on phone
-layouts by default, and expose all rows only through the reversible shared
-header disclosure. The preview must slice the already-sorted unified-resource
-collection; it must not fetch, re-rank, omit, or derive a second node truth.
+canonical ordering, render up to twelve rows on larger layouts and six rows on
+phone layouts by default, and expose all rows only through the reversible
+shared continuation footer. Estates at or below the applicable threshold
+remain fully visible and must not gain an unnecessary expansion affordance.
+The preview must slice the already-sorted unified-resource collection; it must
+not fetch, re-rank, omit, or derive a second node truth.
Alert decoration on those platform rows consumes the canonical active-alert
read model and the detector-enabled accessor. External notification activation
is not a resource-health field and must never suppress row alerts, change
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 3d44892874..b8ec31b1fe 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,15 +1,11 @@
{
"version": 1,
- "base_sha": "095b0124557f04672a2b08530eba1da732ebf5b6",
- "verified_at": "2026-08-24T10:30:06Z",
+ "base_sha": "1fbf10e2c2fc9757f1636550b504218923280d01",
+ "verified_at": "2026-08-24T10:43:10Z",
"result": "passed",
- "changed_paths": [
- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx",
- "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx"
- ],
+ "changed_paths": ["frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx"],
"content_sha256": {
- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "83568958f52d09910fb15ec3d350cbeb30d04050849470601fb2941e995746f5",
- "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx": "f9f76a8da5d7d721196acfe92052564e056404ceb07ffae77e2b25f2b347fc7b"
+ "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx": "259b90d13dff95fe03418f4da14cba4cd1012ba58ab459be18f329df45a0a210"
},
"routes": ["/proxmox"],
"viewports": [
@@ -24,14 +20,14 @@
],
"states": [
"managed hot-dev mock estate with the bounded Proxmox Nodes preview visible",
- "phone node preview collapsed to four rows",
+ "phone node preview collapsed to six rows",
"phone node preview expanded through the continuation footer",
- "desktop node preview collapsed to eight rows"
+ "desktop node preview collapsed to twelve rows"
],
"interactions": [
- "confirmed the final phone row fades into a full-width footer labelled Show all 50 nodes with 46 more below",
+ "confirmed the final phone row fades into a full-width footer labelled Show all 50 nodes with 44 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",
+ "collapsed the preview and confirmed the desktop footer reports 38 more below after twelve visible rows",
"confirmed the desktop node card has no new horizontal overflow",
"restored the browser viewport after verification"
]
diff --git a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
index 2483d829a9..7e3bccf14e 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx
@@ -232,7 +232,7 @@ export const ProxmoxNodesTable: Component<{
sort.sortRows(filteredNodes(), (node, key) => getHostSortValue(node, props.guests, key)),
);
const previewLimit = createMemo(() =>
- layoutMode() === 'narrow' || layoutMode() === 'phone' || layoutMode() === 'mobile' ? 4 : 8,
+ layoutMode() === 'narrow' || layoutMode() === 'phone' || layoutMode() === 'mobile' ? 6 : 12,
);
const nodePreview = createPlatformTablePreview({ rows: sortedNodes, limit: previewLimit });
const toggleNodePreview = () => {
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxNodesTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxNodesTable.test.tsx
index 7dd3be44cf..20573a6c0f 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxNodesTable.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxNodesTable.test.tsx
@@ -134,7 +134,7 @@ describe('ProxmoxNodesTable', () => {
it('keeps large estates bounded until the operator expands the node preview', () => {
render(() => (
<ProxmoxNodesTable
- nodes={makeNodeResources(10)}
+ nodes={makeNodeResources(14)}
guests={[]}
emptyIcon={<span />}
emptyTitle="No Proxmox VE nodes"
@@ -142,8 +142,8 @@ describe('ProxmoxNodesTable', () => {
/>
));
- expect(screen.getAllByRole('row')).toHaveLength(9);
- const showAll = screen.getByRole('button', { name: 'Show all 10 nodes' });
+ expect(screen.getAllByRole('row')).toHaveLength(13);
+ const showAll = screen.getByRole('button', { name: 'Show all 14 nodes' });
expect(showAll).toHaveAttribute('aria-expanded', 'false');
expect(showAll.closest('[data-platform-table-preview-footer]')).toBeInTheDocument();
expect(showAll.parentElement).toHaveTextContent('2 more below');
@@ -152,20 +152,35 @@ describe('ProxmoxNodesTable', () => {
).toBeTruthy();
fireEvent.click(showAll);
- expect(screen.getAllByRole('row')).toHaveLength(11);
+ expect(screen.getAllByRole('row')).toHaveLength(15);
expect(screen.getByRole('button', { name: 'Show fewer nodes' })).toHaveAttribute(
'aria-expanded',
'true',
);
fireEvent.click(screen.getByRole('button', { name: 'Show fewer nodes' }));
- expect(screen.getAllByRole('row')).toHaveLength(9);
+ expect(screen.getAllByRole('row')).toHaveLength(13);
+ });
+
+ it('shows a threshold-sized estate without a continuation control', () => {
+ render(() => (
+ <ProxmoxNodesTable
+ nodes={makeNodeResources(12)}
+ guests={[]}
+ emptyIcon={<span />}
+ emptyTitle="No Proxmox VE nodes"
+ emptyDescription="No nodes"
+ />
+ ));
+
+ expect(screen.getAllByRole('row')).toHaveLength(13);
+ expect(screen.queryByRole('button', { name: 'Show all 12 nodes' })).not.toBeInTheDocument();
});
- it('keeps the phone preview to four rows with its reveal control available', () => {
+ it('keeps the phone preview to six rows with its reveal control available', () => {
render(() => (
<ProxmoxNodesTable
- nodes={makeNodeResources(6)}
+ nodes={makeNodeResources(8)}
guests={[]}
layoutWidth={() => 390}
emptyIcon={<span />}
@@ -174,17 +189,17 @@ describe('ProxmoxNodesTable', () => {
/>
));
- expect(screen.getAllByRole('row')).toHaveLength(5);
- expect(screen.getByRole('button', { name: 'Show all 6 nodes' })).toBeVisible();
+ expect(screen.getAllByRole('row')).toHaveLength(7);
+ expect(screen.getByRole('button', { name: 'Show all 8 nodes' })).toBeVisible();
expect(screen.getByText('2 more below')).toBeVisible();
});
it('hides node and topology totals through the page-owned inventory preference', () => {
render(() => (
<ProxmoxNodesTable
- nodes={makeNodeResources(10)}
+ nodes={makeNodeResources(14)}
guests={[]}
- topology={{ nodes: 10, clusters: 1, standalone: 0 }}
+ topology={{ nodes: 14, clusters: 1, standalone: 0 }}
inventoryCountsVisible={() => false}
emptyIcon={<span />}
emptyTitle="No Proxmox VE nodes"
@@ -195,7 +210,7 @@ describe('ProxmoxNodesTable', () => {
expect(screen.getByText('Nodes').parentElement).toHaveTextContent(/^Nodes$/);
expect(screen.queryByText('1 cluster')).not.toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Show all nodes' })).toBeVisible();
- expect(screen.queryByRole('button', { name: 'Show all 10 nodes' })).not.toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: 'Show all 14 nodes' })).not.toBeInTheDocument();
});
it('links each node to its PVE web interface without hijacking the row click', () => {