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
Make self-hosted settings plan-owned
rcourtman48e4ec818c3e
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex 56ef663653..66c71120fc 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -4334,7 +4334,21 @@]}],- "work_claims": [],+ "work_claims": [+ {+ "id": "codex-lane-l1",+ "agent_id": "codex",+ "summary": "Guard forward release signing against accidental trust-root drift",+ "target_id": "v6-product-lane-expansion",+ "claimed_at": "2026-04-22T18:47:37Z",+ "heartbeat_at": "2026-04-22T18:47:37Z",+ "expires_at": "2026-04-22T20:47:37Z",+ "work_item": {+ "kind": "lane",+ "id": "L1"+ }+ }+ ],"open_decisions": [],"source_of_truth_file": "docs/release-control/v6/internal/SOURCE_OF_TRUTH.md","resolved_decisions": [@@ -4824,6 +4838,21 @@"lane_ids": ["L6"]+ },+ {+ "id": "self-hosted-plans-surface-entitlement-first",+ "summary": "The self-hosted v6 commercial settings surface is plan-owned rather than tier-owned: the settings nav label is `Plans`, the page title is `Plans & Activation`, and the canonical plan state must foreground the current unlocked tier plus capabilities so paid upgrades can confirm their entitlement immediately after entering a new key.",+ "kind": "pricing",+ "decided_at": "2026-04-22",+ "subsystem_ids": [+ "cloud-paid",+ "frontend-primitives"+ ],+ "lane_ids": [+ "L3",+ "L8",+ "L9"+ ]}]}diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex c607b8bdfb..cf2b3b82e8 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -1091,8 +1091,9 @@ stale no-match or detected-product state already rendered. Render-order prooffor that landing belongs to DOM-backed settings tests, not raw source-stringposition checks, so lifecycle ownership continues to guard the operator-visibleorder after reasonable component extraction or copy refactors.-When that infrastructure workspace needs to redirect operators to the Pulse Pro-surface for billing, monitored-system limits, or license status, it must+When that infrastructure workspace needs to redirect operators to the plan-+owned self-hosted commercial surface for billing, monitored-system limits, or+license status, it mustconsume the settings-owned referral copy from`frontend-modern/src/components/Settings/selfHostedBillingPresentation.ts`instead of carrying workspace-local commercial guidance or reaching back into@@ -1192,9 +1193,10 @@ should use the canonical object when they need attribution for which groupedsurface reported most recently. Retired flat alias fields must not reappear asparallel lifecycle signal inputs or contract language.Lifecycle-adjacent workspace copy must also keep the same commercial framing:-infrastructure operations may point operators to Pulse Pro for billing, but it-must describe that boundary in monitored-system, plan-limit, and license-status-terms rather than reviving legacy agent-allocation language.+infrastructure operations may point operators to Plans for billing, but it+must describe that boundary in monitored-system, plan-limit, license-status,+and unlocked-capability terms rather than reviving legacy agent-allocation+language or treating the entire destination as the `Pulse Pro` tier page.That same direct-workspace boundary now also owns the shared customer-facingerror copy for discovery and configured-node actions through`frontend-modern/src/utils/infrastructureSettingsPresentation.ts`, so directdiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 2d8f00063d..fc54b30b44 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -141,6 +141,17 @@ Own canonical runtime payload shapes between backend and frontend.`/v1/activate`, `/v1/licenses/exchange`, and `/v1/grants/refresh` somigrated installs can be attributed to exact builds without inventing asecond version source or trusting browser-supplied version hints.+ That same shared licensing boundary also owns self-hosted purchase-return+ framing. `/auth/license-purchase-start` and+ `/auth/license-purchase-activate` may return operators only to the+ canonical self-hosted settings route at+ `/settings/system/billing/plan`, and the bridge pages must describe that+ surface as a plan-owned destination (`Plans`, `Plan activated`,+ `Finalizing plan upgrade`) rather than as a tier-owned `Pulse Pro billing`+ page. Frontend callers may still render the unlocked tier name inside that+ destination, but the browser/API contract must not reintroduce+ Pulse-Pro-as-page-name copy in callback titles, actions, or retry+ guidance.40. `internal/api/notifications.go` shared with `notifications`: notification handlers are both a notification delivery control surface and a canonical API payload contract boundary.41. `internal/api/org_handlers.go` shared with `organization-settings`: organization management handlers are both an organization settings control surface and a canonical API payload contract boundary.42. `internal/api/org_lifecycle_handlers.go` shared with `organization-settings`: organization lifecycle handlers are both an organization settings control surface and a canonical API payload contract boundary.diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 1c1d405ea8..47b25d7428 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -1134,7 +1134,12 @@ arrivals may surface an upgrade callout that hands off into `Pulse Account`for self-hosted plan comparison and checkout before returning to the ownedplan state through the runtime-owned activation callback. Pulse product routeskeep ownership of license status, usage, and activation state; `Pulse Account`-owns the commerce flow itself.+owns the commerce flow itself. That same self-hosted settings surface is+plan-owned rather than tier-owned: the navigation label is `Plans`, the+surface title is `Plans & Activation`, and the canonical plan state must make+the current unlocked tier plus capabilities immediately obvious so existing+paid upgrades can confirm what their new key enabled without hunting through+generic billing details.That same router-owned billing contract now also includes recovery as a plandetail state instead of a fragment alias. The canonical recovery arrival is`/settings/system/billing/plan?details=recovery`, whilediff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 6436529711..6f7e484df1 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -473,6 +473,12 @@ work extends shared components instead of creating new local variants.and keep adjacent settings-shell referrals such as`InfrastructureWorkspace.tsx` on that same shared owner instead ofreintroducing local “go to Pulse Pro” variants.+ That same shared owner must also support explicit IA/title separation for+ self-hosted commercial settings: the nav label may stay product-IA-first+ (`Plans`) while the page shell stays task-first (`Plans & Activation`), and+ the owned plan shell must foreground the active plan name plus unlocked+ capabilities before secondary billing or recovery detail so paid upgrades+ can confirm their entitlement immediately after activation.7. Keep hosted settings-shell framing imports safe for bundle initialization.Self-hosted billing titles, descriptions, and referral copy used by`settingsHeaderMeta.ts`, `settingsNavCatalog.ts`, and adjacent settings@@ -2230,6 +2236,15 @@ toward Pulse Pro for billing, monitored-system limits, or license status, theymust reuse the shared referral copy from`SELF_HOSTED_PRO_BILLING_PRESENTATION` rather than drafting local “go therefor billing” variants.+That same shared presentation owner now also carries the entitlement-first+commercial summary contract for self-hosted settings. The top-level navigation+entry stays product-IA owned through `navLabel` (`Plans`), while the page+header and shell title stay task-owned through `shellTitle`+(`Plans & Activation`), and the billing shell must foreground the active plan+name plus unlocked capabilities before secondary billing or recovery detail.+Paid upgrades should be able to confirm “Current plan: Pulse Pro” immediately+after activation without hunting through generic billing language or a second+page-local summary card model.That same shell boundary also has to stay safe for hosted tenant bundles.Settings-shell framing copy for self-hosted billing must route through`selfHostedBillingPresentation.ts`, with `settingsNavCatalog.ts`,diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 4655139043..9201e16847 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -327,6 +327,12 @@ querying, and the operator-facing storage health presentation layer.bypass the shared secure callback policy that limits self-hosted commercialreturn URLs to HTTPS instance origins or direct-loopback HTTP and keepshosted commercial follow-up fetches on the restricted outbound client.+ That same adjacent commercial boundary also owns the plan-owned callback+ framing for those routes: storage and recovery may coexist beside+ `/settings/system/billing/plan`, but they must treat `Plans` and+ `Plans & Activation` as the canonical destination naming and must not+ reinterpret purchase-return bridge titles, retry actions, or success+ states as a recovery-local `Pulse Pro billing` surface.query state as a recovery-local contract once uncapped self-hostedmonitoring is canonical.That same adjacent commercialdiff --git a/frontend-modern/src/components/Settings/ProLicensePanel.tsx b/frontend-modern/src/components/Settings/ProLicensePanel.tsxindex 90bf77d352..1a414a8bd3 100644--- a/frontend-modern/src/components/Settings/ProLicensePanel.tsx+++ b/frontend-modern/src/components/Settings/ProLicensePanel.tsx@@ -103,8 +103,8 @@ const ProLicensePanelContent: Component = () => {<ProLicensePlanSectioncommercialMigrationNotice={state.commercialMigrationNotice()}commercialPlanModel={state.commercialPlanModel()}+ currentPlanSummary={state.currentPlanSummary()}entitlements={state.entitlements()}- formattedFeatures={state.formattedFeatures()}grandfatheredPriceNotice={state.grandfatheredPriceNotice()}hasLicenseDetails={state.hasLicenseDetails()}hasPaidFeatures={state.hasPaidFeatures()}@@ -117,7 +117,6 @@ const ProLicensePanelContent: Component = () => {purchaseActivationAction={state.purchaseActivationAction()}onPurchaseActivationActionClick={state.handlePurchaseActivationActionClick}purchaseActivationNotice={state.purchaseActivationNotice()}- statusPresentation={state.statusPresentation()}trialActivationNotice={state.trialActivationNotice()}trialEnded={state.trialEnded()}/>diff --git a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsxindex 2f52335d36..3cb4a57656 100644--- a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx+++ b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx@@ -40,11 +40,17 @@ interface ProLicensePlanSectionProps {summary: Array<{ label: string; value: string | number }>;details: Array<{ label: string; value: string | number }>;};+ currentPlanSummary: {+ title: string;+ body: string;+ badgeClass: string;+ statusLabel: string;+ unlockedFeatures: string[];+ };entitlements: {in_grace_period?: boolean;grace_period_end?: string | null;} | null;- formattedFeatures: string[];grandfatheredPriceNotice: Notice | null;hasLicenseDetails: boolean;hasPaidFeatures: boolean;@@ -60,10 +66,6 @@ interface ProLicensePlanSectionProps {destination: UpgradeDestination;} | null;onPurchaseActivationActionClick: () => void;- statusPresentation: {- badgeClass: string;- label: string;- };trialActivationNotice: Notice | null;trialEnded: boolean;}@@ -114,6 +116,37 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro</div>)}</Show>+ <div class="mb-4 rounded-md border border-border bg-surface-alt p-4">+ <div class="flex flex-wrap items-center gap-2">+ <span+ class={`px-2 py-1 text-xs font-medium rounded-full ${props.currentPlanSummary.badgeClass}`}+ >+ {props.currentPlanSummary.statusLabel}+ </span>+ <Show when={props.entitlements?.in_grace_period}>+ <span class="text-xs text-amber-700 dark:text-amber-300">+ Grace until {formatDate(props.entitlements?.grace_period_end)}+ </span>+ </Show>+ </div>+ <p class="mt-3 text-lg font-semibold text-base-content">{props.currentPlanSummary.title}</p>+ <p class="mt-1 text-sm text-muted">{props.currentPlanSummary.body}</p>+ <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>+ <ul class="grid gap-2 sm:grid-cols-2">+ <For each={props.currentPlanSummary.unlockedFeatures}>+ {(feature) => (+ <li class="text-sm text-base-content flex items-center gap-2">+ <span class="w-1.5 h-1.5 rounded-full bg-emerald-400"></span>+ {feature}+ </li>+ )}+ </For>+ </ul>+ </div>+ </Show>+ </div><Show when={props.trialActivationNotice}>{(notice) => (<div class={`mb-4 rounded-md border p-3 text-sm ${notice().tone}`}>@@ -227,19 +260,6 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (prowhen={!props.loading}fallback={<p class="text-sm ">{getLicenseStatusLoadingState().text}</p>}>- <div class="flex flex-wrap items-center gap-2">- <span- class={`px-2 py-1 text-xs font-medium rounded-full ${props.statusPresentation.badgeClass}`}- >- {props.statusPresentation.label}- </span>- <Show when={props.entitlements?.in_grace_period}>- <span class="text-xs text-amber-700 dark:text-amber-300">- Grace until {formatDate(props.entitlements?.grace_period_end)}- </span>- </Show>- </div>-<Showwhen={props.hasLicenseDetails}fallback={<div class="text-sm text-muted">{getNoActiveProLicenseState().text}</div>}@@ -257,21 +277,6 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro</For></div>- <Show when={props.formattedFeatures.length > 0}>- <div>- <p class="text-xs uppercase tracking-wide text-muted mb-2">Features</p>- <ul class="grid gap-2 sm:grid-cols-2">- <For each={props.formattedFeatures}>- {(feature) => (- <li class="text-sm text-base-content flex items-center gap-2">- <span class="w-1.5 h-1.5 rounded-full bg-emerald-400"></span>- {feature}- </li>- )}- </For>- </ul>- </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 51978a00f7..e3cea6d621 100644--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx@@ -188,7 +188,7 @@ describe('ProLicensePanel', () => {expect(loadCommercialPostureMock).not.toHaveBeenCalled();expect(screen.getByText('License and billing details are hidden')).toBeInTheDocument();expect(screen.getByText(/instead of creating a demo license/i)).toBeInTheDocument();- expect(screen.queryByText('Pulse Pro')).not.toBeInTheDocument();+ expect(screen.queryByText('Plans & Activation')).not.toBeInTheDocument();expect(screen.queryByText('Monitored Systems')).not.toBeInTheDocument();expect(screen.queryByRole('button', { name: /start 14-day pro trial/i }),@@ -202,7 +202,8 @@ describe('ProLicensePanel', () => {expect(loadLicenseEntitlementsMock).toHaveBeenCalled();});- expect(screen.getByText('Pulse Pro')).toBeInTheDocument();+ expect(screen.getByText('Plans & Activation')).toBeInTheDocument();+ expect(screen.getByText('Current plan: Community')).toBeInTheDocument();expect(screen.queryByRole('tab', { name: 'Usage' })).not.toBeInTheDocument();expect(screen.queryByRole('button', { name: /start 14-day pro trial/i }),@@ -217,6 +218,7 @@ describe('ProLicensePanel', () => {});expect(screen.getAllByText('Compare self-hosted plans').length).toBeGreaterThan(0);+ expect(screen.getByText('Current plan: Community')).toBeInTheDocument();expect(trackPricingViewedMock).toHaveBeenCalledWith('settings_self_hosted_billing_plan',SELF_HOSTED_PRO_BILLING_PLAN_SELECTION_INTENT,@@ -349,7 +351,7 @@ describe('ProLicensePanel', () => {expect(screen.getByText('V5 Lifetime Grandfathered')).toBeInTheDocument();expect(screen.getByText(- 'Review your active plan, expiry, and whether this instance only monitors, reaches anywhere, or also helps investigate and fix issues.',+ 'See which self-hosted tier this instance unlocked, what capabilities are active, and how plan status or continuity affects this install.',),).toBeInTheDocument();expect(screen.queryByText('Included Monitored Systems')).not.toBeInTheDocument();@@ -1023,6 +1025,8 @@ describe('ProLicensePanel', () => {expect(proLicensePlanSectionSource).toContain('getLicenseStatusLoadingState');expect(proLicensePlanSectionSource).toContain('getNoActiveProLicenseState');expect(proLicensePlanSectionSource).toContain('getTrialEndedProLicenseNotice');+ expect(proLicensePlanSectionSource).toContain('currentPlanSummary.title');+ expect(proLicensePlanSectionSource).toContain('Unlocked on this instance');expect(proLicensePlanSectionSource).not.toContain('getInactiveProUpsellNotice');expect(proLicensePlanSectionSource).not.toContain('MonitoredSystemDefinitionDisclosure');expect(proLicensePlanSectionSource).not.toContain('trialStartTitle');diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex c9dd8aeea3..4f5c5fadae 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -3,6 +3,7 @@ import settingsSource from '../Settings.tsx?raw';import settingsDialogsSource from '../SettingsDialogs.tsx?raw';import settingsPageShellSource from '../SettingsPageShell.tsx?raw';import settingsHeaderMetaSource from '../settingsHeaderMeta.ts?raw';+import settingsNavCatalogSource from '../settingsNavCatalog.ts?raw';import settingsNavigationHookSource from '../useSettingsNavigation.ts?raw';import settingsPanelRegistryContextSource from '../settingsPanelRegistryContext.tsx?raw';import infrastructureWorkspaceSource from '../InfrastructureWorkspace.tsx?raw';@@ -19,6 +20,7 @@ import vmwareCredentialSlotSource from '../ConnectionEditor/CredentialSlots/VMwaimport diagnosticsResultsPanelSource from '../DiagnosticsResultsPanel.tsx?raw';import diagnosticsModelSource from '../diagnosticsModel.ts?raw';import infrastructureOnboardingPresentationSource from '../../../utils/infrastructureOnboardingPresentation.ts?raw';+import selfHostedBillingPresentationSource from '../selfHostedBillingPresentation.ts?raw';describe('settings architecture guardrails', () => {it('keeps Settings on the canonical page shell boundary', () => {@@ -87,6 +89,26 @@ describe('settings architecture guardrails', () => {expect(settingsPanelRegistryContextSource).toContain('getOrganizationSharingPanelProps');});+ it('keeps self-hosted commercial settings plan-owned under one shared presentation model', () => {+ expect(selfHostedBillingPresentationSource).toContain("navLabel: 'Plans'");+ expect(selfHostedBillingPresentationSource).toContain("shellTitle: 'Plans & Activation'");+ expect(selfHostedBillingPresentationSource).toContain(+ "shellDescription:\n 'Review your current self-hosted plan, activation status, and unlocked capabilities.'",+ );+ expect(selfHostedBillingPresentationSource).toContain("planSectionTitle: 'Current plan'");+ expect(selfHostedBillingPresentationSource).toContain("recoverySectionTitle: 'Activation & Recovery'");++ expect(settingsNavCatalogSource).toContain(+ 'label: SELF_HOSTED_PRO_BILLING_PRESENTATION.navLabel',+ );+ expect(settingsHeaderMetaSource).toContain(+ 'title: SELF_HOSTED_PRO_BILLING_PRESENTATION.shellTitle',+ );+ expect(settingsHeaderMetaSource).toContain(+ 'description: SELF_HOSTED_PRO_BILLING_PRESENTATION.shellDescription',+ );+ });+it('keeps infrastructure on a source-manager landing with route-backed dialogs', () => {expect(infrastructureWorkspaceSource).toContain("import { ConnectionEditor } from './ConnectionEditor/ConnectionEditor';",diff --git a/frontend-modern/src/components/Settings/selfHostedBillingPresentation.ts b/frontend-modern/src/components/Settings/selfHostedBillingPresentation.tsindex 75dcd0ffd8..1ef162bb9e 100644--- a/frontend-modern/src/components/Settings/selfHostedBillingPresentation.ts+++ b/frontend-modern/src/components/Settings/selfHostedBillingPresentation.ts@@ -1,4 +1,5 @@export interface SelfHostedProBillingPresentation {+ navLabel: string;shellTitle: string;shellDescription: string;infrastructureRouteReferral: string;@@ -33,19 +34,20 @@ export interface SelfHostedProBillingPresentation {}export const SELF_HOSTED_PRO_BILLING_PRESENTATION: SelfHostedProBillingPresentation = {- shellTitle: 'Pulse Pro',+ navLabel: 'Plans',+ shellTitle: 'Plans & Activation',shellDescription:- 'Manage self-hosted plans, activation, and how Pulse helps when something breaks.',- infrastructureRouteReferral: 'Billing and self-hosted plan changes live in Pulse Pro.',+ 'Review your current self-hosted plan, activation status, and unlocked capabilities.',+ infrastructureRouteReferral: 'Billing and self-hosted plan changes live in Plans.',infrastructureWorkspaceReferral:- 'Billing, self-hosted plan changes, and activation status live in Pulse Pro, not here.',- sectionSelectorAriaLabel: 'Pulse Pro billing section',+ 'Billing, self-hosted plan changes, activation status, and unlocked capabilities live in Plans, not here.',+ sectionSelectorAriaLabel: 'Self-hosted plans section',refreshLabel: 'Refresh',planTabLabel: 'Plan',usageTabLabel: 'Usage',- planSectionTitle: 'Plan',+ planSectionTitle: 'Current plan',planSectionDescription:- 'Review your active plan, expiry, and whether this instance only monitors, reaches anywhere, or also helps investigate and fix issues.',+ 'See which self-hosted tier this instance unlocked, what capabilities are active, and how plan status or continuity affects this install.',usageSectionTitle: 'Usage',hiddenShellTitle: 'Demo mode',hiddenShellDescription: 'Commercial settings are hidden for this session.',@@ -69,7 +71,7 @@ export const SELF_HOSTED_PRO_BILLING_PRESENTATION: SelfHostedProBillingPresentat'Start a 14-day Pro trial for root-cause analysis, safe auto-fix, and 90-day incident history on this organization.',trialStartIdleActionLabel: 'Start 14-day Pro Trial',trialStartPendingActionLabel: 'Starting...',- recoverySectionTitle: 'Recovery',+ recoverySectionTitle: 'Activation & Recovery',recoverySectionDescription:- 'Use recovery tools only when you already have an activation key or need to remove a local key from this instance.',+ 'Activate a purchased key, recover a previous self-hosted purchase, or clear a local key from this instance.',};diff --git a/frontend-modern/src/components/Settings/settingsNavCatalog.ts b/frontend-modern/src/components/Settings/settingsNavCatalog.tsindex 6bda76d61a..fa81808c30 100644--- a/frontend-modern/src/components/Settings/settingsNavCatalog.ts+++ b/frontend-modern/src/components/Settings/settingsNavCatalog.ts@@ -134,7 +134,7 @@ export const SETTINGS_NAV_GROUPS: SettingsNavGroup[] = [},{id: 'system-billing',- label: SELF_HOSTED_PRO_BILLING_PRESENTATION.shellTitle,+ label: SELF_HOSTED_PRO_BILLING_PRESENTATION.navLabel,icon: PulseLogoIcon,hideWhenCommercialHidden: true,},diff --git a/frontend-modern/src/components/Settings/useProLicensePanelState.ts b/frontend-modern/src/components/Settings/useProLicensePanelState.tsindex 440505b3ad..99a6093620 100644--- a/frontend-modern/src/components/Settings/useProLicensePanelState.ts+++ b/frontend-modern/src/components/Settings/useProLicensePanelState.ts@@ -17,6 +17,7 @@ import {getLicenseFeatureLabel,getMonitoredSystemContinuityNotice,getPurchaseActivationNotice,+ getSelfHostedPlanLabel,getLicenseSubscriptionStatusPresentation,getLicenseTierLabel,getTrialActivationNotice,@@ -329,6 +330,11 @@ export function useProLicensePanelState() {if (!current) return 'Unknown';return getLicenseTierLabel(current.tier);});+ const currentPlanLabel = createMemo(() => {+ const current = entitlements();+ if (!current) return 'Unknown';+ return getSelfHostedPlanLabel(current.tier);+ });const formattedPlanTerms = createMemo(() =>formatLicensePlanVersion(entitlements()?.plan_version),@@ -564,6 +570,65 @@ export function useProLicensePanelState() {continuityCapturedAt: continuityCapturedAt(),}),);+ const currentPlanSummary = createMemo(() => {+ const status = statusPresentation();+ const unlockedFeatures = formattedFeatures();+ const current = entitlements();+ const planLabel = currentPlanLabel();+ const normalizedState = (subscriptionState() || '').trim().toLowerCase();++ if (!current) {+ return {+ title: 'Current plan: Unknown',+ body: 'Pulse is still loading the current self-hosted entitlement for this instance.',+ badgeClass: status.badgeClass,+ statusLabel: status.label,+ unlockedFeatures: [] as string[],+ };+ }++ if (normalizedState === 'trial') {+ return {+ title: `Current plan: ${planLabel} Trial`,+ body:+ unlockedFeatures.length > 0+ ? `${planLabel} trial capabilities are active on this instance right now.`+ : `${planLabel} trial activation is in progress on this instance.`,+ badgeClass: status.badgeClass,+ statusLabel: status.label,+ unlockedFeatures,+ };+ }++ if (unlockedFeatures.length > 0 && (normalizedState === 'active' || normalizedState === 'grace')) {+ return {+ title: `Current plan: ${planLabel}`,+ body: `${planLabel} is active on this instance. These capabilities are unlocked right now.`,+ badgeClass: status.badgeClass,+ statusLabel: status.label,+ unlockedFeatures,+ };+ }++ if ((current.tier || '').trim().toLowerCase() === 'free') {+ return {+ title: 'Current plan: Community',+ body:+ 'Community keeps self-hosted core monitoring free on this instance. Upgrade only when you want Relay or Pro capabilities.',+ badgeClass: status.badgeClass,+ statusLabel: status.label,+ unlockedFeatures: [] as string[],+ };+ }++ return {+ title: `Current plan: ${planLabel}`,+ body: 'Review the plan details below to confirm what this key unlocks on this instance.',+ badgeClass: status.badgeClass,+ statusLabel: status.label,+ unlockedFeatures,+ };+ });const handleActivate = async () => {const trimmedKey = licenseKey().trim();@@ -620,6 +685,7 @@ export function useProLicensePanelState() {clearing,commercialMigrationNotice,commercialPlanModel,+ currentPlanSummary,monitoredSystemCapacity,monitoredSystemCapacitySection,monitoredSystemContinuityNotice,diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.tsindex b7ecd5bdcf..0420ec9c3b 100644--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts@@ -11,6 +11,7 @@ import {getLicenseFeatureLabel,getLicenseStatusLoadingState,getLicenseSubscriptionStatusPresentation,+ getSelfHostedPlanLabel,getLicenseTierLabel,getMonitoredSystemContinuityNotice,getNoActiveProLicenseState,@@ -32,6 +33,8 @@ describe('licensePresentation', () => {expect(getLicenseTierLabel('pro_plus')).toBe('Pro+');expect(getLicenseTierLabel('enterprise')).toBe('Enterprise');expect(getLicenseTierLabel('custom_tier')).toBe('Custom Tier');+ expect(getSelfHostedPlanLabel('pro')).toBe('Pulse Pro');+ expect(getSelfHostedPlanLabel('relay')).toBe('Relay');});it('returns canonical license loading and inactive copy', () => {@@ -63,19 +66,20 @@ describe('licensePresentation', () => {},});expect(SELF_HOSTED_PRO_BILLING_PRESENTATION).toEqual({- shellTitle: 'Pulse Pro',+ navLabel: 'Plans',+ shellTitle: 'Plans & Activation',shellDescription:- 'Manage self-hosted plans, activation, and how Pulse helps when something breaks.',- infrastructureRouteReferral: 'Billing and self-hosted plan changes live in Pulse Pro.',+ 'Review your current self-hosted plan, activation status, and unlocked capabilities.',+ infrastructureRouteReferral: 'Billing and self-hosted plan changes live in Plans.',infrastructureWorkspaceReferral:- 'Billing, self-hosted plan changes, and activation status live in Pulse Pro, not here.',- sectionSelectorAriaLabel: 'Pulse Pro billing section',+ 'Billing, self-hosted plan changes, activation status, and unlocked capabilities live in Plans, not here.',+ sectionSelectorAriaLabel: 'Self-hosted plans section',refreshLabel: 'Refresh',planTabLabel: 'Plan',usageTabLabel: 'Usage',- planSectionTitle: 'Plan',+ planSectionTitle: 'Current plan',planSectionDescription:- 'Review your active plan, expiry, and whether this instance only monitors, reaches anywhere, or also helps investigate and fix issues.',+ 'See which self-hosted tier this instance unlocked, what capabilities are active, and how plan status or continuity affects this install.',usageSectionTitle: 'Usage',hiddenShellTitle: 'Demo mode',hiddenShellDescription: 'Commercial settings are hidden for this session.',@@ -99,9 +103,9 @@ describe('licensePresentation', () => {'Start a 14-day Pro trial for root-cause analysis, safe auto-fix, and 90-day incident history on this organization.',trialStartIdleActionLabel: 'Start 14-day Pro Trial',trialStartPendingActionLabel: 'Starting...',- recoverySectionTitle: 'Recovery',+ recoverySectionTitle: 'Activation & Recovery',recoverySectionDescription:- 'Use recovery tools only when you already have an activation key or need to remove a local key from this instance.',+ 'Activate a purchased key, recover a previous self-hosted purchase, or clear a local key from this instance.',});});@@ -295,7 +299,7 @@ describe('licensePresentation', () => {});expect(getTrialActivationNotice('invalid')).toMatchObject({title: 'Activation link invalid',- body: expect.stringContaining('Return to Pulse Pro'),+ body: expect.stringContaining('Return to Plans'),});expect(getTrialActivationNotice('unavailable')).toMatchObject({title: 'Activation unavailable',diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.tsindex 9314322c58..da56bed62f 100644--- a/frontend-modern/src/utils/licensePresentation.ts+++ b/frontend-modern/src/utils/licensePresentation.ts@@ -27,6 +27,10 @@ const TIER_LABELS: Record<string, string> = {enterprise: 'Enterprise',};+const SELF_HOSTED_PLAN_LABELS: Record<string, string> = {+ pro: 'Pulse Pro',+};+const FEATURE_LABELS: Record<string, string> = {ai_patrol: 'Pulse Patrol',ai_alerts: 'Pulse Alert Analysis',@@ -131,6 +135,12 @@ export const getLicenseTierLabel = (tier?: string | null): string => {return TIER_LABELS[normalized] || titleCaseDelimitedLabel(normalized);};+export const getSelfHostedPlanLabel = (tier?: string | null): string => {+ const normalized = (tier || '').trim().toLowerCase();+ if (!normalized) return 'Unknown';+ return SELF_HOSTED_PLAN_LABELS[normalized] || getLicenseTierLabel(normalized);+};+export const getLicenseFeatureLabel = (feature?: string | null): string => {const normalized = (feature || '').trim().toLowerCase();if (!normalized) return 'Unknown';@@ -323,7 +333,7 @@ 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. Return to Pulse Pro on this instance and start a fresh secure trial handoff.',+ body: 'That activation handoff is invalid or expired. Return to Plans on this instance and start a fresh secure trial handoff.',};case 'replayed':return {diff --git a/internal/api/contract_test.go b/internal/api/contract_test.goindex cfc278b0af..6790e9c42a 100644--- a/internal/api/contract_test.go+++ b/internal/api/contract_test.go@@ -6925,6 +6925,71 @@ func TestContract_SelfHostedPurchaseHandoffUnavailableJSONSnapshot(t *testing.T)assertJSONSnapshot(t, got, want)}+func TestContract_SelfHostedPurchaseActivationBridgeCopyStaysPlanOwned(t *testing.T) {+ continueRec := httptest.NewRecorder()+ writeLicensePurchaseActivationContinuePage(+ continueRec,+ "session_contract",+ "token_contract",+ "self_hosted_plan",+ "portal_handoff_contract",+ )++ successRec := httptest.NewRecorder()+ writeLicensePurchaseActivationSuccessPage(successRec, "self_hosted_plan")++ failureRec := httptest.NewRecorder()+ writeLicensePurchaseActivationFailurePage(+ failureRec,+ http.StatusConflict,+ "self_hosted_plan",+ selfHostedBillingPurchaseExpired,+ "Reopen the upgrade flow from Plans in Pulse.",+ )++ got, err := json.MarshalIndent(struct {+ ContinueTitle bool `json:"continue_title"`+ ContinueAction bool `json:"continue_action"`+ ContinueLegacyBrand bool `json:"continue_legacy_brand"`+ SuccessTitle bool `json:"success_title"`+ SuccessReturnLabel bool `json:"success_return_label"`+ SuccessLegacyBrand bool `json:"success_legacy_brand"`+ FailureTitle bool `json:"failure_title"`+ FailureOpenLabel bool `json:"failure_open_label"`+ FailureGuidance bool `json:"failure_guidance"`+ FailureLegacyBrand bool `json:"failure_legacy_brand"`+ }{+ ContinueTitle: strings.Contains(continueRec.Body.String(), "Finalizing plan upgrade"),+ ContinueAction: strings.Contains(continueRec.Body.String(), "Continue to Plans"),+ ContinueLegacyBrand: strings.Contains(continueRec.Body.String(), "Pulse Pro"),+ SuccessTitle: strings.Contains(successRec.Body.String(), "Plan activated"),+ SuccessReturnLabel: strings.Contains(successRec.Body.String(), "Return to Plans"),+ SuccessLegacyBrand: strings.Contains(successRec.Body.String(), "Pulse Pro"),+ FailureTitle: strings.Contains(failureRec.Body.String(), "Plan activation needs attention"),+ FailureOpenLabel: strings.Contains(failureRec.Body.String(), "Open Plans"),+ FailureGuidance: strings.Contains(failureRec.Body.String(), "Reopen the upgrade flow from Plans in Pulse."),+ FailureLegacyBrand: strings.Contains(failureRec.Body.String(), "Pulse Pro"),+ }, "", "\t")+ if err != nil {+ t.Fatalf("marshal activation bridge snapshot: %v", err)+ }++ const want = `{+ "continue_title": true,+ "continue_action": true,+ "continue_legacy_brand": false,+ "success_title": true,+ "success_return_label": true,+ "success_legacy_brand": false,+ "failure_title": true,+ "failure_open_label": true,+ "failure_guidance": true,+ "failure_legacy_brand": false+ }`++ assertJSONSnapshot(t, got, want)+}+func TestContract_SelfHostedPurchaseHandoffRejectsInsecureNonLoopbackCallbackURL(t *testing.T) {handler := createTestHandler(t)diff --git a/internal/api/license_handlers_test.go b/internal/api/license_handlers_test.goindex b82d30bf3a..b541db2f63 100644--- a/internal/api/license_handlers_test.go+++ b/internal/api/license_handlers_test.go@@ -879,7 +879,7 @@ func TestHandleCheckoutActivation_GETRendersAutoSubmitBridge(t *testing.T) {t.Fatalf("status = %d, want %d (body=%q)", rec.Code, http.StatusOK, rec.Body.String())}body := rec.Body.String()- if !strings.Contains(body, "Finalizing Pulse Pro upgrade") {+ if !strings.Contains(body, "Finalizing plan upgrade") {t.Fatalf("body = %q, want activation bridge title", body)}if !strings.Contains(body, `method="POST" action="`+licensePurchaseActivationPath+`"`) {@@ -966,7 +966,7 @@ func TestHandleCheckoutActivation_RedeemsCompletedCheckoutAndWritesSuccessBridgeif rec.Code != http.StatusOK {t.Fatalf("status = %d, want %d (body=%q)", rec.Code, http.StatusOK, rec.Body.String())}- if !strings.Contains(rec.Body.String(), "Pulse Pro activated") {+ if !strings.Contains(rec.Body.String(), "Plan activated") {t.Fatalf("body = %q, want success bridge title", rec.Body.String())}if !strings.Contains(rec.Body.String(), "window.opener.location.assign") {@@ -1050,7 +1050,7 @@ func TestHandleCheckoutActivation_BlocksDuplicateRedemptionAfterSuccess(t *testiif second.Code != http.StatusConflict {t.Fatalf("second status = %d, want %d (body=%q)", second.Code, http.StatusConflict, second.Body.String())}- if !strings.Contains(second.Body.String(), "already returned to Pulse Pro") {+ if !strings.Contains(second.Body.String(), "already returned to Plans") {t.Fatalf("second body = %q, want duplicate redemption message", second.Body.String())}if activateCalls != 1 {@@ -1134,7 +1134,7 @@ func TestHandleCheckoutActivation_AllowsRetryAfterActivationFailure(t *testing.Tif second.Code != http.StatusOK {t.Fatalf("second status = %d, want %d (body=%q)", second.Code, http.StatusOK, second.Body.String())}- if !strings.Contains(second.Body.String(), "Pulse Pro activated") {+ if !strings.Contains(second.Body.String(), "Plan activated") {t.Fatalf("second body = %q, want activation success bridge", second.Body.String())}if activateCalls != 2 {diff --git a/internal/api/licensing_handlers.go b/internal/api/licensing_handlers.goindex f7b317e9c8..0397b141d1 100644--- a/internal/api/licensing_handlers.go+++ b/internal/api/licensing_handlers.go@@ -469,7 +469,7 @@ func writeLicensePurchaseActivationFailurePage(w.WriteHeader(statusCode)_, _ = fmt.Fprintf(w,- "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Pulse Pro activation</title></head><body><main style=\"max-width:32rem;margin:3rem auto;padding:0 1rem;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif\"><h1 style=\"margin-bottom:0.5rem\">Pulse Pro activation needs attention</h1><p id=\"purchase-return-status\" style=\"margin-bottom:1rem\">%s</p><p><a href=\"%s\">Open Pulse Pro billing</a></p></main><script>(function(){var redirectPath=%q;var statusEl=document.getElementById('purchase-return-status');var redirectedOriginalTab=false;try{if(window.opener&&!window.opener.closed){redirectedOriginalTab=true;window.opener.postMessage({type:'pulse-license-purchase-return',redirectPath:redirectPath,result:%q},window.location.origin);window.opener.location.assign(redirectPath);}}catch(_){redirectedOriginalTab=false;}if(redirectedOriginalTab){setTimeout(function(){try{window.close();}catch(_){ }if(statusEl){statusEl.textContent='Pulse Pro billing has been reopened in the original tab. You can close this window if it stays open.';}},75);return;}if(statusEl){statusEl.textContent='Returning to Pulse Pro billing.';}setTimeout(function(){window.location.replace(redirectPath);},150);}());</script></body></html>",+ "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Plan activation</title></head><body><main style=\"max-width:32rem;margin:3rem auto;padding:0 1rem;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif\"><h1 style=\"margin-bottom:0.5rem\">Plan activation needs attention</h1><p id=\"purchase-return-status\" style=\"margin-bottom:1rem\">%s</p><p><a href=\"%s\">Open Plans</a></p></main><script>(function(){var redirectPath=%q;var statusEl=document.getElementById('purchase-return-status');var redirectedOriginalTab=false;try{if(window.opener&&!window.opener.closed){redirectedOriginalTab=true;window.opener.postMessage({type:'pulse-license-purchase-return',redirectPath:redirectPath,result:%q},window.location.origin);window.opener.location.assign(redirectPath);}}catch(_){redirectedOriginalTab=false;}if(redirectedOriginalTab){setTimeout(function(){try{window.close();}catch(_){ }if(statusEl){statusEl.textContent='The Plans page has been reopened in the original tab. You can close this window if it stays open.';}},75);return;}if(statusEl){statusEl.textContent='Returning to Plans.';}setTimeout(function(){window.location.replace(redirectPath);},150);}());</script></body></html>",escapedMessage,escapedLink,redirectPath,@@ -496,7 +496,7 @@ func writeLicensePurchaseStartFailurePage(w.WriteHeader(statusCode)_, _ = fmt.Fprintf(w,- "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Pulse Account unavailable</title></head><body><main style=\"max-width:32rem;margin:3rem auto;padding:0 1rem;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif\"><h1 style=\"margin-bottom:0.5rem\">Pulse Account unavailable</h1><p id=\"purchase-start-status\" style=\"margin-bottom:1rem\">%s</p><p><a href=\"%s\">Return to Pulse Pro billing</a></p></main><script>(function(){var redirectPath=%q;var statusEl=document.getElementById('purchase-start-status');var redirectedOriginalTab=false;try{if(window.opener&&!window.opener.closed){redirectedOriginalTab=true;window.opener.postMessage({type:'pulse-license-purchase-start-unavailable',redirectPath:redirectPath,result:%q},window.location.origin);window.opener.location.assign(redirectPath);}}catch(_){redirectedOriginalTab=false;}if(redirectedOriginalTab){setTimeout(function(){try{window.close();}catch(_){ }if(statusEl){statusEl.textContent='Pulse Pro billing has been reopened in the original tab. You can close this window if it stays open.';}},75);return;}if(statusEl){statusEl.textContent='Returning to Pulse Pro billing.';}setTimeout(function(){window.location.replace(redirectPath);},150);}());</script></body></html>",+ "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Pulse Account unavailable</title></head><body><main style=\"max-width:32rem;margin:3rem auto;padding:0 1rem;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif\"><h1 style=\"margin-bottom:0.5rem\">Pulse Account unavailable</h1><p id=\"purchase-start-status\" style=\"margin-bottom:1rem\">%s</p><p><a href=\"%s\">Return to Plans</a></p></main><script>(function(){var redirectPath=%q;var statusEl=document.getElementById('purchase-start-status');var redirectedOriginalTab=false;try{if(window.opener&&!window.opener.closed){redirectedOriginalTab=true;window.opener.postMessage({type:'pulse-license-purchase-start-unavailable',redirectPath:redirectPath,result:%q},window.location.origin);window.opener.location.assign(redirectPath);}}catch(_){redirectedOriginalTab=false;}if(redirectedOriginalTab){setTimeout(function(){try{window.close();}catch(_){ }if(statusEl){statusEl.textContent='The Plans page has been reopened in the original tab. You can close this window if it stays open.';}},75);return;}if(statusEl){statusEl.textContent='Returning to Plans.';}setTimeout(function(){window.location.replace(redirectPath);},150);}());</script></body></html>",escapedMessage,escapedLink,redirectPath,@@ -511,7 +511,7 @@ func writeLicensePurchaseActivationSuccessPage(w http.ResponseWriter, feature stw.WriteHeader(http.StatusOK)_, _ = fmt.Fprintf(w,- "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Pulse Pro activated</title></head><body><main style=\"max-width:32rem;margin:3rem auto;padding:0 1rem;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif\"><h1 style=\"margin-bottom:0.5rem\">Pulse Pro activated</h1><p id=\"purchase-return-status\" style=\"margin-bottom:1rem\">Pulse is refreshing billing in the original tab.</p><p><a href=\"%s\">Return to Pulse Pro billing</a></p></main><script>(function(){var redirectPath=%q;var statusEl=document.getElementById('purchase-return-status');var redirectedOriginalTab=false;try{if(window.opener&&!window.opener.closed){redirectedOriginalTab=true;window.opener.postMessage({type:'pulse-license-purchase-activated',redirectPath:redirectPath},window.location.origin);window.opener.location.assign(redirectPath);}}catch(_){redirectedOriginalTab=false;}if(redirectedOriginalTab){setTimeout(function(){try{window.close();}catch(_){ }if(statusEl){statusEl.textContent='Pulse Pro is ready. You can close this tab if it stays open.';}},75);return;}if(statusEl){statusEl.textContent='Pulse Pro is ready. Returning to billing.';}setTimeout(function(){window.location.replace(redirectPath);},75);}());</script></body></html>",+ "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Plan activated</title></head><body><main style=\"max-width:32rem;margin:3rem auto;padding:0 1rem;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif\"><h1 style=\"margin-bottom:0.5rem\">Plan activated</h1><p id=\"purchase-return-status\" style=\"margin-bottom:1rem\">Pulse is refreshing Plans in the original tab.</p><p><a href=\"%s\">Return to Plans</a></p></main><script>(function(){var redirectPath=%q;var statusEl=document.getElementById('purchase-return-status');var redirectedOriginalTab=false;try{if(window.opener&&!window.opener.closed){redirectedOriginalTab=true;window.opener.postMessage({type:'pulse-license-purchase-activated',redirectPath:redirectPath},window.location.origin);window.opener.location.assign(redirectPath);}}catch(_){redirectedOriginalTab=false;}if(redirectedOriginalTab){setTimeout(function(){try{window.close();}catch(_){ }if(statusEl){statusEl.textContent='Your plan is ready. You can close this tab if it stays open.';}},75);return;}if(statusEl){statusEl.textContent='Your plan is ready. Returning to Plans.';}setTimeout(function(){window.location.replace(redirectPath);},75);}());</script></body></html>",escapedLink,redirectPath,)@@ -540,7 +540,7 @@ func writeLicensePurchaseActivationContinuePage(w.WriteHeader(http.StatusOK)_, _ = fmt.Fprintf(w,- "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Finalizing Pulse Pro upgrade</title></head><body><main style=\"max-width:32rem;margin:3rem auto;padding:0 1rem;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif\"><h1 style=\"margin-bottom:0.5rem\">Finalizing Pulse Pro upgrade</h1><p id=\"purchase-activation-continue-status\" style=\"margin-bottom:1rem\">Pulse is securely finalizing the completed checkout.</p><form id=\"purchase-activation-continue-form\" method=\"POST\" action=\"%s\"><input type=\"hidden\" name=\"%s\" value=\"%s\"><input type=\"hidden\" name=\"%s\" value=\"%s\">%s%s<button type=\"submit\">Continue to Pulse Pro</button></form></main><script>(function(){var form=document.getElementById('purchase-activation-continue-form');var statusEl=document.getElementById('purchase-activation-continue-status');if(statusEl){statusEl.textContent='Pulse is finishing the upgrade and returning you to billing.';}if(form&&typeof form.submit==='function'){setTimeout(function(){form.submit();},50);}}());</script></body></html>",+ "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Finalizing plan upgrade</title></head><body><main style=\"max-width:32rem;margin:3rem auto;padding:0 1rem;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif\"><h1 style=\"margin-bottom:0.5rem\">Finalizing plan upgrade</h1><p id=\"purchase-activation-continue-status\" style=\"margin-bottom:1rem\">Pulse is securely finalizing the completed checkout.</p><form id=\"purchase-activation-continue-form\" method=\"POST\" action=\"%s\"><input type=\"hidden\" name=\"%s\" value=\"%s\"><input type=\"hidden\" name=\"%s\" value=\"%s\">%s%s<button type=\"submit\">Continue to Plans</button></form></main><script>(function(){var form=document.getElementById('purchase-activation-continue-form');var statusEl=document.getElementById('purchase-activation-continue-status');if(statusEl){statusEl.textContent='Pulse is finishing the upgrade and returning you to Plans.';}if(form&&typeof form.submit==='function'){setTimeout(function(){form.submit();},50);}}());</script></body></html>",licensePurchaseActivationPath,licensePurchaseSessionIDField,escapedSessionID,@@ -1710,13 +1710,13 @@ func (h *LicenseHandlers) HandleCheckoutActivation(w http.ResponseWriter, r *httfeature := normalizeSelfHostedPurchaseFeature(r.URL.Query().Get("feature"))returnToken := strings.TrimSpace(r.URL.Query().Get(licensePurchaseReturnTokenField))if returnToken == "" || sessionID == "" {- writeLicensePurchaseActivationFailurePage(w, http.StatusBadRequest, feature, selfHostedBillingPurchaseExpired, "Purchase activation link expired or is missing required state. Reopen the upgrade flow from Pulse Pro billing.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusBadRequest, feature, selfHostedBillingPurchaseExpired, "Purchase activation link expired or is missing required state. Reopen the upgrade flow from Plans in Pulse.")return}claims, err := h.verifiedPurchaseReturnClaims(r, returnToken)if err != nil {log.Warn().Err(err).Msg("Purchase return token verification failed during GET bridge")- writeLicensePurchaseActivationFailurePage(w, http.StatusBadRequest, feature, selfHostedBillingPurchaseExpired, "Purchase activation link expired or is invalid. Reopen the upgrade flow from Pulse Pro billing.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusBadRequest, feature, selfHostedBillingPurchaseExpired, "Purchase activation link expired or is invalid. Reopen the upgrade flow from Plans in Pulse.")return}if claims != nil && strings.TrimSpace(claims.Feature) != "" {@@ -1739,14 +1739,14 @@ func (h *LicenseHandlers) HandleCheckoutActivation(w http.ResponseWriter, r *httfeature := normalizeSelfHostedPurchaseFeature(r.FormValue("feature"))returnToken := strings.TrimSpace(r.FormValue(licensePurchaseReturnTokenField))if returnToken == "" {- writeLicensePurchaseActivationFailurePage(w, http.StatusBadRequest, feature, selfHostedBillingPurchaseExpired, "Purchase activation link expired or is missing required state. Reopen the upgrade flow from Pulse Pro billing.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusBadRequest, feature, selfHostedBillingPurchaseExpired, "Purchase activation link expired or is missing required state. Reopen the upgrade flow from Plans in Pulse.")return}claims, err := h.verifiedPurchaseReturnClaims(r, returnToken)if err != nil {log.Warn().Err(err).Msg("Purchase return token verification failed")- writeLicensePurchaseActivationFailurePage(w, http.StatusBadRequest, feature, selfHostedBillingPurchaseExpired, "Purchase activation link expired or is invalid. Reopen the upgrade flow from Pulse Pro billing.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusBadRequest, feature, selfHostedBillingPurchaseExpired, "Purchase activation link expired or is invalid. Reopen the upgrade flow from Plans in Pulse.")return}if claims != nil && strings.TrimSpace(claims.Feature) != "" {@@ -1807,7 +1807,7 @@ func (h *LicenseHandlers) HandleCheckoutActivation(w http.ResponseWriter, r *httStr("expected_portal_handoff_id", portalHandoffID).Str("resolved_portal_handoff_id", resolvedPortalHandoffID).Msg("Rejected checkout activation due to portal handoff binding mismatch")- writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseExpired, "Purchase activation state did not match the completed upgrade flow. Reopen the upgrade flow from Pulse Pro billing.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseExpired, "Purchase activation state did not match the completed upgrade flow. Reopen the upgrade flow from Plans in Pulse.")return}} else {@@ -1817,7 +1817,7 @@ func (h *LicenseHandlers) HandleCheckoutActivation(w http.ResponseWriter, r *httlog.Warn().Str("checkout_session_id", sessionID).Msg("Rejected checkout activation without canonical portal handoff binding")- writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseExpired, "Purchase activation state did not match the completed upgrade flow. Reopen the upgrade flow from Pulse Pro billing.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseExpired, "Purchase activation state did not match the completed upgrade flow. Reopen the upgrade flow from Plans in Pulse.")return}if expectedPurchaseReturnJTI == "" || resolvedPurchaseReturnJTI == "" || expectedPurchaseReturnJTI != resolvedPurchaseReturnJTI {@@ -1826,7 +1826,7 @@ func (h *LicenseHandlers) HandleCheckoutActivation(w http.ResponseWriter, r *httStr("expected_purchase_return_jti", expectedPurchaseReturnJTI).Str("resolved_purchase_return_jti", resolvedPurchaseReturnJTI).Msg("Rejected checkout activation due to purchase return binding mismatch")- writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseExpired, "Purchase activation state did not match the completed upgrade flow. Reopen the upgrade flow from Pulse Pro billing.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseExpired, "Purchase activation state did not match the completed upgrade flow. Reopen the upgrade flow from Plans in Pulse.")return}@@ -1860,17 +1860,17 @@ func (h *LicenseHandlers) HandleCheckoutActivation(w http.ResponseWriter, r *htt}switch redemptionDecision {case purchaseReturnRedemptionDecisionAlreadyActivated:- writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseActivated, "This completed purchase was already returned to Pulse Pro. Reopen billing if you need to confirm the current entitlement.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseActivated, "This completed purchase was already returned to Plans. Reopen Plans if you need to confirm the current entitlement.")returncase purchaseReturnRedemptionDecisionInProgress:- writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseFailed, "Pulse is already finalizing this completed purchase. Reopen billing in a moment if this tab does not close automatically.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseFailed, "Pulse is already finalizing this completed purchase. Reopen Plans in a moment if this tab does not close automatically.")returncase purchaseReturnRedemptionDecisionConflict:log.Warn().Str("checkout_session_id", sessionID).Str("portal_handoff_id", portalHandoffID).Msg("Rejected checkout activation due to local redemption binding conflict")- writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseExpired, "Purchase activation state did not match the completed upgrade flow. Reopen the upgrade flow from Pulse Pro billing.")+ writeLicensePurchaseActivationFailurePage(w, http.StatusConflict, feature, selfHostedBillingPurchaseExpired, "Purchase activation state did not match the completed upgrade flow. Reopen the upgrade flow from Plans in Pulse.")return}recordFailure := func(reason string, activationErr error) {diff --git a/internal/cloudcp/portal/frontend/dev.mjs b/internal/cloudcp/portal/frontend/dev.mjsindex 1666462bda..d682c7e347 100644--- a/internal/cloudcp/portal/frontend/dev.mjs+++ b/internal/cloudcp/portal/frontend/dev.mjs@@ -624,11 +624,11 @@ function routeCommercialAPI(request, response, url, scenario) {readJSONBody(request).then(function(body) {const portalHandoffID = String(body.portal_handoff_id || '').trim();if (portalHandoffID === 'cph_preview_completed') {- sendJSON(response, 409, { error: 'This secure upgrade handoff already completed. Return to Pulse Pro billing to review the live plan state.' });+ sendJSON(response, 409, { error: 'This secure upgrade handoff already completed. Return to the Plans page in Pulse to review the live plan state.' });return;}if (portalHandoffID !== 'cph_preview_upgrade') {- sendJSON(response, 400, { error: 'Pulse Account could not verify the secure Pulse Pro upgrade handoff.' });+ sendJSON(response, 400, { error: 'Pulse Account could not verify the secure plan upgrade handoff.' });return;}const successURL = String(body.success_url || '').replace('{CHECKOUT_SESSION_ID}', 'cs_preview_success');diff --git a/internal/cloudcp/portal/frontend/src/billing.ts b/internal/cloudcp/portal/frontend/src/billing.tsindex b56bb50e0e..44df6735c5 100644--- a/internal/cloudcp/portal/frontend/src/billing.ts+++ b/internal/cloudcp/portal/frontend/src/billing.ts@@ -213,7 +213,7 @@ export function installBillingRuntime(deps: BillingRuntimeDeps): void {failQueryState(nextBillingState.upgradePortalHandoff,null,- err instanceof Error ? err.message : 'Failed to verify the secure Pulse Pro upgrade handoff.',+ err instanceof Error ? err.message : 'Failed to verify the secure plan upgrade handoff.',);});}@@ -230,7 +230,7 @@ export function installBillingRuntime(deps: BillingRuntimeDeps): void {updateBillingState(function(nextBillingState) {failMutationState(nextBillingState.upgradeCheckout,- 'Pulse Account could not verify the secure upgrade handoff. Reopen the upgrade flow from Pulse Pro billing.',+ 'Pulse Account could not verify the secure upgrade handoff. Reopen the upgrade flow from the Plans page in Pulse.',);});return;@@ -239,7 +239,7 @@ export function installBillingRuntime(deps: BillingRuntimeDeps): void {updateBillingState(function(nextBillingState) {failMutationState(nextBillingState.upgradeCheckout,- 'This secure upgrade handoff already completed. Return to Pulse Pro billing to review the live plan state.',+ 'This secure upgrade handoff already completed. Return to the Plans page in Pulse to review the live plan state.',);});return;diff --git a/internal/cloudcp/portal/frontend/src/billing_view.test.ts b/internal/cloudcp/portal/frontend/src/billing_view.test.tsindex 61e4ca3c55..986470d1c5 100644--- a/internal/cloudcp/portal/frontend/src/billing_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/billing_view.test.ts@@ -267,28 +267,28 @@ describe('services view', function() {expect(document.getElementById('upgrade-billing-root')?.innerHTML).toContain('Buy Annual');expect(document.getElementById('upgrade-billing-root')?.innerHTML).toContain(- 'Pulse Account will return completed checkout directly to Pulse Pro billing.',+ 'Pulse Account will return completed checkout directly to the Plans page in Pulse.',);expect(document.getElementById('upgrade-billing-root')?.innerHTML).toContain(- 'Pulse Account keeps checkout tied to the Pulse instance that opened it, so completed Relay or Pro purchases return to the right billing surface automatically.',+ 'Pulse Account keeps checkout tied to the Pulse instance that opened it, so completed Relay or Pro purchases return to the right Plans page automatically.',);expect(document.getElementById('upgrade-billing-root')?.innerHTML).toContain('Community keeps monitoring free. Relay gets Pulse securely from anywhere. Pro adds root-cause analysis, safe remediation, and 90-day incident history.',);- expect(document.getElementById('upgrade-billing-root')?.innerHTML).not.toContain('Activate in Pulse Pro');+ expect(document.getElementById('upgrade-billing-root')?.innerHTML).not.toContain('Continue to Plans');expect(document.getElementById('upgrade-billing-root')?.innerHTML).not.toContain('ppk_live_preview');expect((document.querySelector('[data-account-billing-action="upgrade-start-checkout"]') as HTMLButtonElement).disabled,).toBe(false);});- it('renders a blocked checkout state until the Pulse Pro handoff is verified', function() {+ it('renders a blocked checkout state until the plan handoff is verified', function() {document.body.innerHTML = '<div id="upgrade-billing-root"></div>';var billingState = createPortalBillingState();billingState.upgradePortalHandoffID = 'cph_signed';billingState.upgradePortalHandoff.status = 'error';- billingState.upgradePortalHandoff.error = 'Pulse Account could not verify the secure upgrade handoff.';+ billingState.upgradePortalHandoff.error = 'Pulse Account could not verify the secure plan upgrade handoff.';billingState.upgradePricing.status = 'ready';billingState.upgradePricing.data = {title: 'Pricing',@@ -318,7 +318,7 @@ describe('services view', function() {renderUpgradePanel(billingState, createBootstrap());expect(document.getElementById('upgrade-billing-root')?.innerHTML).toContain(- 'Pulse Account could not verify the secure upgrade handoff.',+ 'Pulse Account could not verify the secure plan upgrade handoff.',);expect((document.querySelector('[data-account-billing-action="upgrade-start-checkout"]') as HTMLButtonElement).disabled,@@ -365,7 +365,7 @@ describe('services view', function() {renderUpgradePanel(billingState, createBootstrap());expect(document.getElementById('upgrade-billing-root')?.innerHTML).toContain(- 'This secure upgrade handoff already completed. Return to Pulse Pro billing to review the live plan state.',+ 'This secure upgrade handoff already completed. Return to the Plans page in Pulse to review the live plan state.',);expect((document.querySelector('[data-account-billing-action="upgrade-start-checkout"]') as HTMLButtonElement).disabled,@@ -405,7 +405,7 @@ describe('services view', function() {renderUpgradePanel(billingState, createBootstrap());expect(document.getElementById('upgrade-billing-root')?.innerHTML).toContain(- 'Open this upgrade from Pulse Pro billing so Pulse Account can verify the secure upgrade handoff before checkout.',+ 'Open this upgrade from the Plans page in Pulse so Pulse Account can verify the secure plan upgrade handoff before checkout.',);expect((document.querySelector('[data-account-billing-action="upgrade-start-checkout"]') as HTMLButtonElement).disabled,diff --git a/internal/cloudcp/portal/frontend/src/billing_view.ts b/internal/cloudcp/portal/frontend/src/billing_view.tsindex 17d24c3c4f..81387afc46 100644--- a/internal/cloudcp/portal/frontend/src/billing_view.ts+++ b/internal/cloudcp/portal/frontend/src/billing_view.ts@@ -159,19 +159,19 @@ export function renderUpgradePanel(billingState: PortalBillingState, _bootstrap:}if (!portalHandoffID) {summaryItems.push(- '<div class="billing-status visible error">Open this upgrade from Pulse Pro billing so Pulse Account can verify the secure upgrade handoff before checkout.</div>',+ '<div class="billing-status visible error">Open this upgrade from the Plans page in Pulse so Pulse Account can verify the secure plan upgrade handoff before checkout.</div>',);} else if (handoffState.status === 'loading') {- summaryItems.push('<div class="billing-status visible">Verifying the secure Pulse Pro upgrade handoff...</div>');+ summaryItems.push('<div class="billing-status visible">Verifying the secure plan upgrade handoff...</div>');} else if (handoffState.status === 'error') {- summaryItems.push('<div class="billing-status visible error">' + escapeText(handoffState.error || 'Failed to verify the secure Pulse Pro upgrade handoff.') + '</div>');+ summaryItems.push('<div class="billing-status visible error">' + escapeText(handoffState.error || 'Failed to verify the secure plan upgrade handoff.') + '</div>');} else if (handoffState.status === 'ready') {if (handoffLifecycle === 'completed') {- summaryItems.push('<div class="billing-status visible success">This secure upgrade handoff already completed. Return to Pulse Pro billing to review the live plan state.</div>');+ summaryItems.push('<div class="billing-status visible success">This secure upgrade handoff already completed. Return to the Plans page in Pulse to review the live plan state.</div>');} else if (handoffLifecycle === 'checkout_started') {summaryItems.push('<div class="billing-status visible">Secure checkout is already prepared for this upgrade. Continue below if you still need to reopen it.</div>');} else {- summaryItems.push('<div class="billing-status visible success">Pulse Account will return completed checkout directly to Pulse Pro billing.</div>');+ summaryItems.push('<div class="billing-status visible success">Pulse Account will return completed checkout directly to the Plans page in Pulse.</div>');}}if (pricingState.status === 'loading' && !pricingState.data) {@@ -196,8 +196,8 @@ export function renderUpgradePanel(billingState: PortalBillingState, _bootstrap:: '') +'<div class="helper-text">' +((featureKey === 'self_hosted_plan' || featureKey === 'max_monitored_systems')- ? 'Pulse Account keeps checkout tied to the Pulse instance that opened it, so completed Relay or Pro purchases return to the right billing surface automatically.'- : 'Pulse Account compares self-hosted tiers and sends completed checkout straight back to Pulse Pro billing.') ++ ? 'Pulse Account keeps checkout tied to the Pulse instance that opened it, so completed Relay or Pro purchases return to the right Plans page automatically.'+ : 'Pulse Account compares self-hosted tiers and sends completed checkout straight back to the Plans page in Pulse.') +'</div>' +'</div>';}diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.tsindex 978e76ab20..ec5f89ff0f 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -681,9 +681,9 @@ describe('shell view', function() {expect(html).toContain('Plan comparison');expect(html).toContain('id="upgrade-billing-root"');expect(html).toContain(- 'Choose the self-hosted tier that fits how you run Pulse: Community monitors, Relay reaches anywhere, and Pro investigates and helps fix issues. Pulse Account will send completed checkout directly back to Pulse Pro billing.',+ 'Choose the self-hosted tier that fits how you run Pulse: Community monitors, Relay reaches anywhere, and Pro investigates and helps fix issues. Pulse Account will send completed checkout directly back to the Plans page in Pulse.',);- expect(html).toContain('Pulse Account owns self-hosted plan selection and checkout for Pulse Pro upgrades.');+ expect(html).toContain('Pulse Account owns self-hosted plan selection and checkout for self-hosted upgrades.');expect(html).not.toContain('id="open-manage-billing"');expect(html).not.toContain('id="open-retrieve-billing"');});diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.tsindex 593e1cd5c3..ae1dcace5a 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -157,7 +157,7 @@ function selfHostedUpgradeActionDescription(featureKey: string): string {function selfHostedUpgradeActionHighlights(featureKey: string): string[] {return isSelfHostedPlanUpgrade(featureKey)- ? ['Plan comparison', 'Pulse Pro checkout']+ ? ['Plan comparison', 'Plan checkout']: ['Plan comparison', 'Checkout handoff'];}@@ -177,11 +177,11 @@ function renderSelfHostedUpgradeActionRow(context: ShellViewContext): string {function renderSelfHostedUpgradeBillingPanel(context: ShellViewContext): string {var featureKey = normalizeUpgradeFeatureKey(context.billingState.upgradeFeatureKey);var helperCopy = isSelfHostedPlanUpgrade(featureKey)- ? 'Choose the self-hosted tier that fits how you run Pulse: Community monitors, Relay reaches anywhere, and Pro investigates and helps fix issues. Pulse Account will send completed checkout directly back to Pulse Pro billing.'- : 'Choose the self-hosted tier that fits this upgrade. Pulse Account will send completed checkout directly back to Pulse Pro billing.';+ ? 'Choose the self-hosted tier that fits how you run Pulse: Community monitors, Relay reaches anywhere, and Pro investigates and helps fix issues. Pulse Account will send completed checkout directly back to the Plans page in Pulse.'+ : 'Choose the self-hosted tier that fits this upgrade. Pulse Account will send completed checkout directly back to the Plans page in Pulse.';return renderBillingTaskPanel(selfHostedUpgradeActionTitle(featureKey),- 'Pulse Account owns self-hosted plan selection and checkout for Pulse Pro upgrades.',+ 'Pulse Account owns self-hosted plan selection and checkout for self-hosted upgrades.','upgrade-billing-panel','<div id="upgrade-billing-root"></div>' +'<div class="helper-text">' + escapeHTML(helperCopy) + '</div>',diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex b1b3918f5f..c28cfcebf3 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -3648,7 +3648,7 @@ class SubsystemLookupTest(unittest.TestCase):{"heading": "## Shared Boundaries","path": "internal/api/access_control_handlers.go",- "line": 117,+ "line": 125,"heading_line": 86,}],@@ -4556,6 +4556,7 @@ class SubsystemLookupTest(unittest.TestCase):"cloud-msp-price-id-propagation","cloud-msp-stripe-prices","legacy-grandfathering-eligibility-cutoff",+ "self-hosted-plans-surface-entitlement-first","self-hosted-core-monitoring-free","self-hosted-paid-extras-packaging","stable-release-promotion-model",diff --git a/tests/integration/tests/07-trial-signup-return.spec.ts b/tests/integration/tests/07-trial-signup-return.spec.tsindex 654588ee14..8e75ae450a 100644--- a/tests/integration/tests/07-trial-signup-return.spec.ts+++ b/tests/integration/tests/07-trial-signup-return.spec.ts@@ -84,7 +84,7 @@ test.describe.serial('Trial signup return flow', () => {// Verify UI still reflects the unactivated local state.await page.goto('/settings');await page.getByRole('button', { name: /pulse pro/i }).first().click();- await expect(page.getByRole('heading', { name: 'Pulse Pro' }).first()).toBeVisible();+ await expect(page.getByRole('heading', { name: 'Plans & Activation' }).first()).toBeVisible();await expect(page.getByText(/No Pro license is active/i)).toBeVisible();// Verify duplicate initiation stays on the owned retry-burst contract.diff --git a/tests/integration/tests/10-v6-license-activation.spec.ts b/tests/integration/tests/10-v6-license-activation.spec.tsindex 65fe9fc81a..76d7daa421 100644--- a/tests/integration/tests/10-v6-license-activation.spec.ts+++ b/tests/integration/tests/10-v6-license-activation.spec.ts@@ -154,8 +154,8 @@ test.describe.serial('V6 license activation flow', () => {await ensureAuthenticated(page);await page.goto('/settings/system/billing');- await expect(page.getByRole('heading', { name: 'Pulse Pro' }).first()).toBeVisible();- await expect(page.getByRole('heading', { name: 'Activation' })).toBeVisible();+ await expect(page.getByRole('heading', { name: 'Plans & Activation' }).first()).toBeVisible();+ await expect(page.getByRole('heading', { name: 'Activation & Recovery' })).toBeVisible();// Fill in the activation key.const textarea = page.locator('#pulse-pro-license-key');@@ -184,8 +184,9 @@ test.describe.serial('V6 license activation flow', () => {await ensureAuthenticated(page);await page.goto('/settings/system/billing');- await expect(page.getByRole('heading', { name: 'Pulse Pro' }).first()).toBeVisible();- await expect(page.getByRole('heading', { name: 'Plan' })).toBeVisible();+ await expect(page.getByRole('heading', { name: 'Plans & Activation' }).first()).toBeVisible();+ await expect(page.getByRole('heading', { name: 'Current plan' })).toBeVisible();+ await expect(page.getByText('Current plan: Pulse Pro')).toBeVisible();await expect(page.getByText(/^Active$/).first()).toBeVisible({ timeout: 10_000 });await expect(page.getByText('No Pro license is active.')).toHaveCount(0);await expect(page.getByText('Unlimited').first()).toBeVisible();@@ -288,8 +289,8 @@ test.describe.serial('V6 license activation flow', () => {await ensureAuthenticated(page);await page.goto('/settings/system/billing');- await expect(page.getByRole('heading', { name: 'Pulse Pro' }).first()).toBeVisible();- await expect(page.getByRole('heading', { name: 'Activation' })).toBeVisible();+ await expect(page.getByRole('heading', { name: 'Plans & Activation' }).first()).toBeVisible();+ await expect(page.getByRole('heading', { name: 'Activation & Recovery' })).toBeVisible();// Set up one-shot dialog handler for the native confirm() prompt.page.once('dialog', (dialog) => dialog.accept());diff --git a/tests/integration/tests/53-demo-mode-commercial-boundary.spec.ts b/tests/integration/tests/53-demo-mode-commercial-boundary.spec.tsindex 9c2b3a0450..f7e8bd38a8 100644--- a/tests/integration/tests/53-demo-mode-commercial-boundary.spec.ts+++ b/tests/integration/tests/53-demo-mode-commercial-boundary.spec.ts@@ -329,7 +329,7 @@ base.describe('Demo mode commercial boundary', () => {await expect(page.getByText('Default Organization', { exact: true })).toHaveCount(0);await expect(settingsNavigation.getByText('Organization', { exact: true })).toHaveCount(0);await expect(- settingsNavigation.getByText('Pulse Pro', { exact: true }),+ settingsNavigation.getByText('Plans', { exact: true }),).toHaveCount(0);await expect(page.getByText('Pro Trial:', { exact: false })).toHaveCount(0);await expect(page.getByText('Monitored systems: 16/5', { exact: true })).toHaveCount(0);@@ -451,7 +451,7 @@ base.describe('Managed demo runtime commercial boundary', () => {await expect(settingsNavigation).toBeVisible();await expect(page.getByText('Default Organization', { exact: true })).toHaveCount(0);await expect(settingsNavigation.getByText('Organization', { exact: true })).toHaveCount(0);- await expect(settingsNavigation.getByText('Pulse Pro', { exact: true })).toHaveCount(0);+ await expect(settingsNavigation.getByText('Plans', { exact: true })).toHaveCount(0);await expect(page.getByText('Pro Trial:', { exact: false })).toHaveCount(0);await expect(page.getByText(/Monitored systems:\s*\d+\/\d+/)).toHaveCount(0);await expect(diff --git a/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts b/tests/integration/tests/55-self-hosted-upgrade-return.spec.tsindex a06c3e5825..219df2e33f 100644--- a/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts+++ b/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts@@ -157,7 +157,7 @@ function renderActivationBridgePage(options: {portalHandoffID = PORTAL_HANDOFF_ID,feature = MONITORED_SYSTEM_FEATURE,purchaseReturnToken = PURCHASE_RETURN_TOKEN,- title = "Finalizing Pulse Pro upgrade",+ title = "Finalizing plan upgrade",} = options;return ("<!doctype html><html><body>" +@@ -187,7 +187,7 @@ function renderPurchaseStartFailurePage(message: string, redirectUrl: string): s"<!doctype html><html><body>" +"<h1>Pulse Account unavailable</h1>" +`<p id="purchase-start-status">${message}</p>` +- `<script>(function(){var redirectPath=${JSON.stringify(redirectUrl)};var statusEl=document.getElementById('purchase-start-status');var redirectedOriginalTab=false;try{if(window.opener&&!window.opener.closed){redirectedOriginalTab=true;window.opener.location.assign(redirectPath);}}catch(_){redirectedOriginalTab=false;}if(redirectedOriginalTab){setTimeout(function(){try{window.close();}catch(_){ }if(statusEl){statusEl.textContent='Pulse Pro billing has been reopened in the original tab. You can close this window if it stays open.';}},75);return;}if(statusEl){statusEl.textContent='Returning to Pulse Pro billing.';}setTimeout(function(){window.location.replace(redirectPath);},150);}());</script>` ++ `<script>(function(){var redirectPath=${JSON.stringify(redirectUrl)};var statusEl=document.getElementById('purchase-start-status');var redirectedOriginalTab=false;try{if(window.opener&&!window.opener.closed){redirectedOriginalTab=true;window.opener.location.assign(redirectPath);}}catch(_){redirectedOriginalTab=false;}if(redirectedOriginalTab){setTimeout(function(){try{window.close();}catch(_){ }if(statusEl){statusEl.textContent='The Plans page has been reopened in the original tab. You can close this window if it stays open.';}},75);return;}if(statusEl){statusEl.textContent='Returning to Plans.';}setTimeout(function(){window.location.replace(redirectPath);},150);}());</script>` +"</body></html>");}@@ -382,11 +382,11 @@ test.describe("Self-hosted upgrade return flow", () => {purchaseStartURL = requestUrl.toString();});await configurePortalRedirectRoute(context, {- body: "Checkout complete. Returning to Pulse Pro.",+ body: "Checkout complete. Returning to Plans.",redirectUrl: buildPurchaseReturnUrl(),});await configurePurchaseReturnRoute(context, {- completionTitle: "Pulse Pro activated",+ completionTitle: "Plan activated",finalRedirectUrl: ACTIVATED_BILLING_URL,});@@ -409,10 +409,10 @@ test.describe("Self-hosted upgrade return flow", () => {page.getByRole("heading", { name: "Pulse Account" }),).toBeVisible();await expect(- page.getByText("Checkout complete. Returning to Pulse Pro."),+ page.getByText("Checkout complete. Returning to Plans."),).toBeVisible();await expect(- page.getByRole("button", { name: "Activate in Pulse Pro" }),+ page.getByRole("button", { name: "Continue to Plans" }),).toHaveCount(0);await expect(page).toHaveURL(FINAL_BILLING_URL);await expect(@@ -436,7 +436,7 @@ test.describe("Self-hosted upgrade return flow", () => {await configurePurchaseStartRoute(context);await configurePortalRedirectRoute(context, {- body: "Checkout cancelled. Returning to Pulse Pro.",+ body: "Checkout cancelled. Returning to Plans.",redirectUrl: CANCELLED_BILLING_URL,});@@ -468,11 +468,11 @@ test.describe("Self-hosted upgrade return flow", () => {await configurePurchaseStartRoute(context);await configurePortalRedirectRoute(context, {- body: "Checkout complete. Returning to Pulse Pro.",+ body: "Checkout complete. Returning to Plans.",redirectUrl: buildPurchaseReturnUrl(),});await configurePurchaseReturnRoute(context, {- bridgeTitle: "Confirming Pulse Pro activation state",+ bridgeTitle: "Confirming plan activation state",completionTitle: "Purchase activation already completed",finalRedirectUrl: ACTIVATED_BILLING_URL,});@@ -505,11 +505,11 @@ test.describe("Self-hosted upgrade return flow", () => {await configurePurchaseStartRoute(context);await configurePortalRedirectRoute(context, {- body: "Secure upgrade state expired. Returning to Pulse Pro.",+ body: "Secure upgrade state expired. Returning to Plans.",redirectUrl: buildPurchaseReturnUrl(),});await configurePurchaseReturnRoute(context, {- bridgeTitle: "Verifying Pulse Pro checkout return",+ bridgeTitle: "Verifying plan checkout return",completionTitle: "Upgrade return expired",finalRedirectUrl: EXPIRED_BILLING_URL,});@@ -543,11 +543,11 @@ test.describe("Self-hosted upgrade return flow", () => {await configurePurchaseStartRoute(context);await configurePortalRedirectRoute(context, {- body: "Checkout complete, but Pulse Pro needs local recovery.",+ body: "Checkout complete, but local plan activation needs attention.",redirectUrl: buildPurchaseReturnUrl(),});await configurePurchaseReturnRoute(context, {- bridgeTitle: "Finishing local Pulse Pro activation",+ bridgeTitle: "Finishing local plan activation",completionTitle: "Activation needs attention",finalRedirectUrl: FAILED_BILLING_URL,});diff --git a/tests/integration/tests/56-pulse-account-upgrade-bootstrap.spec.ts b/tests/integration/tests/56-pulse-account-upgrade-bootstrap.spec.tsindex e25512d099..22497415f2 100644--- a/tests/integration/tests/56-pulse-account-upgrade-bootstrap.spec.ts+++ b/tests/integration/tests/56-pulse-account-upgrade-bootstrap.spec.ts@@ -75,7 +75,7 @@ test.describe("Pulse Account upgrade bootstrap", () => {await expect(page.getByText(- "Pulse Account will return completed checkout directly to Pulse Pro billing.",+ "Pulse Account will return completed checkout directly to the Plans page in Pulse.",),).toBeVisible();await expect(@@ -85,12 +85,12 @@ test.describe("Pulse Account upgrade bootstrap", () => {).toBeVisible();await expect(page.getByText(- "Pulse Account keeps checkout tied to the Pulse instance that opened it, so completed Relay or Pro purchases return to the right billing surface automatically.",+ "Pulse Account keeps checkout tied to the Pulse instance that opened it, so completed Relay or Pro purchases return to the right Plans page automatically.",),).toBeVisible();await expect(page.getByText(- "Open this upgrade from Pulse Pro billing so Pulse Account can verify the secure upgrade handoff before checkout.",+ "Open this upgrade from the Plans page in Pulse so Pulse Account can verify the secure plan upgrade handoff before checkout.",),).toHaveCount(0);await expect(page.getByRole("button", { name: "Buy Annual" }).first()).toBeEnabled();@@ -124,7 +124,7 @@ test.describe("Pulse Account upgrade bootstrap", () => {await expect(page.getByText(- "Open this upgrade from Pulse Pro billing so Pulse Account can verify the secure upgrade handoff before checkout.",+ "Open this upgrade from the Plans page in Pulse so Pulse Account can verify the secure plan upgrade handoff before checkout.",),).toBeVisible();await expect(page.getByRole("button", { name: "Buy Annual" }).first()).toBeDisabled();@@ -143,7 +143,7 @@ test.describe("Pulse Account upgrade bootstrap", () => {await expect(page.getByText(- "This secure upgrade handoff already completed. Return to Pulse Pro billing to review the live plan state.",+ "This secure upgrade handoff already completed. Return to the Plans page in Pulse to review the live plan state.",),).toBeVisible();await expect(page.getByRole("button", { name: "Buy Annual" }).first()).toBeDisabled();diff --git a/tests/integration/tests/58-self-hosted-trial-rate-limit-ui.spec.ts b/tests/integration/tests/58-self-hosted-trial-rate-limit-ui.spec.tsindex 6db4063481..d5dfd41d1b 100644--- a/tests/integration/tests/58-self-hosted-trial-rate-limit-ui.spec.ts+++ b/tests/integration/tests/58-self-hosted-trial-rate-limit-ui.spec.ts@@ -14,7 +14,7 @@ test.describe.serial('Self-hosted trial rate-limit UI', () => {test('shows Retry-After guidance on the Pulse Pro trial CTA', async ({ page }, testInfo) => {test.skip(testInfo.project.name.startsWith('mobile-'),- 'Desktop-only Pulse Pro billing coverage',+ 'Desktop-only plans coverage',);await ensureAuthenticated(page);@@ -45,7 +45,7 @@ test.describe.serial('Self-hosted trial rate-limit UI', () => {});await page.goto('/settings/system/billing');- await expect(page.getByRole('heading', { name: 'Pulse Pro' }).first()).toBeVisible();+ await expect(page.getByRole('heading', { name: 'Plans & Activation' }).first()).toBeVisible();const startTrialButton = page.getByRole('button', { name: /start 14-day pro trial/i });await expect(startTrialButton).toBeVisible();