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
Govern updates presentation helper
rcourtman823d2f976202
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex ef849363bc..8163eb03bc 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -66,6 +66,7 @@ work extends shared components instead of creating new local variants.41. `frontend-modern/src/components/Settings/reportingPanelModel.ts`42. `frontend-modern/src/components/Settings/useReportingPanelState.ts`43. `frontend-modern/src/utils/reportingPresentation.ts`+44. `frontend-modern/src/utils/updatesPresentation.ts`44. `frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts`45. `tests/integration/tests/15-settings-shell-consistency.spec.ts`46. `frontend-modern/src/components/shared/PageControls.guardrails.test.ts`@@ -520,10 +521,12 @@ The updates settings surface now follows the same presentation-owner rule.top-level settings shell, while`frontend-modern/src/components/Settings/UpdateInstallGuide.tsx`,`frontend-modern/src/components/Settings/CopyCommandBlock.tsx`, and-`frontend-modern/src/components/Settings/updatesSettingsModel.ts` own the+`frontend-modern/src/components/Settings/updatesSettingsModel.ts` plus+`frontend-modern/src/utils/updatesPresentation.ts` own thedeployment-specific install guide, copy-command block, and update-channel/install-model data. The panel shell must not rebuild copy-to-clipboard command cards or-deployment instruction trees inline.+model data plus customer-facing update status/action copy. The panel shell must+not rebuild copy-to-clipboard command cards, deployment instruction trees, or+update-surface wording inline.The reporting operations surface now follows the same shell-state-model rule.`frontend-modern/src/components/Settings/ReportingPanel.tsx` stays thediff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 259825026b..398dfa3191 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -2102,7 +2102,8 @@"frontend-modern/src/utils/settingsShellPresentation.ts","frontend-modern/src/utils/ssoProviderPresentation.ts","frontend-modern/src/utils/systemLogsPresentation.ts",- "frontend-modern/src/utils/systemSettingsPresentation.ts"+ "frontend-modern/src/utils/systemSettingsPresentation.ts",+ "frontend-modern/src/utils/updatesPresentation.ts"],"verification": {"allow_same_subsystem_tests": false,@@ -2265,6 +2266,19 @@"frontend-modern/src/utils/__tests__/settingsShellPresentation.test.ts"]},+ {+ "id": "updates-presentation-helper",+ "label": "updates presentation helper proof",+ "match_prefixes": [],+ "match_files": [+ "frontend-modern/src/utils/updatesPresentation.ts"+ ],+ "allow_same_subsystem_tests": false,+ "test_prefixes": [],+ "exact_files": [+ "frontend-modern/src/utils/__tests__/updatesPresentation.test.ts"+ ]+ },{"id": "system-logs-presentation-helper","label": "system logs presentation helper proof",diff --git a/frontend-modern/src/components/Settings/UpdatesSettingsPanel.tsx b/frontend-modern/src/components/Settings/UpdatesSettingsPanel.tsxindex 4d4273a321..9ac62ef861 100644--- a/frontend-modern/src/components/Settings/UpdatesSettingsPanel.tsx+++ b/frontend-modern/src/components/Settings/UpdatesSettingsPanel.tsx@@ -17,10 +17,12 @@ import {type UpdateChannelOptionValue,} from '@/components/Settings/updatesSettingsModel';import {+ getUpdateCheckActionLabel,getUpdateAvailabilityHeading,getUpdateBuildBadges,getUpdateCheckModeLabel,getUpdatePrimaryStatusLabel,+ UPDATES_PANEL_COPY,} from '@/utils/updatesPresentation';export interface UpdatesSettingsPanelProps {@@ -86,8 +88,8 @@ export const UpdatesSettingsPanel: Component<UpdatesSettingsPanelProps> = (propsreturn (<SettingsPanel- title="Updates"- description="Manage version checks and automatic update preferences."+ title={UPDATES_PANEL_COPY.title}+ description={UPDATES_PANEL_COPY.description}icon={<RefreshCw class="w-5 h-5" strokeWidth={2} />}noPaddingbodyClass="divide-y divide-border"@@ -108,7 +110,7 @@ export const UpdatesSettingsPanel: Component<UpdatesSettingsPanelProps> = (props</div><div class="flex-1 min-w-0"><p class="text-xs font-medium uppercase tracking-wide text-muted">- Current Version+ {UPDATES_PANEL_COPY.currentVersionLabel}</p><p class="mt-1 text-lg font-bold text-base-content truncate">{props.versionInfo()?.version || 'Loading...'}@@ -202,12 +204,12 @@ export const UpdatesSettingsPanel: Component<UpdatesSettingsPanelProps> = (props{props.checkingForUpdates() ? (<><div class="animate-spin h-4 w-4 border-2 border-white border-t-transparent rounded-full"></div>- Checking...+ {getUpdateCheckActionLabel(true)}</>) : (<><RefreshCw class="w-4 h-4" />- Check Now+ {getUpdateCheckActionLabel(false)}</>)}</button>@@ -247,7 +249,7 @@ export const UpdatesSettingsPanel: Component<UpdatesSettingsPanelProps> = (propsd="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/></svg>- Update Preferences+ {UPDATES_PANEL_COPY.updatePreferencesTitle}<HelpIcon contentId="updates.pulse.channel" size="xs" /></h4>@@ -268,11 +270,9 @@ export const UpdatesSettingsPanel: Component<UpdatesSettingsPanelProps> = (props<Show when={isPreviewChannel()}><div class="rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-900 dark:border-amber-800 dark:bg-amber-950/40 dark:text-amber-100">- <p class="font-medium">RC is a manual preview channel.</p>+ <p class="font-medium">{UPDATES_PANEL_COPY.previewChannelTitle}</p><p class="mt-1 text-xs text-amber-800 dark:text-amber-200">- Use this on staging or internal validation environments. Automatic- stable updates stay disabled on RC so preview installs do not drift- between channels unattended.+ {UPDATES_PANEL_COPY.previewChannelDescription}</p></div></Show>@@ -298,11 +298,10 @@ export const UpdatesSettingsPanel: Component<UpdatesSettingsPanelProps> = (props</div><div><label class="text-sm font-medium text-base-content">- Automatic Stable Updates+ {UPDATES_PANEL_COPY.autoUpdateTitle}</label><p class="text-xs text-muted">- Supported host installs can automatically apply stable releases.- RC preview validation always stays manual.+ {UPDATES_PANEL_COPY.autoUpdateDescription}</p></div></div>@@ -324,8 +323,7 @@ export const UpdatesSettingsPanel: Component<UpdatesSettingsPanelProps> = (props<Show when={isPreviewChannel()}><p class="mt-3 text-xs text-amber-700 dark:text-amber-300">- Automatic stable updates are unavailable while the RC preview- channel is selected.+ {UPDATES_PANEL_COPY.previewChannelAutoUpdateNotice}</p></Show>@@ -334,7 +332,9 @@ export const UpdatesSettingsPanel: Component<UpdatesSettingsPanelProps> = (props<div class="mt-4 pt-4 border-t border-border grid grid-cols-1 sm:grid-cols-2 gap-4">{/* Check Interval */}<div class="space-y-2">- <label class="text-xs font-medium text-base-content">Check Interval</label>+ <label class="text-xs font-medium text-base-content">+ {UPDATES_PANEL_COPY.checkIntervalLabel}+ </label><selectvalue={props.autoUpdateCheckInterval()}onChange={(e) => {@@ -352,7 +352,9 @@ export const UpdatesSettingsPanel: Component<UpdatesSettingsPanelProps> = (props{/* Check Time */}<div class="space-y-2">- <label class="text-xs font-medium text-base-content">Preferred Time</label>+ <label class="text-xs font-medium text-base-content">+ {UPDATES_PANEL_COPY.preferredTimeLabel}+ </label><inputtype="time"value={props.autoUpdateTime()}diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 5983412215..4355b28f8a 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -938,9 +938,14 @@ describe('Settings architecture guardrails', () => {it('keeps the updates settings shell behind extracted install-guide owners', () => {expect(updatesSettingsPanelSource).toContain('@/components/Settings/UpdateInstallGuide');expect(updatesSettingsPanelSource).toContain('@/components/Settings/updatesSettingsModel');+ expect(updatesSettingsPanelSource).toContain('UPDATES_PANEL_COPY');+ expect(updatesSettingsPanelSource).toContain('getUpdateCheckActionLabel');expect(updatesSettingsPanelSource).not.toContain("navigator.clipboard.writeText('update')");expect(updatesSettingsPanelSource).not.toContain("value: 'stable'");expect(updatesSettingsPanelSource).not.toContain("value: 'rc'");+ expect(updatesSettingsPanelSource).not.toContain('Check Now');+ expect(updatesSettingsPanelSource).not.toContain('Checking...');+ expect(updatesSettingsPanelSource).not.toContain('Update Preferences');expect(updateInstallGuideSource).toContain('@/components/Settings/CopyCommandBlock');expect(updateInstallGuideSource).toContain('buildUpdateInstallGuide');expect(copyCommandBlockSource).toContain('export function CopyCommandBlock');@@ -1089,10 +1094,12 @@ describe('Settings architecture guardrails', () => {expect(SETTINGS_HEADER_META[tab].title, `${tab} should keep its shell title canonical`).toBe(title,);+ const allowedTitleExpression =+ tab === 'system-updates' ? `title={UPDATES_PANEL_COPY.title}` : `title="${title}"`;expect(source,`${tab} should keep its leading SettingsPanel title aligned with the shell title`,- ).toContain(`title="${title}"`);+ ).toContain(allowedTitleExpression);}});diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 8f9d82f8c7..9027671d6f 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -4225,12 +4225,17 @@ describe('frontend resource type boundaries', () => {expect(diagnosticsPresentationSource).toContain('export const DIAGNOSTICS_EMPTY_PBS_MESSAGE');expect(updatesSettingsPanelSource).toContain('getUpdateBuildBadges');expect(updatesSettingsPanelSource).toContain('getUpdateAvailabilityHeading');+ expect(updatesSettingsPanelSource).toContain('getUpdateCheckActionLabel');expect(updatesSettingsPanelSource).toContain('getUpdatePrimaryStatusLabel');expect(updatesSettingsPanelSource).toContain('getUpdateCheckModeLabel');+ expect(updatesSettingsPanelSource).toContain('UPDATES_PANEL_COPY');expect(updatesSettingsPanelSource).toContain('@/components/Settings/UpdateInstallGuide');expect(updatesSettingsPanelSource).toContain('@/components/Settings/updatesSettingsModel');expect(updatesSettingsPanelSource).not.toContain('Auto-check enabled');expect(updatesSettingsPanelSource).not.toContain('Manual checks only');+ expect(updatesSettingsPanelSource).not.toContain('Check Now');+ expect(updatesSettingsPanelSource).not.toContain('Checking...');+ expect(updatesSettingsPanelSource).not.toContain('Update Preferences');expect(updatesSettingsPanelSource).not.toContain('Update Ready');expect(updatesSettingsPanelSource).not.toContain('Up to date');expect(updatesSettingsPanelSource).not.toContain("navigator.clipboard.writeText('update')");@@ -4256,8 +4261,10 @@ describe('frontend resource type boundaries', () => {);expect(updatesPresentationSource).toContain('export function getUpdateBuildBadges');expect(updatesPresentationSource).toContain('export function getUpdateAvailabilityHeading');+ expect(updatesPresentationSource).toContain('export function getUpdateCheckActionLabel');expect(updatesPresentationSource).toContain('export function getUpdatePrimaryStatusLabel');expect(updatesPresentationSource).toContain('export function getUpdateCheckModeLabel');+ expect(updatesPresentationSource).toContain('export const UPDATES_PANEL_COPY');expect(aiSettingsSource).toContain('getAIProviderTestResultTextClass');expect(aiSettingsSource).toContain('getAISettingsLoadingState');expect(aiSettingsSource).toContain('getAISettingsLoadErrorMessage');diff --git a/frontend-modern/src/utils/__tests__/updatesPresentation.test.ts b/frontend-modern/src/utils/__tests__/updatesPresentation.test.tsindex 23f8ae7dda..c86a28b7d8 100644--- a/frontend-modern/src/utils/__tests__/updatesPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/updatesPresentation.test.ts@@ -1,9 +1,11 @@import { describe, expect, it } from 'vitest';import {+ getUpdateCheckActionLabel,getUpdateAvailabilityHeading,getUpdateBuildBadges,getUpdateCheckModeLabel,getUpdatePrimaryStatusLabel,+ UPDATES_PANEL_COPY,} from '../updatesPresentation';describe('updatesPresentation', () => {@@ -15,6 +17,27 @@ describe('updatesPresentation', () => {).toEqual(['Development', 'Docker', 'Source']);});+ it('returns canonical updates panel framing copy', () => {+ expect(UPDATES_PANEL_COPY).toEqual({+ title: 'Updates',+ description: 'Manage version checks and automatic update preferences.',+ currentVersionLabel: 'Current Version',+ checkNowLabel: 'Check Now',+ checkingLabel: 'Checking...',+ updatePreferencesTitle: 'Update Preferences',+ autoUpdateTitle: 'Automatic Stable Updates',+ autoUpdateDescription:+ 'Supported host installs can automatically apply stable releases. RC preview validation always stays manual.',+ previewChannelTitle: 'RC is a manual preview channel.',+ previewChannelDescription:+ 'Use this on staging or internal validation environments. Automatic stable updates stay disabled on RC so preview installs do not drift between channels unattended.',+ previewChannelAutoUpdateNotice:+ 'Automatic stable updates are unavailable while the RC preview channel is selected.',+ checkIntervalLabel: 'Check Interval',+ preferredTimeLabel: 'Preferred Time',+ });+ });+it('returns canonical update status copy', () => {expect(getUpdateAvailabilityHeading(true)).toBe('Available');expect(getUpdateAvailabilityHeading(false)).toBe('Status');@@ -22,5 +45,7 @@ describe('updatesPresentation', () => {expect(getUpdatePrimaryStatusLabel(false)).toBe('Up to date');expect(getUpdateCheckModeLabel(true)).toBe('Auto-check enabled');expect(getUpdateCheckModeLabel(false)).toBe('Manual checks only');+ expect(getUpdateCheckActionLabel(true)).toBe('Checking...');+ expect(getUpdateCheckActionLabel(false)).toBe('Check Now');});});diff --git a/frontend-modern/src/utils/updatesPresentation.ts b/frontend-modern/src/utils/updatesPresentation.tsindex 8f35d7f72f..b38a42bd50 100644--- a/frontend-modern/src/utils/updatesPresentation.ts+++ b/frontend-modern/src/utils/updatesPresentation.ts@@ -5,6 +5,25 @@ export interface UpdateBuildBadge {className: string;}+export const UPDATES_PANEL_COPY = {+ title: 'Updates',+ description: 'Manage version checks and automatic update preferences.',+ currentVersionLabel: 'Current Version',+ checkNowLabel: 'Check Now',+ checkingLabel: 'Checking...',+ updatePreferencesTitle: 'Update Preferences',+ autoUpdateTitle: 'Automatic Stable Updates',+ autoUpdateDescription:+ 'Supported host installs can automatically apply stable releases. RC preview validation always stays manual.',+ previewChannelTitle: 'RC is a manual preview channel.',+ previewChannelDescription:+ 'Use this on staging or internal validation environments. Automatic stable updates stay disabled on RC so preview installs do not drift between channels unattended.',+ previewChannelAutoUpdateNotice:+ 'Automatic stable updates are unavailable while the RC preview channel is selected.',+ checkIntervalLabel: 'Check Interval',+ preferredTimeLabel: 'Preferred Time',+} as const;+export function getUpdateBuildBadges(versionInfo?: Pick<VersionInfo, 'isDevelopment' | 'isDocker' | 'isSourceBuild'> | null,): UpdateBuildBadge[] {@@ -50,3 +69,7 @@ export function getUpdatePrimaryStatusLabel(available: boolean): string {export function getUpdateCheckModeLabel(enabled: boolean): string {return enabled ? 'Auto-check enabled' : 'Manual checks only';}++export function getUpdateCheckActionLabel(checking: boolean): string {+ return checking ? UPDATES_PANEL_COPY.checkingLabel : UPDATES_PANEL_COPY.checkNowLabel;+}