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.

Hide GPU column without machine telemetry

rcourtman1501c1c2397a
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 5ec825ff8d..223e8ff98f 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -5666,7 +5666,9 @@ toggleable, sortable `metric-bar` column, but it must render through the shared
`MetricBar` primitive and use the unified resource's existing metric key. The
row model owns validation, maximum-per-host selection, and the per-device
inspection title; the component must not invent vendor-specific probes or a
-parallel GPU table.
+parallel GPU table. The table and shared View column picker expose GPU only
+when at least one current machine has finite utilization evidence, so estates
+without GPU telemetry do not carry an empty default column or an inert toggle.
The shared resource drawer keeps `GuestDrawerHistory` as the sole history
renderer. Resources with typed GPU sensors may extend its normal groups with
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 876104812a..4c6d626dd6 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -1228,7 +1228,12 @@ AI-only summary payloads, or page-local heuristics.
hostname, `agent` platform scope, or agent telemetry alone; those facts
surface as facets on the owning provider page.
`AgentsMachinesTable.tsx` may own row membership, resource-derived menu
- eligibility, and remove-agent semantics for these projected rows, but the
+ eligibility, evidence-gated column relevance, and remove-agent semantics
+ for these projected rows. In particular, the GPU metric column and its
+ View choice are relevant only when at least one projected machine reports
+ finite GPU utilization; absent telemetry must not produce an empty default
+ column or a no-op column choice, while persisted visibility remains ready
+ for the column when evidence later appears. The
compact row action trigger chrome stays under the frontend-primitives
`ActionIconButton` boundary rather than becoming a unified-resource-local
button shell.
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 49aabb4a4d..53588616d7 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,13 +1,13 @@
{
"version": 1,
- "base_sha": "29b9b324d941638704da1ddcbeb731ac3f0f41b8",
- "verified_at": "2026-08-03T18:02:34Z",
+ "base_sha": "c37a62b3ad0cb6fbe83b94c64b44fa5aa3cdbd0f",
+ "verified_at": "2026-08-03T18:08:37Z",
"result": "passed",
- "changed_paths": ["frontend-modern/src/features/docker/DockerContainersTable.tsx"],
+ "changed_paths": ["frontend-modern/src/features/standalone/AgentsMachinesTable.tsx"],
"content_sha256": {
- "frontend-modern/src/features/docker/DockerContainersTable.tsx": "c715f6918affd65f228c7bd7e6007b6ce2b62a7a89edf560a89ef831807a5d2b"
+ "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx": "cbec1374a3173b9f876b4c994ee4f1de7435aaba737567719f3027746031809c"
},
- "routes": ["/docker/overview"],
+ "routes": ["/standalone/machines"],
"viewports": [
{
"width": 1280,
@@ -19,15 +19,16 @@
}
],
"states": [
- "Desktop Docker Overview with one runtime host and one container, where Saved and the row count remain in the toolbar without a dead View trigger",
- "Phone-width Docker Overview with the Filters body collapsed and no inapplicable presentation control",
- "Phone-width Docker Overview with the Filters body expanded, status choices visible, and Saved aligned with the container count"
+ "Desktop Machines table with five current machines and no GPU utilization evidence",
+ "Phone-width Machines table with the filter body collapsed and the primary Machine and CPU columns visible",
+ "Phone-width Machines filters expanded with Saved, View, and the machine count aligned",
+ "Phone-width View preferences with the nested Columns picker expanded"
],
"interactions": [
- "Reloaded the final Docker Overview build at 390 by 844 and confirmed the single-host inventory exposes no View button",
- "Expanded Filters at phone width and confirmed Saved remains available while View remains absent",
- "Measured the phone-width document at 390 client and scroll pixels and confirmed there is no page-level horizontal overflow",
- "Reloaded at 1280 by 720 and confirmed the toolbar closes the former View gap without clipping or misaligning Saved and the row count",
- "Confirmed the host and container tables remain readable and horizontally contained at both verified widths"
+ "Reloaded the final Machines build at 390 by 844 and confirmed no GPU table header is rendered without telemetry",
+ "Expanded Filters, opened View, and expanded Columns at phone width",
+ "Confirmed the GPU choice is absent while System, Agent, Net I/O, Disk I/O, Uptime, Temp, and Last seen remain available as applicable choices",
+ "Measured the phone-width body and viewport at 390 pixels and confirmed the wide table remains contained by its own horizontal scroll shell",
+ "Reloaded at 1280 by 720 and confirmed the former empty GPU column is gone and the remaining machine columns redistribute cleanly"
]
}
diff --git a/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx b/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
index d41ccf49ba..b946691348 100644
--- a/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
+++ b/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
@@ -1197,11 +1197,19 @@ export const AgentsMachinesTable: Component<{
const alertsActivation = useAlertsActivation();
const [sortKey, setSortKey] = createSignal<AgentMachineSortKey>('name');
const [sortDirection, setSortDirection] = createSignal<'asc' | 'desc'>('asc');
+ const relevantMachineColumns = createMemo(() => {
+ const relevant = new Set(AGENT_MACHINE_COLUMNS.map((column) => column.id));
+ const hasGPUUtilization = visibleMachineResources().some(
+ (machine) => getAgentMachineGPUUtilizationPercent(machine) !== undefined,
+ );
+ if (!hasGPUUtilization) relevant.delete('gpu');
+ return relevant;
+ });
const columnVisibility = useColumnVisibility(
'pulse:standalone:machines:columns:v4',
AGENT_MACHINE_COLUMNS,
[],
- undefined,
+ relevantMachineColumns,
{},
['network', 'diskio', 'uptime', 'temp'],
);
diff --git a/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx b/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
index 10868ee4a6..4faec54cf9 100644
--- a/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
+++ b/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
@@ -193,6 +193,8 @@ describe('AgentsMachinesTable', () => {
const viewDialog = await openMachineColumnPicker();
expect(within(viewDialog).getByText('Table')).toBeInTheDocument();
expect(within(viewDialog).getByLabelText('IP')).toBeInTheDocument();
+ expect(within(viewDialog).queryByLabelText('GPU')).not.toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: 'Sort by GPU' })).not.toBeInTheDocument();
});
it('surfaces machine-native monitoring columns for agent machines', async () => {