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
Hide exhausted Add filter control
rcourtmanb3dbc26d545b
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 1d4ecf6c56..e942a69c95 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -779,7 +779,9 @@ a page that needs filter-value search must keep that search inside the activefilter chip or an explicit page-owned advanced selector. Platform-owned filterselectors must also exclude facet options from other platform scopes, even whenthe underlying shared surface is mounted from the same Workloads or Storage-component.+component. When every menu-backed filter is already active or has no selectable+non-default value, the shared FilterBar must omit the exhausted Add filter+control instead of leaving a disabled `No filters` affordance in the toolbar.Alert configuration tables follow the same primitive boundary: the alertsowner supplies platform-specific threshold groups and filter catalog values,while the shared FilterBar owns the chip, reset, and "+ Filter" interactiondiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 0a73ab4f39..5346867bac 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -1656,6 +1656,11 @@ both the PVE scope and the `proxmox-all` aggregate expose only `All`, `VMs`, andThe Type and Status filters must remain one-click inline `FilterBar` controlsbecause they are the high-frequency workload narrowing path; dynamic scopefilters such as node, platform, namespace, and runtime stay menu-backed.+Once every menu-backed filter is active or lacks a selectable non-default+option, the shared `FilterBar` must remove the exhausted Add filter control;+clearing an active filter must restore it from the same catalog-derived state.+Consumers must not add page-local availability scans or disabled placeholder+controls to reproduce that behavior.The dashboard threshold slider now follows that same pattern: the shell staysin `frontend-modern/src/components/Workloads/ThresholdSlider.tsx`, whilemetric-type text and fill presentation live indiff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 98286eab5f..585a085639 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,23 +1,17 @@{"version": 1,- "base_sha": "e74fea4bbc8f199dad6560d806defab470ef347a",- "verified_at": "2026-08-02T19:42:03Z",+ "base_sha": "1ed7004d067f3bf451184da04754206b8ad3fe23",+ "verified_at": "2026-08-02T20:11:54Z","result": "passed","changed_paths": [- "frontend-modern/src/components/Workloads/MetricDisplayModeSegmentedControl.tsx",- "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx",- "frontend-modern/src/components/shared/ColumnPicker.tsx","frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx",- "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx",- "frontend-modern/src/components/shared/useColumnPickerState.ts"+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx",+ "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts"],"content_sha256": {- "frontend-modern/src/components/Workloads/MetricDisplayModeSegmentedControl.tsx": "849f9d635e8d7de1f0e016db36374e51c3c63d79186d59c3cf2907ad86cdf40a",- "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx": "26acb004ac78b27a85b762462d6d812a00f1e27f5ed661eba7f84e273fbaa200",- "frontend-modern/src/components/shared/ColumnPicker.tsx": "5a830afac9cba7d6dce432c4a069f3b79fbcb5461ed9593f0aca8fde5a3c2139",- "frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx": "3fd83a6ceb6bcbc0c79ab34c1bc57f7dfe500d8ca0a04c033dc0d8061cc9919b",- "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx": "199ce8198808516644184b7eca777130e19a20033de90bca10b896b42a89303b",- "frontend-modern/src/components/shared/useColumnPickerState.ts": "7b7801ebfbaed83a4e8553a98c1cb19a730069d4c68d3bb1d723637d14fe0961"+ "frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx": "f5fcfb1db804ea313d3cf2c885423b67de2c707ea1f3cba3ce65c16f4085fb1f",+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "438e37d0c1698584bb6dcb69ef01cd07c0d70b23a0f242e92ebff6771f1e98c9",+ "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts": "2991ee70854100a4fbdd8f0e7adb066e9a3c2d7654e32e52c261a61048a3727c"},"routes": ["/proxmox/overview"@@ -28,33 +22,37 @@"height": 900},{- "width": 390,- "height": 844+ "width": 1024,+ "height": 768+ },+ {+ "width": 768,+ "height": 800+ },+ {+ "width": 640,+ "height": 800}],"states": [- "Desktop wrapped toolbar with View closed and Trend range visible",+ "Desktop default filter toolbar","Desktop View preferences open",- "Desktop inline Columns disclosure open",- "Desktop grouped and list layouts",- "Desktop bars and trends metric modes",- "Desktop guest-relative and host-relative memory trends",+ "Desktop last available Node filter active",+ "Tablet default filter toolbar",+ "Tablet View preferences open",+ "Tablet Columns disclosure open","Narrow filter controls collapsed","Narrow filter controls expanded",- "Narrow View preferences open",- "Narrow inline Columns disclosure open"+ "Narrow last available Node filter active",+ "Narrow cleared filter state with Add filter restored"],"interactions": [- "Opened View preferences and confirmed the panel stayed inside the viewport",- "Opened Columns inline and confirmed all options remained reachable without a clipped nested popover",- "Enabled and disabled the IP column and confirmed the header and hidden count updated, then restored it",- "Switched Grouped to List and back and confirmed pressed state",- "Switched Trends to Bars and back and confirmed trend cells and the range control hid and returned",- "Switched Host capacity to Guest allocation and back and confirmed memory trend semantics and the Mem Host header",- "Changed trend range to 24h, reloaded, confirmed persistence, and restored 1h",- "Closed View by clicking outside",- "Closed View with Escape and confirmed focus returned to the View trigger",- "Repeated View and Columns expansion at 390px and confirmed no horizontal overflow",+ "Opened View preferences at desktop and tablet widths and confirmed the panel remained inside the viewport",+ "Opened Columns at the 768px breakpoint and confirmed its content remained reachable above the bottom navigation",+ "Expanded narrow filter controls and selected Node pve1",+ "Confirmed the exhausted Add filter control disappeared while the active chip, Saved, Clear filters, and View controls remained usable",+ "Cleared the active Node filter and confirmed Add filter and its Node option returned",+ "Repeated the last-filter activation and clear-and-restore flow at 1280px","Checked browser console warnings and errors"]}diff --git a/frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx b/frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsxindex d92664a00d..6d1c6fa7ff 100644--- a/frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx+++ b/frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx@@ -1,4 +1,4 @@-import { Component, For, createMemo, createUniqueId } from 'solid-js';+import { Component, For, Show, createMemo, createUniqueId } from 'solid-js';import { filterGroupClass, filterLabelClass } from '@/components/shared/FilterToolbar';import { FormSelect } from '@/components/shared/FormSelect';import {@@ -100,36 +100,37 @@ export const AddFilterMenu: Component<AddFilterMenuProps> = (props) => {};return (- <FormSelect- id={selectId}- label="Filter"- fieldBaseClass={`${filterGroupClass} flex-shrink-0`}- labelClass={props.showLabel === false ? 'sr-only' : filterLabelClass}- selectBaseClass="rounded-md border border-transparent bg-surface-hover px-2 py-1 text-xs font-medium text-muted outline-none ring-1 ring-border-subtle transition-colors hover:bg-surface hover:text-base-content focus:border-blue-500"- selectClass="min-w-[7.5rem] disabled:cursor-not-allowed disabled:opacity-50"- value=""- onChange={handleChange}- disabled={isDisabled()}- aria-label="Filter"- >- <option value="">{isDisabled() ? 'No filters' : 'Add filter'}</option>- <For each={selectableGroups()}>- {(group) => (- <optgroup label={GROUP_LABELS[group.key]}>- <For each={group.filters}>- {(filter) => (- <For each={filter.options}>- {(option) => (- <option value={option.token}>- {filter.filter.label}: {option.option.label}- </option>- )}- </For>- )}- </For>- </optgroup>- )}- </For>- </FormSelect>+ <Show when={!isDisabled()}>+ <FormSelect+ id={selectId}+ label="Filter"+ fieldBaseClass={`${filterGroupClass} flex-shrink-0`}+ labelClass={props.showLabel === false ? 'sr-only' : filterLabelClass}+ selectBaseClass="rounded-md border border-transparent bg-surface-hover px-2 py-1 text-xs font-medium text-muted outline-none ring-1 ring-border-subtle transition-colors hover:bg-surface hover:text-base-content focus:border-blue-500"+ selectClass="min-w-[7.5rem]"+ value=""+ onChange={handleChange}+ aria-label="Filter"+ >+ <option value="">Add filter</option>+ <For each={selectableGroups()}>+ {(group) => (+ <optgroup label={GROUP_LABELS[group.key]}>+ <For each={group.filters}>+ {(filter) => (+ <For each={filter.options}>+ {(option) => (+ <option value={option.token}>+ {filter.filter.label}: {option.option.label}+ </option>+ )}+ </For>+ )}+ </For>+ </optgroup>+ )}+ </For>+ </FormSelect>+ </Show>);};diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsxindex 0af8377ff3..3fcce4dbbe 100644--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx@@ -85,6 +85,20 @@ describe('FilterBar', () => {expect(screen.queryByRole('combobox', { name: 'Filter' })).not.toBeInTheDocument();});+ it('hides the add-filter trigger when every menu filter is already active', () => {+ render(() => (+ <FilterBar+ search={search}+ filters={[inlineTypeFilter(), menuNodeFilter(vi.fn(), 'pve1')]}+ isMobile={() => false}+ />+ ));++ expect(screen.getByRole('button', { name: 'Remove Node filter' })).toBeInTheDocument();+ expect(screen.queryByRole('combobox', { name: 'Filter' })).not.toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Clear filters' })).toBeInTheDocument();+ });+it('shows clear-all beside inline controls when only inline filters are active', () => {const onClearAll = vi.fn();diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsxindex f42b0c9ade..b3475b3386 100644--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx@@ -7,7 +7,13 @@ import { SearchInput } from '@/components/shared/SearchInput';import { AddFilterMenu } from './AddFilterMenu';import { FilterChip } from './FilterChip';import { SavedViewsMenu } from './SavedViewsMenu';-import { clearFilter, isFilterSet, type FilterBarProps, type FilterDef } from './filterCatalog';+import {+ clearFilter,+ hasAddableFilterOptions,+ isFilterSet,+ type FilterBarProps,+ type FilterDef,+} from './filterCatalog';const FilterBarClearAllButton: Component<{ onClick: () => void }> = (props) => (<FilterActionButton@@ -59,6 +65,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {const activeMenuFilters = createMemo<FilterDef[]>(() => menuFilters().filter(isFilterSet));const activeCount = createMemo(() => props.filters.filter(isFilterSet).length);const hasMenuFilters = createMemo(() => menuFilters().length > 0);+ const hasAddableMenuFilters = createMemo(() => hasAddableFilterOptions(menuFilters()));const clearAll = () => {if (props.onClearAll) {@@ -87,7 +94,8 @@ export const FilterBar: Component<FilterBarProps> = (props) => {const showMobileBody = () => props.isMobile() && mobileExpanded();const showChipRow = () =>showDesktopChipRow() ||- (showMobileBody() && (activeMenuFilters().length > 0 || hasMenuFilters() || hasSavedViews()));+ (showMobileBody() &&+ (activeMenuFilters().length > 0 || hasAddableMenuFilters() || hasSavedViews()));const searchHistory = () => {const key = props.search.historyKey;@@ -141,12 +149,12 @@ export const FilterBar: Component<FilterBarProps> = (props) => {<Showwhen={inlineFilters().length > 0 &&- (hasMenuFilters() || hasSavedViews() || hasDesktopViewOptions())+ (hasAddableMenuFilters() || hasSavedViews() || hasDesktopViewOptions())}><FilterBarRailDivider /></Show>- <Show when={hasMenuFilters()}>+ <Show when={hasAddableMenuFilters()}><AddFilterMenufilters={menuFilters()}showLabel={props.showAddFilterLabel !== false}@@ -159,7 +167,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {</Show><Showwhen={- (hasMenuFilters() || hasSavedViews() || hasClearableState()) &&+ (hasAddableMenuFilters() || hasSavedViews() || hasClearableState()) &&hasDesktopViewOptions()}>@@ -186,7 +194,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {<div class="flex flex-wrap items-center gap-2"><For each={activeMenuFilters()}>{(filter) => <FilterChip filter={filter} />}</For><Show when={showMobileBody()}>- <Show when={hasMenuFilters()}>+ <Show when={hasAddableMenuFilters()}><AddFilterMenufilters={menuFilters()}showLabel={props.showAddFilterLabel !== false}diff --git a/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts b/frontend-modern/src/components/shared/FilterBar/filterCatalog.tsindex f74c556785..bd18236206 100644--- a/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts+++ b/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts@@ -67,6 +67,12 @@ export interface FilterBarProps {export const isFilterSet = (filter: FilterDef): boolean => filter.value() !== filter.defaultValue;+export const hasSelectableFilterOptions = (filter: FilterDef): boolean =>+ !isFilterSet(filter) && filter.options().some((option) => option.value !== filter.defaultValue);++export const hasAddableFilterOptions = (filters: FilterDef[]): boolean =>+ filters.some(hasSelectableFilterOptions);+export const clearFilter = (filter: FilterDef): void => {filter.setValue(filter.defaultValue);};diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 99fedde0ea..dbbf06436a 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -8121,6 +8121,9 @@ describe('shared primitive guardrails', () => {'export const clearFilter = (filter: FilterDef): void =>',);expect(filterCatalogSource).toContain('filter.value() !== filter.defaultValue');+ expect(filterCatalogSource).toContain('export const hasSelectableFilterOptions');+ expect(filterCatalogSource).toContain('export const hasAddableFilterOptions');+ expect(filterCatalogSource).toContain('filters.some(hasSelectableFilterOptions)');expect(filterBarSource).toContain("import { Card } from '@/components/shared/Card';");expect(filterBarSource).toContain(@@ -8134,6 +8137,9 @@ describe('shared primitive guardrails', () => {);expect(filterBarSource).toContain("import { AddFilterMenu } from './AddFilterMenu';");expect(filterBarSource).toContain("import { FilterChip } from './FilterChip';");+ expect(filterBarSource).toContain('hasAddableFilterOptions,');+ expect(filterBarSource).toContain('const hasAddableMenuFilters = createMemo');+ expect(filterBarSource).toContain('<Show when={hasAddableMenuFilters()}>');expect(filterBarSource).toContain('props.filters.filter(isFilterSet)');expect(filterBarSource).toContain('activeCount() > 0');expect(filterBarSource).not.toContain('import { PageControls }');@@ -8183,6 +8189,9 @@ describe('shared primitive guardrails', () => {expect(addFilterMenuSource).toContain('<optgroup label={GROUP_LABELS[group.key]}>');expect(addFilterMenuSource).toContain('{filter.filter.label}: {option.option.label}');expect(addFilterMenuSource).toContain('selected.filter.setValue(selected.option.value)');+ expect(addFilterMenuSource).toContain('<Show when={!isDisabled()}>');+ expect(addFilterMenuSource).toContain('<option value="">Add filter</option>');+ expect(addFilterMenuSource).not.toContain('No filters');expect(addFilterMenuSource).not.toContain('Search filters');expect(addFilterMenuSource).not.toContain('Search values');