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
standardize filter bar label presentation
rcourtman85b053043999
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 5132d6a955..5b8bb71d54 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -3898,11 +3898,13 @@ not need a feature-owned reset. Route-owned or multi-facet platform surfacesmay supply one composite reset, which the toolbar delegates exactly once;otherwise the shared `FilterBar` fallback clears its search and inline statuscatalog without forcing every platform table to repeat reset plumbing.-Platform table toolbars also use the compact Add filter variant: the visible+The compact Add filter variant is the shared `FilterBar` default: the visibleuppercase field label and labelled-field shell stay hidden while the native-select retains its accessible `Filter` name. Provider surfaces must inherit-that treatment from `PlatformTableToolbar` instead of choosing different-label and width chrome page by page.+select retains its accessible `Filter` name. Platform table toolbars and other+resource-list consumers inherit that treatment automatically instead of+choosing different label and width chrome page by page. A surface that truly+needs form-style field labelling must opt in explicitly through+`showAddFilterLabel`.Primary filters with small, stable option sets should stay one-click controlsinside that same `FilterDef[]` catalog by setting `inline: true`; `FilterBar`renders those as unlabeled compact segmented controls in the same second-rowdiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 9c6b7be5e5..ab0e2c2910 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. 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`.+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. The Add filter control inherits FilterBar's compact accessible-only label by default instead of paying for a page-local labelled-field shell. 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.diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex db0d25fb02..e757549e65 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,17 +1,17 @@{"version": 1,- "base_sha": "37dfdf95ad4d9136973133006b03e45a421884c1",- "verified_at": "2026-08-03T13:38:29Z",+ "base_sha": "3afc8bda1590a29842bf8704aec605526a685fcb",+ "verified_at": "2026-08-03T13:58:06Z","result": "passed","changed_paths": [- "frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx",- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx"+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx",+ "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts"],"content_sha256": {- "frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx": "b9be43892868440a5cd08a29e730f9ed67cf8f7bc0997d1af1b600d6a1d42bf8",- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "42d877508eaac7af7b90c97ceac3cc279554cff019981518ab77e940b24ec2bd"+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "e73b856bf2c0d3bd67cba862bd2ef295b5d3e41f2c2759d7f4dadf848fb33504",+ "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts": "b3267ab57bcdf6ba7735168608772785a8445e54ccc2c6746c5ea9ff011f98c8"},- "routes": ["/docker/overview", "/kubernetes/workloads"],+ "routes": ["/alerts/thresholds/proxmox", "/proxmox/storage"],"viewports": [{"width": 1280,@@ -23,18 +23,19 @@}],"states": [- "Desktop Docker container toolbar before and after applying its longest host filter",- "Desktop Kubernetes workload toolbar with dynamic cluster and namespace filters available",- "Phone-width Docker toolbar with the filter rail collapsed, expanded, and host-filtered",- "Phone-width Kubernetes workload toolbar with the filter rail expanded"+ "Desktop Alert Thresholds filter bar at its default and custom-override-filtered states",+ "Desktop Proxmox Physical Disks filter bar at its default, group-filtered, and empty-result states",+ "Phone-width Alert Thresholds filter rail collapsed and expanded",+ "Phone-width Proxmox Physical Disks filter rail collapsed and expanded"],"interactions": [- "Measured Docker and Kubernetes Add filter controls at 120 by 28 pixels beside the 95 by 28 pixel Saved trigger instead of the previous 204-pixel content-expanded select",- "Confirmed platform toolbars no longer render the redundant visible uppercase Filter label while the select retains its accessible Filter name",- "Inspected the native filter option projection and confirmed the disabled Add filter placeholder is absent from its actionable option list",- "Applied the longest Docker host option, confirmed the compact control gave way to a host chip, Clear filters, and the filtered 14 of 70 result count without overflow",- "Cleared the Docker host filter and confirmed the chip and Clear action disappeared, the Add filter control returned, and the canonical route stayed unchanged",- "Expanded the Docker and Kubernetes phone-width filter rails and confirmed Add filter, Saved, View, Clear filters, chips, and result counts wrapped without clipping",+ "Confirmed the shared Add filter control hides its redundant visible uppercase Filter label by default while retaining the accessible Filter name",+ "Measured the Add filter select at a stable 120 by 28 pixels on both desktop routes and both expanded phone-width rails",+ "Applied Overrides: Custom only on Alert Thresholds and confirmed the select became an Overrides chip with one Clear filters action",+ "Cleared the threshold filter and confirmed the default Add filter control returned",+ "Applied Group: vault on Physical Disks and confirmed Add filter, Saved, Clear filters, View, the active chip, and the empty-result state remained aligned",+ "Cleared the physical-disk filter and confirmed the full result table returned",+ "Expanded both phone-width filter rails and confirmed Add filter and adjacent actions wrapped without clipping or horizontal overflow","Read the browser console after the final desktop and responsive pass and confirmed no warnings or errors"]}diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsxindex 5ffe9bd809..3363e20731 100644--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx@@ -250,13 +250,12 @@ describe('FilterBar', () => {expect(screen.getByText('12 items')).toBeInTheDocument();});- it('can hide the redundant visual Filter label without changing the accessible name', () => {+ it('hides the redundant visual Filter label by default without changing the accessible name', () => {render(() => (<FilterBarsearch={search}filters={[inlineTypeFilter(), menuNodeFilter()]}isMobile={() => false}- showAddFilterLabel={false}/>));@@ -268,4 +267,21 @@ describe('FilterBar', () => {expect(select).not.toHaveClass('min-w-[7.5rem]');expect(select.parentElement).not.toHaveClass('p-0.5');});++ it('requires an explicit opt-in to show the visual Filter label', () => {+ render(() => (+ <FilterBar+ search={search}+ filters={[inlineTypeFilter(), menuNodeFilter()]}+ isMobile={() => false}+ showAddFilterLabel+ />+ ));++ const select = screen.getByRole('combobox', { name: 'Filter' });+ const label = document.querySelector(`label[for="${select.id}"]`);+ expect(label).not.toHaveClass('sr-only');+ expect(label).toHaveTextContent('Filter');+ expect(select.parentElement).toHaveClass('p-0.5');+ });});diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsxindex 60b64042d8..33f267e737 100644--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx@@ -161,7 +161,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {<Show when={hasAddableMenuFilters()}><AddFilterMenufilters={menuFilters()}- showLabel={props.showAddFilterLabel !== false}+ showLabel={props.showAddFilterLabel === true}/></Show><Show when={props.savedViewsKey}>{(key) => <SavedViewsMenu storageKey={key()} />}</Show>@@ -205,7 +205,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {<Show when={hasAddableMenuFilters()}><AddFilterMenufilters={menuFilters()}- showLabel={props.showAddFilterLabel !== false}+ showLabel={props.showAddFilterLabel === true}/></Show></Show>diff --git a/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts b/frontend-modern/src/components/shared/FilterBar/filterCatalog.tsindex 10d0bc71d6..c32ee80eea 100644--- a/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts+++ b/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts@@ -59,7 +59,7 @@ export interface FilterBarProps {ariaLabel?: string;onClearAll?: () => void;showClearAll?: Accessor<boolean>;- /** Hide the redundant visible "Filter" label while preserving the select's accessible name. */+ /** Opt into a visible "Filter" label; the compact accessible-only label is the default. */showAddFilterLabel?: boolean;/*** When set, render a "Saved views" menu next to the Filter selector that persistsdiff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 53e2098e7d..d97a155602 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -8146,6 +8146,8 @@ describe('shared primitive guardrails', () => {expect(filterBarSource).toContain('props.filters.filter(isFilterSet)');expect(filterBarSource).toContain('activeCount() > 0');expect(filterBarSource).toContain('data-filter-action-cluster');+ expect(filterBarSource).toContain('showLabel={props.showAddFilterLabel === true}');+ expect(filterBarSource).not.toContain('showLabel={props.showAddFilterLabel !== false}');expect(filterBarSource).toContain('class="flex shrink-0 flex-nowrap items-center gap-2" data-filter-action-cluster',);