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
Canonicalize filter option presentation labels
rcourtman52a1f40ac383
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.mdindex c285974fa8..ff6c44ce74 100644--- a/docs/release-control/v6/internal/subsystems/alerts.md+++ b/docs/release-control/v6/internal/subsystems/alerts.md@@ -224,6 +224,10 @@ status labels. Overview stat-card labels must also route through the alertoverview presentation helper, and user-facing configuration or thresholds copymust use workload, VM, and container vocabulary instead of exposing internalguest override/filter names unless the UI is naming a backend field directly.+Alert history filter defaults such as the all-time period option must likewise+come from the alert overview/history presentation helper and the shared+filter-option label primitive rather than hard-coded title-case strings in the+history filter card.Thresholds empty states that hand operators to Infrastructure settings must use`frontend-modern/src/utils/infrastructureSettingsPresentation.ts` for thecanonical `Settings → Infrastructure` label instead of hard-coding genericdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex d34ffb6348..ca776eae66 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1543,6 +1543,12 @@ option collections through reactive accessors instead of snapshot arrays whenthose options depend on post-load unified-resource state, so the shared toolbarcan reconcile late-arriving options and preserved route selections withoutrequiring page-local reset hacks.+Shared default filter labels must also stay on the same primitive-level+contract. Generic `All …` option text should route through+`frontend-modern/src/components/shared/filterOptionPresentation.ts`, with+domain presentation helpers supplying the noun phrase, so storage, alerts,+recovery, settings, and future filter bars do not drift between title-case and+sentence-case local strings.When those workspace tabs need an embedded control-bar treatment, they shouldstill stay on the one canonical `frontend-modern/src/components/shared/Subtabs.tsx`primitive and reuse the established shell, list, and button class pattern@@ -1668,7 +1674,9 @@ The audit log settings surface now follows that same owner split.`frontend-modern/src/components/Settings/useAuditLogPanelState.ts` owns thelicense/paywall lifecycle, persisted filters, verification flow, and audit-logfetch orchestration. The shell must not re-accumulate localStorage or API-runtime logic inline.+runtime logic inline. Audit-log filter option labels must come from+`frontend-modern/src/utils/auditLogPresentation.ts` and the shared filter-option+label primitive instead of hard-coded title-case strings in the settings shell.The audit webhook settings surface now follows that same owner split.`frontend-modern/src/components/Settings/AuditWebhookPanel.tsx` stays thediff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.mdindex 82d24bb806..5fdeba29f2 100644--- a/docs/release-control/v6/internal/subsystems/security-privacy.md+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md@@ -273,6 +273,11 @@ That same governed settings trust boundary now also includescopy, security posture scoring, audit-log wording, audit-webhook wording, andSSO provider-type presentation remain part of the governed security trustsurface instead of floating as unowned settings helpers.+Audit-log filter option wording is part of that same trust surface: event,+success, and verification filter labels must be sourced from+`frontend-modern/src/utils/auditLogPresentation.ts` and the shared filter-option+label primitive rather than hard-coded title-case strings in+`AuditLogPanel.tsx`.That same governed security-score presentation boundary also owns theoperator-facing low-score warning copy used by the top-level runtime banner:`frontend-modern/src/utils/securityScorePresentation.ts` must describe thediff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex bdbcae922f..ab7f549e5d 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -869,6 +869,11 @@ controls, and source selectors are also canonical presentation contracts:storage surfaces must consume `frontend-modern/src/components/Storage/storagePageState.ts`and `frontend-modern/src/utils/storageSources.ts` rather than re-declaringpage-local title casing or alternate all-option labels.+Physical-disk role and group filter defaults plus disk-type display labels+must likewise come from `frontend-modern/src/features/storageBackups/diskPresentation.ts`;+storage pages must not reintroduce local `All Roles`, `All Groups`, or+`NVME Disk` strings that drift away from the shared filter-label and hardware+acronym presentation contract.That same storage ownership also includes the physical-disk detail identitycontract in `frontend-modern/src/components/Storage/` and`frontend-modern/src/features/storageBackups/`: historical disk charts mustdiff --git a/frontend-modern/src/components/Settings/AuditLogPanel.tsx b/frontend-modern/src/components/Settings/AuditLogPanel.tsxindex 29dcbb9232..e86758d71b 100644--- a/frontend-modern/src/components/Settings/AuditLogPanel.tsx+++ b/frontend-modern/src/components/Settings/AuditLogPanel.tsx@@ -16,16 +16,19 @@ import {AUDIT_VERIFY_ALL_BUTTON_CLASS,AUDIT_VERIFY_ROW_BUTTON_CLASS,AUDIT_TOOLBAR_BUTTON_CLASS,+ AUDIT_EVENT_CONFIG_CHANGE_LABEL,+ AUDIT_EVENT_FILTER_ALL_LABEL,+ AUDIT_SUCCESS_FILTER_FAILED_ONLY_LABEL,+ AUDIT_SUCCESS_FILTER_SUCCESS_ONLY_LABEL,+ AUDIT_VERIFICATION_FILTER_ALL_LABEL,+ AUDIT_VERIFICATION_FILTER_NEEDS_LABEL,getAuditEventStatusPresentation,getAuditEventTypeBadgeClass,getAuditLogEmptyState,getAuditLogLoadingState,getAuditVerificationBadgePresentation,} from '@/utils/auditLogPresentation';-import {- getUpgradeActionButtonClass,- UPGRADE_ACTION_LABEL,-} from '@/utils/upgradePresentation';+import { getUpgradeActionButtonClass, UPGRADE_ACTION_LABEL } from '@/utils/upgradePresentation';import { useAuditLogPanelState } from '@/components/Settings/useAuditLogPanelState';export default function AuditLogPanel() {@@ -187,10 +190,10 @@ export default function AuditLogPanel() {onChange={(e) => setEventFilter(e.currentTarget.value)}class="w-full sm:w-auto min-h-10 sm:min-h-10 px-3 py-2.5 text-sm border border-border rounded-md bg-surface text-base-content">- <option value="">All Events</option>+ <option value="">{AUDIT_EVENT_FILTER_ALL_LABEL}</option><option value="login">Login</option><option value="logout">Logout</option>- <option value="config_change">Config Change</option>+ <option value="config_change">{AUDIT_EVENT_CONFIG_CHANGE_LABEL}</option><option value="startup">Startup</option></select><input@@ -206,16 +209,16 @@ export default function AuditLogPanel() {class="w-full sm:w-auto min-h-10 sm:min-h-10 px-3 py-2.5 text-sm border border-border rounded-md bg-surface text-base-content"><option value="all">All</option>- <option value="success">Success Only</option>- <option value="failed">Failed Only</option>+ <option value="success">{AUDIT_SUCCESS_FILTER_SUCCESS_ONLY_LABEL}</option>+ <option value="failed">{AUDIT_SUCCESS_FILTER_FAILED_ONLY_LABEL}</option></select><selectvalue={verificationFilter()}onChange={(e) => setVerificationFilter(e.currentTarget.value)}class="w-full sm:w-auto min-h-10 sm:min-h-10 px-3 py-2.5 text-sm border border-border rounded-md bg-surface text-base-content">- <option value="all">All Verification</option>- <option value="needs">Needs Verification</option>+ <option value="all">{AUDIT_VERIFICATION_FILTER_ALL_LABEL}</option>+ <option value="needs">{AUDIT_VERIFICATION_FILTER_NEEDS_LABEL}</option><option value="verified">Verified</option><option value="failed">Failed/Error</option></select>diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 0a8b531362..fd36b1568f 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -13,6 +13,7 @@ import settingsNavigationHookSource from '../useSettingsNavigation.ts?raw';import aiSettingsStateSource from '../useAISettingsState.ts?raw';import settingsPanelRegistryContextSource from '../settingsPanelRegistryContext.tsx?raw';import dataHandlingPanelSource from '../DataHandlingPanel.tsx?raw';+import auditLogPanelSource from '../AuditLogPanel.tsx?raw';import auditWebhookPanelSource from '../AuditWebhookPanel.tsx?raw';import reportingPanelSource from '../ReportingPanel.tsx?raw';import infrastructureWorkspaceSource from '../InfrastructureWorkspace.tsx?raw';@@ -36,6 +37,7 @@ import diagnosticsModelSource from '../diagnosticsModel.ts?raw';import infrastructureOnboardingPresentationSource from '../../../utils/infrastructureOnboardingPresentation.ts?raw';import selfHostedBillingPresentationSource from '../selfHostedBillingPresentation.ts?raw';import systemSettingsPresentationSource from '../../../utils/systemSettingsPresentation.ts?raw';+import auditLogPresentationSource from '../../../utils/auditLogPresentation.ts?raw';describe('settings architecture guardrails', () => {it('keeps Settings on the canonical page shell boundary', () => {@@ -136,7 +138,9 @@ describe('settings architecture guardrails', () => {it('keeps default self-hosted commercial copy opt-in from shared settings primitives', () => {expect(aiSettingsDialogsSource).not.toContain('Open hosted handoff');- expect(aiSettingsDialogsSource).not.toContain('Hosted quickstart routes policy-redacted prompts');+ expect(aiSettingsDialogsSource).not.toContain(+ 'Hosted quickstart routes policy-redacted prompts',+ );expect(aiSettingsDialogsSource).not.toContain('quickstartBlockedReason');expect(aiSettingsStateSource).not.toContain('hasQuickstartAvailable');expect(aiSettingsDialogsSource).not.toContain('Start Trial');@@ -165,6 +169,22 @@ describe('settings architecture guardrails', () => {expect(aiRuntimeControlsSectionSource).not.toContain('without approval (Pro)');});+ it('keeps audit-log filter labels on the audit presentation owner', () => {+ 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');+ expect(auditLogPanelSource).toContain('AUDIT_VERIFICATION_FILTER_ALL_LABEL');+ expect(auditLogPanelSource).not.toContain('All Events');+ expect(auditLogPanelSource).not.toContain('All Verification');+ expect(auditLogPanelSource).not.toContain('Success Only');+ expect(auditLogPresentationSource).toContain(+ "AUDIT_EVENT_FILTER_ALL_LABEL = getAllFilterOptionLabel('events')",+ );+ expect(auditLogPresentationSource).toContain(+ "AUDIT_VERIFICATION_FILTER_ALL_LABEL = getAllFilterOptionLabel('verification')",+ );+ });+it('keeps system AI model catalogs on the shared searchable picker boundary', () => {expect(aiModelSelectionSectionSource).toContain("import { AIModelPicker } from '@/components/shared/AIModelPicker';",@@ -246,9 +266,7 @@ describe('settings architecture guardrails', () => {expect(monitoredSystemAdmissionPreviewSource).not.toContain('reuses your current monitored-system capacity',);- expect(monitoredSystemAdmissionPreviewSource).not.toContain(- 'frees monitored-system capacity',- );+ expect(monitoredSystemAdmissionPreviewSource).not.toContain('frees monitored-system capacity');expect(infrastructureSourceManagerSource).toContain("Add, discover, and verify the platform APIs plus Pulse Agent telemetry that make up Pulse's infrastructure model.",);diff --git a/frontend-modern/src/components/Storage/__tests__/useStorageFilterState.test.ts b/frontend-modern/src/components/Storage/__tests__/useStorageFilterState.test.tsindex 465a7e8a80..2bf6faa12d 100644--- a/frontend-modern/src/components/Storage/__tests__/useStorageFilterState.test.ts+++ b/frontend-modern/src/components/Storage/__tests__/useStorageFilterState.test.ts@@ -50,8 +50,8 @@ describe('useStorageFilterState', () => {]);expect(result.storageFilterGroupBy()).toBe('node');expect(result.storageFilterStatus()).toBe('all');- expect(result.diskRoleFilterOptions()).toEqual([{ value: 'all', label: 'All Roles' }]);- expect(result.diskGroupFilterOptions()).toEqual([{ value: 'all', label: 'All Groups' }]);+ expect(result.diskRoleFilterOptions()).toEqual([{ value: 'all', label: 'All roles' }]);+ expect(result.diskGroupFilterOptions()).toEqual([{ value: 'all', label: 'All groups' }]);});it('coerces stale selected nodes and disk facets, and maps status setters', () => {@@ -77,11 +77,11 @@ describe('useStorageFilterState', () => {setSelectedNodeId,sourceOptions,diskRoleOptions: () => [- { value: 'all', label: 'All Roles' },- { value: 'nvme-disk', label: 'NVME Disk' },+ { value: 'all', label: 'All roles' },+ { value: 'nvme-disk', label: 'NVMe disk' },],diskGroupOptions: () => [- { value: 'all', label: 'All Groups' },+ { value: 'all', label: 'All groups' },{ value: 'data', label: 'data' },],sourceFilter,diff --git a/frontend-modern/src/components/Storage/useStorageFilterState.ts b/frontend-modern/src/components/Storage/useStorageFilterState.tsindex 2727ae126f..773516d8ea 100644--- a/frontend-modern/src/components/Storage/useStorageFilterState.ts+++ b/frontend-modern/src/components/Storage/useStorageFilterState.ts@@ -4,6 +4,8 @@ import type { StorageHealthFilter } from '@/features/storageBackups/models';import { normalizeStorageSourceKey } from '@/utils/storageSources';import {DEFAULT_PHYSICAL_DISK_FACET_FILTER,+ PHYSICAL_DISK_ALL_GROUPS_FILTER_LABEL,+ PHYSICAL_DISK_ALL_ROLES_FILTER_LABEL,normalizePhysicalDiskFacetFilter,type PhysicalDiskFilterOption,} from '@/features/storageBackups/diskPresentation';@@ -60,12 +62,22 @@ export const useStorageFilterState = (options: UseStorageFilterStateOptions) =>const diskRoleFilterOptions = createMemo(() =>options.view() === 'disks' && options.diskRoleOptions? options.diskRoleOptions()- : [{ value: DEFAULT_PHYSICAL_DISK_FACET_FILTER, label: 'All Roles' }],+ : [+ {+ value: DEFAULT_PHYSICAL_DISK_FACET_FILTER,+ label: PHYSICAL_DISK_ALL_ROLES_FILTER_LABEL,+ },+ ],);const diskGroupFilterOptions = createMemo(() =>options.view() === 'disks' && options.diskGroupOptions? options.diskGroupOptions()- : [{ value: DEFAULT_PHYSICAL_DISK_FACET_FILTER, label: 'All Groups' }],+ : [+ {+ value: DEFAULT_PHYSICAL_DISK_FACET_FILTER,+ label: PHYSICAL_DISK_ALL_GROUPS_FILTER_LABEL,+ },+ ],);const storageFilterGroupBy = (): StorageGroupByFilter => {diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 84c83eb824..1d150aa0b6 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -19,6 +19,7 @@ import dialogSource from '@/components/shared/Dialog.tsx?raw';import dialogModelSource from '@/components/shared/dialogModel.ts?raw';import filterButtonGroupSource from '@/components/shared/FilterButtonGroup.tsx?raw';import filterButtonGroupModelSource from '@/components/shared/filterButtonGroupModel.ts?raw';+import filterOptionPresentationSource from '@/components/shared/filterOptionPresentation.ts?raw';import helpIconSource from '@/components/shared/HelpIcon.tsx?raw';import helpIconModelSource from '@/components/shared/helpIconModel.ts?raw';import historyChartHeaderSource from '@/components/shared/HistoryChartHeader.tsx?raw';@@ -511,6 +512,14 @@ describe('shared primitive guardrails', () => {}});+ it('keeps shared all-option filter labels on one presentation helper', () => {+ expect(filterOptionPresentationSource).toContain('FILTER_OPTION_ALL_LABEL');+ expect(filterOptionPresentationSource).toContain('getAllFilterOptionLabel');+ expect(filterOptionPresentationSource).toContain('collapseWhitespace');+ expect(filterOptionPresentationSource).not.toContain('toUpperCase');+ expect(filterOptionPresentationSource).not.toContain('toLowerCase');+ });+it('keeps summary-linked row input semantics on the shared interaction helper', () => {expect(summaryInteractionA11ySource).toContain('createSummaryInteractiveRowPreviewHandlers');expect(summaryInteractionA11ySource).toContain('createSummaryInteractiveActionKeydownHandler');diff --git a/frontend-modern/src/components/shared/__tests__/filterOptionPresentation.test.ts b/frontend-modern/src/components/shared/__tests__/filterOptionPresentation.test.tsnew file mode 100644index 0000000000..7b4b1f0d94--- /dev/null+++ b/frontend-modern/src/components/shared/__tests__/filterOptionPresentation.test.ts@@ -0,0 +1,14 @@+import { describe, expect, it } from 'vitest';+import {+ FILTER_OPTION_ALL_LABEL,+ getAllFilterOptionLabel,+} from '@/components/shared/filterOptionPresentation';++describe('filterOptionPresentation', () => {+ it('builds canonical all-option labels without changing domain casing', () => {+ expect(FILTER_OPTION_ALL_LABEL).toBe('All');+ expect(getAllFilterOptionLabel('')).toBe('All');+ expect(getAllFilterOptionLabel(' roles ')).toBe('All roles');+ expect(getAllFilterOptionLabel('K8s clusters')).toBe('All K8s clusters');+ });+});diff --git a/frontend-modern/src/components/shared/filterOptionPresentation.ts b/frontend-modern/src/components/shared/filterOptionPresentation.tsnew file mode 100644index 0000000000..a497594ce9--- /dev/null+++ b/frontend-modern/src/components/shared/filterOptionPresentation.ts@@ -0,0 +1,10 @@+const collapseWhitespace = (value: string): string => value.trim().replace(/\s+/g, ' ');++export const FILTER_OPTION_ALL_LABEL = 'All';++export function getAllFilterOptionLabel(scopeLabel: string): string {+ const normalizedScope = collapseWhitespace(scopeLabel);+ return normalizedScope+ ? `${FILTER_OPTION_ALL_LABEL} ${normalizedScope}`+ : FILTER_OPTION_ALL_LABEL;+}diff --git a/frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx b/frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsxindex cf5130ac0b..0671849bba 100644--- a/frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx+++ b/frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx@@ -2,7 +2,10 @@ import { Card } from '@/components/shared/Card';import { LabeledFilterSelect } from '@/components/shared/FilterToolbar';import { PageControls } from '@/components/shared/PageControls';import { SearchInput } from '@/components/shared/SearchInput';-import { getAlertHistorySearchPlaceholder } from '@/utils/alertOverviewPresentation';+import {+ ALERT_HISTORY_ALL_TIME_FILTER_LABEL,+ getAlertHistorySearchPlaceholder,+} from '@/utils/alertOverviewPresentation';import type { AlertHistoryState } from './useAlertHistoryState';@@ -44,7 +47,7 @@ export function AlertHistoryFiltersCard(props: AlertHistoryFiltersCardProps) {<option value="24h">Last 24h</option><option value="7d">Last 7d</option><option value="30d">Last 30d</option>- <option value="all">All Time</option>+ <option value="all">{ALERT_HISTORY_ALL_TIME_FILTER_LABEL}</option></LabeledFilterSelect><LabeledFilterSelectid="alert-severity-filter"diff --git a/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.tsindex 691836a8a8..bebee5940f 100644--- a/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts+++ b/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts@@ -8,6 +8,8 @@ import {extractPhysicalDiskPresentationData,filterAndSortPhysicalDisks,PHYSICAL_DISK_EMPTY_CARD_CLASS,+ PHYSICAL_DISK_ALL_GROUPS_FILTER_LABEL,+ PHYSICAL_DISK_ALL_ROLES_FILTER_LABEL,PHYSICAL_DISK_HEADER_DISK_CLASS,PHYSICAL_DISK_HEADER_SOURCE_CLASS,PHYSICAL_DISK_NAME_TEXT_CLASS,@@ -102,6 +104,9 @@ describe('diskPresentation', () => {storageRole: 'cache_pool',}),).toBe('Cache Pool');+ expect(getPhysicalDiskRoleLabel(makeDiskData({ type: 'nvme' }))).toBe('NVMe disk');+ expect(getPhysicalDiskRoleLabel(makeDiskData({ type: 'sata' }))).toBe('SATA disk');+ expect(getPhysicalDiskRoleLabel(makeDiskData({ type: 'sas' }))).toBe('SAS disk');expect(getPhysicalDiskParentLabel({...makeDiskData({@@ -260,10 +265,18 @@ describe('diskPresentation', () => {value: 'cache-pool',label: 'Cache Pool',});+ expect(buildPhysicalDiskRoleFilterOptions([warningDisk, healthyDisk])[0]).toEqual({+ value: 'all',+ label: PHYSICAL_DISK_ALL_ROLES_FILTER_LABEL,+ });expect(buildPhysicalDiskGroupFilterOptions([warningDisk, healthyDisk])).toContainEqual({value: 'tank',label: 'tank',});+ expect(buildPhysicalDiskGroupFilterOptions([warningDisk, healthyDisk])[0]).toEqual({+ value: 'all',+ label: PHYSICAL_DISK_ALL_GROUPS_FILTER_LABEL,+ });expect(getPhysicalDiskNormalizedHealth(warningDisk, warningData)).toBe('warning');expect(comparePhysicalDiskPresentation(warningDisk, warningData, healthyDisk, healthyData),diff --git a/frontend-modern/src/features/storageBackups/diskPresentation.ts b/frontend-modern/src/features/storageBackups/diskPresentation.tsindex 37c074ca28..b1ee98ee5e 100644--- a/frontend-modern/src/features/storageBackups/diskPresentation.ts+++ b/frontend-modern/src/features/storageBackups/diskPresentation.ts@@ -4,6 +4,7 @@ import {getSourcePlatformPresentation,resolvePlatformTypeFromSources,} from '@/utils/sourcePlatforms';+import { getAllFilterOptionLabel } from '@/components/shared/filterOptionPresentation';import { getPhysicalDiskNodeIdentity } from '@/components/Storage/diskResourceUtils';import { getInfrastructureSettingsLocationLabel } from '@/utils/infrastructureSettingsPresentation';import { normalizeStorageSourceKey } from '@/utils/storageSources';@@ -153,6 +154,8 @@ const slugifyPhysicalDiskFacetValue = (value: string): string =>.replace(/^-+|-+$/g, '');export const DEFAULT_PHYSICAL_DISK_FACET_FILTER = 'all';+export const PHYSICAL_DISK_ALL_ROLES_FILTER_LABEL = getAllFilterOptionLabel('roles');+export const PHYSICAL_DISK_ALL_GROUPS_FILTER_LABEL = getAllFilterOptionLabel('groups');export const normalizePhysicalDiskFacetFilter = (value: string | null | undefined): string => {const normalized = slugifyPhysicalDiskFacetValue(value || '');@@ -486,7 +489,13 @@ export function getPhysicalDiskHealthSummary(status: DiskHealthStatusPresentatioexport function getPhysicalDiskRoleLabel(disk: PhysicalDiskPresentationData): string {if (disk.storageRole?.trim()) return titleize(disk.storageRole);- if (disk.type?.trim()) return `${disk.type.toUpperCase()} Disk`;+ const normalizedType = disk.type?.trim().toLowerCase();+ if (normalizedType === 'nvme') return 'NVMe disk';+ if (normalizedType === 'sata') return 'SATA disk';+ if (normalizedType === 'sas') return 'SAS disk';+ if (normalizedType === 'ssd') return 'SSD';+ if (normalizedType === 'hdd') return 'HDD';+ if (normalizedType) return `${titleize(normalizedType)} disk`;return '';}@@ -524,12 +533,20 @@ const buildPhysicalDiskFacetOptions = (};export const buildPhysicalDiskRoleFilterOptions = (disks: Resource[]): PhysicalDiskFilterOption[] =>- buildPhysicalDiskFacetOptions(disks, 'All Roles', getPhysicalDiskRoleLabel);+ buildPhysicalDiskFacetOptions(+ disks,+ PHYSICAL_DISK_ALL_ROLES_FILTER_LABEL,+ getPhysicalDiskRoleLabel,+ );export const buildPhysicalDiskGroupFilterOptions = (disks: Resource[],): PhysicalDiskFilterOption[] =>- buildPhysicalDiskFacetOptions(disks, 'All Groups', getPhysicalDiskParentLabel);+ buildPhysicalDiskFacetOptions(+ disks,+ PHYSICAL_DISK_ALL_GROUPS_FILTER_LABEL,+ getPhysicalDiskParentLabel,+ );const getPhysicalDiskHealthFilterEmptyTitle = (filter: StorageHealthFilter): string | null => {switch (filter) {@@ -583,8 +600,7 @@ export function getPhysicalDiskEmptyStatePresentation(options: {searchMessage: options.searchTerm ? `matching "${options.searchTerm}"` : null,filterMessages,showRequirements: !hasScopedFilter && options.diskCount === 0 && options.hasPVENodes,- fallbackMessage:- `No Proxmox nodes configured. Add Proxmox VE in ${getInfrastructureSettingsLocationLabel()} to monitor physical disks.`,+ fallbackMessage: `No Proxmox nodes configured. Add Proxmox VE in ${getInfrastructureSettingsLocationLabel()} to monitor physical disks.`,requirementsTitle: 'Physical disk monitoring requirements:',requirementsItems: [`Enable "Monitor physical disk health (SMART)" in ${getInfrastructureSettingsLocationLabel()} for the Proxmox node`,diff --git a/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts b/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.tsindex b41fca754e..004246c581 100644--- a/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts@@ -1,6 +1,7 @@import { describe, expect, it } from 'vitest';import {ALERT_BUCKET_EMPTY_LABEL,+ ALERT_HISTORY_ALL_TIME_FILTER_LABEL,ALERT_HISTORY_EMPTY_DESCRIPTION,ALERT_HISTORY_EMPTY_STATE,ALERT_HISTORY_LOADING_STATE,@@ -74,6 +75,7 @@ describe('alertOverviewPresentation', () => {it('returns canonical alert history search and empty-state copy', () => {expect(ALERT_HISTORY_SEARCH_PLACEHOLDER).toBe('Search alerts...');expect(getAlertHistorySearchPlaceholder()).toBe('Search alerts...');+ expect(ALERT_HISTORY_ALL_TIME_FILTER_LABEL).toBe('All time');expect(ALERT_HISTORY_EMPTY_STATE).toBe('No alerts found');expect(ALERT_HISTORY_EMPTY_DESCRIPTION).toBe('Try adjusting your filters or check back later');expect(getAlertHistoryEmptyState()).toEqual({diff --git a/frontend-modern/src/utils/__tests__/auditLogPresentation.test.ts b/frontend-modern/src/utils/__tests__/auditLogPresentation.test.tsindex 908ab194b1..aa66b7a6cb 100644--- a/frontend-modern/src/utils/__tests__/auditLogPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/auditLogPresentation.test.ts@@ -1,9 +1,15 @@import { describe, expect, it } from 'vitest';import {AUDIT_REFRESH_BUTTON_CLASS,+ AUDIT_EVENT_CONFIG_CHANGE_LABEL,+ AUDIT_EVENT_FILTER_ALL_LABEL,+ AUDIT_SUCCESS_FILTER_FAILED_ONLY_LABEL,+ AUDIT_SUCCESS_FILTER_SUCCESS_ONLY_LABEL,AUDIT_TOOLBAR_BUTTON_CLASS,AUDIT_VERIFY_ALL_BUTTON_CLASS,AUDIT_VERIFY_ROW_BUTTON_CLASS,+ AUDIT_VERIFICATION_FILTER_ALL_LABEL,+ AUDIT_VERIFICATION_FILTER_NEEDS_LABEL,getAuditEventStatusPresentation,getAuditEventTypeBadgeClass,getAuditVerificationBadgePresentation,@@ -47,4 +53,13 @@ describe('auditLogPresentation', () => {expect(AUDIT_VERIFY_ALL_BUTTON_CLASS).toContain('text-blue-700');expect(AUDIT_VERIFY_ROW_BUTTON_CLASS).toContain('text-blue-600');});++ it('exposes canonical audit filter option labels', () => {+ expect(AUDIT_EVENT_FILTER_ALL_LABEL).toBe('All events');+ expect(AUDIT_EVENT_CONFIG_CHANGE_LABEL).toBe('Config change');+ expect(AUDIT_SUCCESS_FILTER_SUCCESS_ONLY_LABEL).toBe('Success only');+ expect(AUDIT_SUCCESS_FILTER_FAILED_ONLY_LABEL).toBe('Failed only');+ expect(AUDIT_VERIFICATION_FILTER_ALL_LABEL).toBe('All verification');+ expect(AUDIT_VERIFICATION_FILTER_NEEDS_LABEL).toBe('Needs verification');+ });});diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 50f9ccaa38..abb604cd22 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -1964,6 +1964,8 @@ describe('frontend resource type boundaries', () => {expect(storageFilterStateSource).toContain('getStorageFilterGroupBy');expect(storageFilterStateSource).toContain('getStorageStatusFilterValue');expect(storageFilterStateSource).toContain('toStorageHealthFilterValue');+ expect(storageFilterStateSource).toContain('PHYSICAL_DISK_ALL_ROLES_FILTER_LABEL');+ expect(storageFilterStateSource).toContain('PHYSICAL_DISK_ALL_GROUPS_FILTER_LABEL');expect(storagePageSource).toContain('StorageContentCard');expect(storagePageSource).toContain('StoragePageBanners');expect(storagePageSource).toContain('StoragePageSummary');@@ -2202,6 +2204,9 @@ describe('frontend resource type boundaries', () => {'export function getPhysicalDiskEmptyStatePresentation',);expect(diskPresentationSource).toContain('export const PHYSICAL_DISK_TABLE_CLASS');+ expect(diskPresentationSource).toContain('PHYSICAL_DISK_ALL_ROLES_FILTER_LABEL');+ expect(diskPresentationSource).toContain('PHYSICAL_DISK_ALL_GROUPS_FILTER_LABEL');+ expect(diskPresentationSource).toContain("return 'NVMe disk'");expect(diskPresentationSource).toContain('export function getPhysicalDiskRoleLabel');expect(diskPresentationSource).toContain('export function getPhysicalDiskParentLabel');expect(diskPresentationSource).toContain('export function getPhysicalDiskPlatformLabel');diff --git a/frontend-modern/src/utils/alertOverviewPresentation.ts b/frontend-modern/src/utils/alertOverviewPresentation.tsindex 6e5910becd..e851f7b6df 100644--- a/frontend-modern/src/utils/alertOverviewPresentation.ts+++ b/frontend-modern/src/utils/alertOverviewPresentation.ts@@ -1,3 +1,5 @@+import { getAllFilterOptionLabel } from '@/components/shared/filterOptionPresentation';+export const ALERTS_EMPTY_STATE = 'No active alerts';export const ALERTS_THRESHOLD_HINT = 'Alerts will appear here when thresholds are exceeded';export const ALERT_TIMELINE_LOADING_STATE = 'Loading timeline...';@@ -11,6 +13,7 @@ export const ALERT_HISTORY_EMPTY_STATE = 'No alerts found';export const ALERT_HISTORY_EMPTY_DESCRIPTION = 'Try adjusting your filters or check back later';export const ALERT_BUCKET_EMPTY_LABEL = 'No alerts';export const ALERT_HISTORY_LOADING_STATE = 'Loading alert history...';+export const ALERT_HISTORY_ALL_TIME_FILTER_LABEL = getAllFilterOptionLabel('time');export const ALERT_OVERVIEW_ACKNOWLEDGED_LABEL = 'Acknowledged';export const ALERT_OVERVIEW_LAST_24_HOURS_LABEL = 'Last 24 Hours';export const ALERT_OVERVIEW_WORKLOAD_OVERRIDES_LABEL = 'Workload Overrides';diff --git a/frontend-modern/src/utils/auditLogPresentation.ts b/frontend-modern/src/utils/auditLogPresentation.tsindex 2db4ba8b6a..667c42f5e4 100644--- a/frontend-modern/src/utils/auditLogPresentation.ts+++ b/frontend-modern/src/utils/auditLogPresentation.ts@@ -1,6 +1,7 @@import type { Component } from 'solid-js';import CheckCircle from 'lucide-solid/icons/check-circle';import XCircle from 'lucide-solid/icons/x-circle';+import { getAllFilterOptionLabel } from '@/components/shared/filterOptionPresentation';export type AuditVerificationStatus = 'verified' | 'failed' | 'unavailable' | 'error';@@ -26,6 +27,12 @@ export const AUDIT_VERIFY_ALL_BUTTON_CLASS ='flex min-h-10 sm:min-h-10 items-center gap-2 px-3 py-2 text-sm font-medium text-blue-700 dark:text-blue-200 bg-blue-50 dark:bg-blue-900 border border-blue-200 dark:border-blue-700 rounded-md hover:bg-blue-100 dark:hover:bg-blue-800 disabled:opacity-50';export const AUDIT_VERIFY_ROW_BUTTON_CLASS ='inline-flex min-h-10 sm:min-h-10 items-center rounded-md border border-blue-200 dark:border-blue-700 px-3 py-2 text-sm font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900 disabled:opacity-50';+export const AUDIT_EVENT_FILTER_ALL_LABEL = getAllFilterOptionLabel('events');+export const AUDIT_EVENT_CONFIG_CHANGE_LABEL = 'Config change';+export const AUDIT_SUCCESS_FILTER_SUCCESS_ONLY_LABEL = 'Success only';+export const AUDIT_SUCCESS_FILTER_FAILED_ONLY_LABEL = 'Failed only';+export const AUDIT_VERIFICATION_FILTER_ALL_LABEL = getAllFilterOptionLabel('verification');+export const AUDIT_VERIFICATION_FILTER_NEEDS_LABEL = 'Needs verification';export function getAuditEventTypeBadgeClass(event?: string | null): string {switch ((event ?? '').trim()) {@@ -42,9 +49,7 @@ export function getAuditEventTypeBadgeClass(event?: string | null): string {}}-export function getAuditEventStatusPresentation(- success: boolean,-): AuditEventStatusPresentation {+export function getAuditEventStatusPresentation(success: boolean): AuditEventStatusPresentation {return success? {icon: CheckCircle,