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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Centralize FilterBar View controls
rcourtmanf550c5544303
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex fb927626fd..8486748a89 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -3879,12 +3879,13 @@ value, defaultValue, group); `FilterBar` renders chips for active filters andexposes the rest behind a "+ Filter" menu, with type-ahead at both the menuand chip popovers (`AddFilterMenu` and `FilterChip`). Low-frequency view options(grouping segmented control, charts toggle, columns picker, sort key) compose-the shared `ViewOptionsMenu` inside the `viewOptionsTrailing` slot instead of-remaining as permanent toolbar controls; table counters and other persistent-orientation readouts may remain adjacent in that slot. Platform tables using-`PlatformTableToolbar` pass only their panel content through its `viewOptions`-prop: the shared toolbar owns `ViewOptionsMenu` creation, and feature consumers-must not pass or render their own View trigger. Recovery is event-first+the shared `ViewOptionsMenu` through `FilterBar`'s `viewOptions` prop instead of+remaining as permanent toolbar controls. `FilterBar` owns the View trigger and+popover; feature consumers pass only panel content and must not import or render+`ViewOptionsMenu` themselves. Contextual frequent actions may use+`leadingControls`, while table counters, active trend ranges, and other+persistent orientation readouts may use `trailingControls`. Platform tables+inherit the same ownership through `PlatformTableToolbar`. Recovery is event-firstand does not use equal workspace subtabs for protected rollups versus eventhistory; Storage subtabs (Pools / Physical Disks) sit above the bar asnavigation, not filters.@@ -4051,7 +4052,9 @@ Error` strings or unbounded page sizes as local hook behavior.Audit-log page loads are latest-request-wins. Changing the page size atomicallyresets the offset and starts one replacement request, and any supersededrequest is aborted or ignored so an older response cannot overwrite the new-page. A failed load clears previously rendered events and totals, and a+page. Page size is a durable table-presentation preference and belongs inside+the shared `FilterBar.viewOptions` popover rather than as a permanent filter+control. A failed load clears previously rendered events and totals, and asuccessful payload must contain an event array rather than treating `null` oran absent list as an empty audit history.That shared filter-option primitive is also the canonical owner for defaultdiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 7ff6a15c41..6f9335d98a 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -594,7 +594,7 @@ change may globally weaken the Task 03 lifecycle-state idempotency invariant.as column-picker options without creating blank default columns.Non-Docker Workloads surfaces keep the global `disk` default unless theydeclare their own scoped contract.-18. Extend workload filter active-count, reset semantics, and mobile toolbar state through `frontend-modern/src/components/Workloads/workloadsFilterModel.ts` (defaults, `countActiveWorkloadsFilters`, `hasActiveWorkloadsFilters`) rather than rebuilding filter-local state inside `frontend-modern/src/components/Workloads/WorkloadsFilter.tsx`. Workloads filter presentation now composes the shared `FilterBar` (`frontend-modern/src/components/shared/FilterBar/FilterBar.tsx`) with a per-page `FilterDef[]` catalog rather than the legacy `PageControls` structured control deck. High-frequency Type and Status filters stay in that catalog but render as inline compact segmented controls (`inline: true`), while longer or dynamic scope filters continue through the "+ Filter" menu and chip popovers. View options (grouped/list, charts, columns) sit in the shared `viewOptionsTrailing` slot.+18. Extend workload filter active-count, reset semantics, and mobile toolbar state through `frontend-modern/src/components/Workloads/workloadsFilterModel.ts` (defaults, `countActiveWorkloadsFilters`, `hasActiveWorkloadsFilters`) rather than rebuilding filter-local state inside `frontend-modern/src/components/Workloads/WorkloadsFilter.tsx`. Workloads filter presentation now composes the shared `FilterBar` (`frontend-modern/src/components/shared/FilterBar/FilterBar.tsx`) with a per-page `FilterDef[]` catalog rather than the legacy `PageControls` structured control deck. High-frequency Type and Status filters stay in that catalog but render as inline compact segmented controls (`inline: true`), while longer or dynamic scope filters continue through the "+ Filter" menu and chip popovers. Durable presentation controls pass only their panel content through `FilterBar.viewOptions`; the shared FilterBar owns the single View trigger and popover. Contextual actions use `leadingControls`, while frequently changed analytical orientation such as the active trend range uses `trailingControls`.Workload filter option semantics stay workload-owned, but FilterBar chippresentation is frontend-primitives-owned: status and runtime leading dotsmust use `filterChipStatusDot` rather than workload-local span factories.@@ -1633,9 +1633,11 @@ the filter and presentation rails wrap-capable instead of forcing a singleno-wrap row that clips trailing actions. The workload shell leaves Type,Status, dynamic scope, saved views, and contextual `Clear filters` actions onthe primary filter rail. Durable presentation choices — grouped/list mode,-bars/trends, chart visibility, Guest/Host memory basis, and Columns — compose-the shared `ViewOptionsMenu` through `FilterBar.viewOptionsTrailing` instead of-rendering as equally prominent filter toggles. The sparkline range remains+bars/trends, chart visibility, Guest/Host memory basis, and Columns — pass+their panel content through `FilterBar.viewOptions` instead of importing or+wrapping `ViewOptionsMenu` in the workload feature or rendering as equally+prominent filter toggles. The shared FilterBar owns View composition across+desktop and mobile layouts. The sparkline range remainsinline only while trends are active because it is the frequently changedanalytical window, and its compact control must include a visible `Trend range`label so the values are not an orphaned set of durations. Columns must expanddiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex cdb0b542f0..043c941c6d 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -3035,7 +3035,10 @@ and `frontend-modern/src/utils/storageSources.ts` rather than re-declaringpage-local title casing or alternate all-option labels. The storage toolbar mayown sort/filter semantics, but native select label/id/chrome and dynamic valuesync must come from the frontend-primitives-owned `FormSelect` rather than a-storage-local raw `<select>` wrapper.+storage-local raw `<select>` wrapper. Sort key and direction are durable+presentation preferences, so `StoragePageControls` supplies them through the+frontend-primitives-owned `FilterBar.viewOptions` content boundary instead of+leaving them as permanent filter-rail controls.Recovery all-history, all-item-type, and all-platform defaults follow the sameshared filter-option contract through`frontend-modern/src/utils/recoveryTablePresentation.ts`, so recovery historydiff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 6bb2e238ca..b74dfaeced 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,21 +1,34 @@{"version": 1,- "base_sha": "8be236e99a1f6328cc8e246d4789b84283484e01",- "verified_at": "2026-08-02T23:15:31Z",+ "base_sha": "62ca94d6ea372bcf7c79c5b09cddf0f3ac4d312a",+ "verified_at": "2026-08-02T23:39:29Z","result": "passed","changed_paths": [- "frontend-modern/src/features/docker/DockerContainersTable.tsx",+ "frontend-modern/src/components/Settings/AuditLogPanel.tsx",+ "frontend-modern/src/components/Storage/StoragePageControls.tsx",+ "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx",+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx",+ "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx",+ "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts",+ "frontend-modern/src/components/shared/FilterBar/index.ts","frontend-modern/src/features/platformPage/sharedPlatformPage.tsx",- "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx"+ "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx"],"content_sha256": {- "frontend-modern/src/features/docker/DockerContainersTable.tsx": "ffa97a53dae52e2072ea2adb3fd9bda36654275776c4ba96cc12cd515641ca5f",- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "32618bee6d96fad013fa0cb2efc0a93c3eabac1ab402d117b56f621f59639930",- "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx": "91302f9489dcee2b3cb9fa0b3042b4552397d358091767e77fc94c1d72eb9d5a"+ "frontend-modern/src/components/Settings/AuditLogPanel.tsx": "feca5d8342d5e38d9b4299b55f21870f4b6dac611f91ac75399b1cf01516551f",+ "frontend-modern/src/components/Storage/StoragePageControls.tsx": "a9f1038440b0a47670862a65646c14e1367552fb92c4f8b73e95b6520be83ebd",+ "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx": "bec3d85c0285a5d4583faf42fc1f6922696750bfc6ebe6f7258064b86a145670",+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "7f5406058751a3f35bfa4bbd95a1a0f5ed561da97b36d5d000d99e26a45b3b48",+ "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx": "c13a319f872e8a38cf1c450e782f32906be12861d650ec99c2193ab080b45739",+ "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts": "f67694f00a5b3fb278f5b618204da8f1e0b757abe7d82bfb0695087f6a52c56d",+ "frontend-modern/src/components/shared/FilterBar/index.ts": "cc57c752d3a2bffbbe80801cdf6fa202ccd154eda2a3de41a0018876b158343e",+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "c74dfdc8a08a02bab99c9b447115816ff1d6a37c60ded66f26bcdd6d18b09a3b",+ "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx": "3afc764d29f92bc746673a8a09cedebe3ac344e8b0215cb277024b51f6dcb4f0"},"routes": [- "/docker/overview",- "/standalone/machines"+ "/proxmox/storage",+ "/proxmox/overview",+ "/settings/security-audit"],"viewports": [{@@ -28,25 +41,24 @@}],"states": [- "Desktop Docker toolbar with View closed and its resource counter permanently visible",- "Desktop Docker View preferences open with Grouped and List inside the Layout section",- "Docker List layout before and after reload with host group rows absent",- "Phone-width Docker filter rail collapsed and expanded",- "Phone-width Docker View preferences open with the popover contained inside the viewport",- "Desktop Machines toolbar with only View and the machine counter permanently visible",- "Desktop Machines View preferences with Columns collapsed and expanded",- "Phone-width Machines filter rail collapsed and expanded",- "Phone-width Machines View preferences with Columns collapsed and expanded",- "Machines IP column preference before toggle, after toggle, after reload, and restored"+ "Desktop Storage toolbar with Saved and View aligned and sort controls absent from the permanent rail",+ "Desktop Storage View preferences open with the Order section fully contained inside the viewport",+ "Phone-width Storage filter rail collapsed and expanded with View in the auxiliary row",+ "Phone-width Storage View preferences open without horizontal page overflow",+ "Desktop Proxmox workload toolbar with layout, metrics, memory basis, and columns hidden behind View",+ "Proxmox Trends mode with Guest allocation and Host capacity memory bases",+ "Proxmox Trend range visible outside View while trends are active",+ "Phone-width Proxmox overview with host-relative memory trend sparklines rendered",+ "Audit Log route in the live demo runtime showing its expected paid-runtime capability gate"],"interactions": [- "Opened Docker View and confirmed Grouped and List are no longer permanent toolbar controls",- "Selected Docker List, confirmed host group rows were removed, reloaded, and confirmed List remained selected",- "Pressed Escape from Docker View and confirmed the popover closed and focus returned to View",- "Expanded the phone-width Docker filter rail and confirmed the View popover remained inside the viewport",- "Opened Machines View and expanded the nested Columns control at desktop and phone widths",- "Toggled the Machines IP column, reloaded, confirmed the persisted checked state, and restored the original preference",- "Pressed Escape from nested Machines column content and confirmed the View popover dismissed",- "Confirmed both routes had no horizontal page overflow at 390px and no browser console errors"+ "Opened Storage View, selected Usage sort, and confirmed the canonical sort URL parameter",+ "Pressed Escape from Storage View and confirmed the popover closed and focus returned to View",+ "Expanded the phone-width Storage filter rail and confirmed the View popover remained inside the viewport",+ "Opened Proxmox View, enabled Trends, and confirmed Trend range remained a frequent control outside the popover",+ "Switched Proxmox memory basis from Guest allocation to Host capacity and confirmed host-memory trend sparklines continued rendering",+ "Pressed Escape from Proxmox View and confirmed the popover closed and focus returned to View",+ "Confirmed the Audit Log live route is capability-gated in this demo runtime; its View pagination composition is covered by focused component and shared-contract tests",+ "Confirmed the verified routes had no horizontal page overflow at 390px and no browser console errors"]}diff --git a/frontend-modern/src/components/Settings/AuditLogPanel.tsx b/frontend-modern/src/components/Settings/AuditLogPanel.tsxindex 01355d7d73..154b016779 100644--- a/frontend-modern/src/components/Settings/AuditLogPanel.tsx+++ b/frontend-modern/src/components/Settings/AuditLogPanel.tsx@@ -241,20 +241,25 @@ export default function AuditLogPanel() {}}filters={buildAuditFilters()}savedViewsKey="audit"- viewOptionsTrailing={- <FormSelect- label="Audit page size"- labelClass="sr-only"- fieldBaseClass="contents"- value={String(pageSize())}- onChange={(e) => setPageSize(Number(e.currentTarget.value))}- selectBaseClass="min-h-9 px-2.5 py-1.5 text-xs border border-border rounded-md bg-surface text-base-content"- >- <option value="25">25 / page</option>- <option value="50">50 / page</option>- <option value="100">100 / page</option>- <option value="200">200 / page</option>- </FormSelect>+ viewOptions={+ <div>+ <div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">+ Pagination+ </div>+ <FormSelect+ label="Audit page size"+ labelClass="sr-only"+ fieldBaseClass="contents"+ value={String(pageSize())}+ onChange={(e) => setPageSize(Number(e.currentTarget.value))}+ selectBaseClass="min-h-9 w-full px-2.5 py-1.5 text-xs border border-border rounded-md bg-surface text-base-content"+ >+ <option value="25">25 / page</option>+ <option value="50">50 / page</option>+ <option value="100">100 / page</option>+ <option value="200">200 / page</option>+ </FormSelect>+ </div>}onClearAll={clearFilters}showClearAll={() => activeFilterCount() > 0}diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex fb96c8bd2c..27c8b2f5c1 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -1016,7 +1016,7 @@ describe('settings architecture guardrails', () => {expect(systemSettingsPresentationSource).toContain('DOCKER_UPDATE_ACTIONS_ENV_VAR');});- it('keeps audit-log filter labels on the audit presentation owner', () => {+ it('keeps audit-log filter labels and pagination on their presentation owners', () => {expect(auditLogPanelSource).toContain('AUDIT_EVENT_FILTER_ALL_LABEL');expect(auditLogPanelSource).toContain('AUDIT_EVENT_CONFIG_CHANGE_LABEL');expect(auditLogPanelSource).toContain('AUDIT_SUCCESS_FILTER_SUCCESS_ONLY_LABEL');@@ -1024,6 +1024,10 @@ describe('settings architecture guardrails', () => {expect(auditLogPanelSource).not.toContain('All Events');expect(auditLogPanelSource).not.toContain('All Verification');expect(auditLogPanelSource).not.toContain('Success Only');+ expect(auditLogPanelSource).toContain('viewOptions={');+ expect(auditLogPanelSource).toContain('Pagination');+ expect(auditLogPanelSource).toContain('label="Audit page size"');+ expect(auditLogPanelSource).not.toContain('viewOptionsTrailing');expect(auditLogPresentationSource).toContain("AUDIT_EVENT_FILTER_ALL_LABEL = getAllFilterOptionLabel('events')",);diff --git a/frontend-modern/src/components/Storage/StoragePageControls.tsx b/frontend-modern/src/components/Storage/StoragePageControls.tsxindex ab77afc34f..74a0be34bc 100644--- a/frontend-modern/src/components/Storage/StoragePageControls.tsx+++ b/frontend-modern/src/components/Storage/StoragePageControls.tsx@@ -313,8 +313,11 @@ export const StoragePageControls: Component<StoragePageControlsProps> = (props)}}searchTrailing={props.searchTrailing}filters={buildFilters()}- viewOptionsTrailing={- <>+ viewOptions={+ <div>+ <div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">+ Order+ </div><div class={STORAGE_FILTER_SORT_WRAP_CLASS}><FormSelectlabel="Sort by"@@ -357,7 +360,7 @@ export const StoragePageControls: Component<StoragePageControlsProps> = (props)</svg></button></div>- </>+ </div>}onClearAll={handleClearAll}showClearAll={showClearAll}diff --git a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsxindex 2db164f9ca..d5faac860a 100644--- a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx+++ b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx@@ -114,6 +114,12 @@ const expectStorageInlineFilter = (filterLabel: string, optionLabel: string) =>);};+const openStorageViewOptions = () => {+ expect(screen.queryByLabelText('Sort by')).not.toBeInTheDocument();+ fireEvent.click(screen.getByRole('button', { name: 'View' }));+ return screen.getByRole('dialog', { name: 'View preferences' });+};+const getStorageChipOptions = async (label: string): Promise<string[]> => {const chip = queryStorageChip(label);if (!chip) throw new Error(`No chip found for filter "${label}"`);@@ -591,7 +597,10 @@ describe('Storage', () => {const usageHeader = screen.getByRole('columnheader', { name: 'Usage' });fireEvent.click(within(usageHeader).getByRole('button', { name: 'Sort Usage column' }));expect(usageHeader).toHaveAttribute('aria-sort', 'descending');- expect((screen.getByLabelText('Sort by') as HTMLSelectElement).value).toBe('usage');+ const viewOptions = openStorageViewOptions();+ expect((within(viewOptions).getByLabelText('Sort by') as HTMLSelectElement).value).toBe(+ 'usage',+ );fireEvent.click(within(usageHeader).getByRole('button', { name: 'Sort Usage column ascending' }),@@ -646,10 +655,13 @@ describe('Storage', () => {'true',);// Menu filter state surfaces as chips on the FilterBar; primary filters- // stay visible as inline controls. Sort remains a labelled select in the- // view-options trailing slot.+ // stay visible as inline controls. Sort is a durable presentation choice+ // owned by the shared View popover.expect(queryStorageChip('Node')).toHaveTextContent('Node:pve2');- expect((screen.getByLabelText('Sort by') as HTMLSelectElement).value).toBe('usage');+ const viewOptions = openStorageViewOptions();+ expect((within(viewOptions).getByLabelText('Sort by') as HTMLSelectElement).value).toBe(+ 'usage',+ );// Grouping controls are only shown on the Pools view.fireEvent.click(screen.getByRole('tab', { name: 'Storage' }));@@ -722,7 +734,10 @@ describe('Storage', () => {'true',);expect(queryStorageChip('Node')).toHaveTextContent('Node:pve2');- expect((screen.getByLabelText('Sort by') as HTMLSelectElement).value).toBe('usage');+ const viewOptions = openStorageViewOptions();+ expect((within(viewOptions).getByLabelText('Sort by') as HTMLSelectElement).value).toBe(+ 'usage',+ );});it('canonicalizes source aliases in storage URL params back to owned option values', async () => {diff --git a/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx b/frontend-modern/src/components/Workloads/WorkloadsFilter.tsxindex 793d21ce65..6981fddfac 100644--- a/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx+++ b/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx@@ -6,7 +6,6 @@ import XIcon from 'lucide-solid/icons/x';import { ColumnPicker } from '@/components/shared/ColumnPicker';import {FilterBar,- ViewOptionsMenu,filterChipStatusDot,type FilterDef,type FilterSelectOption,@@ -265,116 +264,117 @@ export const WorkloadsFilter: Component<WorkloadsFilterProps> = (props) => {filters={buildFilters()}showAddFilterLabel={false}savedViewsKey={props.savedViewsKey}- viewOptionsTrailing={+ leadingControls={+ <Show when={props.pinnedSelectionActive?.() && props.onClearPinnedSelection}>+ <FilterActionButton+ aria-label="Clear pinned selection"+ title="Clear pinned selection"+ onClick={() => props.onClearPinnedSelection?.()}+ >+ <XIcon class="h-3 w-3" />+ Clear selection+ </FilterActionButton>+ </Show>+ }+ viewOptions={<>- <Show when={props.pinnedSelectionActive?.() && props.onClearPinnedSelection}>- <FilterActionButton- aria-label="Clear pinned selection"- title="Clear pinned selection"- onClick={() => props.onClearPinnedSelection?.()}- >- <XIcon class="h-3 w-3" />- Clear selection- </FilterActionButton>- </Show>- <ViewOptionsMenu>+ <div>+ <div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">+ Layout+ </div>+ <GroupedTableModeSegmentedControl+ value={props.groupingMode()}+ onChange={props.setGroupingMode}+ />+ </div>++ <Show when={props.metricDisplayMode && props.setMetricDisplayMode}><div><div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">- Layout+ Metrics</div>- <GroupedTableModeSegmentedControl- value={props.groupingMode()}- onChange={props.setGroupingMode}+ <MetricDisplayModeSegmentedControl+ value={props.metricDisplayMode!()}+ onChange={props.setMetricDisplayMode!}/></div>+ </Show>- <Show when={props.metricDisplayMode && props.setMetricDisplayMode}>- <div>- <div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">- Metrics- </div>- <MetricDisplayModeSegmentedControl- value={props.metricDisplayMode!()}- onChange={props.setMetricDisplayMode!}- />+ <Show when={props.memoryDisplayBasis && props.setMemoryDisplayBasis}>+ <div>+ <div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">+ Memory relative to</div>- </Show>+ <FilterSegmentedControl+ aria-label="Memory percentage basis"+ value={props.memoryDisplayBasis!()}+ onChange={(value) =>+ props.setMemoryDisplayBasis!(value as WorkloadsMemoryDisplayBasis)+ }+ options={[+ {+ value: 'guest',+ label: 'Guest allocation',+ ariaLabel: 'Guest',+ title: 'Show memory as a percentage of each guest allocation',+ },+ {+ value: 'host',+ label: 'Host capacity',+ ariaLabel: 'Host',+ title: 'Show memory as a percentage of the Proxmox host total',+ },+ ]}+ />+ </div>+ </Show>- <Show when={props.memoryDisplayBasis && props.setMemoryDisplayBasis}>- <div>- <div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">- Memory relative to- </div>- <FilterSegmentedControl- aria-label="Memory percentage basis"- value={props.memoryDisplayBasis!()}- onChange={(value) =>- props.setMemoryDisplayBasis!(value as WorkloadsMemoryDisplayBasis)- }- options={[- {- value: 'guest',- label: 'Guest allocation',- ariaLabel: 'Guest',- title: 'Show memory as a percentage of each guest allocation',- },- {- value: 'host',- label: 'Host capacity',- ariaLabel: 'Host',- title: 'Show memory as a percentage of the Proxmox host total',- },- ]}- />+ <Show when={props.onChartsToggle}>+ <div>+ <div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">+ Summary</div>- </Show>+ <ChartVisibilityToggleButton+ class="!inline-flex"+ collapsed={props.chartsCollapsed?.() ?? false}+ onToggle={() => props.onChartsToggle?.()}+ />+ </div>+ </Show>- <Show when={props.onChartsToggle}>+ <Show when={props.columnVisibility}>+ {(visibility) => (<div><div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">- Summary+ Table</div>- <ChartVisibilityToggleButton- class="!inline-flex"- collapsed={props.chartsCollapsed?.() ?? false}- onToggle={() => props.onChartsToggle?.()}+ <ColumnPicker+ inline+ columns={visibility().availableColumns}+ isHidden={visibility().isColumnHidden}+ onToggle={visibility().onColumnToggle}+ onReset={visibility().onColumnReset}/></div>- </Show>-- <Show when={props.columnVisibility}>- {(visibility) => (- <div>- <div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">- Table- </div>- <ColumnPicker- inline- columns={visibility().availableColumns}- isHidden={visibility().isColumnHidden}- onToggle={visibility().onColumnToggle}- onReset={visibility().onColumnReset}- />- </div>- )}- </Show>- </ViewOptionsMenu>-- <Show- when={- props.metricDisplayMode?.() === 'sparklines' &&- props.metricHistoryRange &&- props.setMetricHistoryRange- }- >- <MetricHistoryRangeSegmentedControl- label="Trend range"- range={props.metricHistoryRange!()}- onRangeChange={props.setMetricHistoryRange!}- />+ )}</Show></>}+ trailingControls={+ <Show+ when={+ props.metricDisplayMode?.() === 'sparklines' &&+ props.metricHistoryRange &&+ props.setMetricHistoryRange+ }+ >+ <MetricHistoryRangeSegmentedControl+ label="Trend range"+ range={props.metricHistoryRange!()}+ onRangeChange={props.setMetricHistoryRange!}+ />+ </Show>+ }onClearAll={handleClearAll}showClearAll={showClearAll}/>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.tsxindex a017539fc9..83a944ba09 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@@ -1240,7 +1240,8 @@ describe('Workloads performance contract', () => {'workloadMemoryDisplayBasis={props.workloadMemoryDisplayBasis}',);expect(workloadsFilterSource).toContain('MetricDisplayModeSegmentedControl');- expect(workloadsFilterSource).toContain('ViewOptionsMenu');+ expect(workloadsFilterSource).toContain('viewOptions={');+ expect(workloadsFilterSource).not.toContain('ViewOptionsMenu');expect(workloadsFilterSource).toContain('MetricHistoryRangeSegmentedControl');expect(workloadsFilterSource).toContain('label="Trend range"');expect(workloadsFilterSource).toContain('<ColumnPicker');diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsxindex 4a11bf3ce7..32d8d3e099 100644--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx@@ -173,7 +173,7 @@ describe('FilterBar', () => {search={search}filters={[inlineTypeFilter(vi.fn(), 'vm')]}isMobile={() => false}- viewOptionsTrailing={<button type="button">View</button>}+ viewOptions={<span>Density</span>}/>));@@ -184,6 +184,47 @@ describe('FilterBar', () => {expect(labels.indexOf('Clear filters')).toBeLessThan(labels.indexOf('View'));});+ it('owns View composition while keeping contextual and orientation controls visible', () => {+ render(() => (+ <FilterBar+ search={search}+ filters={[inlineTypeFilter()]}+ isMobile={() => false}+ leadingControls={<button type="button">Clear selection</button>}+ viewOptions={<span>Density</span>}+ trailingControls={<span>12 items</span>}+ />+ ));++ expect(screen.getByRole('button', { name: 'Clear selection' })).toBeInTheDocument();+ expect(screen.getByText('12 items')).toBeInTheDocument();+ expect(screen.queryByText('Density')).not.toBeInTheDocument();++ fireEvent.click(screen.getByRole('button', { name: 'View' }));++ expect(screen.getByRole('dialog', { name: 'View preferences' })).toHaveTextContent('Density');+ });++ it('reveals the shared View trigger with persistent controls in the expanded mobile rail', () => {+ render(() => (+ <FilterBar+ search={search}+ filters={[inlineTypeFilter()]}+ isMobile={() => true}+ viewOptions={<span>Density</span>}+ trailingControls={<span>12 items</span>}+ />+ ));++ expect(screen.queryByRole('button', { name: 'View' })).not.toBeInTheDocument();+ expect(screen.queryByText('12 items')).not.toBeInTheDocument();++ fireEvent.click(screen.getByRole('button', { name: 'Filters' }));++ expect(screen.getByRole('button', { name: 'View' })).toBeInTheDocument();+ expect(screen.getByText('12 items')).toBeInTheDocument();+ });+it('can hide the redundant visual Filter label without changing the accessible name', () => {render(() => (<FilterBardiff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsxindex b3475b3386..1c12e176d3 100644--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx@@ -7,6 +7,7 @@ import { SearchInput } from '@/components/shared/SearchInput';import { AddFilterMenu } from './AddFilterMenu';import { FilterChip } from './FilterChip';import { SavedViewsMenu } from './SavedViewsMenu';+import { ViewOptionsMenu } from './ViewOptionsMenu';import {clearFilter,hasAddableFilterOptions,@@ -80,14 +81,15 @@ export const FilterBar: Component<FilterBarProps> = (props) => {if (props.showClearAll) return props.showClearAll() || activeCount() > 0;return activeCount() > 0;};- const hasDesktopViewOptions = () => Boolean(props.viewOptionsTrailing);+ const hasAuxiliaryControls = () =>+ Boolean(props.leadingControls || props.viewOptions || props.trailingControls);const hasSavedViews = () => Boolean(props.savedViewsKey);const showDesktopControlsRow = () =>!props.isMobile() &&(inlineFilters().length > 0 ||hasMenuFilters() ||hasSavedViews() ||- hasDesktopViewOptions() ||+ hasAuxiliaryControls() ||hasClearableState());const showInlineRow = () => props.isMobile() && mobileExpanded() && inlineFilters().length > 0;const showDesktopChipRow = () => !props.isMobile() && activeMenuFilters().length > 0;@@ -149,7 +151,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {<Showwhen={inlineFilters().length > 0 &&- (hasAddableMenuFilters() || hasSavedViews() || hasDesktopViewOptions())+ (hasAddableMenuFilters() || hasSavedViews() || hasAuxiliaryControls())}><FilterBarRailDivider />@@ -168,14 +170,18 @@ export const FilterBar: Component<FilterBarProps> = (props) => {<Showwhen={(hasAddableMenuFilters() || hasSavedViews() || hasClearableState()) &&- hasDesktopViewOptions()+ hasAuxiliaryControls()}><FilterBarRailDivider /></Show>- <Show when={props.viewOptionsTrailing}>+ <Show when={hasAuxiliaryControls()}><div class="inline-flex flex-shrink-0 flex-wrap items-center gap-2">- {props.viewOptionsTrailing}+ {props.leadingControls}+ <Show when={props.viewOptions}>+ <ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>+ </Show>+ {props.trailingControls}</div></Show></div>@@ -210,9 +216,13 @@ export const FilterBar: Component<FilterBarProps> = (props) => {</div></Show>- <Show when={showMobileBody() && props.viewOptionsTrailing}>+ <Show when={showMobileBody() && hasAuxiliaryControls()}><div class="flex flex-wrap items-center gap-2 border-t border-border-subtle pt-2">- {props.viewOptionsTrailing}+ {props.leadingControls}+ <Show when={props.viewOptions}>+ <ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>+ </Show>+ {props.trailingControls}</div></Show></div>diff --git a/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.test.tsx b/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.test.tsxindex 2ca380fcf1..0d5b699a23 100644--- a/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.test.tsx+++ b/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.test.tsx@@ -21,6 +21,8 @@ describe('ViewOptionsMenu', () => {expect(screen.getByRole('dialog', { name: 'View preferences' })).toHaveClass('left-0','right-auto',+ 'md:left-auto',+ 'md:right-0',);expect(screen.getByRole('button', { name: 'Grouped' })).toBeInTheDocument();expect(screen.getByRole('button', { name: 'View' })).toHaveAttribute('aria-expanded', 'true');diff --git a/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx b/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsxindex 8a675bb9e3..63b7ab4a77 100644--- a/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx+++ b/frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx@@ -69,7 +69,7 @@ export const ViewOptionsMenu: Component<ViewOptionsMenuProps> = (props) => {role="dialog"aria-label={props.label ?? 'View preferences'}widthClass="w-80 max-w-[calc(100vw-2rem)]"- class="left-0 right-auto top-[calc(100%+0.25rem)] z-50 max-h-[min(38rem,calc(100vh-8rem))] overflow-y-auto p-3"+ class="left-0 right-auto top-[calc(100%+0.25rem)] z-50 max-h-[min(38rem,calc(100vh-8rem))] overflow-y-auto p-3 md:left-auto md:right-0"><div class="mb-3 border-b border-border-subtle pb-2"><div class="text-xs font-medium text-base-content">diff --git a/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts b/frontend-modern/src/components/shared/FilterBar/filterCatalog.tsindex bd18236206..10d0bc71d6 100644--- a/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts+++ b/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts@@ -47,7 +47,12 @@ export interface FilterBarSearch {export interface FilterBarProps {search: FilterBarSearch;filters: FilterDef[];- viewOptionsTrailing?: JSX.Element;+ /** Contextual, frequently used actions rendered immediately before View. */+ leadingControls?: JSX.Element;+ /** Low-frequency presentation controls; FilterBar owns the shared View popover. */+ viewOptions?: JSX.Element;+ /** Persistent orientation/status controls rendered immediately after View. */+ trailingControls?: JSX.Element;searchTrailing?: JSX.Element;isMobile: Accessor<boolean>;role?: string;diff --git a/frontend-modern/src/components/shared/FilterBar/index.ts b/frontend-modern/src/components/shared/FilterBar/index.tsindex 32d48ac95f..5d3848e98a 100644--- a/frontend-modern/src/components/shared/FilterBar/index.ts+++ b/frontend-modern/src/components/shared/FilterBar/index.ts@@ -2,7 +2,6 @@ export { FilterBar } from './FilterBar';export { FilterChip } from './FilterChip';export { AddFilterMenu } from './AddFilterMenu';export { SavedViewsMenu } from './SavedViewsMenu';-export { ViewOptionsMenu } from './ViewOptionsMenu';export { useSavedViews } from './useSavedViews';export type { SavedView } from './useSavedViews';export { filterChipStatusDot } from './filterOptionPresentation';diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 12076fab6b..f15240e194 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -8102,7 +8102,7 @@ describe('shared primitive guardrails', () => {expect(filterBarIndexSource).toContain("export { FilterChip } from './FilterChip';");expect(filterBarIndexSource).toContain("export { AddFilterMenu } from './AddFilterMenu';");expect(filterBarIndexSource).toContain("export { SavedViewsMenu } from './SavedViewsMenu';");- expect(filterBarIndexSource).toContain("export { ViewOptionsMenu } from './ViewOptionsMenu';");+ expect(filterBarIndexSource).not.toContain('ViewOptionsMenu');expect(filterBarIndexSource).toContain("export { useSavedViews } from './useSavedViews';");expect(filterBarIndexSource).toContain("export { filterChipStatusDot } from './filterOptionPresentation';",@@ -8230,11 +8230,16 @@ describe('shared primitive guardrails', () => {expect(filterToolbarSource).toContain("filterToolbarControlClass = 'h-7");expect(viewOptionsMenuSource).toContain('<FilterPopoverTrigger');expect(savedViewsMenuSource).toContain('<FilterPopoverTrigger');+ expect(filterCatalogSource).toContain('leadingControls?: JSX.Element;');+ expect(filterCatalogSource).toContain('viewOptions?: JSX.Element;');+ expect(filterCatalogSource).toContain('trailingControls?: JSX.Element;');+ expect(filterCatalogSource).not.toContain('viewOptionsTrailing');+ expect(filterBarSource).toContain("import { ViewOptionsMenu } from './ViewOptionsMenu';");+ expect(filterBarSource).toContain('<ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>');expect(sharedPlatformPageSource).toContain('viewOptions?: JSX.Element;');- expect(sharedPlatformPageSource).toContain(- '<ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>',- );- expect(sharedPlatformPageSource).not.toContain('viewOptionsTrailing?: JSX.Element;');+ expect(sharedPlatformPageSource).toContain('viewOptions={props.viewOptions}');+ expect(sharedPlatformPageSource).toContain('trailingControls={');+ expect(sharedPlatformPageSource).not.toContain('ViewOptionsMenu');expect(savedViewsMenuSource).toContain('class="relative shrink-0"');expect(savedViewsMenuSource).toContain('class="h-3.5 w-3.5"');expect(savedViewsMenuSource).toContain('aria-label="Saved views"');@@ -8275,7 +8280,10 @@ describe('shared primitive guardrails', () => {expect(workloadsFilterSource).toContain("id: 'workloads-type'");expect(workloadsFilterSource).toContain("id: 'workloads-status'");expect(workloadsFilterSource).toContain('inline: true');- expect(workloadsFilterSource).toContain('viewOptionsTrailing={');+ expect(workloadsFilterSource).toContain('leadingControls={');+ expect(workloadsFilterSource).toContain('viewOptions={');+ expect(workloadsFilterSource).toContain('trailingControls={');+ expect(workloadsFilterSource).not.toContain('ViewOptionsMenu');expect(workloadsFilterSource).toContain('GroupedTableModeSegmentedControl');expect(workloadsFilterSource).toContain('ChartVisibilityToggleButton');expect(workloadsFilterSource).toContain('<ColumnPicker');@@ -8288,7 +8296,7 @@ describe('shared primitive guardrails', () => {expect(workloadsFilterSource).not.toContain('const statusDot = (className: string)');// StoragePageControls — Subtabs sit above the FilterBar; sort key/sort- // direction live in viewOptionsTrailing as raw view-options (not chips).+ // direction live in the FilterBar-owned View popover (not chips).// Per-view catalog filters (inline Group by and Status plus menu-backed// Source on Pools; Role/Group on Physical Disks) flow through the FilterBar// catalog. The legacy@@ -8310,7 +8318,13 @@ describe('shared primitive guardrails', () => {expect(storagePageControlsSource).toContain("id: 'storage-status'");expect(storagePageControlsSource).toContain("id: 'storage-disk-role'");expect(storagePageControlsSource).toContain("id: 'storage-disk-group'");- expect(storagePageControlsSource).toContain('viewOptionsTrailing={');+ expect(storagePageControlsSource).toContain('viewOptions={');+ expect(storagePageControlsSource).toContain('Order');+ expect(storagePageControlsSource).not.toContain('viewOptionsTrailing');+ expect(auditLogPanelSource).toContain('viewOptions={');+ expect(auditLogPanelSource).toContain('Pagination');+ expect(auditLogPanelSource).not.toContain('viewOptionsTrailing');+ expect(proxmoxBackupsTableSource).toContain('trailingControls={');expect(storagePageControlsSource).toContain('aria-label="Sort by"');expect(storagePageControlsSource).toContain('aria-label="Sort direction"');expect(storagePageControlsSource).toContain('onClearAll={handleClearAll}');diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsxindex 874a2b86b2..6ff975396c 100644--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx@@ -12,12 +12,7 @@ import {} from 'solid-js';import { EmptyState } from '@/components/shared/EmptyState';import { type FilterOption as PlatformTableFilterOption } from '@/components/shared/FilterButtonGroup';-import {- FilterBar,- ViewOptionsMenu,- filterChipStatusDot,- type FilterDef,-} from '@/components/shared/FilterBar';+import { FilterBar, filterChipStatusDot, type FilterDef } from '@/components/shared/FilterBar';import { type SearchInputProps } from '@/components/shared/SearchInput';import { Table, TableBody, TableHead, TableHeader, TableRow } from '@/components/shared/Table';import { TableCard } from '@/components/shared/TableCard';@@ -1064,17 +1059,13 @@ export function PlatformTableToolbar<T extends string | number>(props: {}}filters={allFilters}savedViewsKey={props.savedViewsKey}- viewOptionsTrailing={- <>- <Show when={props.viewOptions}>- <ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>- </Show>- <PlatformResourceCounter- visible={props.visible}- total={props.total}- rowNoun={props.rowNoun}- />- </>+ viewOptions={props.viewOptions}+ trailingControls={+ <PlatformResourceCounter+ visible={props.visible}+ total={props.total}+ rowNoun={props.rowNoun}+ />}showClearAll={() => Boolean(props.hasActiveFilters && props.onResetFilters)}onClearAll={props.onResetFilters}diff --git a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsxindex 4cfa764562..99d7592b40 100644--- a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx@@ -631,7 +631,7 @@ export const ProxmoxBackupsTable: Component<{</button></Show>}- viewOptionsTrailing={+ trailingControls={<PlatformResourceCountervisible={view() === 'date' ? visibleRecoverableCount() : visibleLiveCount()}total={view() === 'date' ? totalRecoverableCount() : liveTotalCount()}diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsxindex 1a158a9ec1..c1d09de014 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx@@ -274,6 +274,9 @@ describe('ProxmoxBackupsTable', () => {expect(proxmoxBackupsTableSource).not.toContain('inline-flex min-h-8 items-center gap-1.5 rounded-sm px-3 text-xs font-medium transition-colors',);+ expect(proxmoxBackupsTableSource).toContain('trailingControls={');+ expect(proxmoxBackupsTableSource).toContain('<PlatformResourceCounter');+ expect(proxmoxBackupsTableSource).not.toContain('viewOptionsTrailing');// The two top-level views exist...expect(screen.getByRole('group', { name: /backups view/i })).toBeInTheDocument();@@ -387,12 +390,8 @@ describe('ProxmoxBackupsTable', () => {expect(proxmoxPageSurfaceSource).not.toContain('currentModel().summary.stoppedGuestCount} stopped',);- expect(proxmoxPageSurfaceSource).toContain(- '<Show when={visibleGuestStats().running > 0}>',- );- expect(proxmoxPageSurfaceSource).toContain(- '<Show when={visibleGuestStats().stopped > 0}>',- );+ expect(proxmoxPageSurfaceSource).toContain('<Show when={visibleGuestStats().running > 0}>');+ expect(proxmoxPageSurfaceSource).toContain('<Show when={visibleGuestStats().stopped > 0}>');});it('keeps the shared storage surface scoped to the whole Proxmox product family', () => {