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 Storage status into filters

rcourtman84687ee3526e
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 223e8ff98f..5c45d7e6ba 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -3932,6 +3932,10 @@ dynamic scope filters in the menu/chip path. Feature surfaces must not fork
local filter rows or bury high-frequency Type, Status, or other true filter
facets behind an extra menu just to regain one-click behavior; persistent
presentation preferences such as grouped versus flat layout belong in View.
+Detailed multi-state catalogs are not primary one-click controls merely because
+they filter by status. A catalog large enough to create a horizontally clipped
+rail on narrow viewports, including Storage's seven-state status catalog, must
+stay in the Add filter menu and surface a non-default selection as a chip.
Legacy `PageControls` and labelled select/toggle primitives are not the
resource-list filter shape. If a future surface needs a new filtering
affordance, it should extend the FilterBar catalog model or add a new
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index ef0ed1afaf..3168e31d4b 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -1634,9 +1634,11 @@ recovery scope, or a storage/recovery-owned secret source.
dense-table storage controls on every embedded storage tab without
forking the toolbar. The source scope flows through
`forcedSourceFilter` as a typed page input; the source filter remains
- available in the toolbar only when not forced. Status remains a frequent
- inline filter; grouping and sort are durable presentation preferences in
- the shared View popover.
+ available in the toolbar only when not forced. The seven-state Storage
+ status catalog stays in the shared Add filter menu instead of occupying a
+ permanent segmented rail; a non-default status surfaces through the
+ canonical FilterBar chip. Grouping and sort remain durable presentation
+ preferences in the shared View popover.
Storage filter option semantics stay storage-owned, but FilterBar chip
presentation is frontend-primitives-owned: storage status leading dots must
use `filterChipStatusDot` rather than storage-local span factories.
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 53588616d7..2f4d05d867 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,13 +1,13 @@
{
"version": 1,
- "base_sha": "c37a62b3ad0cb6fbe83b94c64b44fa5aa3cdbd0f",
- "verified_at": "2026-08-03T18:08:37Z",
+ "base_sha": "1501c1c2397af56ae17f4a7ade6ac25794be4d9c",
+ "verified_at": "2026-08-03T18:21:01Z",
"result": "passed",
- "changed_paths": ["frontend-modern/src/features/standalone/AgentsMachinesTable.tsx"],
+ "changed_paths": ["frontend-modern/src/components/Storage/StoragePageControls.tsx"],
"content_sha256": {
- "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx": "cbec1374a3173b9f876b4c994ee4f1de7435aaba737567719f3027746031809c"
+ "frontend-modern/src/components/Storage/StoragePageControls.tsx": "ec80cff0e760d1e78caa0f9a41bba2df5144130c833c642b0d89b08bfc96989c"
},
- "routes": ["/standalone/machines"],
+ "routes": ["/proxmox/storage"],
"viewports": [
{
"width": 1280,
@@ -19,16 +19,18 @@
}
],
"states": [
- "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"
+ "Phone-width Storage filters collapsed with no permanent Status rail",
+ "Phone-width Storage filters expanded with Add filter, Saved, and View aligned",
+ "Phone-width Warning status active as a removable FilterBar chip",
+ "Desktop Storage toolbar with status choices in Add filter",
+ "Desktop View preferences with Group by, Sort by, and sort direction"
],
"interactions": [
- "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"
+ "Reloaded the final Storage build at 390 by 844 and confirmed the seven-state segmented rail is absent",
+ "Expanded Filters and confirmed all six non-default status choices remain available from Add filter",
+ "Selected Status: Warning and confirmed it becomes a removable chip while the filter toolbar remains contained at 390 pixels",
+ "Measured the phone-width document and filter toolbar and confirmed neither exceeds the 390-pixel viewport",
+ "Reloaded at 1280 by 720 and confirmed Add filter, Saved, and View remain aligned without the former Status rail",
+ "Opened View and confirmed Group by, Sort by, and sort direction remain available"
]
}
diff --git a/frontend-modern/src/components/Storage/StoragePageControls.tsx b/frontend-modern/src/components/Storage/StoragePageControls.tsx
index 2b7ec4c244..46bddfaddc 100644
--- a/frontend-modern/src/components/Storage/StoragePageControls.tsx
+++ b/frontend-modern/src/components/Storage/StoragePageControls.tsx
@@ -194,7 +194,6 @@ export const StoragePageControls: Component<StoragePageControlsProps> = (props)
id: 'storage-status',
label: 'Status',
group: 'status',
- inline: true,
value: () => props.statusFilter(),
setValue: (value: string) => props.setStatusFilter(value as StorageStatusFilterValue),
defaultValue: DEFAULT_STORAGE_STATUS_FILTER as StorageStatusFilterValue,
diff --git a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx
index a120bc59ee..e02d5c685b 100644
--- a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx
+++ b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx
@@ -106,14 +106,6 @@ const queryStorageChip = (label: string): HTMLButtonElement | null => {
return null;
};
-const expectStorageInlineFilter = (filterLabel: string, optionLabel: string) => {
- const group = screen.getByRole('group', { name: filterLabel });
- expect(within(group).getByRole('button', { name: optionLabel })).toHaveAttribute(
- 'aria-pressed',
- 'true',
- );
-};
-
const openStorageViewOptions = () => {
expect(screen.queryByLabelText('Sort by')).not.toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'View' }));
@@ -658,9 +650,9 @@ describe('Storage', () => {
'aria-selected',
'true',
);
- // Menu filter state surfaces as chips on the FilterBar; Status stays visible
- // as a frequent inline control. Layout and sort are durable presentation
- // choices owned by the shared View popover.
+ // Menu filter state surfaces as chips on the FilterBar. The seven-state
+ // Status catalog remains in Add filter, while grouping and sort stay in
+ // the shared View popover.
expect(queryStorageChip('Node')).toHaveTextContent('Node:pve2');
const viewOptions = openStorageViewOptions();
expect((within(viewOptions).getByLabelText('Sort by') as HTMLSelectElement).value).toBe(
@@ -673,7 +665,8 @@ describe('Storage', () => {
'status',
);
expect(queryStorageChip('Source')).toHaveTextContent('Source:PVE');
- expectStorageInlineFilter('Status', 'Warning');
+ expect(screen.queryByRole('group', { name: 'Status' })).not.toBeInTheDocument();
+ expect(queryStorageChip('Status')).toHaveTextContent('Status:Warning');
setStorageViewOption(viewOptions, 'Group by', 'type');
@@ -1392,7 +1385,9 @@ describe('Storage', () => {
expect(
screen.getByPlaceholderText('Search vSphere datastores by name, host, or capacity group'),
).toBeInTheDocument();
- expect(screen.queryByRole('combobox', { name: 'Filter' })).not.toBeInTheDocument();
+ const addFilter = screen.getByRole('combobox', { name: 'Filter' });
+ expect(within(addFilter).getByRole('option', { name: 'Status: Warning' })).toBeInTheDocument();
+ expect(within(addFilter).queryByRole('option', { name: /^Source:/ })).not.toBeInTheDocument();
fireEvent.input(
screen.getByPlaceholderText('Search vSphere datastores by name, host, or capacity group'),