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 Docker update settings copy
rcourtmanc0558e8d5d13
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 59dbac74a9..299f03c8c5 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -296,6 +296,14 @@ work extends shared components instead of creating new local variants.shell must keep it under the Security group, route it through the canonicalregistry/header/navigation model, and avoid trial, upgrade, paid-plan, ormonitoring-limit copy when commercial presentation is hidden.+ General settings runtime cards that present source-platform actions must+ consume `frontend-modern/src/utils/systemSettingsPresentation.ts` and the+ shared source-platform vocabulary rather than card-local product names.+ `frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx`+ owns the local toggle layout, but Docker and Podman update-action titles,+ descriptions, environment variable display, and failure copy belong to+ `systemSettingsPresentation.ts` so settings surfaces do not drift back to+ generic container wording.Shared sparkline primitives must also stay CSP-safe by construction:`frontend-modern/src/components/shared/InteractiveSparkline.tsx` may use SVGattributes and shared state/model helpers for cursor, axis-label, anddiff --git a/frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx b/frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsxindex 6a936b0034..297e1f4df3 100644--- a/frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx+++ b/frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx@@ -1,6 +1,13 @@import { Component, Accessor, Show } from 'solid-js';import { EnvironmentLockBadge } from '@/components/shared/EnvironmentLockBadge';import { ENVIRONMENT_LOCK_BUTTON_TITLE } from '@/utils/environmentLockPresentation';+import {+ DOCKER_UPDATE_ACTIONS_ENV_VAR,+ DOCKER_UPDATE_ACTIONS_SECTION_DESCRIPTION,+ DOCKER_UPDATE_ACTIONS_SECTION_TITLE,+ DOCKER_UPDATE_ACTIONS_TOGGLE_DESCRIPTION,+ DOCKER_UPDATE_ACTIONS_TOGGLE_LABEL,+} from '@/utils/systemSettingsPresentation';interface DockerRuntimeSettingsCardProps {disableDockerUpdateActions: Accessor<boolean>;@@ -13,17 +20,21 @@ export const DockerRuntimeSettingsCard: Component<DockerRuntimeSettingsCardProps<div class="rounded-xl border border-border bg-surface p-5 shadow-sm"><div class="space-y-4"><div class="space-y-1">- <h3 class="text-base font-semibold text-base-content">Container Updates</h3>- <p class="text-sm text-muted">Control how container update actions appear across Pulse.</p>+ <h3 class="text-base font-semibold text-base-content">+ {DOCKER_UPDATE_ACTIONS_SECTION_TITLE}+ </h3>+ <p class="text-sm text-muted">{DOCKER_UPDATE_ACTIONS_SECTION_DESCRIPTION}</p></div><div class="flex items-start justify-between gap-4 rounded-md border border-border bg-surface-hover p-4"><div class="flex-1 space-y-1"><div class="flex items-center gap-2">- <span class="text-sm font-medium text-base-content">Hide update buttons</span>+ <span class="text-sm font-medium text-base-content">+ {DOCKER_UPDATE_ACTIONS_TOGGLE_LABEL}+ </span><Show when={props.disableDockerUpdateActionsLocked()}><EnvironmentLockBadge- envVar="PULSE_DISABLE_DOCKER_UPDATE_ACTIONS"+ envVar={DOCKER_UPDATE_ACTIONS_ENV_VAR}icon={(props) => (<svgclass={props.class}@@ -42,14 +53,11 @@ export const DockerRuntimeSettingsCard: Component<DockerRuntimeSettingsCardProps/></Show></div>- <p class="text-xs text-muted">- When enabled, container "Update" actions are hidden across Pulse. Update detection still- runs, so available updates remain visible.- </p>+ <p class="text-xs text-muted">{DOCKER_UPDATE_ACTIONS_TOGGLE_DESCRIPTION}</p><p class="text-xs text-muted mt-1">Can also be set via environment variable:{' '}<code class="px-1 py-0.5 rounded bg-surface-hover text-base-content">- PULSE_DISABLE_DOCKER_UPDATE_ACTIONS=true+ {DOCKER_UPDATE_ACTIONS_ENV_VAR}=true</code></p></div>diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 78d5b6f1e2..d30876d7e3 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -8,6 +8,7 @@ import aiModelSelectionSectionSource from '../AIModelSelectionSection.tsx?raw';import aiRuntimeControlsSectionSource from '../AIRuntimeControlsSection.tsx?raw';import aiSettingsModelSource from '../aiSettingsModel.ts?raw';import generalSettingsPanelSource from '../GeneralSettingsPanel.tsx?raw';+import dockerRuntimeSettingsCardSource from '../DockerRuntimeSettingsCard.tsx?raw';import settingsHeaderMetaSource from '../settingsHeaderMeta.ts?raw';import settingsNavCatalogSource from '../settingsNavCatalog.ts?raw';import settingsNavigationHookSource from '../useSettingsNavigation.ts?raw';@@ -192,6 +193,17 @@ describe('settings architecture guardrails', () => {expect(aiRuntimeControlsSectionSource).not.toContain('without approval (Pro)');});+ it('keeps Docker and Podman update-action copy on the system settings presentation owner', () => {+ expect(dockerRuntimeSettingsCardSource).toContain('DOCKER_UPDATE_ACTIONS_SECTION_TITLE');+ expect(dockerRuntimeSettingsCardSource).toContain('DOCKER_UPDATE_ACTIONS_ENV_VAR');+ expect(dockerRuntimeSettingsCardSource).not.toContain('Container Updates');+ expect(dockerRuntimeSettingsCardSource).not.toContain('container update actions');++ expect(systemSettingsPresentationSource).toContain("getSourcePlatformLabel('docker')");+ expect(systemSettingsPresentationSource).toContain('DOCKER_UPDATE_ACTIONS_SECTION_TITLE');+ expect(systemSettingsPresentationSource).toContain('DOCKER_UPDATE_ACTIONS_ENV_VAR');+ });+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');diff --git a/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.ts b/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.tsindex 41baf6fe60..71614206a3 100644--- a/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.ts@@ -3,6 +3,11 @@ import {BACKUP_INTERVAL_MAX_MINUTES,BACKUP_INTERVAL_OPTIONS,COMMON_DISCOVERY_SUBNETS,+ DOCKER_UPDATE_ACTIONS_ENV_VAR,+ DOCKER_UPDATE_ACTIONS_SECTION_DESCRIPTION,+ DOCKER_UPDATE_ACTIONS_SECTION_TITLE,+ DOCKER_UPDATE_ACTIONS_TOGGLE_DESCRIPTION,+ DOCKER_UPDATE_ACTIONS_TOGGLE_LABEL,getBackupIntervalSelectValue,getBackupIntervalSummary,getCheckForUpdatesErrorMessage,@@ -54,6 +59,18 @@ describe('systemSettingsPresentation', () => {]);});+ it('exports canonical Docker and Podman update-action settings copy', () => {+ expect(DOCKER_UPDATE_ACTIONS_ENV_VAR).toBe('PULSE_DISABLE_DOCKER_UPDATE_ACTIONS');+ expect(DOCKER_UPDATE_ACTIONS_SECTION_TITLE).toBe('Docker / Podman updates');+ expect(DOCKER_UPDATE_ACTIONS_SECTION_DESCRIPTION).toBe(+ 'Control how Docker / Podman update actions appear across Pulse.',+ );+ expect(DOCKER_UPDATE_ACTIONS_TOGGLE_LABEL).toBe('Hide update buttons');+ expect(DOCKER_UPDATE_ACTIONS_TOGGLE_DESCRIPTION).toBe(+ 'When enabled, Docker / Podman "Update" actions are hidden across Pulse. Update detection still runs, so available updates remain visible.',+ );+ });+it('returns canonical backup interval select values', () => {expect(getBackupIntervalSelectValue(false, 0)).toBe('0');expect(getBackupIntervalSelectValue(false, 300)).toBe('300');@@ -80,7 +97,7 @@ describe('systemSettingsPresentation', () => {'Unable to update local login visibility.',);expect(getDockerUpdateActionsUpdateErrorMessage()).toBe(- 'Unable to update container update actions.',+ 'Unable to update Docker / Podman update actions.',);expect(getReduceUpsellNoiseUpdateErrorMessage()).toBe('Unable to update commercial prompt preferences.',diff --git a/frontend-modern/src/utils/systemSettingsPresentation.ts b/frontend-modern/src/utils/systemSettingsPresentation.tsindex a73244c272..76f22a7342 100644--- a/frontend-modern/src/utils/systemSettingsPresentation.ts+++ b/frontend-modern/src/utils/systemSettingsPresentation.ts@@ -1,3 +1,5 @@+import { getSourcePlatformLabel } from '@/utils/sourcePlatforms';+export const PVE_POLLING_MIN_SECONDS = 10;export const PVE_POLLING_MAX_SECONDS = 3600;@@ -28,6 +30,14 @@ export const COMMON_DISCOVERY_SUBNETS = ['192.168.10.0/24',] as const;+const DOCKER_PODMAN_SOURCE_LABEL = getSourcePlatformLabel('docker');++export const DOCKER_UPDATE_ACTIONS_ENV_VAR = 'PULSE_DISABLE_DOCKER_UPDATE_ACTIONS';+export const DOCKER_UPDATE_ACTIONS_SECTION_TITLE = `${DOCKER_PODMAN_SOURCE_LABEL} updates`;+export const DOCKER_UPDATE_ACTIONS_SECTION_DESCRIPTION = `Control how ${DOCKER_PODMAN_SOURCE_LABEL} update actions appear across Pulse.`;+export const DOCKER_UPDATE_ACTIONS_TOGGLE_LABEL = 'Hide update buttons';+export const DOCKER_UPDATE_ACTIONS_TOGGLE_DESCRIPTION = `When enabled, ${DOCKER_PODMAN_SOURCE_LABEL} "Update" actions are hidden across Pulse. Update detection still runs, so available updates remain visible.`;+export function getBackupIntervalSelectValue(backupPollingUseCustom: boolean,backupPollingInterval: number,@@ -73,7 +83,7 @@ export function getHideLocalLoginUpdateErrorMessage(message?: string): string {}export function getDockerUpdateActionsUpdateErrorMessage(message?: string): string {- return message || 'Unable to update container update actions.';+ return message || `Unable to update ${DOCKER_PODMAN_SOURCE_LABEL} update actions.`;}export function getReduceUpsellNoiseUpdateErrorMessage(message?: string): string {