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
Refocus self-hosted Pro plans on operator value
rcourtman349deb0c4166
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex a45dbb10ae..83b239dc26 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -283,15 +283,18 @@ Community limit enforcement.browser entrypoint must remain only a thin authenticated redirect ratherthan a second public handoff or a route that invites separate commercialposture logic.-25. Keep self-hosted commercial plan copy aligned with the product-first- commercial feature labels. `frontend-modern/src/utils/selfHostedPlans.ts`- may still map onto internal entitlement keys such as `ai_patrol`,- `ai_alerts`, `ai_autofix`, and `kubernetes_ai`, but the customer-facing- plan cards, highlights, and comparison rows must use the canonical product- vocabulary already exposed elsewhere in the commercial shell: `Pulse-Patrol`, `Pulse Alert Analysis`, `Patrol Auto-Fix`, and `Kubernetes-Insights`, rather than reviving generic `AI Patrol` or `AI ... analysis`- branding inside self-hosted pricing surfaces.+25. Keep self-hosted commercial plan copy aligned with the v6 operator-value+ model instead of mirroring raw entitlement keys. `frontend-modern/src/+ utils/selfHostedPlans.ts` may still map onto internal capabilities such as+ `ai_patrol`, `ai_alerts`, `ai_autofix`, and `kubernetes_ai`, but the+ customer-facing plan cards, top-summary highlights, and comparison rows+ must lead with the canonical plan story: `Community = monitor`, `Relay =+ reach Pulse from anywhere`, and `Pro = root-cause analysis, safe+ remediation, and longer history`. Team/admin capabilities such as SAML+ SSO, RBAC, audit logging, reporting, and agent profiles may appear as+ secondary included extras, while platform-specific compatibility keys such+ as `kubernetes_ai` must not be elevated into a marquee marketed Pro line+ item on the self-hosted Plans surface.26. Keep hosted trial-activation verifier source selection compile-time owned.`pkg/licensing/trial_activation.go`,`pkg/licensing/trial_activation_public_key_override_dev.go`, and@@ -1144,6 +1147,16 @@ specific and continuity-aware: Relay and Pulse Pro should describe the actualpaid capabilities unlocked on this instance, while grandfathered pricing orcaptured monitored-system continuity must be visible in that same top summaryinstead of only in secondary billing detail blocks further down the page.+That top card is plan-owned, not raw subscription-state-owned: Community copy+should describe what is included on this instance in plain language, and the+current-plan badge must not present the fallback Community state as `Expired`+just because a prior paid subscription or trial ended.+Upsell on the self-hosted Plans surface must stay contextual and subordinate+to entitlement clarity. The top card confirms the current unlocked tier first;+only below that may Pulse show a factual comparison section for the next higher+tiers. Community may compare Relay and Pulse Pro, Relay may compare Pulse Pro,+and active Pulse Pro should not show a promotional higher-tier block on this+surface.Fresh activation is part of that same governed plan state. After a checkoutreturn, trial handoff, or pasted-key activation succeeds, the owned plansurface must show an explicit success summary that names the unlocked tierdiff --git a/frontend-modern/src/components/Settings/ProLicensePanel.tsx b/frontend-modern/src/components/Settings/ProLicensePanel.tsxindex a602d63294..6cd1174c29 100644--- a/frontend-modern/src/components/Settings/ProLicensePanel.tsx+++ b/frontend-modern/src/components/Settings/ProLicensePanel.tsx@@ -1,6 +1,6 @@import { Show, type Component } from 'solid-js';import RefreshCw from 'lucide-solid/icons/refresh-cw';-import ShieldCheck from 'lucide-solid/icons/shield-check';+import { PulseLogoIcon } from '@/components/icons/PulseLogoIcon';import { MonitoredSystemLedgerPanel } from './MonitoredSystemLedgerPanel';import { CommercialBillingShell, CommercialSection } from './CommercialBillingSections';import { ProLicensePlanSection } from './ProLicensePlanSection';@@ -23,7 +23,7 @@ const ProLicensePolicyLoadingPanel: Component = () => (<CommercialBillingShelltitle={SELF_HOSTED_PRO_BILLING_PRESENTATION.hiddenShellTitle}description={SELF_HOSTED_PRO_BILLING_PRESENTATION.hiddenShellDescription}- icon={<ShieldCheck class="w-5 h-5" />}+ icon={<PulseLogoIcon class="w-5 h-5" />}loading={false}><div class="rounded-lg border border-border bg-surface px-4 py-4 text-sm">@@ -39,7 +39,7 @@ const ProLicenseHiddenPanel: Component = () => (<CommercialBillingShelltitle={SELF_HOSTED_PRO_BILLING_PRESENTATION.hiddenShellTitle}description={SELF_HOSTED_PRO_BILLING_PRESENTATION.hiddenShellDescription}- icon={<ShieldCheck class="w-5 h-5" />}+ icon={<PulseLogoIcon class="w-5 h-5" />}loading={false}><div class="rounded-lg border border-border bg-surface px-4 py-4 text-sm">@@ -59,7 +59,7 @@ const ProLicensePanelContent: Component = () => {<CommercialBillingShelltitle={SELF_HOSTED_PRO_BILLING_PRESENTATION.shellTitle}description={SELF_HOSTED_PRO_BILLING_PRESENTATION.shellDescription}- icon={<ShieldCheck class="w-5 h-5" />}+ icon={<PulseLogoIcon class="w-5 h-5" />}action={<buttonclass="inline-flex min-h-10 sm:min-h-9 items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border border-border text-base-content hover:bg-surface-hover transition-colors disabled:opacity-60"@@ -114,6 +114,7 @@ const ProLicensePanelContent: Component = () => {monitoredSystemContinuityNotice={state.monitoredSystemContinuityNotice()}onReload={() => void state.loadPanelData()}planSelectionPrompt={state.planSelectionPrompt()}+ planComparisonSummary={state.planComparisonSummary()}onPlanSelectionPromptClick={state.handlePlanSelectionPromptClick}purchaseActivationAction={state.purchaseActivationAction()}onPurchaseActivationActionClick={state.handlePurchaseActivationActionClick}diff --git a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsxindex da84bf82f0..c542fd86c4 100644--- a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx+++ b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx@@ -8,6 +8,7 @@ import {getNoActiveProLicenseState,getTrialEndedProLicenseNotice,} from '@/utils/licensePresentation';+import { SELF_HOSTED_PRO_BILLING_PRESENTATION } from './selfHostedBillingPresentation';import type { UpgradeDestination } from '@/utils/upgradeNavigation';import { CommercialStatGrid } from './CommercialBillingSections';@@ -52,7 +53,10 @@ interface ProLicensePlanSectionProps {body: string;badgeClass: string;statusLabel: string;+ unlockedFeaturesLabel: string;unlockedFeatures: string[];+ includedExtrasLabel?: string;+ includedExtras: string[];supplementalBadges: string[];supplementalSummary?: string;};@@ -67,6 +71,17 @@ interface ProLicensePlanSectionProps {monitoredSystemCapacitySection: MonitoredSystemCapacitySection | null;monitoredSystemContinuityNotice: Notice | null;onReload: () => void;+ planComparisonSummary: {+ cards: Array<{+ title: string;+ body: string;+ highlights: string[];+ }>;+ action: {+ label: string;+ destination: UpgradeDestination;+ } | null;+ };planSelectionPrompt: ActionNotice | null;onPlanSelectionPromptClick: () => void;purchaseActivationNotice: Notice | null;@@ -177,7 +192,9 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro</Show><Show when={props.currentPlanSummary.unlockedFeatures.length > 0}><div class="mt-4">- <p class="text-xs uppercase tracking-wide text-muted mb-2">Unlocked on this instance</p>+ <p class="text-xs uppercase tracking-wide text-muted mb-2">+ {props.currentPlanSummary.unlockedFeaturesLabel}+ </p><ul class="grid gap-2 sm:grid-cols-2"><For each={props.currentPlanSummary.unlockedFeatures}>{(feature) => (@@ -190,7 +207,62 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro</ul></div></Show>+ <Show when={props.currentPlanSummary.includedExtras.length > 0}>+ <div class="mt-4">+ <p class="text-xs uppercase tracking-wide text-muted mb-2">+ {props.currentPlanSummary.includedExtrasLabel || 'Included extras'}+ </p>+ <ul class="grid gap-2 sm:grid-cols-2">+ <For each={props.currentPlanSummary.includedExtras}>+ {(feature) => (+ <li class="text-sm text-base-content flex items-center gap-2">+ <span class="w-1.5 h-1.5 rounded-full bg-primary"></span>+ {feature}+ </li>+ )}+ </For>+ </ul>+ </div>+ </Show></div>+ <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">+ {SELF_HOSTED_PRO_BILLING_PRESENTATION.planComparisonSectionTitle}+ </p>+ <div class="mt-3 grid gap-3 lg:grid-cols-2">+ <For each={props.planComparisonSummary.cards}>+ {(card) => (+ <div class="rounded-md border border-border bg-surface-alt p-3">+ <p class="text-sm font-medium text-base-content">{card.title}</p>+ <p class="mt-1 text-xs text-muted">{card.body}</p>+ <ul class="mt-3 grid gap-2">+ <For each={card.highlights}>+ {(feature) => (+ <li class="text-xs text-base-content flex items-center gap-2">+ <span class="w-1.5 h-1.5 rounded-full bg-primary"></span>+ {feature}+ </li>+ )}+ </For>+ </ul>+ </div>+ )}+ </For>+ </div>+ <Show when={props.planComparisonSummary.action}>+ {(action) => (+ <UpgradeLink+ class="inline-flex items-center gap-1 mt-4 min-h-10 sm:min-h-9 rounded-md border border-border px-3 py-2 text-xs font-medium text-base-content hover:bg-surface-hover"+ destination={action().destination}+ onClick={props.onPlanSelectionPromptClick}+ >+ {action().label}+ </UpgradeLink>+ )}+ </Show>+ </div>+ </Show><Show when={props.trialActivationNotice}>{(notice) => (<div class={`mb-4 rounded-md border p-3 text-sm ${notice().tone}`}>diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsxindex 0220ea2bb8..d40bc7ae0b 100644--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx@@ -219,15 +219,21 @@ describe('ProLicensePanel', () => {expect(screen.getAllByText('Compare self-hosted plans').length).toBeGreaterThan(0);expect(screen.getByText('Current plan: Community')).toBeInTheDocument();+ expect(screen.getByText(/^Community$/)).toBeInTheDocument();+ expect(screen.queryByText(/^Expired$/)).not.toBeInTheDocument();expect(trackPricingViewedMock).toHaveBeenCalledWith('settings_self_hosted_billing_plan',SELF_HOSTED_PRO_BILLING_PLAN_SELECTION_INTENT,);expect(- screen.getByText(/Core self-hosted monitoring stays free on this instance/i),+ screen.getByText(/Community is active on this instance/i),).toBeInTheDocument();+ expect(screen.getByText('If You Need More')).toBeInTheDocument();+ expect(screen.getByText('What Relay adds')).toBeInTheDocument();+ expect(screen.getByText('What Pulse Pro adds')).toBeInTheDocument();expect(screen.getByText('Unlimited self-hosted monitoring')).toBeInTheDocument();const compareLinks = screen.getAllByRole('link', { name: 'Compare plans' });+ expect(compareLinks).toHaveLength(1);expect(compareLinks.some((link) =>@@ -453,12 +459,17 @@ describe('ProLicensePanel', () => {expect(screen.getByText('Current plan: Pulse Pro')).toBeInTheDocument();expect(screen.getByText(- 'Pulse Pro is active on this instance. AI operations, advanced administration, and 90-day history are unlocked right now.',+ 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation, and 90-day history are unlocked right now.',),).toBeInTheDocument();+ expect(screen.getByText('Primary capabilities')).toBeInTheDocument();+ expect(screen.getByText('Pulse Alert Analysis')).toBeInTheDocument();expect(screen.getByText('Patrol Auto-Fix')).toBeInTheDocument();+ expect(screen.getByText('Included extras')).toBeInTheDocument();+ expect(screen.getByText('Advanced SSO (SAML/Multi-Provider)')).toBeInTheDocument();+ expect(screen.queryByText('If You Need More')).not.toBeInTheDocument();expect(screen.getByText('90 days')).toBeInTheDocument();- expect(screen.getByText('AI operations and advanced admin')).toBeInTheDocument();+ expect(screen.getByText('Root-cause analysis, remediation, and admin extras')).toBeInTheDocument();expect(screen.queryByText('Guest Capacity')).not.toBeInTheDocument();expect(screen.queryByText('Included Monitored Systems')).not.toBeInTheDocument();expect(screen.queryByText('Monitoring capacity')).not.toBeInTheDocument();@@ -488,6 +499,13 @@ describe('ProLicensePanel', () => {'Relay is active on this instance. Remote access, mobile, push, and longer history are unlocked right now.',),).toBeInTheDocument();+ expect(screen.getByText('If You Need More')).toBeInTheDocument();+ expect(screen.queryByText('What Relay adds')).not.toBeInTheDocument();+ expect(screen.getByText('What Pulse Pro adds')).toBeInTheDocument();+ expect(screen.getByRole('link', { name: 'See all plans' })).toHaveAttribute(+ 'href',+ getSelfHostedPurchaseStartUrl(SELF_HOSTED_PRO_BILLING_PLAN_SELECTION_INTENT),+ );expect(screen.getByText('Pulse Relay (Remote Access)')).toBeInTheDocument();expect(screen.getByText('Mobile App Access')).toBeInTheDocument();expect(screen.getByText('Push Notifications')).toBeInTheDocument();@@ -699,7 +717,7 @@ describe('ProLicensePanel', () => {expect(screen.getByText('Pulse Patrol')).toBeInTheDocument();expect(screen.getByText('Pulse Alert Analysis')).toBeInTheDocument();expect(screen.getByText('Patrol Auto-Fix')).toBeInTheDocument();- expect(screen.getByText('Kubernetes Insights')).toBeInTheDocument();+ expect(screen.getByText('Kubernetes Analysis')).toBeInTheDocument();expect(screen.getByText('Update Alerts')).toBeInTheDocument();expect(screen.getByText('Advanced SSO (SAML/Multi-Provider)')).toBeInTheDocument();expect(screen.getByText('Role-Based Access Control (RBAC)')).toBeInTheDocument();@@ -875,6 +893,7 @@ describe('ProLicensePanel', () => {).toBeInTheDocument();expect(screen.queryByText('Compare self-hosted plans')).not.toBeInTheDocument();expect(screen.getAllByText('Patrol Auto-Fix').length).toBeGreaterThan(0);+ expect(screen.queryByText('If You Need More')).not.toBeInTheDocument();expect(screen.queryByRole('link', { name: 'Review plan' })).not.toBeInTheDocument();});@@ -952,7 +971,7 @@ describe('ProLicensePanel', () => {expect(screen.getAllByText('Compare self-hosted plans').length).toBeGreaterThan(0);expect(- screen.getByText(/Core self-hosted monitoring stays free on this instance/i),+ screen.getByText(/Community is active on this instance/i),).toBeInTheDocument();const compareLinks = screen.getAllByRole('link', { name: 'Compare plans' });expect(@@ -1104,6 +1123,8 @@ describe('ProLicensePanel', () => {expect(proLicensePanelStateSource).toContain('loadRuntimeCapabilities(true)');expect(proLicensePanelStateSource).toContain('buildSelfHostedCommercialPlanModel');expect(proLicensePanelStateSource).toContain('getSelfHostedCurrentPlanPresentation({');+ expect(proLicensePanelStateSource).toContain('getSelfHostedCurrentPlanStatusPresentation');+ expect(proLicensePanelStateSource).toContain('getSelfHostedPlanComparisonPresentation({');expect(proLicensePanelStateSource).toContain('getSelfHostedActivationSuccessPresentation({');expect(proLicensePanelStateSource).toContain('runStartProTrialAction({');expect(proLicensePanelStateSource).not.toContain('startProTrial()');@@ -1114,8 +1135,13 @@ describe('ProLicensePanel', () => {expect(proLicensePlanSectionSource).toContain('currentPlanSummary.title');expect(proLicensePlanSectionSource).toContain('currentPlanSummary.supplementalBadges');expect(proLicensePlanSectionSource).toContain('props.activationSuccessSummary');+ expect(proLicensePlanSectionSource).toContain('props.planComparisonSummary.cards.length > 0');+ expect(proLicensePlanSectionSource).toContain(+ 'SELF_HOSTED_PRO_BILLING_PRESENTATION.planComparisonSectionTitle',+ );expect(proLicensePlanSectionSource).toContain('summary().highlightsLabel');- expect(proLicensePlanSectionSource).toContain('Unlocked on this instance');+ expect(proLicensePlanSectionSource).toContain('currentPlanSummary.unlockedFeaturesLabel');+ expect(proLicensePlanSectionSource).toContain('currentPlanSummary.includedExtras.length > 0');expect(proLicensePlanSectionSource).not.toContain('getInactiveProUpsellNotice');expect(proLicensePlanSectionSource).not.toContain('MonitoredSystemDefinitionDisclosure');expect(proLicensePlanSectionSource).not.toContain('trialStartTitle');diff --git a/frontend-modern/src/components/Settings/selfHostedBillingPresentation.ts b/frontend-modern/src/components/Settings/selfHostedBillingPresentation.tsindex 1ef162bb9e..be01b8d9f3 100644--- a/frontend-modern/src/components/Settings/selfHostedBillingPresentation.ts+++ b/frontend-modern/src/components/Settings/selfHostedBillingPresentation.ts@@ -10,6 +10,8 @@ export interface SelfHostedProBillingPresentation {usageTabLabel: string;planSectionTitle: string;planSectionDescription: string;+ planComparisonSectionTitle: string;+ planComparisonActionLabel: string;usageSectionTitle: string;hiddenShellTitle: string;hiddenShellDescription: string;@@ -48,6 +50,8 @@ export const SELF_HOSTED_PRO_BILLING_PRESENTATION: SelfHostedProBillingPresentatplanSectionTitle: 'Current plan',planSectionDescription:'See which self-hosted tier this instance unlocked, what capabilities are active, and how plan status or continuity affects this install.',+ planComparisonSectionTitle: 'If You Need More',+ planComparisonActionLabel: 'See all plans',usageSectionTitle: 'Usage',hiddenShellTitle: 'Demo mode',hiddenShellDescription: 'Commercial settings are hidden for this session.',@@ -59,7 +63,7 @@ export const SELF_HOSTED_PRO_BILLING_PRESENTATION: SelfHostedProBillingPresentat'Pulse waits for the session presentation policy before showing license, billing, or usage details.',planSelectionPromptTitle: 'Compare self-hosted plans',planSelectionPromptBody:- 'Community keeps monitoring free. Compare Relay when you want secure access from anywhere, or Pro when you want root-cause answers, safe remediation, and 90-day incident history.',+ 'Community includes self-hosted monitoring. Look at Relay for secure access from anywhere, or Pulse Pro for root-cause answers, safe remediation, and 90-day incident history.',planSelectionPromptActionLabel: 'Compare plans',purchaseActivatedPlanActionLabel: 'Review plan',purchaseCancelledActionLabel: 'Compare plans',diff --git a/frontend-modern/src/components/Settings/useProLicensePanelState.ts b/frontend-modern/src/components/Settings/useProLicensePanelState.tsindex 5ce1132958..2ece13d17b 100644--- a/frontend-modern/src/components/Settings/useProLicensePanelState.ts+++ b/frontend-modern/src/components/Settings/useProLicensePanelState.ts@@ -15,10 +15,12 @@ import {getSelfHostedActivationSuccessPresentation,getCommercialMigrationNotice,getGrandfatheredPriceContinuityNotice,+ getSelfHostedPlanComparisonPresentation,getSelfHostedCurrentPlanPresentation,getLicenseFeatureLabel,getMonitoredSystemContinuityNotice,getPurchaseActivationNotice,+ getSelfHostedCurrentPlanStatusPresentation,getLicenseSubscriptionStatusPresentation,getLicenseTierLabel,getTrialActivationNotice,@@ -588,7 +590,7 @@ export function useProLicensePanelState() {}),);const currentPlanSummary = createMemo(() => {- const status = statusPresentation();+ const status = getSelfHostedCurrentPlanStatusPresentation(entitlements());const summary = getSelfHostedCurrentPlanPresentation({entitlements: entitlements(),displayableCapabilities: formattedFeatures(),@@ -599,6 +601,25 @@ export function useProLicensePanelState() {statusLabel: status.label,};});+ const planComparisonSummary = createMemo(() => {+ const comparison = getSelfHostedPlanComparisonPresentation({+ entitlements: entitlements(),+ });+ return {+ ...comparison,+ action:+ comparison.cards.length > 0 &&+ !showPlanSelectionPrompt() &&+ purchaseActivationResult().trim().length === 0+ ? {+ label: SELF_HOSTED_PRO_BILLING_PRESENTATION.planComparisonActionLabel,+ destination: resolveSelfHostedPurchaseStartDestination(+ SELF_HOSTED_PRO_BILLING_PLAN_SELECTION_INTENT,+ ),+ }+ : null,+ };+ });const handleActivate = async () => {const trimmedKey = licenseKey().trim();@@ -659,6 +680,7 @@ export function useProLicensePanelState() {commercialMigrationNotice,commercialPlanModel,currentPlanSummary,+ planComparisonSummary,monitoredSystemCapacity,monitoredSystemCapacitySection,monitoredSystemContinuityNotice,diff --git a/frontend-modern/src/utils/__tests__/commercialBillingModel.test.ts b/frontend-modern/src/utils/__tests__/commercialBillingModel.test.tsindex 72ae7d2c54..472a8705e9 100644--- a/frontend-modern/src/utils/__tests__/commercialBillingModel.test.ts+++ b/frontend-modern/src/utils/__tests__/commercialBillingModel.test.ts@@ -27,7 +27,7 @@ describe('commercialBillingModel', () => {expect(model.summary).toEqual([{ label: 'Core Monitoring', value: 'Unlimited' },{ label: 'Metric History', value: '90 days' },- { label: 'Included Extras', value: 'AI operations and advanced admin' },+ { label: 'Included Extras', value: 'Root-cause analysis, remediation, and admin extras' },]);expect(model.details.map((item) => item.label)).toEqual(['Tier',diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.tsindex b6bb75dce3..a1912d46ba 100644--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts@@ -9,7 +9,9 @@ import {getFeatureMinTierLabel,getGrandfatheredPriceContinuityNotice,getSelfHostedActivationSuccessPresentation,+ getSelfHostedPlanComparisonPresentation,getSelfHostedCurrentPlanPresentation,+ getSelfHostedCurrentPlanStatusPresentation,getLicenseFeatureLabel,getLicenseStatusLoadingState,getLicenseSubscriptionStatusPresentation,@@ -82,6 +84,8 @@ describe('licensePresentation', () => {planSectionTitle: 'Current plan',planSectionDescription:'See which self-hosted tier this instance unlocked, what capabilities are active, and how plan status or continuity affects this install.',+ planComparisonSectionTitle: 'If You Need More',+ planComparisonActionLabel: 'See all plans',usageSectionTitle: 'Usage',hiddenShellTitle: 'Demo mode',hiddenShellDescription: 'Commercial settings are hidden for this session.',@@ -93,7 +97,7 @@ describe('licensePresentation', () => {'Pulse waits for the session presentation policy before showing license, billing, or usage details.',planSelectionPromptTitle: 'Compare self-hosted plans',planSelectionPromptBody:- 'Community keeps monitoring free. Compare Relay when you want secure access from anywhere, or Pro when you want root-cause answers, safe remediation, and 90-day incident history.',+ 'Community includes self-hosted monitoring. Look at Relay for secure access from anywhere, or Pulse Pro for root-cause answers, safe remediation, and 90-day incident history.',planSelectionPromptActionLabel: 'Compare plans',purchaseActivatedPlanActionLabel: 'Review plan',purchaseCancelledActionLabel: 'Compare plans',@@ -148,6 +152,24 @@ describe('licensePresentation', () => {label: 'Unknown',badgeClass: expect.stringContaining('bg-surface-alt'),});+ expect(+ getSelfHostedCurrentPlanStatusPresentation({+ tier: 'free',+ subscription_state: 'expired',+ }),+ ).toEqual({+ label: 'Community',+ badgeClass: 'bg-surface text-base-content border border-border',+ });+ expect(+ getSelfHostedCurrentPlanStatusPresentation({+ tier: 'pro',+ subscription_state: 'active',+ }),+ ).toMatchObject({+ label: 'Active',+ badgeClass: expect.stringContaining('green'),+ });});it('formats plan versions and commercial migration notices canonically', () => {@@ -213,13 +235,15 @@ describe('licensePresentation', () => {).toEqual({title: 'Current plan: Community',body:- 'Core self-hosted monitoring stays free on this instance. Upgrade only when you want Relay convenience or Pro operations features.',+ 'Community is active on this instance. It includes self-hosted monitoring, 7-day metric history, Pulse Patrol (BYOK), and update alerts.',+ unlockedFeaturesLabel: 'Included on this instance',unlockedFeatures: ['Unlimited self-hosted monitoring','7-day metric history','Pulse Patrol (BYOK)','Update alerts',],+ includedExtras: [],supplementalBadges: [],supplementalSummary: '',});@@ -242,11 +266,16 @@ describe('licensePresentation', () => {).toEqual({title: 'Current plan: Pulse Pro',body:- 'Pulse Pro is active on this instance. AI operations, advanced administration, and 90-day history are unlocked right now.',- unlockedFeatures: [- 'Pulse Relay (Remote Access)',- 'Mobile App Access',- 'Patrol Auto-Fix',+ 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation, and 90-day history are unlocked right now.',+ unlockedFeaturesLabel: 'Primary capabilities',+ unlockedFeatures: ['Pulse Alert Analysis', 'Patrol Auto-Fix', '90-day metric history'],+ includedExtrasLabel: 'Included extras',+ includedExtras: [+ 'Advanced SSO (SAML/Multi-Provider)',+ 'Role-Based Access Control (RBAC)',+ 'Audit Logging',+ 'PDF/CSV Reporting',+ 'Centralized Agent Profiles',],supplementalBadges: [],supplementalSummary: '',@@ -273,14 +302,89 @@ describe('licensePresentation', () => {).toEqual({title: 'Current plan: Pulse Pro',body:- 'Pulse Pro is active on this instance. AI operations, advanced administration, and 90-day history are unlocked right now.',- unlockedFeatures: ['Pulse Relay (Remote Access)'],+ 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation, and 90-day history are unlocked right now.',+ unlockedFeaturesLabel: 'Primary capabilities',+ unlockedFeatures: ['Pulse Alert Analysis', 'Patrol Auto-Fix', '90-day metric history'],+ includedExtrasLabel: 'Included extras',+ includedExtras: [+ 'Advanced SSO (SAML/Multi-Provider)',+ 'Role-Based Access Control (RBAC)',+ 'Audit Logging',+ 'PDF/CSV Reporting',+ 'Centralized Agent Profiles',+ ],supplementalBadges: ['Grandfathered price', 'Grandfathered floor'],supplementalSummary:'This migrated v5 subscription keeps its existing recurring price and uncapped guest capacity until cancellation. This installation keeps an effective monitored-system limit of 23 from the observed legacy estate.',});});+ it('builds restrained higher-tier comparison cards for Community and Relay only', () => {+ expect(+ getSelfHostedPlanComparisonPresentation({+ entitlements: {+ tier: 'free',+ subscription_state: 'expired',+ capabilities: [],+ limits: [],+ upgrade_reasons: [],+ },+ }),+ ).toEqual({+ cards: [+ {+ title: 'What Relay adds',+ body: 'Reach this Pulse instance securely from anywhere, check it from mobile, get push notifications, and keep 14 days of history.',+ highlights: [+ 'Pulse Relay (Remote Access)',+ 'Mobile App Access',+ 'Push Notifications',+ '14-day metric history',+ ],+ },+ {+ title: 'What Pulse Pro adds',+ body:+ 'Move from monitoring into operations with root-cause answers, safe remediation, and 90-day history. Pulse Pro also includes SAML SSO, RBAC, audit logging, reporting, and agent profiles.',+ highlights: ['Pulse Alert Analysis', 'Patrol Auto-Fix', '90-day metric history'],+ },+ ],+ });++ expect(+ getSelfHostedPlanComparisonPresentation({+ entitlements: {+ tier: 'relay',+ subscription_state: 'active',+ capabilities: ['relay'],+ limits: [],+ upgrade_reasons: [],+ },+ }),+ ).toEqual({+ cards: [+ {+ title: 'What Pulse Pro adds',+ body:+ 'Move from monitoring into operations with root-cause answers, safe remediation, and 90-day history. Pulse Pro also includes SAML SSO, RBAC, audit logging, reporting, and agent profiles.',+ highlights: ['Pulse Alert Analysis', 'Patrol Auto-Fix', '90-day metric history'],+ },+ ],+ });++ expect(+ getSelfHostedPlanComparisonPresentation({+ entitlements: {+ tier: 'pro',+ subscription_state: 'active',+ capabilities: ['ai_patrol'],+ limits: [],+ upgrade_reasons: [],+ },+ }),+ ).toEqual({ cards: [] });+ });+it('builds activation-success summaries for purchase, pasted-key, and trial activation paths', () => {expect(getSelfHostedActivationSuccessPresentation({@@ -304,12 +408,7 @@ describe('licensePresentation', () => {title: 'Pulse Pro is now active',body: 'Checkout completed and this instance is now running Pulse Pro.',highlightsLabel: 'Available now on this instance',- highlights: [- 'Patrol Auto-Fix',- 'Pulse Alert Analysis',- 'Kubernetes Insights',- '90-day metric history',- ],+ highlights: ['Pulse Alert Analysis', 'Patrol Auto-Fix', '90-day metric history'],});expect(@@ -358,12 +457,7 @@ describe('licensePresentation', () => {title: 'Pulse Pro trial is now active',body: 'The trial handoff completed and this instance now has Pulse Pro trial access.',highlightsLabel: 'Available during this trial',- highlights: [- 'Patrol Auto-Fix',- 'Pulse Alert Analysis',- 'Kubernetes Insights',- '90-day metric history',- ],+ highlights: ['Pulse Alert Analysis', 'Patrol Auto-Fix', '90-day metric history'],});expect(diff --git a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.tsindex 6faeb6d18f..e4dfb902ae 100644--- a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts+++ b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts@@ -32,7 +32,7 @@ describe('selfHostedPlans', () => {expect(SELF_HOSTED_COMMERCIAL_PRESENTATION).toEqual({pageTitle: 'Pricing',pageDescription:- 'Core monitoring stays free for self-hosted Pulse. Relay adds remote access and mobile convenience, while Pro unlocks AI operations, automation, governance, and longer history.',+ 'Core monitoring is free for self-hosted Pulse. Relay adds secure remote access and mobile convenience, while Pro adds root-cause analysis, safe remediation, 90-day history, and admin/reporting extras.',mostPopularBadge: 'Most Popular',currentPlanLabel: 'Current Plan',includedLabel: 'Included',@@ -62,7 +62,10 @@ describe('selfHostedPlans', () => {'Patrol, alerts, and OIDC',);expect(SELF_HOSTED_PLAN_BY_TIER.community.entitlementSummary).toContain(- 'Core self-hosted monitoring stays free on this instance.',+ 'Community is active on this instance.',+ );+ expect(SELF_HOSTED_PLAN_BY_TIER.community.comparisonSummary).toBe(+ 'Community covers self-hosted monitoring and core operations on this instance.',);expect(SELF_HOSTED_PLAN_BY_TIER.community.entitlementHighlights).toEqual(['Unlimited self-hosted monitoring',@@ -70,31 +73,43 @@ describe('selfHostedPlans', () => {'Pulse Patrol (BYOK)','Update alerts',]);+ expect(SELF_HOSTED_PLAN_BY_TIER.community.includedExtras).toEqual([]);expect(SELF_HOSTED_PLAN_BY_TIER.relay.billingExtrasSummary).toBe('Remote access, mobile, and push',);expect(SELF_HOSTED_PLAN_BY_TIER.relay.entitlementSummary).toContain('Remote access, mobile, push, and longer history are unlocked right now.',);+ expect(SELF_HOSTED_PLAN_BY_TIER.relay.comparisonSummary).toContain(+ 'Reach this Pulse instance securely from anywhere',+ );expect(SELF_HOSTED_PLAN_BY_TIER.relay.entitlementHighlights).toEqual(['Pulse Relay (Remote Access)','Mobile App Access','Push Notifications','14-day metric history',]);+ expect(SELF_HOSTED_PLAN_BY_TIER.relay.includedExtras).toEqual([]);expect(SELF_HOSTED_PLAN_BY_TIER.pro.billingExtrasSummary).toBe(- 'AI operations and advanced admin',+ 'Root-cause analysis, remediation, and admin extras',);expect(SELF_HOSTED_PLAN_BY_TIER.pro.entitlementSummary).toContain(- 'AI operations, advanced administration, and 90-day history are unlocked right now.',+ 'Root-cause analysis, safe remediation, and 90-day history are unlocked right now.',+ );+ expect(SELF_HOSTED_PLAN_BY_TIER.pro.comparisonSummary).toContain(+ 'safe remediation, and 90-day history',);expect(SELF_HOSTED_PLAN_BY_TIER.pro.entitlementHighlights).toEqual([- 'Patrol Auto-Fix','Pulse Alert Analysis',- 'Kubernetes Insights',+ 'Patrol Auto-Fix','90-day metric history',+ ]);+ expect(SELF_HOSTED_PLAN_BY_TIER.pro.includedExtras).toEqual([+ 'Advanced SSO (SAML/Multi-Provider)','Role-Based Access Control (RBAC)','Audit Logging',+ 'PDF/CSV Reporting',+ 'Centralized Agent Profiles',]);expect(SELF_HOSTED_PLAN_BY_TIER.community.highlights).toEqual(expect.arrayContaining([diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.tsindex 8733511481..0166fcb568 100644--- a/frontend-modern/src/utils/licensePresentation.ts+++ b/frontend-modern/src/utils/licensePresentation.ts@@ -37,7 +37,7 @@ const FEATURE_LABELS: Record<string, string> = {ai_patrol: 'Pulse Patrol',ai_alerts: 'Pulse Alert Analysis',ai_autofix: 'Patrol Auto-Fix',- kubernetes_ai: 'Kubernetes Insights',+ kubernetes_ai: 'Kubernetes Analysis',update_alerts: 'Update Alerts',sso: 'Basic SSO (OIDC)',advanced_sso: 'Advanced SSO (SAML/Multi-Provider)',@@ -111,7 +111,10 @@ export interface SelfHostedRecoveryPresentation {export interface SelfHostedCurrentPlanPresentation {title: string;body: string;+ unlockedFeaturesLabel: string;unlockedFeatures: string[];+ includedExtrasLabel?: string;+ includedExtras: string[];supplementalBadges: string[];supplementalSummary?: string;}@@ -123,6 +126,16 @@ export interface SelfHostedActivationSuccessPresentation extends LicenseInlineNoexport type SelfHostedActivationSuccessSource = 'manual' | 'purchase' | 'trial';+export interface SelfHostedPlanComparisonCardPresentation {+ title: string;+ body: string;+ highlights: string[];+}++export interface SelfHostedPlanComparisonPresentation {+ cards: SelfHostedPlanComparisonCardPresentation[];+}+const GRANDFATHERED_V5_PLAN_LABELS: Record<string, string> = {v5_lifetime_grandfathered: 'V5 Lifetime Grandfathered',v5_pro_monthly_grandfathered: 'V5 Pro Monthly (Grandfathered)',@@ -277,14 +290,25 @@ const getSelfHostedUnlockedFeatures = ({return [];}- const normalizedTier = (current.tier || '').trim().toLowerCase();const planDefinition = getSelfHostedPlanDefinitionForBillingTier(current.tier);- const fallbackHighlights = [...(planDefinition?.entitlementHighlights ?? [])];- return normalizedTier === 'free'- ? fallbackHighlights- : displayableCapabilities.length > 0- ? displayableCapabilities- : fallbackHighlights;+ if (planDefinition) {+ return [...planDefinition.entitlementHighlights];+ }+ return displayableCapabilities;+};++const getSelfHostedIncludedExtras = ({+ entitlements,+}: {+ entitlements?: LicenseCommercialEntitlements | null;+}): string[] => {+ const current = entitlements;+ if (!current) {+ return [];+ }++ const planDefinition = getSelfHostedPlanDefinitionForBillingTier(current.tier);+ return [...(planDefinition?.includedExtras ?? [])];};const getSelfHostedActivationHighlights = ({@@ -315,6 +339,36 @@ const getSelfHostedActivationHighlights = ({return highlights;};+export const getSelfHostedPlanComparisonPresentation = ({+ entitlements,+}: {+ entitlements?: LicenseCommercialEntitlements | null;+}): SelfHostedPlanComparisonPresentation => {+ const normalizedTier = (entitlements?.tier || '').trim().toLowerCase();+ const comparisonTiers =+ normalizedTier === 'relay'+ ? ['pro']+ : normalizedTier === 'free' || normalizedTier === 'community' || !normalizedTier+ ? ['relay', 'pro']+ : [];++ return {+ cards: comparisonTiers+ .map((tier) => {+ const definition = getSelfHostedPlanDefinitionForBillingTier(tier);+ if (!definition) {+ return null;+ }+ return {+ title: `What ${getSelfHostedPlanLabel(tier)} adds`,+ body: definition.comparisonSummary,+ highlights: [...definition.entitlementHighlights].slice(0, 4),+ };+ })+ .filter((card): card is SelfHostedPlanComparisonCardPresentation => card !== null),+ };+};+export const getSelfHostedCurrentPlanPresentation = ({entitlements,displayableCapabilities,@@ -327,7 +381,9 @@ export const getSelfHostedCurrentPlanPresentation = ({return {title: 'Current plan: Unknown',body: 'Pulse is still loading the current self-hosted entitlement for this instance.',+ unlockedFeaturesLabel: 'Unlocked on this instance',unlockedFeatures: [],+ includedExtras: [],supplementalBadges: [],};}@@ -340,6 +396,11 @@ export const getSelfHostedCurrentPlanPresentation = ({entitlements: current,displayableCapabilities,});+ const includedExtras = getSelfHostedIncludedExtras({+ entitlements: current,+ });+ const unlockedFeaturesLabel =+ normalizedTier === 'free' ? 'Included on this instance' : 'Primary capabilities';const supplementalBadges: string[] = [];const supplementalDetails: string[] = [];@@ -381,7 +442,10 @@ export const getSelfHostedCurrentPlanPresentation = ({unlockedFeatures.length > 0? `${planLabel} trial capabilities are active on this instance right now.`: `${planLabel} trial activation is in progress on this instance.`,+ unlockedFeaturesLabel,unlockedFeatures,+ includedExtrasLabel: includedExtras.length > 0 ? 'Included extras' : undefined,+ includedExtras,supplementalBadges,supplementalSummary: supplementalDetails.join(' '),};@@ -392,8 +456,10 @@ export const getSelfHostedCurrentPlanPresentation = ({title: 'Current plan: Community',body:planDefinition?.entitlementSummary ||- 'Community keeps self-hosted core monitoring free on this instance. Upgrade only when you want Relay or Pro capabilities.',+ 'Community is active on this instance. Self-hosted monitoring, 7-day metric history, Pulse Patrol (BYOK), and update alerts are included here.',+ unlockedFeaturesLabel,unlockedFeatures,+ includedExtras,supplementalBadges,supplementalSummary: supplementalDetails.join(' '),};@@ -405,7 +471,10 @@ export const getSelfHostedCurrentPlanPresentation = ({body:planDefinition?.entitlementSummary ||`${planLabel} is active on this instance. These capabilities are unlocked right now.`,+ unlockedFeaturesLabel,unlockedFeatures,+ includedExtrasLabel: includedExtras.length > 0 ? 'Included extras' : undefined,+ includedExtras,supplementalBadges,supplementalSummary: supplementalDetails.join(' '),};@@ -414,7 +483,9 @@ export const getSelfHostedCurrentPlanPresentation = ({return {title: `Current plan: ${planLabel}`,body: 'Review the plan details below to confirm what this key unlocks on this instance.',+ unlockedFeaturesLabel: 'Unlocked on this instance',unlockedFeatures,+ includedExtras,supplementalBadges,supplementalSummary: supplementalDetails.join(' '),};@@ -661,6 +732,19 @@ export const getLicenseSubscriptionStatusPresentation = (}};+export const getSelfHostedCurrentPlanStatusPresentation = (+ entitlements?: Pick<LicenseCommercialEntitlements, 'tier' | 'subscription_state'> | null,+): LicenseSubscriptionStatusPresentation => {+ const normalizedTier = (entitlements?.tier || '').trim().toLowerCase();+ if (normalizedTier === 'free' || normalizedTier === 'community') {+ return {+ label: 'Community',+ badgeClass: 'bg-surface text-base-content border border-border',+ };+ }+ return getLicenseSubscriptionStatusPresentation(entitlements?.subscription_state);+};+export const getLicenseStatusLoadingState = (): LicenseLoadingStateCopy => ({text: 'Loading license status...',});diff --git a/frontend-modern/src/utils/selfHostedPlans.ts b/frontend-modern/src/utils/selfHostedPlans.tsindex 6f7eeb45b2..219dbbde99 100644--- a/frontend-modern/src/utils/selfHostedPlans.ts+++ b/frontend-modern/src/utils/selfHostedPlans.ts@@ -9,6 +9,8 @@ export interface SelfHostedPlanDefinition {billingExtrasSummary: string;entitlementSummary: string;entitlementHighlights: readonly string[];+ includedExtras: readonly string[];+ comparisonSummary: string;highlights: readonly string[];}@@ -49,13 +51,15 @@ export const SELF_HOSTED_PLAN_DEFINITIONS: readonly SelfHostedPlanDefinition[] =metricHistoryDays: 7,billingExtrasSummary: 'Patrol, alerts, and OIDC',entitlementSummary:- 'Core self-hosted monitoring stays free on this instance. Upgrade only when you want Relay convenience or Pro operations features.',+ 'Community is active on this instance. It includes self-hosted monitoring, 7-day metric history, Pulse Patrol (BYOK), and update alerts.',entitlementHighlights: ['Unlimited self-hosted monitoring','7-day metric history','Pulse Patrol (BYOK)','Update alerts',],+ includedExtras: [],+ comparisonSummary: 'Community covers self-hosted monitoring and core operations on this instance.',highlights: ['Real-time monitoring','Unlimited self-hosted monitoring',@@ -82,6 +86,9 @@ export const SELF_HOSTED_PLAN_DEFINITIONS: readonly SelfHostedPlanDefinition[] ='Push Notifications','14-day metric history',],+ includedExtras: [],+ comparisonSummary:+ 'Reach this Pulse instance securely from anywhere, check it from mobile, get push notifications, and keep 14 days of history.',highlights: ['Everything in Community','Remote access via Relay',@@ -97,22 +104,27 @@ export const SELF_HOSTED_PLAN_DEFINITIONS: readonly SelfHostedPlanDefinition[] =price: '$8.99/month',subline: 'or $79/year',metricHistoryDays: 90,- billingExtrasSummary: 'AI operations and advanced admin',+ billingExtrasSummary: 'Root-cause analysis, remediation, and admin extras',entitlementSummary:- 'Pulse Pro is active on this instance. AI operations, advanced administration, and 90-day history are unlocked right now.',+ 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation, and 90-day history are unlocked right now.',entitlementHighlights: [- 'Patrol Auto-Fix','Pulse Alert Analysis',- 'Kubernetes Insights',+ 'Patrol Auto-Fix','90-day metric history',+ ],+ includedExtras: [+ 'Advanced SSO (SAML/Multi-Provider)','Role-Based Access Control (RBAC)','Audit Logging',+ 'PDF/CSV Reporting',+ 'Centralized Agent Profiles',],+ comparisonSummary:+ 'Move from monitoring into operations with root-cause answers, safe remediation, and 90-day history. Pulse Pro also includes SAML SSO, RBAC, audit logging, reporting, and agent profiles.',highlights: ['Everything in Relay',- 'Patrol Auto-Fix & investigation','Pulse Alert Analysis',- 'Kubernetes Insights',+ 'Patrol Auto-Fix','90-day metric history','RBAC, audit logging, SAML SSO','Agent profiles · PDF/CSV reports',@@ -146,7 +158,7 @@ export function getSelfHostedPlanDefinitionForBillingTier(export const SELF_HOSTED_COMMERCIAL_PRESENTATION: SelfHostedCommercialPresentation = {pageTitle: 'Pricing',pageDescription:- 'Core monitoring stays free for self-hosted Pulse. Relay adds remote access and mobile convenience, while Pro unlocks AI operations, automation, governance, and longer history.',+ 'Core monitoring is free for self-hosted Pulse. Relay adds secure remote access and mobile convenience, while Pro adds root-cause analysis, safe remediation, 90-day history, and admin/reporting extras.',mostPopularBadge: 'Most Popular',currentPlanLabel: 'Current Plan',includedLabel: 'Included',@@ -247,13 +259,6 @@ export const SELF_HOSTED_FEATURE_ROWS: readonly SelfHostedFeatureRow[] = [relay: false,pro: true,},- {- key: 'kubernetes_ai',- name: 'Kubernetes Insights',- community: false,- relay: false,- pro: true,- },{key: 'rbac',name: 'Role-Based Access Control (RBAC)',diff --git a/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts b/tests/integration/tests/55-self-hosted-upgrade-return.spec.tsindex 5346953905..d0bd054081 100644--- a/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts+++ b/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts@@ -421,7 +421,7 @@ async function openMonitoredSystemUpgradeArrival(page: Page) {);await expect(page.getByText(- "Community keeps monitoring free. Compare Relay when you want secure access from anywhere, or Pro when you want root-cause answers, safe remediation, and 90-day incident history.",+ "Community includes self-hosted monitoring. Look at Relay for secure access from anywhere, or Pulse Pro for root-cause answers, safe remediation, and 90-day incident history.",),).toBeVisible();await expect(page.getByRole("button", { name: "Hide counting rules" })).toHaveCount(0);diff --git a/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts b/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.tsindex 864ba9d168..551748b011 100644--- a/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts+++ b/tests/integration/tests/59-self-hosted-plans-entitlement-summary.spec.ts@@ -115,7 +115,7 @@ test.describe('Self-hosted plans entitlement summary', () => {await expect(currentPlanCard.getByText('Current plan: Pulse Pro')).toBeVisible();await expect(currentPlanCard.getByText(- 'Pulse Pro is active on this instance. AI operations, advanced administration, and 90-day history are unlocked right now.',+ 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation, and 90-day history are unlocked right now.',),).toBeVisible();await expect(currentPlanCard.getByText('Grandfathered price')).toBeVisible();@@ -131,9 +131,10 @@ test.describe('Self-hosted plans entitlement summary', () => {),).toBeVisible();await expect(currentPlanCard.getByText(/effective monitored-system limit of 23/i)).toBeVisible();- await expect(currentPlanCard.getByText('Pulse Relay (Remote Access)')).toBeVisible();- await expect(currentPlanCard.getByText('Mobile App Access')).toBeVisible();+ await expect(currentPlanCard.getByText('Primary capabilities')).toBeVisible();+ await expect(currentPlanCard.getByText('Included extras')).toBeVisible();await expect(currentPlanCard.getByText('Patrol Auto-Fix')).toBeVisible();await expect(currentPlanCard.getByText('Pulse Alert Analysis')).toBeVisible();+ await expect(currentPlanCard.getByText('Advanced SSO (SAML/Multi-Provider)')).toBeVisible();});});diff --git a/tests/integration/tests/70-self-hosted-manual-activation-success.spec.ts b/tests/integration/tests/70-self-hosted-manual-activation-success.spec.tsindex c815026818..82280104ae 100644--- a/tests/integration/tests/70-self-hosted-manual-activation-success.spec.ts+++ b/tests/integration/tests/70-self-hosted-manual-activation-success.spec.ts@@ -122,7 +122,22 @@ test.describe('Self-hosted manual activation success', () => {await ensureAuthenticated(page);await page.goto('/settings/system/billing/plan', { waitUntil: 'domcontentloaded' });- await expect(page.getByText('Current plan: Community')).toBeVisible();+ const communityPlanCard = page+ .locator('div.rounded-md.border.border-border.bg-surface-alt.p-4')+ .filter({ has: page.getByText('Current plan: Community') })+ .first();++ await expect(communityPlanCard.getByText('Current plan: Community')).toBeVisible();+ await expect(communityPlanCard.getByText('Community', { exact: true })).toBeVisible();+ await expect(communityPlanCard.getByText('Expired', { exact: true })).toHaveCount(0);+ await expect(+ communityPlanCard.getByText(+ 'Community is active on this instance. It includes self-hosted monitoring, 7-day metric history, Pulse Patrol (BYOK), and update alerts.',+ ),+ ).toBeVisible();+ await expect(page.getByText('If You Need More')).toBeVisible();+ await expect(page.getByText('What Relay adds')).toBeVisible();+ await expect(page.getByText('What Pulse Pro adds')).toBeVisible();await page.locator('summary').filter({ hasText: 'Redeem existing key' }).first().click();const activationField = page.locator('#pulse-pro-license-key');@@ -146,10 +161,16 @@ test.describe('Self-hosted manual activation success', () => {await expect(activationSummary.getByText('Pulse Alert Analysis')).toBeVisible();await expect(page.getByText('Current plan: Pulse Pro')).toBeVisible();+ const currentPlanCard = page+ .locator('div.rounded-md.border.border-border.bg-surface-alt.p-4')+ .filter({ has: page.getByText('Current plan: Pulse Pro') })+ .first();await expect(- page.getByText(- 'Pulse Pro is active on this instance. AI operations, advanced administration, and 90-day history are unlocked right now.',+ currentPlanCard.getByText(+ 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation, and 90-day history are unlocked right now.',),).toBeVisible();+ await expect(currentPlanCard.getByText('Included extras')).toBeVisible();+ await expect(page.getByText('If You Need More')).toHaveCount(0);});});