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
Tighten commercial billing presentation
rcourtman561337cfe7c1
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 7e9f5ff4ff..7314e9458b 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -697,6 +697,12 @@ entries like `white_label`, `multi_user`, and `unlimited` from dev/demoentitlement payloads when there is no corresponding operable runtime surface;those belong in tier metadata and plan semantics, not in live capabilityadvertising for a free dev shell.+The same distinction applies to customer-facing self-hosted billing+presentation. `frontend-modern/src/components/Settings/useProLicensePanelState.ts`+and `frontend-modern/src/utils/licensePresentation.ts` may label operable+capabilities, but they must not render placeholder or plan-marker entries like+`white_label`, `multi_user`, or `unlimited` in the Pro plan feature list just+because those keys exist in tier metadata.Cloud/MSP live price IDs are no longer an open fill-in task either. The auditrecord `docs/release-control/v6/records/cloud-msp-price-audit-2026-03-13.md`verified that the 13 canonical Cloud/MSP v6 `price_*` IDs are present in thediff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsxindex 5610a309ee..163c4e7972 100644--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx@@ -16,9 +16,11 @@ const clearLicenseMock = vi.fn();const notificationSuccessMock = vi.fn();const notificationErrorMock = vi.fn();const useLocationMock = vi.fn(() => ({ search: '' }));+const navigateMock = vi.fn();vi.mock('@solidjs/router', () => ({useLocation: () => useLocationMock(),+ useNavigate: () => navigateMock,}));vi.mock('@/stores/license', () => ({@@ -62,6 +64,7 @@ describe('ProLicensePanel', () => {notificationSuccessMock.mockReset();notificationErrorMock.mockReset();useLocationMock.mockReset();+ navigateMock.mockReset();loadLicenseStatusMock.mockResolvedValue(undefined);startProTrialMock.mockResolvedValue(undefined);activateLicenseMock.mockResolvedValue({ success: true });@@ -236,10 +239,7 @@ describe('ProLicensePanel', () => {'ai_alerts','ai_autofix','kubernetes_ai',- 'multi_user',- 'white_label','multi_tenant',- 'unlimited',],limits: [],subscription_state: 'active',@@ -268,10 +268,10 @@ describe('ProLicensePanel', () => {expect(screen.getByText('Mobile App Access')).toBeInTheDocument();expect(screen.getByText('Push Notifications')).toBeInTheDocument();expect(screen.getByText('Extended Metric History')).toBeInTheDocument();- expect(screen.getByText('Multi-User Mode')).toBeInTheDocument();- expect(screen.getByText('White-Label Branding')).toBeInTheDocument();expect(screen.getByText('Multi-Tenant Mode')).toBeInTheDocument();- expect(screen.getByText('Unlimited Instances')).toBeInTheDocument();+ expect(screen.queryByText('Multi-User Mode')).not.toBeInTheDocument();+ expect(screen.queryByText('White-Label Branding')).not.toBeInTheDocument();+ expect(screen.queryByText('Unlimited Instances')).not.toBeInTheDocument();});it('starts trial and records conversion metric when user clicks start', async () => {@@ -299,7 +299,11 @@ describe('ProLicensePanel', () => {});it('shows the hosted activation success banner on the Pro settings route', async () => {- useLocationMock.mockReturnValue({ search: '?trial=activated' });+ useLocationMock.mockReturnValue({+ search: '?trial=activated',+ pathname: '/settings/system/billing',+ hash: '',+ });render(() => <ProLicensePanel />);@@ -307,6 +311,10 @@ describe('ProLicensePanel', () => {expect(screen.getByText(/Pulse activated the Pro trial for this instance/i),).toBeInTheDocument();+ expect(navigateMock).toHaveBeenCalledWith('/settings/system/billing', {+ replace: true,+ scroll: false,+ });});it('shows a migration-pending notice and hides the trial CTA', async () => {diff --git a/frontend-modern/src/components/Settings/useProLicensePanelState.ts b/frontend-modern/src/components/Settings/useProLicensePanelState.tsindex ee972eac5f..2d473ee02e 100644--- a/frontend-modern/src/components/Settings/useProLicensePanelState.ts+++ b/frontend-modern/src/components/Settings/useProLicensePanelState.ts@@ -1,5 +1,5 @@import { createMemo, createSignal, onMount } from 'solid-js';-import { useLocation } from '@solidjs/router';+import { useLocation, useNavigate } from '@solidjs/router';import { notificationStore } from '@/stores/notifications';import {isMultiTenantEnabled,@@ -16,6 +16,7 @@ import {getLicenseSubscriptionStatusPresentation,getLicenseTierLabel,getTrialActivationNotice,+ isDisplayableLicenseFeature,} from '@/utils/licensePresentation';import { buildSelfHostedCommercialPlanModel } from '@/utils/commercialBillingModel';import { runStartProTrialAction } from '@/utils/trialStartAction';@@ -36,11 +37,13 @@ const formatUnixDate = (value?: number) => {export function useProLicensePanelState() {const location = useLocation();+ const navigate = useNavigate();const [licenseKey, setLicenseKey] = createSignal('');const [loading, setLoading] = createSignal(false);const [activating, setActivating] = createSignal(false);const [clearing, setClearing] = createSignal(false);const [startingTrial, setStartingTrial] = createSignal(false);+ const [trialActivationResult, setTrialActivationResult] = createSignal('');const entitlements = createMemo(() => licenseStatus());const subscriptionState = createMemo(() => entitlements()?.subscription_state);@@ -54,6 +57,15 @@ export function useProLicensePanelState() {};onMount(() => {+ const params = new URLSearchParams(location.search);+ const result = params.get('trial')?.trim().toLowerCase() ?? '';+ if (result) {+ setTrialActivationResult(result);+ params.delete('trial');+ const nextSearch = params.toString();+ const nextPath = `${location.pathname}${nextSearch ? `?${nextSearch}` : ''}${location.hash ?? ''}`;+ navigate(nextPath, { replace: true, scroll: false });+ }void loadPanelData();});@@ -109,6 +121,7 @@ export function useProLicensePanelState() {const current = entitlements();if (!current?.capabilities?.length) return [];return current.capabilities+ .filter((feature) => isDisplayableLicenseFeature(feature)).filter((feature) => feature !== 'multi_tenant' || isMultiTenantEnabled()).map((feature) => getLicenseFeatureLabel(feature));});@@ -161,8 +174,7 @@ export function useProLicensePanelState() {);const trialActivationNotice = createMemo(() => {- const params = new URLSearchParams(location.search);- return getTrialActivationNotice(params.get('trial')?.trim().toLowerCase() ?? '');+ return getTrialActivationNotice(trialActivationResult());});const commercialMigrationNotice = createMemo(() =>diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.tsindex b8f0d7463c..c4a10a0af9 100644--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts@@ -15,6 +15,7 @@ import {getNoActiveProLicenseState,getOrganizationBillingLicenseStatusLabel,getTrialActivationNotice,+ isDisplayableLicenseFeature,} from '@/utils/licensePresentation';describe('licensePresentation', () => {@@ -40,6 +41,14 @@ describe('licensePresentation', () => {expect(getLicenseFeatureLabel('custom_feature')).toBe('Custom Feature');});+ it('hides non-operable capability labels from customer-facing plan surfaces', () => {+ expect(isDisplayableLicenseFeature('ai_patrol')).toBe(true);+ expect(isDisplayableLicenseFeature('multi_tenant')).toBe(true);+ expect(isDisplayableLicenseFeature('multi_user')).toBe(false);+ expect(isDisplayableLicenseFeature('white_label')).toBe(false);+ expect(isDisplayableLicenseFeature('unlimited')).toBe(false);+ });+it('returns minimum tier labels for gated features', () => {expect(getFeatureMinTierLabel('relay')).toBe('Relay');expect(getFeatureMinTierLabel('multi_tenant')).toBe('MSP');@@ -106,6 +115,18 @@ describe('licensePresentation', () => {title: 'Trial activated',tone: expect.stringContaining('green'),});+ expect(getTrialActivationNotice('replayed')).toMatchObject({+ title: 'Trial already activated',+ tone: expect.stringContaining('sky'),+ });+ expect(getTrialActivationNotice('invalid')).toMatchObject({+ title: 'Activation link invalid',+ body: expect.stringContaining('fresh secure trial handoff'),+ });+ expect(getTrialActivationNotice('unavailable')).toMatchObject({+ title: 'Activation unavailable',+ body: expect.stringContaining('Refresh the billing state below'),+ });expect(getTrialActivationNotice('ineligible')).toMatchObject({title: 'Trial not available',tone: expect.stringContaining('red'),diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.tsindex eb3ea0cce1..1dc978be19 100644--- a/frontend-modern/src/utils/licensePresentation.ts+++ b/frontend-modern/src/utils/licensePresentation.ts@@ -44,6 +44,12 @@ const FEATURE_MIN_TIER_LABELS: Record<string, string> = {multi_tenant: 'MSP',};+const NON_DISPLAYABLE_FEATURES = new Set([+ 'multi_user',+ 'white_label',+ 'unlimited',+]);+export interface LicenseSubscriptionStatusPresentation {label: string;badgeClass: string;@@ -82,6 +88,12 @@ export const getLicenseFeatureLabel = (feature?: string | null): string => {return FEATURE_LABELS[normalized] || titleCaseDelimitedLabel(normalized);};+export const isDisplayableLicenseFeature = (feature?: string | null): boolean => {+ const normalized = (feature || '').trim().toLowerCase();+ if (!normalized) return false;+ return !NON_DISPLAYABLE_FEATURES.has(normalized);+};+export const getFeatureMinTierLabel = (feature?: string | null): string => {const normalized = (feature || '').trim().toLowerCase();if (!normalized) return 'Pro';@@ -207,19 +219,19 @@ export const getTrialActivationNotice = (result?: string | null): LicenseInlineNreturn {tone: 'border-red-200 dark:border-red-900 bg-red-50 dark:bg-red-900 text-red-900 dark:text-red-100',title: 'Activation link invalid',- body: 'That activation handoff is invalid or expired. Start the hosted checkout flow again from this Pulse instance.',+ body: 'That activation handoff is invalid or expired. Return to Pulse Pro settings on this instance and start a fresh secure trial handoff.',};case 'replayed':return {- tone: 'border-amber-200 dark:border-amber-900 bg-amber-50 dark:bg-amber-900 text-amber-900 dark:text-amber-100',- title: 'Activation link already used',- body: 'This checkout handoff was already redeemed. Use the current entitlement state below or start a new checkout if needed.',+ tone: 'border-sky-200 dark:border-sky-900 bg-sky-50 dark:bg-sky-900 text-sky-900 dark:text-sky-100',+ title: 'Trial already activated',+ body: 'This activation handoff was already redeemed for this instance. Use the current entitlement state below as the source of truth.',};case 'unavailable':return {tone: 'border-amber-200 dark:border-amber-900 bg-amber-50 dark:bg-amber-900 text-amber-900 dark:text-amber-100',title: 'Activation unavailable',- body: 'Pulse could not finish activation right now. Retry the return link from checkout or start the flow again from this instance.',+ body: 'Pulse could not finish activation right now. Refresh the billing state below, then retry the return link or start the secure trial handoff again from this instance if needed.',};case 'ineligible':return {