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
Show paid plan value proof
rcourtmanea7d4d400596
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 8559117944..8a80d4103b 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -1495,6 +1495,18 @@ administration, and 90-day history, while Pro+ remains legacy continuity only.Cloud/MSP pricing semantics stay separate, and grandfathered v5 continuity copymust describe legacy continuity and recorded baselines rather than currentself-hosted monitored-system caps, capacity, or policy boundaries.+Active Relay and Pro installs may also render a factual value-proof panel on+the owned Settings -> Plan surface, but that proof must derive from the live+self-hosted entitlement payload rather than from public pricing copy. It may+render only for active/grace/trial paid self-hosted states with a numeric+`max_history_days` payload, must suppress itself for Community, inactive, and+missing-payload states, and must describe partial or missing rows as+activation/recovery attention rather than as marketing pressure. Relay proof is+limited to remote access, Pulse Mobile pairing, push notifications, and the+reported 14-day history entitlement. Pro proof adds the reported 90-day history+entitlement plus root-cause/remediation and team/admin capability groups.+Frontend presentation and component tests must cover active, partial, and+Community-suppressed proof states whenever this panel changes.That same settings-owned presentation must distinguish between activegrandfathered recurring v5 continuity and stale bounded legacy fallbackmetadata. Active grandfathered recurring v5 plans must render the existingdiff --git a/frontend-modern/src/components/Settings/ProLicensePanel.tsx b/frontend-modern/src/components/Settings/ProLicensePanel.tsxindex 1c41d235f2..034a353f56 100644--- a/frontend-modern/src/components/Settings/ProLicensePanel.tsx+++ b/frontend-modern/src/components/Settings/ProLicensePanel.tsx@@ -98,6 +98,7 @@ const ProLicensePanelContent: Component = () => {<div class="space-y-6"><ProLicensePlanSectionactivationSuccessSummary={state.activationSuccessSummary()}+ activationProof={state.activationProof()}commercialMigrationNotice={state.commercialMigrationNotice()}commercialPlanModel={state.commercialPlanModel()}currentPlanSummary={state.currentPlanSummary()}diff --git a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsxindex f7e429f8c6..d872951dfe 100644--- a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx+++ b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx@@ -40,6 +40,16 @@ interface ProLicensePlanSectionProps {highlightsLabel: string;highlights: string[];} | null;+ activationProof: {+ title: string;+ body: string;+ items: Array<{+ label: string;+ statusLabel: string;+ state: 'active' | 'partial' | 'missing';+ detail: string;+ }>;+ } | null;commercialMigrationNotice: Notice | null;commercialPlanModel: {summary: Array<{ label: string; value: string | number }>;@@ -95,6 +105,17 @@ const formatDate = (value?: string | null) => {return date.toLocaleDateString();};+const proofStateClass = (state: 'active' | 'partial' | 'missing') => {+ switch (state) {+ case 'active':+ return 'bg-emerald-100 text-emerald-700 dark:bg-emerald-900 dark:text-emerald-200';+ case 'partial':+ return 'bg-amber-100 text-amber-700 dark:bg-amber-900 dark:text-amber-200';+ case 'missing':+ return 'bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-200';+ }+};+export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (props) => {return (<>@@ -217,6 +238,33 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro</div></Show></div>+ <Show when={props.activationProof}>+ {(proof) => (+ <div class="mb-4 rounded-md border border-border bg-surface p-4">+ <p class="text-sm font-medium text-base-content">{proof().title}</p>+ <p class="mt-1 text-xs text-muted">{proof().body}</p>+ <ul class="mt-4 grid gap-3">+ <For each={proof().items}>+ {(item) => (+ <li class="border-t border-border pt-3 first:border-t-0 first:pt-0">+ <div class="flex flex-wrap items-center gap-2">+ <p class="text-sm font-medium text-base-content">{item.label}</p>+ <span+ class={`rounded-full px-2 py-1 text-[11px] font-medium ${proofStateClass(+ item.state,+ )}`}+ >+ {item.statusLabel}+ </span>+ </div>+ <p class="mt-1 text-xs text-muted">{item.detail}</p>+ </li>+ )}+ </For>+ </ul>+ </div>+ )}+ </Show><Show when={props.planComparisonSummary.cards.length > 0}><div class="mb-4 rounded-md border border-border bg-surface p-4"><p class="text-sm font-medium text-base-content">diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsxindex 54cbd6ca86..61f71c55d0 100644--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx@@ -487,13 +487,27 @@ describe('ProLicensePanel', () => {it('uses shared current-plan metadata for unmetered retail self-hosted tiers', async () => {mockEntitlements = {- capabilities: ['relay', 'mobile_app', 'push_notifications', 'ai_patrol', 'ai_autofix'],+ capabilities: [+ 'relay',+ 'mobile_app',+ 'push_notifications',+ 'long_term_metrics',+ 'ai_patrol',+ 'ai_alerts',+ 'ai_autofix',+ 'advanced_sso',+ 'rbac',+ 'audit_logging',+ 'advanced_reporting',+ 'agent_profiles',+ ],limits: [],subscription_state: 'active',upgrade_reasons: [],tier: 'pro',plan_version: 'pro_monthly',licensed_email: '[email protected]',+ max_history_days: 90,trial_eligible: false,};@@ -517,6 +531,17 @@ describe('ProLicensePanel', () => {expect(screen.getByText('Safe Remediation Workflows')).toBeInTheDocument();expect(screen.getByText('Included extras')).toBeInTheDocument();expect(screen.getByText('Advanced SSO (SAML/Multi-Provider)')).toBeInTheDocument();+ expect(screen.getByText('Pulse Pro value proof')).toBeInTheDocument();+ expect(+ screen.getByText(+ "These checks come from this instance's entitlement payload, not from public pricing copy.",+ ),+ ).toBeInTheDocument();+ expect(screen.getByText('Remote access, mobile, and push')).toBeInTheDocument();+ expect(screen.getByText('Root-cause analysis and remediation')).toBeInTheDocument();+ expect(screen.getByText('Team and admin controls')).toBeInTheDocument();+ expect(screen.getAllByText('Active').length).toBeGreaterThanOrEqual(4);+ expect(screen.queryByText('Needs attention')).not.toBeInTheDocument();expect(screen.queryByText('Optional extras')).not.toBeInTheDocument();expect(screen.getByText('90 days')).toBeInTheDocument();expect(screen.getByText('Analysis, remediation, and admin controls')).toBeInTheDocument();@@ -535,6 +560,7 @@ describe('ProLicensePanel', () => {tier: 'relay',plan_version: 'relay_monthly',licensed_email: '[email protected]',+ max_history_days: 14,trial_eligible: false,};@@ -553,6 +579,9 @@ describe('ProLicensePanel', () => {expect(screen.queryByText('What Relay adds')).not.toBeInTheDocument();expect(screen.queryByText('What Pulse Pro adds')).not.toBeInTheDocument();expect(screen.queryByRole('link', { name: 'See all plans' })).not.toBeInTheDocument();+ expect(screen.getByText('Relay value proof')).toBeInTheDocument();+ expect(screen.getByText('Remote access, mobile, and push')).toBeInTheDocument();+ expect(screen.getAllByText('14-day metric history').length).toBeGreaterThan(0);expect(screen.getByText('Pulse Relay (Remote Access)')).toBeInTheDocument();expect(screen.getByText('Mobile App Pairing')).toBeInTheDocument();expect(screen.getByText('Push Notifications')).toBeInTheDocument();diff --git a/frontend-modern/src/components/Settings/useProLicensePanelState.ts b/frontend-modern/src/components/Settings/useProLicensePanelState.tsindex c2642cc193..58687360d1 100644--- a/frontend-modern/src/components/Settings/useProLicensePanelState.ts+++ b/frontend-modern/src/components/Settings/useProLicensePanelState.ts@@ -14,6 +14,7 @@ import {getSelfHostedActivationSuccessPresentation,getCommercialMigrationNotice,getGrandfatheredPriceContinuityNotice,+ getSelfHostedActivationProofPresentation,getSelfHostedPlanComparisonPresentation,getSelfHostedCurrentPlanPresentation,getLicenseFeatureLabel,@@ -530,6 +531,7 @@ export function useProLicensePanelState() {statusLabel: status.label,};});+ const activationProof = createMemo(() => getSelfHostedActivationProofPresentation(entitlements()));const planComparisonSummary = createMemo(() => {if (!showPlanSelectionPrompt()) {return { cards: [], action: null };@@ -607,6 +609,7 @@ export function useProLicensePanelState() {activating,clearing,activationSuccessSummary,+ activationProof,commercialMigrationNotice,commercialPlanModel,currentPlanSummary,diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.tsindex 4c23357cab..48d76dbd62 100644--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts@@ -8,6 +8,7 @@ import {getCommercialMigrationNotice,getFeatureMinTierLabel,getGrandfatheredPriceContinuityNotice,+ getSelfHostedActivationProofPresentation,getSelfHostedActivationSuccessPresentation,getSelfHostedPlanComparisonPresentation,getSelfHostedCurrentPlanPresentation,@@ -493,6 +494,94 @@ describe('licensePresentation', () => {).toEqual({ cards: [] });});+ it('builds entitlement-derived value proof for active Relay and Pro installs', () => {+ expect(+ getSelfHostedActivationProofPresentation({+ tier: 'relay',+ subscription_state: 'active',+ capabilities: ['relay', 'mobile_app', 'push_notifications', 'long_term_metrics'],+ limits: [],+ upgrade_reasons: [],+ max_history_days: 14,+ }),+ ).toEqual({+ title: 'Relay value proof',+ body: "These checks come from this instance's entitlement payload, not from public pricing copy.",+ items: [+ {+ label: 'Remote access, mobile, and push',+ statusLabel: 'Active',+ state: 'active',+ detail:+ 'Relay, Pulse Mobile pairing, and push notification capabilities are present in this entitlement payload.',+ },+ {+ label: '14-day metric history',+ statusLabel: 'Active',+ state: 'active',+ detail: 'This instance reports 14 days of metric history in its entitlement payload.',+ },+ ],+ });++ expect(+ getSelfHostedActivationProofPresentation({+ tier: 'pro',+ subscription_state: 'active',+ capabilities: [+ 'relay',+ 'mobile_app',+ 'push_notifications',+ 'long_term_metrics',+ 'ai_alerts',+ 'ai_autofix',+ 'advanced_sso',+ 'rbac',+ 'audit_logging',+ 'advanced_reporting',+ 'agent_profiles',+ ],+ limits: [],+ upgrade_reasons: [],+ max_history_days: 90,+ }),+ ).toMatchObject({+ title: 'Pulse Pro value proof',+ items: [+ { label: 'Remote access, mobile, and push', statusLabel: 'Active' },+ { label: '90-day metric history', statusLabel: 'Active' },+ { label: 'Root-cause analysis and remediation', statusLabel: 'Active' },+ { label: 'Team and admin controls', statusLabel: 'Active' },+ ],+ });++ expect(+ getSelfHostedActivationProofPresentation({+ tier: 'pro',+ subscription_state: 'active',+ capabilities: ['relay', 'ai_autofix'],+ limits: [],+ upgrade_reasons: [],+ max_history_days: 14,+ })?.items.map((item) => [item.label, item.statusLabel]),+ ).toEqual([+ ['Remote access, mobile, and push', 'Partial'],+ ['90-day metric history', 'Partial'],+ ['Root-cause analysis and remediation', 'Partial'],+ ['Team and admin controls', 'Needs attention'],+ ]);++ expect(+ getSelfHostedActivationProofPresentation({+ tier: 'free',+ subscription_state: 'expired',+ capabilities: [],+ limits: [],+ upgrade_reasons: [],+ }),+ ).toBeNull();+ });+it('builds activation-success summaries for purchase and pasted-key paths', () => {expect(getSelfHostedActivationSuccessPresentation({diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.tsindex b5d435b48e..21145148b3 100644--- a/frontend-modern/src/utils/licensePresentation.ts+++ b/frontend-modern/src/utils/licensePresentation.ts@@ -109,6 +109,19 @@ export interface SelfHostedCurrentPlanPresentation {supplementalSummary?: string;}+export interface SelfHostedActivationProofItem {+ label: string;+ statusLabel: string;+ state: 'active' | 'partial' | 'missing';+ detail: string;+}++export interface SelfHostedActivationProofPresentation {+ title: string;+ body: string;+ items: SelfHostedActivationProofItem[];+}+export interface SelfHostedActivationSuccessPresentation extends LicenseInlineNotice {highlightsLabel: string;highlights: string[];@@ -593,6 +606,149 @@ export const getSelfHostedCurrentPlanPresentation = ({};};+const getCapabilityProofState = (+ capabilities: Set<string>,+ requiredCapabilities: readonly string[],+): SelfHostedActivationProofItem['state'] => {+ const presentCount = requiredCapabilities.filter((capability) =>+ capabilities.has(capability),+ ).length;+ if (presentCount === requiredCapabilities.length) {+ return 'active';+ }+ return presentCount > 0 ? 'partial' : 'missing';+};++const getProofStatusLabel = (state: SelfHostedActivationProofItem['state']): string => {+ switch (state) {+ case 'active':+ return 'Active';+ case 'partial':+ return 'Partial';+ case 'missing':+ return 'Needs attention';+ }+};++const buildCapabilityProofItem = ({+ capabilities,+ label,+ requiredCapabilities,+ activeDetail,+ partialDetail,+ missingDetail,+}: {+ capabilities: Set<string>;+ label: string;+ requiredCapabilities: readonly string[];+ activeDetail: string;+ partialDetail: string;+ missingDetail: string;+}): SelfHostedActivationProofItem => {+ const state = getCapabilityProofState(capabilities, requiredCapabilities);+ return {+ label,+ state,+ statusLabel: getProofStatusLabel(state),+ detail:+ state === 'active' ? activeDetail : state === 'partial' ? partialDetail : missingDetail,+ };+};++export const getSelfHostedActivationProofPresentation = (+ entitlements?: LicenseCommercialEntitlements | null,+): SelfHostedActivationProofPresentation | null => {+ const planDefinition = getSelfHostedPlanDefinitionForBillingTier(entitlements?.tier);+ if (!entitlements || !planDefinition || planDefinition.tier === 'community') {+ return null;+ }+ if (typeof entitlements.max_history_days !== 'number') {+ return null;+ }++ const normalizedState = (entitlements.subscription_state || '').trim().toLowerCase();+ if (normalizedState !== 'active' && normalizedState !== 'grace' && normalizedState !== 'trial') {+ return null;+ }++ const capabilities = new Set(+ (entitlements.capabilities || []).map((capability) => capability.trim().toLowerCase()),+ );+ const items: SelfHostedActivationProofItem[] = [+ buildCapabilityProofItem({+ capabilities,+ label: 'Remote access, mobile, and push',+ requiredCapabilities: ['relay', 'mobile_app', 'push_notifications'],+ activeDetail:+ 'Relay, Pulse Mobile pairing, and push notification capabilities are present in this entitlement payload.',+ partialDetail:+ 'Some Relay convenience capabilities are present. Refresh or recover activation if remote access, mobile pairing, or push stays unavailable.',+ missingDetail:+ 'Expected Relay convenience capabilities are not present. Refresh or recover activation before treating this plan as fully active.',+ }),+ ];++ const requiredHistoryDays = planDefinition.metricHistoryDays;+ const actualHistoryDays = entitlements.max_history_days;+ const historyState =+ actualHistoryDays >= requiredHistoryDays+ ? 'active'+ : actualHistoryDays > 0+ ? 'partial'+ : 'missing';+ items.push({+ label: `${requiredHistoryDays}-day metric history`,+ state: historyState,+ statusLabel: getProofStatusLabel(historyState),+ detail:+ historyState === 'active'+ ? `This instance reports ${actualHistoryDays} days of metric history in its entitlement payload.`+ : historyState === 'partial'+ ? `This instance reports ${actualHistoryDays} days of metric history, below the expected ${requiredHistoryDays} days.`+ : `This instance has not reported a metric-history entitlement yet; expected ${requiredHistoryDays} days.`,+ });++ if (planDefinition.tier === 'pro') {+ items.push(+ buildCapabilityProofItem({+ capabilities,+ label: 'Root-cause analysis and remediation',+ requiredCapabilities: ['ai_alerts', 'ai_autofix'],+ activeDetail:+ 'Alert-triggered root-cause analysis and safe remediation workflow capabilities are present.',+ partialDetail:+ 'Some Pro operations capabilities are present. Refresh or recover activation if alert analysis or remediation stays unavailable.',+ missingDetail:+ 'Expected Pro operations capabilities are not present. Refresh or recover activation before treating this Pro install as complete.',+ }),+ buildCapabilityProofItem({+ capabilities,+ label: 'Team and admin controls',+ requiredCapabilities: [+ 'advanced_sso',+ 'rbac',+ 'audit_logging',+ 'advanced_reporting',+ 'agent_profiles',+ ],+ activeDetail:+ 'Advanced SSO, RBAC, audit logging, reporting, and agent-profile capabilities are present.',+ partialDetail:+ 'Some team/admin capabilities are present. Refresh or recover activation if any admin tools stay unavailable.',+ missingDetail:+ 'Expected team/admin capabilities are not present. Refresh or recover activation before relying on this Pro install.',+ }),+ );+ }++ const planLabel = getSelfHostedPlanLabel(entitlements.tier);+ return {+ title: `${planLabel} value proof`,+ body: "These checks come from this instance's entitlement payload, not from public pricing copy.",+ items,+ };+};+export const getSelfHostedActivationSuccessPresentation = ({entitlements,displayableCapabilities,