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.

Align Guests with table header chrome

rcourtmanb932dbf9758a
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 42dd729377..9aaaba8633 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -2145,6 +2145,12 @@ default` instead of fusing provider and badge text such as
immediately before the `WorkloadsSurface` it controls. It must never precede
a provider table whose rows it does not filter; Proxmox and VMware vSphere
use the same host-or-node, workload-controls, workload-table reading order.
+ When a platform names the embedded workload collection, that title and its
+ inventory count must enter `WorkloadsSurface` through the `tableTitle`
+ slot. `WorkloadsTable` renders the slot inside the shared
+ `TableCardHeader`, including the filtered-empty table state; platform pages
+ 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
in the initial reading flow: Proxmox shows eight node rows by default on
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index 2098c524ff..eccd362ae4 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -861,6 +861,11 @@ change may globally weaken the Task 03 lifecycle-state idempotency invariant.
when present, and reuse the existing viewport listener rather than adding a
second page-local scroll observer or any per-row work.
25. Extend workload table shell ownership through `frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx` and `frontend-modern/src/components/Workloads/WorkloadPanel.tsx` rather than rebuilding sortable header markup, grouped node rows, row expansion, or guest-drawer rendering inside `frontend-modern/src/components/Workloads/WorkloadsTable.tsx`
+ Platform-owned workload titles must enter the Workloads surface through
+ its optional `tableTitle` slot and render from the shared
+ `TableCardHeader` inside both the populated and filtered-empty table card.
+ A platform page must not place a parallel floating title above its filters;
+ the title/count band belongs to the same framed table surface as the rows.
`WorkloadPanel` owns the mutually exclusive host/guest drawer handoff:
clicking a grouped host row while a guest drawer is open must clear the
selected guest and keep/focus the host summary group so the node drawer can
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 0e62060679..c94ff2a23b 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -445,6 +445,12 @@ node search must likewise retain the directly matching node. The table still
receives the real already-loaded PVE node collection as its source, so the
estate-empty `No Proxmox VE nodes` state remains reserved for genuinely absent
node inventory, while a narrowed result uses the distinct no-match state.
+The Proxmox `Guests` title/count must remain frontend-primitives-owned chrome:
+the page supplies it through the Workloads `tableTitle` slot and the shared
+`TableCardHeader` renders it with both populated and filtered-empty guest table
+states. This heading alignment changes neither workload backup scope nor the
+storage/recovery evidence carried by the adjacent Backup column and Backups
+tab.
Those counts and layout controls must not imply
protection, verification, or restore readiness beyond the evidence held by the
workflow-owned Storage, Backups, Ceph, and Mail surfaces.
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 1205345ac1..9d5b3ea6de 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,17 +1,17 @@
{
"version": 1,
- "base_sha": "d50f5c664e74e3a4d6a00abf76ef1e2c554e79a6",
- "verified_at": "2026-08-24T10:04:07Z",
+ "base_sha": "a585eab712a7e80ef4b148c650fa5a34ff01e2c7",
+ "verified_at": "2026-08-24T10:18:41Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Workloads/GuestRow.tsx",
- "frontend-modern/src/components/shared/SummaryRowActionButton.tsx",
- "frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx"
+ "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx",
+ "frontend-modern/src/components/Workloads/WorkloadsTable.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/Workloads/GuestRow.tsx": "f8927883b484789cae4ca999845a77a7409aed800656d931be621a1f4d996ca8",
- "frontend-modern/src/components/shared/SummaryRowActionButton.tsx": "626741b5b725d19dd594a4c071888170d74b0e8352513cc2aa8557c86c986c88",
- "frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx": "7907a58eeace6c2648f1e92e63a27bfd82fe305347e0100b76b59ab0e367ce61"
+ "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx": "466fe1160c58bba42fbce61e74f602a8ddc30ef463c38b0c07968881d70d8bca",
+ "frontend-modern/src/components/Workloads/WorkloadsTable.tsx": "9849f4f54fa5eab0cb5394c683cbdf72a4831672672609f2ee9a8801246f0962",
+ "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx": "1e6daf19456ff79e7181e8117bbb2064feb53b852438294a58dd2fa5197b3817"
},
"routes": ["/proxmox"],
"viewports": [
@@ -20,21 +20,22 @@
"height": 844
},
{
- "width": 1440,
- "height": 900
+ "width": 1280,
+ "height": 720
}
],
"states": [
- "managed hot-dev mock estate with the canonical Proxmox Nodes and Guests tables visible",
- "phone Nodes and Guests tables with their collapsed rows visible",
- "phone Nodes and Guests tables after row-owned detail expansion",
- "desktop Nodes and Guests tables after the responsive breakpoint transition"
+ "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"
],
"interactions": [
- "confirmed provider node and workload disclosure controls remain in the accessibility tree while their redundant phone chevrons are visually removed",
- "tapped the Analytics A node row and the artifact-cache-310 guest row and confirmed both detail regions expanded",
- "confirmed both disclosure controls become visible again at the 1440x900 desktop breakpoint",
- "confirmed Type, ID, CPU, Mem, Disk, and Age remain separated in the compact Workloads header",
+ "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",
"restored the browser viewport after verification"
]
}
diff --git a/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx b/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
index 591fad7f7f..47dfd21337 100644
--- a/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
@@ -1,11 +1,12 @@
import ArrowUpIcon from 'lucide-solid/icons/arrow-up';
-import { For, Show, createMemo } from 'solid-js';
+import { For, Show, createMemo, type JSX } from 'solid-js';
import { Portal } from 'solid-js/web';
import { buildInfrastructureWorkspacePath } from '@/components/Settings/infrastructureWorkspaceModel';
import { EmptyState } from '@/components/shared/EmptyState';
import { ActionIconButton, ButtonLink } from '@/components/shared/Button';
import { TableCard } from '@/components/shared/TableCard';
+import { TableCardHeader } from '@/components/shared/TableCardHeader';
import { sessionCanReadInfrastructureSettings } from '@/stores/sessionSettingsCapabilities';
import { getWorkloadsNoInventoryState } from '@/utils/workloadEmptyStatePresentation';
import { WorkloadsFilter } from './WorkloadsFilter';
@@ -23,6 +24,7 @@ interface WorkloadsSurfaceComponentProps extends WorkloadsSurfaceProps {
emptyStateDescription?: string;
emptyStateTitle?: string;
state?: WorkloadsState;
+ tableTitle?: JSX.Element;
}
type TableOnlyEmptyState = {
@@ -229,6 +231,7 @@ export function WorkloadsSurface(props: WorkloadsSurfaceComponentProps) {
workloadTableLayoutMode={state.workloadTableLayoutMode}
workloadTableVisibleColumnIds={state.workloadTableVisibleColumnIds}
workloadTableVisibleColumns={state.workloadTableVisibleColumns}
+ title={props.tableTitle}
/>
</Show>
<Show
@@ -239,6 +242,7 @@ export function WorkloadsSurface(props: WorkloadsSurfaceComponentProps) {
}
>
<TableCard>
+ <TableCardHeader title={props.tableTitle} />
<div class="p-6">
<EmptyState
title={tableOnlyEmptyState().title}
diff --git a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx b/frontend-modern/src/components/Workloads/WorkloadsTable.tsx
index 3756407079..d83da6b8d2 100644
--- a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadsTable.tsx
@@ -1,8 +1,9 @@
-import { For } from 'solid-js';
+import { For, type JSX } from 'solid-js';
import { ComponentErrorBoundary } from '@/components/ErrorBoundary';
import { Table } from '@/components/shared/Table';
import { TableCard } from '@/components/shared/TableCard';
+import { TableCardHeader } from '@/components/shared/TableCardHeader';
import { getGuestColumnWidthStyle } from './guestRowModel';
import type { WorkloadsState } from './useWorkloadsState';
@@ -60,7 +61,9 @@ type WorkloadsTableProps = Pick<
| 'workloadTableLayoutMode'
| 'workloadTableVisibleColumnIds'
| 'workloadTableVisibleColumns'
->;
+> & {
+ title?: JSX.Element;
+};
export function WorkloadsTable(props: WorkloadsTableProps) {
return (
@@ -71,6 +74,7 @@ export function WorkloadsTable(props: WorkloadsTableProps) {
data-summary-clear-surface
data-testid="workloads-table-surface"
>
+ <TableCardHeader title={props.title} />
<Table
wrapperRef={props.setTableWrapperRef}
class={`platform-table workload-table table-fixed ${props.isMobile() ? `workload-table--mobile ${WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS}` : 'workload-table--desktop min-w-full'}`}
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 2ec948670a..f30210a79a 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
@@ -1382,6 +1382,9 @@ describe('Workloads performance contract', () => {
expect(workloadsWorkloadTableSource).toContain('data-summary-clear-surface');
expect(workloadsWorkloadTableSource).toContain('data-testid="workloads-table-surface"');
expect(workloadsWorkloadTableSource).toContain('TableCard');
+ expect(workloadsWorkloadTableSource).toContain('<TableCardHeader title={props.title} />');
+ expect(workloadsSource).toContain('<TableCardHeader title={props.tableTitle} />');
+ expect(workloadsSource).toContain('title={props.tableTitle}');
expect(workloadsWorkloadTableSource).toContain(
'workloadMemoryDisplayBasis={props.workloadMemoryDisplayBasis}',
);
diff --git a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
index 5abbe88b4c..f7f11e1a59 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
@@ -532,23 +532,10 @@ function ProxmoxOverview(props: ProxmoxOverviewProps) {
</section>
<section
id="proxmox-guests-section"
- aria-labelledby="proxmox-guests-heading"
+ aria-label="Guests"
class="space-y-3 scroll-mt-4"
data-testid="proxmox-guests-section"
>
- <div class="flex items-center gap-2 px-1">
- <h2
- id="proxmox-guests-heading"
- class="text-xs font-semibold uppercase tracking-wide text-muted"
- >
- Guests
- </h2>
- <Show when={showSharedFilterToolbar()}>
- <span class="rounded bg-surface-alt px-1.5 py-0.5 text-[11px] font-semibold tabular-nums text-muted">
- {workloadsState.allGuests().length}
- </span>
- </Show>
- </div>
<Show when={showSharedFilterToolbar()}>
<div data-summary-clear-ignore>
<WorkloadsFilter
@@ -607,6 +594,16 @@ function ProxmoxOverview(props: ProxmoxOverviewProps) {
suppressFilterToolbar
emptyStateTitle="No Proxmox workloads"
emptyStateDescription="Proxmox VMs and LXCs appear here when inventory is available."
+ tableTitle={
+ <h2 id="proxmox-guests-heading" class="inline-flex items-center gap-1.5">
+ Guests
+ <Show when={showSharedFilterToolbar()}>
+ <span class="font-semibold tabular-nums text-base-content">
+ {workloadsState.allGuests().length}
+ </span>
+ </Show>
+ </h2>
+ }
/>
</section>
</div>
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx
index 3f5f36137a..0a5759e59b 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx
@@ -409,7 +409,9 @@ describe('ProxmoxPageSurface contract', () => {
expect(proxmoxPageSurfaceSource).not.toContain('order-2 lg:order-1');
expect(proxmoxPageSurfaceSource).not.toContain('order-1 space-y-3');
expect(proxmoxPageSurfaceSource).toContain('id="proxmox-guests-section"');
- expect(proxmoxPageSurfaceSource).toContain('>\n Guests\n </h2>');
+ expect(proxmoxPageSurfaceSource).toContain('tableTitle={');
+ expect(proxmoxPageSurfaceSource).toContain('id="proxmox-guests-heading"');
+ expect(proxmoxPageSurfaceSource).not.toContain('class="flex items-center gap-2 px-1"');
});
it('keeps Patrol coverage off the Proxmox overview', () => {