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
Unify settings paywall CTA copy
rcourtman70102bf542bd
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex ea2749a75a..a6517913e5 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -228,6 +228,11 @@ truth. Trial initiation surfaces must preserve backend denial messages when therequest is blocked for migration, active commercial state, or other operationalreasons, and only map the explicit canonical cases (`trial_already_used`,rate-limit retry) to fixed copy.+That same helper boundary also owns generic settings-paywall CTA labels such as+`Upgrade to Pro` and `Start free trial`; feature panels like+`AIRuntimeControlsSection.tsx` and `RelaySettingsPanel.tsx` must consume the+shared upgrade presentation owner instead of embedding those CTA strings+locally.Hosted self-serve trial leases are also part of that same contract. A redeemedhosted trial must carry the canonical Pro capability set and the authoritative`limits.max_monitored_systems` cap inside the signed lease rather than relyingdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 67a5808054..07066d2c71 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -333,6 +333,11 @@ handoff itself is now centralized inonboarding surfaces must use that owner for redirect, success-notification, andcanonical denial handling instead of open-coding local `startProTrial()`branches or re-interpreting backend status codes.+That same owner also holds generic settings-paywall CTA labels. Runtime shells+such as `AIRuntimeControlsSection.tsx` and `RelaySettingsPanel.tsx` must source+shared labels like `Upgrade to Pro` and `Start free trial` from+`upgradePresentation.ts` rather than embedding local CTA strings in the panel+markup.Top-level route files are now also expected to stay thin when a feature ownsthe real product surface. `frontend-modern/src/pages/Infrastructure.tsx` nowacts only as the route boundary, whilediff --git a/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx b/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsxindex 8ce117af0b..c95c145b2b 100644--- a/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx+++ b/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx@@ -9,6 +9,11 @@ import {getAIControlLevelPanelClass,} from '@/utils/aiControlLevelPresentation';import { trackUpgradeClicked } from '@/utils/upgradeMetrics';+import {+ UPGRADE_ACTION_LABEL,+ UPGRADE_TRIAL_LABEL,+ UPGRADE_TRIAL_LINK_CLASS,+} from '@/utils/upgradePresentation';interface AIRuntimeControlsSectionProps {state: AISettingsState;@@ -240,7 +245,7 @@ export const AIRuntimeControlsSection: Component<AIRuntimeControlsSectionProps>rel="noopener noreferrer"onClick={() => trackUpgradeClicked('settings_ai_patrol_autofix', 'ai_autofix')}>- Upgrade to Pro+ {UPGRADE_ACTION_LABEL}</a>{' '}to enable autonomous mode.<Show when={state.canStartTrial()}>@@ -249,9 +254,9 @@ export const AIRuntimeControlsSection: Component<AIRuntimeControlsSectionProps>type="button"onClick={state.handleStartTrial}disabled={state.startingTrial()}- class="text-indigo-500 hover:underline disabled:opacity-50"+ class={UPGRADE_TRIAL_LINK_CLASS}>- Start free trial+ {UPGRADE_TRIAL_LABEL}</button></Show></p>diff --git a/frontend-modern/src/components/Settings/RelaySettingsPanel.tsx b/frontend-modern/src/components/Settings/RelaySettingsPanel.tsxindex ecc578997a..13fa8e00bc 100644--- a/frontend-modern/src/components/Settings/RelaySettingsPanel.tsx+++ b/frontend-modern/src/components/Settings/RelaySettingsPanel.tsx@@ -16,6 +16,7 @@ import {RELAY_PRIMARY_LINK_CLASS,RELAY_READONLY_NOTICE_CLASS,} from '@/utils/relayPresentation';+import { UPGRADE_TRIAL_LABEL } from '@/utils/upgradePresentation';import { RelayPairingSection } from './RelayPairingSection';import {useRelaySettingsPanelState,@@ -63,7 +64,7 @@ export const RelaySettingsPanel: Component<RelaySettingsPanelProps> = (props) =>disabled={state.startingTrial()}class={RELAY_INLINE_ACTION_CLASS}>- Start free trial+ {UPGRADE_TRIAL_LABEL}</button></Show></div>diff --git a/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx b/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsxindex b6e979a47e..df7e306218 100644--- a/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx@@ -444,8 +444,11 @@ describe('RelaySettingsPanel runtime', () => {it('keeps relay settings split into shell, runtime, and pairing owners', () => {expect(relaySettingsPanelSource).toContain('./useRelaySettingsPanelState');expect(relaySettingsPanelSource).toContain('./RelayPairingSection');+ expect(relaySettingsPanelSource).toContain('@/utils/upgradePresentation');+ expect(relaySettingsPanelSource).toContain('UPGRADE_TRIAL_LABEL');expect(relaySettingsPanelSource).not.toContain('createSignal(');expect(relaySettingsPanelSource).not.toContain('QRCode.toDataURL(');+ expect(relaySettingsPanelSource).not.toContain('>Start free trial<');expect(relaySettingsPanelStateSource).toContain('QRCode.toDataURL(payload.deep_link');expect(relaySettingsPanelStateSource).toContain('setInterval(() => void loadStatus(), 5000)');expect(relayPairingSectionSource).toContain('getRelayDiagnosticClass');diff --git a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.tsindex 608ca88ab9..8af0c98a11 100644--- a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts@@ -406,8 +406,11 @@ describe('monitored-system model guardrails', () => {expect(relaySettingsPanelSource).toContain('./useRelaySettingsPanelState');expect(relaySettingsPanelSource).toContain('./RelayPairingSection');expect(relaySettingsPanelSource).toContain('getSettingsConfigurationLoadingState');+ expect(relaySettingsPanelSource).toContain('@/utils/upgradePresentation');+ expect(relaySettingsPanelSource).toContain('UPGRADE_TRIAL_LABEL');expect(relaySettingsPanelSource).not.toContain('createSignal(');expect(relaySettingsPanelSource).not.toContain('Loading configuration...');+ expect(relaySettingsPanelSource).not.toContain('>Start free trial<');expect(relaySettingsPanelStateSource).toContain('getRelayConnectionPresentation');expect(relaySettingsPanelStateSource).toContain('trackPaywallViewed');expect(relayPairingSectionSource).toContain('getRelayDiagnosticClass');@@ -512,6 +515,9 @@ describe('monitored-system model guardrails', () => {expect(aiSettingsShellSource).toContain('@/components/Settings/AIRuntimeControlsSection');expect(aiSettingsShellSource).toContain('@/components/Settings/AIChatMaintenanceSection');expect(aiSettingsShellSource).toContain('@/components/Settings/AISettingsStatusAndActions');+ expect(aiRuntimeControlsSectionSource).toContain('@/utils/upgradePresentation');+ expect(aiRuntimeControlsSectionSource).toContain('UPGRADE_ACTION_LABEL');+ expect(aiRuntimeControlsSectionSource).toContain('UPGRADE_TRIAL_LABEL');expect(aiSettingsSource).not.toContain('Loading Pulse Assistant settings...');expect(aiSettingsSource).not.toContain('Loading chat sessions...');expect(aiSettingsSource).not.toContain('No chat sessions yet. Start a chat to create one.');@@ -520,6 +526,8 @@ describe('monitored-system model guardrails', () => {expect(aiSettingsSource).not.toContain("'Failed to revert session.'");expect(aiSettingsSource).not.toContain("'Failed to save Pulse Assistant settings'");expect(aiSettingsSource).not.toContain("'Failed to clear credentials'");+ expect(aiRuntimeControlsSectionSource).not.toContain('>Upgrade to Pro<');+ expect(aiRuntimeControlsSectionSource).not.toContain('>Start free trial<');expect(aiSettingsSource).not.toContain("'Failed to update Pulse Assistant setting'");expect(aiSettingsSource).not.toContain('const normalizeControlLevel =');expect(aiSettingsSource).not.toContain('const errorMessages: Record<string, string> =');diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex dd23435cd7..30526961a0 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -573,8 +573,11 @@ describe('Settings architecture guardrails', () => {it('keeps relay settings split into shell, runtime, and pairing owners', () => {expect(relaySettingsPanelSource).toContain('./useRelaySettingsPanelState');expect(relaySettingsPanelSource).toContain('./RelayPairingSection');+ expect(relaySettingsPanelSource).toContain('@/utils/upgradePresentation');+ expect(relaySettingsPanelSource).toContain('UPGRADE_TRIAL_LABEL');expect(relaySettingsPanelSource).not.toContain('createSignal(');expect(relaySettingsPanelSource).not.toContain('QRCode.toDataURL(');+ expect(relaySettingsPanelSource).not.toContain('>Start free trial<');expect(relaySettingsPanelStateSource).toContain("trackPaywallViewed('relay', 'settings_relay_panel')",);@@ -1013,8 +1016,13 @@ describe('Settings architecture guardrails', () => {);expect(aiModelSelectionSectionSource).toContain('@/components/Settings/aiSettingsModel');expect(aiModelSelectionSectionSource).toContain('Advanced Model Selection');+ expect(aiRuntimeControlsSectionSource).toContain('@/utils/upgradePresentation');+ expect(aiRuntimeControlsSectionSource).toContain('UPGRADE_ACTION_LABEL');+ expect(aiRuntimeControlsSectionSource).toContain('UPGRADE_TRIAL_LABEL');expect(aiRuntimeControlsSectionSource).toContain('Discovery Settings');expect(aiRuntimeControlsSectionSource).toContain('Pulse Permission Level');+ expect(aiRuntimeControlsSectionSource).not.toContain('>Upgrade to Pro<');+ expect(aiRuntimeControlsSectionSource).not.toContain('>Start free trial<');expect(aiChatMaintenanceSectionSource).toContain('Chat Session Maintenance');expect(aiSettingsStatusAndActionsSource).toContain('Save changes');expect(aiSettingsStatusAndActionsSource).toContain('Test Connection');