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
Clarify Kubernetes workload filter labels
rcourtman34ce79d8766e
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 9425af539a..d34ffb6348 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1533,7 +1533,10 @@ That same shared filter-toolbar boundary also owns controlled select continuitywhen filter options materialize asynchronously. `LabeledFilterSelect` must keepthe caller-owned `value` visibly selected after option children arrive sodashboard, recovery, and other canonical filter bars do not drop their active-selection until the operator reopens the control.+selection until the operator reopens the control. The same primitive must keep+its `<label for>` association reactive when a route-owned filter swaps the+select `id`, label, and option set in place, so controls such as the workloads+node/K8s cluster filter remain accessible after mode changes.That same boundary also owns live option propagation through shared page-controlcomposition. Callers such as storage and recovery must pass source/filteroption collections through reactive accessors instead of snapshot arrays whendiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 36f39f4dee..6f5ca8851e 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -207,6 +207,10 @@ regression protection.the column label must remain present through an `sr-only` label so theheader row exposes names such as Uptime, Image, Context, and Node insteadof collapsing to only the visible text columns.+ Pod-mode workload filters must use the workload-owned+ `K8s Cluster` / `All K8s clusters` labels for Kubernetes context selection,+ rather than a generic `Cluster` label that can be confused with Proxmox+ cluster terminology on adjacent infrastructure surfaces.26. Keep long-range workload chart capping time-proportional across `frontend-modern/src/components/Workloads/WorkloadsSummary.tsx`, `frontend-modern/src/api/charts.ts`, and `internal/api/router.go`: when the workload hot path caps mixed-cadence history for top cards, it must bucket by time window rather than raw point index so 7-day and 30-day workload cards stay visually even without relaxing the protected payload budget.27. Keep summary hover/focus and sticky-card behavior on shared hot paths: infrastructure, workloads, and storage summary shells must reuse one page/group/entity scope model plus `frontend-modern/src/components/shared/StickySummarySection.tsx` inside the app scroll shell instead of per-page scroll listeners or per-card hover derivations, so row scrubbing highlights all cards, workload group headers, infrastructure cluster headers, and storage pool-group headers scope the summary coherently, pinned group focus remains route-backed and reversible, and the hot path does not multiply render or scroll work. That hot path stays row-first rather than adding fallback chrome: the on-screen row or group header is the scoped state, and any explicit reset belongs to one compact shared table-header action plus the shared `Escape` path, not to page-level scope strips, search-row widgets, or filter-bar badges. Background whitespace clearing may exist as a convenience, but the hot path must not depend on brittle dead-space hit testing as the only reversible control. The same hot path must therefore keep one page-level reset owner for filters plus pinned summary selections, and it must keep chart-backed summary-card geometry explicit and stable so hover rerenders, synchronized readouts, or idle header metadata cannot feed layout loops that grow or shrink the top cards over time. Recovery’s summary rail is not part of this interactive hot path; it may share summary-card framing, but it must remain non-interactive until a separately governed model says otherwise.The input path for that hot summary contract must stay shared too:diff --git a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.k8s.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.k8s.test.tsxindex e1cb2aa444..db40cbe59a 100644--- a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.k8s.test.tsx+++ b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.k8s.test.tsx@@ -370,7 +370,7 @@ describe('Dashboard pod workloads integration', () => {await waitFor(() => {expect(lastHostFilter).toBeDefined();- expect(lastHostFilter?.label).toBe('Cluster');+ expect(lastHostFilter?.label).toBe('K8s Cluster');});const hostFilter = requireLastHostFilter();hostFilter.onChange('cluster-a');diff --git a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsxindex bdf9804680..9b4571303b 100644--- a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx+++ b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx@@ -675,6 +675,12 @@ describe('Dashboard performance contract', () => {expect(dashboardWorkloadFilterConfigModelSource).toContain('export const buildDashboardHostFilterConfig',);+ expect(dashboardWorkloadFilterConfigModelSource).toContain(+ "DASHBOARD_KUBERNETES_CONTEXT_FILTER_LABEL = 'K8s Cluster'",+ );+ expect(dashboardWorkloadFilterConfigModelSource).toContain(+ "DASHBOARD_KUBERNETES_CONTEXT_ALL_OPTION_LABEL = 'All K8s clusters'",+ );expect(dashboardWorkloadFilterConfigModelSource).toContain('export const buildDashboardNamespaceFilterConfig',);diff --git a/frontend-modern/src/components/Dashboard/__tests__/dashboardWorkloadFilterConfigModel.test.ts b/frontend-modern/src/components/Dashboard/__tests__/dashboardWorkloadFilterConfigModel.test.tsindex abbfdca6bb..3af55c262e 100644--- a/frontend-modern/src/components/Dashboard/__tests__/dashboardWorkloadFilterConfigModel.test.ts+++ b/frontend-modern/src/components/Dashboard/__tests__/dashboardWorkloadFilterConfigModel.test.ts@@ -5,6 +5,8 @@ import {buildDashboardHostFilterConfig,buildDashboardNamespaceFilterConfig,buildDashboardPlatformFilterConfig,+ DASHBOARD_KUBERNETES_CONTEXT_ALL_OPTION_LABEL,+ DASHBOARD_KUBERNETES_CONTEXT_FILTER_LABEL,} from '../dashboardWorkloadFilterConfigModel';describe('dashboardWorkloadFilterConfigModel', () => {@@ -53,8 +55,13 @@ describe('dashboardWorkloadFilterConfigModel', () => {}),).toMatchObject({id: 'workloads-k8s-context-filter',- label: 'Cluster',+ label: DASHBOARD_KUBERNETES_CONTEXT_FILTER_LABEL,value: 'prod',+ options: [+ { value: '', label: DASHBOARD_KUBERNETES_CONTEXT_ALL_OPTION_LABEL },+ { value: 'prod', label: 'prod' },+ { value: 'stage', label: 'stage' },+ ],});expect(diff --git a/frontend-modern/src/components/Dashboard/dashboardWorkloadFilterConfigModel.ts b/frontend-modern/src/components/Dashboard/dashboardWorkloadFilterConfigModel.tsindex 9550c41810..18bf99acb8 100644--- a/frontend-modern/src/components/Dashboard/dashboardWorkloadFilterConfigModel.ts+++ b/frontend-modern/src/components/Dashboard/dashboardWorkloadFilterConfigModel.ts@@ -2,6 +2,9 @@ import type { ViewMode } from '@/types/workloads';import type { DashboardToolbarFilterConfig } from './dashboardFilterModel';import type { DashboardWorkloadNodeOption } from './dashboardWorkloadRouteModel';+export const DASHBOARD_KUBERNETES_CONTEXT_FILTER_LABEL = 'K8s Cluster';+export const DASHBOARD_KUBERNETES_CONTEXT_ALL_OPTION_LABEL = 'All K8s clusters';+interface DashboardContainerRuntimeFilterConfigOptions {isWorkloadsRoute: boolean;viewMode: ViewMode;@@ -85,10 +88,10 @@ export const buildDashboardHostFilterConfig = ({if (viewMode === 'pod') {return {id: 'workloads-k8s-context-filter',- label: 'Cluster',+ label: DASHBOARD_KUBERNETES_CONTEXT_FILTER_LABEL,value: selectedKubernetesContext ?? '',options: [- { value: '', label: 'All clusters' },+ { value: '', label: DASHBOARD_KUBERNETES_CONTEXT_ALL_OPTION_LABEL },...kubernetesContextOptions.map((context) => ({ value: context, label: context })),],onChange: onContextChange,diff --git a/frontend-modern/src/components/shared/FilterToolbar.test.tsx b/frontend-modern/src/components/shared/FilterToolbar.test.tsxindex 3e88a62d6e..19132c52a1 100644--- a/frontend-modern/src/components/shared/FilterToolbar.test.tsx+++ b/frontend-modern/src/components/shared/FilterToolbar.test.tsx@@ -104,6 +104,48 @@ describe('FilterHeader', () => {);});+ it('keeps the label association current when a dynamic select id changes', async () => {+ const [mode, setMode] = createSignal<'node' | 'k8s'>('node');+ const filterConfig = () =>+ mode() === 'node'+ ? {+ id: 'workloads-node-filter',+ label: 'Node',+ options: [{ value: '', label: 'All nodes' }],+ }+ : {+ id: 'workloads-k8s-context-filter',+ label: 'K8s Cluster',+ options: [{ value: '', label: 'All K8s clusters' }],+ };++ render(() => (+ <>+ <button type="button" onClick={() => setMode('k8s')}>+ Show pods+ </button>+ <LabeledFilterSelect+ id={filterConfig().id}+ label={filterConfig().label}+ value=""+ data-testid="dynamic-filter"+ >+ <For each={filterConfig().options}>+ {(option) => <option value={option.value}>{option.label}</option>}+ </For>+ </LabeledFilterSelect>+ </>+ ));++ expect(screen.getByLabelText('Node')).toBe(screen.getByTestId('dynamic-filter'));++ screen.getByRole('button', { name: 'Show pods' }).click();++ await waitFor(() =>+ expect(screen.getByLabelText('K8s Cluster')).toBe(screen.getByTestId('dynamic-filter')),+ );+ });+it('keeps shared filter popovers above nested table and card shells', () => {expect(filterPanelClass).toContain('absolute');expect(filterPanelClass).toContain('z-[80]');diff --git a/frontend-modern/src/components/shared/FilterToolbar.tsx b/frontend-modern/src/components/shared/FilterToolbar.tsxindex 571f9f99af..9376587747 100644--- a/frontend-modern/src/components/shared/FilterToolbar.tsx+++ b/frontend-modern/src/components/shared/FilterToolbar.tsx@@ -232,7 +232,7 @@ export const LabeledFilterSelect: Component<LabeledFilterSelectProps> = (props)'value',]);let selectRef: HTMLSelectElement | undefined;- const selectId = typeof selectProps.id === 'string' ? selectProps.id : undefined;+ const selectId = () => (typeof selectProps.id === 'string' ? selectProps.id : undefined);createEffect(() => {const nextValue = local.value;@@ -261,7 +261,7 @@ export const LabeledFilterSelect: Component<LabeledFilterSelectProps> = (props)return (<div class={`${filterGroupClass} ${local.groupClass ?? ''}`.trim()}>- <label for={selectId} class={filterLabelClass}>+ <label for={selectId()} class={filterLabelClass}>{local.label}</label><select