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 Machines disk bars with host tables

rcourtman28bc1e987565
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index e29c550eaa..b110477a5d 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -3548,11 +3548,13 @@ the app shell must not add a separate top-level Availability destination.
The Machines page must not pretend its machine list is a generic overview:
the default tab is `Machines`, the Machines table is only for Pulse Agent-backed
resources with host telemetry, and the full availability-check row list belongs
-to the `Availability checks` tab. Its default disk column is an operator risk
-summary: it should surface the highest-usage operational filesystem for the
-machine, keep platform plumbing out of the visible disk set, and leave the full
-per-filesystem breakdown to hover/detail affordances rather than rendering the
-row as a raw mount browser. Servers, laptops, desktops, and comparable
+to the `Availability checks` tab. Its default disk column follows the platform
+host-table scan pattern: multi-disk machines render compact per-disk mini-bars
+so operators can quickly see disk count and pressure distribution, while sorting
+still uses the highest-usage operational filesystem, platform plumbing stays out
+of the visible disk set, and full per-filesystem labels remain in hover/detail
+affordances rather than turning the row into a raw mount browser. Servers,
+laptops, desktops, and comparable
computers monitored only by agentless reachability checks may use
`targetKind=machine` in the availability form, but they stay in Availability
checks until a Pulse Agent registers and supplies CPU, memory, disk, and network
diff --git a/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx b/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
index 6e7edf4728..5f59f0a06d 100644
--- a/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
+++ b/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
@@ -1674,9 +1674,7 @@ export const AgentsMachinesTable: Component<{
fallback={metricFallback(telemetryFallback())}
>
<StackedDiskBar
- mode={(disks()?.length ?? 0) > 1 ? 'aggregate' : undefined}
- summaryStrategy="max"
- showDiskCount
+ mode={(disks()?.length ?? 0) > 1 ? 'vertical-bars' : undefined}
disks={disks()}
aggregateDisk={aggregateDisk()}
/>
diff --git a/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx b/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
index 4159fade88..20342d9d6c 100644
--- a/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
+++ b/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
@@ -269,6 +269,48 @@ describe('AgentsMachinesTable', () => {
).toBeGreaterThanOrEqual(2);
});
+ it('renders multi-disk machine usage as vertical mini-bars', () => {
+ const { container } = render(() => (
+ <AgentsMachinesTable
+ resources={[
+ resource({
+ id: 'multi-disk',
+ name: 'Multi Disk',
+ agent: {
+ agentVersion: '6.0.0',
+ osName: 'Linux',
+ disks: [
+ {
+ device: '/dev/sda1',
+ mountpoint: '/',
+ type: 'ext4',
+ total: 1000,
+ used: 250,
+ free: 750,
+ },
+ {
+ device: '/dev/sdb1',
+ mountpoint: '/data',
+ type: 'xfs',
+ total: 1000,
+ used: 910,
+ free: 90,
+ },
+ ],
+ },
+ }),
+ ]}
+ emptyIcon={emptyIcon}
+ emptyTitle="No machines"
+ emptyDescription="Install Pulse Agent."
+ />
+ ));
+
+ expect(container.querySelectorAll('[data-stacked-disk-fill="vertical"]')).toHaveLength(2);
+ expect(screen.queryByText('max')).not.toBeInTheDocument();
+ expect(screen.queryByText('2 disks')).not.toBeInTheDocument();
+ });
+
it('searches machine-native fields and exposes host-style search affordances', async () => {
render(() => (
<AgentsMachinesTable