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
Remove Community-user upgrade CTAs from Settings plan page
rcourtmand35762b02903
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex cf1c077926..5f5c424c48 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -1170,15 +1170,23 @@ framed as unlimited core monitoring plus their bundle-specific extras ratherthan drifting back to bounded monitored-system sales copy, vague `systems`, ordevice-style language. Pro+ may appear only as a legacy continuity tier.The shared license presentation owner also holds self-hosted Pro settings-upsell and trial-ended notice copy for `ProLicensePlanSection.tsx`; that-surface must consume canonical helper notices instead of carrying inline-upgrade copy or local status-tone branches.+trial-ended notice copy for `ProLicensePlanSection.tsx`; that surface must+consume canonical helper notices instead of carrying inline upgrade copy or+local status-tone branches.That same plan-section boundary must also defer notice resolution to componentruntime. `frontend-modern/src/components/Settings/ProLicensePlanSection.tsx`-may not compute trial-ended or inactive-upsell notices at module scope,-because hosted settings bundles must survive top-level import ordering without-throwing initialization-time `ReferenceError` crashes before the workspace UI-mounts.+may not compute trial-ended notices at module scope, because hosted settings+bundles must survive top-level import ordering without throwing+initialization-time `ReferenceError` crashes before the workspace UI mounts.+That same plan-section boundary also owns the rule that Community (non-paid)+users must not be funneled through upgrade CTAs inside Settings -> Plan.+`ProLicensePlanSection.tsx` must not render the monitored-system upgrade+arrival banner, the trial-start CTA, or the inactive-Pro upsell notice to+users without paid features, and the capacity-section `Upgrade plan` button+must be gated on `hasPaidFeatures`. Self-hosted Pro marketing lives at+`pulserelay.pro/pricing`; the Settings plan surface must show factual+license state for Community users and leave discovery of paid tiers to+surfaces outside the plan page.That same counted-unit boundary also owns the disclosure rule for retail copy:default billing and pricing surfaces should use concise monitored-system copy,while the full counted-unit definition appears only behind explicit disclosurediff --git a/frontend-modern/src/components/Settings/ProLicensePanel.tsx b/frontend-modern/src/components/Settings/ProLicensePanel.tsxindex fbfdceb274..c953e353b9 100644--- a/frontend-modern/src/components/Settings/ProLicensePanel.tsx+++ b/frontend-modern/src/components/Settings/ProLicensePanel.tsx@@ -110,11 +110,7 @@ const ProLicensePanelContent: Component = () => {onReload={() => void state.loadPanelData()}purchaseActivationAction={state.purchaseActivationAction()}purchaseActivationNotice={state.purchaseActivationNotice()}- showMonitoredSystemUpgradeArrival={state.showMonitoredSystemUpgradeArrival()}- showTrialStart={state.showTrialStart()}- startingTrial={state.startingTrial()}statusPresentation={state.statusPresentation()}- onStartTrial={() => void state.handleStartTrial()}trialActivationNotice={state.trialActivationNotice()}trialEnded={state.trialEnded()}/>diff --git a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsxindex dd8edc0e38..880ffd1b66 100644--- a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx+++ b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx@@ -4,15 +4,12 @@ import { UpgradeLink } from '@/components/shared/UpgradeLink';import { getUpgradeActionDestination } from '@/stores/licenseCommercial';import { licenseEntitlementsLoadError } from '@/stores/licenseEntitlements';import {- getInactiveProUpsellNotice,getLicenseStatusLoadingState,getNoActiveProLicenseState,getTrialEndedProLicenseNotice,} from '@/utils/licensePresentation';-import { resolveSelfHostedPurchaseStartDestination } from '@/utils/pricingHandoff';import type { UpgradeDestination } from '@/utils/upgradeNavigation';import { CommercialStatGrid } from './CommercialBillingSections';-import { SELF_HOSTED_PRO_BILLING_PRESENTATION } from './selfHostedBillingPresentation';interface Notice {title: string;@@ -50,7 +47,6 @@ interface ProLicensePlanSectionProps {monitoredSystemCapacitySection: MonitoredSystemCapacitySection | null;monitoredSystemContinuityNotice: Notice | null;onReload: () => void;- onStartTrial: () => void;purchaseActivationNotice: Notice | null;purchaseActivationAction: {label: string;@@ -60,9 +56,6 @@ interface ProLicensePlanSectionProps {badgeClass: string;label: string;};- showMonitoredSystemUpgradeArrival: boolean;- showTrialStart: boolean;- startingTrial: boolean;trialActivationNotice: Notice | null;trialEnded: boolean;}@@ -76,10 +69,6 @@ const formatDate = (value?: string | null) => {export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (props) => {const trialEndedNotice = props.trialEnded ? getTrialEndedProLicenseNotice() : null;- const inactiveProUpsellNotice =- !props.hasPaidFeatures && !props.trialEnded ? getInactiveProUpsellNotice() : null;- const monitoredSystemUpgradeDestination = () =>- resolveSelfHostedPurchaseStartDestination('self_hosted_plan');return (<>@@ -101,22 +90,6 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro</div>)}</Show>- <Show when={props.showMonitoredSystemUpgradeArrival}>- <div class="mb-4 rounded-md border border-primary/30 bg-primary/5 p-3 text-sm text-base-content">- <p class="font-medium">- {SELF_HOSTED_PRO_BILLING_PRESENTATION.monitoredSystemUpgradeArrivalTitle}- </p>- <p class="mt-1 text-xs opacity-90">- {SELF_HOSTED_PRO_BILLING_PRESENTATION.monitoredSystemUpgradeArrivalBody}- </p>- <UpgradeLink- class="inline-flex items-center gap-1 mt-2 text-xs font-medium text-primary hover:underline"- destination={monitoredSystemUpgradeDestination()}- >- {SELF_HOSTED_PRO_BILLING_PRESENTATION.monitoredSystemUpgradeArrivalActionLabel}- </UpgradeLink>- </div>- </Show><Show when={props.trialActivationNotice}>{(notice) => (<div class={`mb-4 rounded-md border p-3 text-sm ${notice().tone}`}>@@ -125,26 +98,6 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro</div>)}</Show>- <Show when={props.showTrialStart}>- <div class="mb-4 rounded-md border border-border bg-surface-alt p-3">- <p class="text-sm font-medium text-base-content">- {SELF_HOSTED_PRO_BILLING_PRESENTATION.trialStartTitle}- </p>- <p class="mt-1 text-xs text-muted">- {SELF_HOSTED_PRO_BILLING_PRESENTATION.trialStartBody}- </p>- <button- type="button"- class="mt-3 inline-flex min-h-10 sm:min-h-9 items-center justify-center px-4 py-2.5 text-sm font-medium rounded-md bg-emerald-600 text-white hover:bg-emerald-700 transition-colors disabled:opacity-60 disabled:cursor-not-allowed"- disabled={props.startingTrial}- onClick={props.onStartTrial}- >- {props.startingTrial- ? SELF_HOSTED_PRO_BILLING_PRESENTATION.trialStartPendingActionLabel- : SELF_HOSTED_PRO_BILLING_PRESENTATION.trialStartIdleActionLabel}- </button>- </div>- </Show><Show when={props.commercialMigrationNotice}>{(notice) => (<div class={`mb-4 rounded-md border p-3 text-sm ${notice().tone}`}>@@ -202,7 +155,7 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro>Review monitored systems</UpgradeLink>- <Show when={section().upgradeDestination}>+ <Show when={props.hasPaidFeatures ? section().upgradeDestination : null}>{(destination) => (<UpgradeLinkclass="inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline"@@ -297,18 +250,6 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro</Show></Show>- <Show when={!props.hasPaidFeatures && !props.trialEnded && inactiveProUpsellNotice}>- <div class={`rounded-md border p-3 text-sm ${inactiveProUpsellNotice?.tone ?? ''}`}>- <p class="font-medium">{inactiveProUpsellNotice?.title}</p>- <p class="text-xs mt-1 opacity-90">{inactiveProUpsellNotice?.body}</p>- <UpgradeLink- class="inline-flex items-center gap-1 mt-2 text-xs font-medium hover:underline"- destination={getUpgradeActionDestination('ai_autofix')}- >- {inactiveProUpsellNotice?.actionLabel}- </UpgradeLink>- </div>- </Show></Show></Show></>diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsxindex 4535f03760..c12955be9f 100644--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx@@ -185,7 +185,7 @@ describe('ProLicensePanel', () => {).not.toBeInTheDocument();});- it('shows start trial action only when trial_eligible is true', async () => {+ it('does not show a trial-start CTA on the Pro license settings page', async () => {renderPanel();await waitFor(() => {@@ -193,7 +193,9 @@ describe('ProLicensePanel', () => {});expect(screen.getByText('Pulse Pro')).toBeInTheDocument();- expect(screen.getByRole('button', { name: /start 14-day pro trial/i })).toBeInTheDocument();+ expect(+ screen.queryByRole('button', { name: /start 14-day pro trial/i }),+ ).not.toBeInTheDocument();});it('hides start trial action and shows trial-ended banner when trial was already used', async () => {@@ -588,17 +590,6 @@ describe('ProLicensePanel', () => {expect(screen.queryByText('Unlimited Instances')).not.toBeInTheDocument();});- it('starts trial and records conversion metric when user clicks start', async () => {- renderPanel();-- fireEvent.click(screen.getByRole('button', { name: /start 14-day pro trial/i }));-- await waitFor(() => {- expect(startProTrialMock).toHaveBeenCalledTimes(1);- });- expect(notificationSuccessMock).toHaveBeenCalledWith('Pro trial started');- });-it('shows migration guidance when the pasted key looks like a legacy v5 license', async () => {renderPanel();@@ -747,7 +738,7 @@ describe('ProLicensePanel', () => {expect(screen.getByRole('button', { name: 'Hide counting rules' })).toBeInTheDocument();});- it('shows a monitored-system upgrade arrival callout on the plan upgrade route', async () => {+ it('does not render a monitored-system upgrade arrival callout on the plan upgrade route', async () => {useLocationMock.mockReturnValue({search: `?intent=${SELF_HOSTED_PRO_BILLING_MONITORED_SYSTEM_INTENT}`,pathname: '/settings/system/billing/plan',@@ -756,18 +747,10 @@ describe('ProLicensePanel', () => {renderPanel();- expect(screen.getByText('Compare self-hosted plans')).toBeInTheDocument();- expect(- screen.getByText(- 'Community keeps core monitoring free. Compare Relay and Pro in Pulse Account, then return here with Pulse Pro activated automatically.',- ),- ).toBeInTheDocument();+ expect(screen.queryByText('Compare self-hosted plans')).not.toBeInTheDocument();+ expect(screen.queryByRole('link', { name: 'Compare plans' })).not.toBeInTheDocument();expect(screen.queryByRole('button', { name: 'Hide counting rules' })).not.toBeInTheDocument();expect(screen.queryByRole('button', { name: 'View counting rules' })).not.toBeInTheDocument();- expect(screen.getByRole('link', { name: 'Compare plans' })).toHaveAttribute(- 'href',- getSelfHostedPurchaseStartUrl('self_hosted_plan'),- );});it('keeps monitored-system counting guidance out of the plan surface', async () => {@@ -876,62 +859,6 @@ describe('ProLicensePanel', () => {).not.toBeInTheDocument();});- it('surfaces backend trial-start messages instead of collapsing every conflict into already-used', async () => {- startProTrialMock.mockRejectedValue(- Object.assign(- new Error('Trial cannot be started while a paid v5 license migration is pending'),- {- status: 409,- code: 'trial_not_available',- },- ),- );-- renderPanel();-- fireEvent.click(screen.getByRole('button', { name: /start 14-day pro trial/i }));-- await waitFor(() => {- expect(notificationErrorMock).toHaveBeenCalledWith(- 'Trial cannot be started while a paid v5 license migration is pending',- );- });- });-- it('maps explicit trial-already-used errors to the canonical message', async () => {- startProTrialMock.mockRejectedValue(- Object.assign(new Error('conflict'), {- status: 409,- code: 'trial_already_used',- }),- );-- renderPanel();-- fireEvent.click(screen.getByRole('button', { name: /start 14-day pro trial/i }));-- await waitFor(() => {- expect(notificationErrorMock).toHaveBeenCalledWith('Trial already used');- });- });-- it('maps rate-limited trial starts to the retry-after guidance when available', async () => {- startProTrialMock.mockRejectedValue(- Object.assign(new Error('rate limited'), {- status: 429,- retryAfterSeconds: 120,- }),- );-- renderPanel();-- fireEvent.click(screen.getByRole('button', { name: /start 14-day pro trial/i }));-- await waitFor(() => {- expect(notificationErrorMock).toHaveBeenCalledWith('Try again in about 2 minutes');- });- });-it('keeps Pro license split into shell, runtime, and plan owners', () => {expect(proLicensePanelSource).toContain('./useProLicensePanelState');expect(proLicensePanelSource).toContain('sessionPresentationPolicyResolved');@@ -959,24 +886,15 @@ describe('ProLicensePanel', () => {expect(proLicensePlanSectionSource).toContain('getLicenseStatusLoadingState');expect(proLicensePlanSectionSource).toContain('getNoActiveProLicenseState');expect(proLicensePlanSectionSource).toContain('getTrialEndedProLicenseNotice');- expect(proLicensePlanSectionSource).toContain('getInactiveProUpsellNotice');+ expect(proLicensePlanSectionSource).not.toContain('getInactiveProUpsellNotice');expect(proLicensePlanSectionSource).not.toContain('MonitoredSystemDefinitionDisclosure');- expect(proLicensePlanSectionSource).toContain('trialStartTitle');- expect(proLicensePlanSectionSource).toContain('trialStartIdleActionLabel');- expect(proLicensePlanSectionSource).not.toContain(- 'const trialEndedNotice = getTrialEndedProLicenseNotice();',- );- expect(proLicensePlanSectionSource).not.toContain(- 'const inactiveProUpsellNotice = getInactiveProUpsellNotice();',- );+ expect(proLicensePlanSectionSource).not.toContain('trialStartTitle');+ expect(proLicensePlanSectionSource).not.toContain('trialStartIdleActionLabel');expect(proLicensePlanSectionSource).toContain('const trialEndedNotice = props.trialEnded ? getTrialEndedProLicenseNotice() : null;',);- expect(proLicensePlanSectionSource).toContain(- '!props.hasPaidFeatures && !props.trialEnded ? getInactiveProUpsellNotice() : null;',- );- expect(proLicensePlanSectionSource).toContain('monitoredSystemUpgradeArrivalTitle');- expect(proLicensePlanSectionSource).toContain(+ expect(proLicensePlanSectionSource).not.toContain('monitoredSystemUpgradeArrivalTitle');+ expect(proLicensePlanSectionSource).not.toContain("resolveSelfHostedPurchaseStartDestination('self_hosted_plan')",);expect(proLicensePlanSectionSource).not.toContain('Your Pro trial has ended');