Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Keep legacy volume metadata out of self-hosted plans

rcourtman81d34140404a
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 9f6ba8455c..9c893f447b 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -299,18 +299,28 @@ Community limit enforcement.
surface instead of reviving a separate overview panel, summary strip, or
metric deck ahead of the real workspace list.
23. Keep self-hosted monitored-system capacity review informational and
- non-commercial. Any monitored-system limit, continuity, or legacy
- `max_monitored_systems` handoff must land on the usage-focused billing
- state (`/settings/system/billing/usage?details=counting-rules`) so the
- operator can inspect counting rules and any support/audit policy context
- without being pushed toward a purchase. Monitored-system warnings must not
- surface `Upgrade to add more`, `Compare self-hosted plans`, or the
+ non-commercial. Recognized self-hosted v6 tiers must treat legacy
+ monitored-system limit, continuity, or `max_monitored_systems` handoff data
+ as support/audit metadata rather than as the customer-facing plan model:
+ Community, Relay, Pro, Pro+, lifetime, and eligible grandfathered recurring
+ plan labels render through the normal plan surface as unlimited core
+ monitoring plus tier-specific extras, with no standing Usage subtab, finite
+ policy banner, monitored-system limit row, or pause-new-admissions copy from
+ stale volume metadata. Any genuinely bounded monitored-system support
+ context outside those recognized plan labels must remain informational and
+ land on the usage-focused billing state
+ (`/settings/system/billing/usage?details=counting-rules`) so the operator
+ can inspect counting rules and any support/audit policy context without
+ being pushed toward a purchase. Monitored-system warnings must not surface
+ `Upgrade to add more`, `Compare self-hosted plans`, or the
`intent=self_hosted_plan` plan-selection arrival. `frontend-modern/src/components/Settings/ProLicensePanel.tsx`,
`frontend-modern/src/components/Settings/useProLicensePanelState.ts`, and
`frontend-modern/src/utils/pricingHandoff.ts` therefore own a two-state
- billing focus model where monitored-system aliases resolve to `usage`, and
- plan selection is reserved for explicit self-hosted Pro/commercial-extra
- arrivals. That same self-hosted commercial boundary also owns legacy
+ billing focus model where monitored-system aliases only resolve to `usage`
+ when a displayable bounded support context remains after recognized
+ self-hosted plans have been normalized, and plan selection is reserved for
+ explicit self-hosted Pro/commercial-extra arrivals. That same self-hosted
+ commercial boundary also owns legacy
migration continuity semantics: `legacy_migration_fallback` may preserve
`plan_limit` and `grandfathered_floor` for support/audit context, but
self-hosted v6 monitoring remains uncapped. The canonical contract is
@@ -440,7 +450,13 @@ Community limit enforcement.
The canonical contract is `status.max_monitored_systems = 0`, no enforced
`max_monitored_systems` entitlement row, and
`monitored_system_capacity.mode = unlimited` once runtime usage is
- available.
+ available. The in-app self-hosted Plans surface must apply the same rule:
+ recognized Community, Relay, Pro, Pro+, lifetime, and eligible grandfathered
+ recurring plans must ignore stale legacy volume metadata for customer-facing
+ plan presentation, must render the current plan ladder, and must not show a
+ Usage tab, monitored-system policy banner, `Plan Monitored System Limit`,
+ `Effective Monitored System Limit`, grandfathered-floor summary, or
+ pause-new-admissions copy from that metadata.
10. Keep Stripe webhook idempotency state bounded in the control-plane
registry: `internal/cloudcp/registry/registry.go` may retain `stripe_events`
rows long enough to suppress duplicate deliveries and reclaim stale
@@ -1204,17 +1220,20 @@ shared shell/model first instead of letting self-hosted Pulse Pro and hosted
organization billing drift back into parallel local layouts or vocabularies.
For self-hosted Pulse Pro specifically, the plan/usage split is now also a
router contract: `/settings/system/billing/plan` is the canonical plan state,
-`/settings/system/billing/usage` is the canonical monitored-system usage state
-only when Pulse is still reconciling or enforcing a finite monitored-system
-limit, and `/settings/system/billing` remains a compatibility handoff rather
-than the primary owned destination. Uncapped current self-hosted Pulse Pro
+and `/settings/system/billing` remains a compatibility handoff rather than the
+primary owned destination. `/settings/system/billing/usage` is only a
+compatibility support state for a displayable bounded monitored-system context
+that remains after recognized self-hosted v6 plan labels have been normalized.
+Community, Relay, Pro, Pro+, lifetime, and eligible grandfathered recurring
plans must not keep a standing Usage subtab alive just to restate counted-unit
-totals; direct `/usage` arrivals on those no-cap plans should canonicalize back
-to `/plan`. Arrival-specific UI affordances belong to that same owned billing
-surface: legacy usage arrivals may open counting rules by default, and plan
-arrivals may surface an upgrade callout that hands off into `Pulse Account`
-for self-hosted plan comparison and checkout before returning to the owned
-plan state through the runtime-owned activation callback. Pulse product routes
+totals or stale migration volume metadata; direct `/usage` arrivals on those
+no-cap plans should canonicalize back to `/plan`. Arrival-specific UI
+affordances belong to that same owned billing surface: legacy usage arrivals
+may open counting rules by default only when a bounded support context is still
+displayable, and plan arrivals may surface an upgrade callout that hands off
+into `Pulse Account` for self-hosted plan comparison and checkout before
+returning to the owned plan state through the runtime-owned activation
+callback. Pulse product routes
keep ownership of license status, usage, and activation state; `Pulse Account`
owns the commerce flow itself. That same self-hosted settings surface is
plan-owned rather than tier-owned: the navigation label is `Plans`, the
@@ -1223,9 +1242,9 @@ 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 entitlement-first summary must stay tier-
specific and continuity-aware: Relay and Pulse Pro should describe the actual
-paid capabilities unlocked on this instance, while grandfathered pricing or
-captured monitored-system continuity must be visible in that same top summary
-instead of only in secondary billing detail blocks further down the page.
+paid capabilities unlocked on this instance, while grandfathered pricing must
+make existing-price protection explicit without reviving finite monitored-
+system continuity copy for normalized no-cap self-hosted plans.
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`
@@ -1429,18 +1448,19 @@ history, while Pro+ remains legacy
continuity only. Cloud/MSP pricing semantics stay separate, and grandfathered
v5 continuity copy remains an explicit boundary policy.
That same settings-owned presentation must distinguish between active
-grandfathered recurring v5 continuity and bounded legacy fallbacks. Active
-grandfathered recurring v5 plans must render the existing recurring price
-continuity directly and must not show a pending or captured floor banner or
-any finite self-hosted volume cap.
-Only bounded legacy fallback migrations may render the base plan limit, the
-effective monitored-system limit, any grandfathered floor, and whether
-continuity capture is still pending. When monitored-system usage is
-unavailable during fallback continuity verification, the shell must present a
-verification state rather than implying `0 / limit`. If the effective
-monitored-system limit is `0`/unlimited, the self-hosted fallback continuity is
-audit-only and must not render plan-limit, finite-policy, or grandfathered-floor
-copy to ordinary self-hosted users.
+grandfathered recurring v5 continuity and stale bounded legacy fallback
+metadata. Active grandfathered recurring v5 plans must render the existing
+recurring price continuity directly and must not show a pending or captured
+floor banner or any finite self-hosted volume cap. Recognized self-hosted v6
+plan labels must follow the same customer-facing no-cap rule even if a
+`legacy_migration_fallback` entitlement still carries `plan_limit`,
+`effective_limit`, `grandfathered_floor`, or capture-pending telemetry:
+`useProLicensePanelState.ts` must suppress the Usage tab, monitored-system
+policy section, continuity notice, plan-limit detail rows, and
+pause-new-admissions copy, while `licensePresentation.ts` must keep current
+plan summaries focused on unlimited core monitoring plus the actual tier
+extras. Bounded fallback continuity may only be displayed for a support context
+that is not already normalized to a recognized self-hosted v6 package.
That same pricing boundary now also owns the shared frontend plan-definition
models. `frontend-modern/src/utils/cloudPlans.ts` and
`frontend-modern/src/utils/selfHostedPlans.ts` are the canonical frontend
diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
index 8ed07d3971..aa25dc681b 100644
--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
@@ -422,9 +422,7 @@ describe('ProLicensePanel', () => {
expect(screen.getByText('Grandfathered v5 pricing')).toBeInTheDocument();
expect(screen.getByText('Grandfathered price')).toBeInTheDocument();
expect(
- screen.getAllByText(
- /keeps its existing recurring price until/i,
- ).length,
+ screen.getAllByText(/keeps its existing recurring price until/i).length,
).toBeGreaterThan(0);
expect(
screen.queryByText(/keeps its existing recurring price and uncapped guest capacity/i),
@@ -524,7 +522,7 @@ describe('ProLicensePanel', () => {
expect(screen.getByText('Push Notifications')).toBeInTheDocument();
});
- it('shows continuity verification while a bounded fallback migration is still pending', async () => {
+ it('keeps pending fallback migration volume metadata audit-only on self-hosted Pro', async () => {
mockEntitlements = {
capabilities: ['relay'],
limits: [
@@ -566,23 +564,27 @@ describe('ProLicensePanel', () => {
renderPanel();
await waitFor(() => {
- expect(screen.getByText('Migration continuity verification pending')).toBeInTheDocument();
+ expect(screen.getByText('Current plan: Pulse Pro')).toBeInTheDocument();
});
+ expect(screen.getByText('Legacy Migration Fallback')).toBeInTheDocument();
+ expect(screen.getByText('Core Monitoring')).toBeInTheDocument();
expect(
- screen.getAllByText(/verifying the grandfathered monitored-system floor/i).length,
- ).toBeGreaterThan(0);
- expect(screen.getByText('Continuity pending')).toBeInTheDocument();
- expect(screen.getAllByText('Verifying…').length).toBeGreaterThan(0);
- expect(screen.getAllByText('Unavailable').length).toBeGreaterThan(0);
- expect(screen.getByText('Plan Monitored System Limit')).toBeInTheDocument();
- expect(screen.getByText('Effective Monitored System Limit')).toBeInTheDocument();
- expect(screen.getByText('Continuity Capture')).toBeInTheDocument();
- expect(screen.getByText('Pending')).toBeInTheDocument();
+ within(screen.getByText('Core Monitoring').parentElement as HTMLElement).getByText(
+ 'Unlimited',
+ ),
+ ).toBeInTheDocument();
+ expect(screen.queryByText('Migration continuity verification pending')).not.toBeInTheDocument();
+ expect(screen.queryByText('Continuity pending')).not.toBeInTheDocument();
+ expect(screen.queryByText('Plan Monitored System Limit')).not.toBeInTheDocument();
+ expect(screen.queryByText('Effective Monitored System Limit')).not.toBeInTheDocument();
+ expect(screen.queryByText('Continuity Capture')).not.toBeInTheDocument();
+ expect(screen.queryByText('Monitored-system policy')).not.toBeInTheDocument();
+ expect(screen.queryByRole('tab', { name: 'Usage' })).not.toBeInTheDocument();
expect(screen.queryByText('0 / 10')).not.toBeInTheDocument();
});
- it('explains why an over-policy migrated installation is still monitoring above the finite policy', async () => {
+ it('hides over-policy fallback migration volume warnings on recognized self-hosted plans', async () => {
mockEntitlements = {
capabilities: ['relay'],
limits: [
@@ -622,18 +624,26 @@ describe('ProLicensePanel', () => {
renderPanel();
await waitFor(() => {
- expect(screen.getByText('Migration continuity verification pending')).toBeInTheDocument();
+ expect(screen.getByText('Current plan: Pulse Pro')).toBeInTheDocument();
});
- expect(screen.getAllByText(/already monitoring 23/i).length).toBeGreaterThan(0);
- expect(screen.getByText('Monitored-system policy')).toBeInTheDocument();
- expect(screen.getByText('Why is continuity still pending?')).toBeInTheDocument();
+ expect(screen.getByText('Core Monitoring')).toBeInTheDocument();
+ expect(
+ within(screen.getByText('Core Monitoring').parentElement as HTMLElement).getByText(
+ 'Unlimited',
+ ),
+ ).toBeInTheDocument();
+ expect(screen.queryByText(/already monitoring 23/i)).not.toBeInTheDocument();
+ expect(screen.queryByText('Migration continuity verification pending')).not.toBeInTheDocument();
+ expect(screen.queryByText('Monitored-system policy')).not.toBeInTheDocument();
+ expect(screen.queryByText('Why is continuity still pending?')).not.toBeInTheDocument();
+ expect(screen.queryByRole('tab', { name: 'Usage' })).not.toBeInTheDocument();
expect(
screen.queryByText('Monitoring continues above the current policy boundary'),
).not.toBeInTheDocument();
});
- it('shows monitored-system continuity once a bounded fallback migration floor is captured', async () => {
+ it('does not surface captured fallback migration floors as self-hosted plan limits', async () => {
mockEntitlements = {
capabilities: ['relay'],
limits: [
@@ -675,23 +685,33 @@ describe('ProLicensePanel', () => {
renderPanel();
await waitFor(() => {
- expect(screen.getByText('Grandfathered monitored-system floor')).toBeInTheDocument();
+ expect(screen.getByText('Current plan: Pulse Pro')).toBeInTheDocument();
});
+ expect(screen.getByText('Core Monitoring')).toBeInTheDocument();
expect(
- screen.getAllByText(/keeps an effective monitored-system limit of 23/i).length,
- ).toBeGreaterThan(0);
- expect(screen.getByText('Grandfathered floor')).toBeInTheDocument();
- expect(screen.getAllByText('23 monitored systems').length).toBeGreaterThan(0);
- expect(screen.getByText('Monitored-system policy')).toBeInTheDocument();
- expect(
- screen.getByText('Existing monitoring continues. Additional monitored systems are paused.'),
+ within(screen.getByText('Core Monitoring').parentElement as HTMLElement).getByText(
+ 'Unlimited',
+ ),
).toBeInTheDocument();
- expect(screen.getByRole('link', { name: 'Review monitored systems' })).toBeInTheDocument();
- expect(screen.getByText('Plan Monitored System Limit')).toBeInTheDocument();
- expect(screen.getByText('Effective Monitored System Limit')).toBeInTheDocument();
- expect(screen.getByText('Grandfathered Floor')).toBeInTheDocument();
+ expect(screen.queryByText('Grandfathered monitored-system floor')).not.toBeInTheDocument();
+ expect(
+ screen.queryByText(/keeps an effective monitored-system limit of 23/i),
+ ).not.toBeInTheDocument();
+ expect(screen.queryByText('Grandfathered floor')).not.toBeInTheDocument();
+ expect(screen.queryByText('23 monitored systems')).not.toBeInTheDocument();
+ expect(screen.queryByText('Monitored-system policy')).not.toBeInTheDocument();
+ expect(
+ screen.queryByText('Existing monitoring continues. Additional monitored systems are paused.'),
+ ).not.toBeInTheDocument();
+ expect(
+ screen.queryByRole('link', { name: 'Review monitored systems' }),
+ ).not.toBeInTheDocument();
+ expect(screen.queryByText('Plan Monitored System Limit')).not.toBeInTheDocument();
+ expect(screen.queryByText('Effective Monitored System Limit')).not.toBeInTheDocument();
+ expect(screen.queryByText('Grandfathered Floor')).not.toBeInTheDocument();
expect(screen.queryByText('Included Monitored Systems')).not.toBeInTheDocument();
+ expect(screen.queryByRole('tab', { name: 'Usage' })).not.toBeInTheDocument();
});
it('renders all capability strings as human-readable labels (no raw snake_case)', async () => {
@@ -894,7 +914,7 @@ describe('ProLicensePanel', () => {
expect(recoveryDisclosure).toHaveAttribute('open');
});
- it('focuses the usage billing section when a bounded legacy billing route requests counting rules', async () => {
+ it('redirects stale bounded billing usage routes back to the plan surface', async () => {
mockEntitlements = {
capabilities: ['relay'],
limits: [{ key: 'max_monitored_systems', limit: 10, current: 5, state: 'ok' }],
@@ -914,14 +934,20 @@ describe('ProLicensePanel', () => {
renderPanel();
await waitFor(() => {
- expect(screen.getByRole('tab', { name: 'Usage' })).toHaveAttribute('aria-selected', 'true');
- expect(
- document.getElementById(SELF_HOSTED_PRO_BILLING_PLAN_SECTION_ID),
- ).not.toBeInTheDocument();
- expect(document.getElementById(SELF_HOSTED_PRO_BILLING_USAGE_SECTION_ID)).toBeInTheDocument();
+ expect(loadLicenseEntitlementsMock).toHaveBeenCalled();
+ });
+
+ expect(screen.queryByRole('tab', { name: 'Usage' })).not.toBeInTheDocument();
+ expect(screen.queryByText('Monitored Systems')).not.toBeInTheDocument();
+ expect(
+ document.getElementById(SELF_HOSTED_PRO_BILLING_USAGE_SECTION_ID),
+ ).not.toBeInTheDocument();
+ expect(document.getElementById(SELF_HOSTED_PRO_BILLING_PLAN_SECTION_ID)).toBeInTheDocument();
+ expect(navigateMock).toHaveBeenCalledWith(SELF_HOSTED_PRO_BILLING_PLAN_ROUTE, {
+ replace: true,
+ scroll: false,
});
- expect(screen.getByText('Monitored Systems')).toBeInTheDocument();
- expect(screen.getByRole('button', { name: 'Hide counting rules' })).toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: 'Hide counting rules' })).not.toBeInTheDocument();
});
it('redirects uncapped self-hosted billing usage routes back to the plan surface', async () => {
@@ -979,7 +1005,7 @@ describe('ProLicensePanel', () => {
expect(screen.queryByText('Monitored-system policy')).not.toBeInTheDocument();
});
- it('navigates between plan and usage focus states through the billing subtabs when legacy capacity handling is active', async () => {
+ it('does not expose billing usage subtabs for stale legacy capacity on recognized plans', async () => {
mockEntitlements = {
capabilities: ['relay'],
limits: [{ key: 'max_monitored_systems', limit: 10, current: 5, state: 'ok' }],
@@ -998,9 +1024,13 @@ describe('ProLicensePanel', () => {
renderPanel();
- fireEvent.click(screen.getByRole('tab', { name: 'Usage' }));
+ await waitFor(() => {
+ expect(screen.getByText('Current plan: Pulse Pro')).toBeInTheDocument();
+ });
- expect(navigateMock).toHaveBeenCalledWith(SELF_HOSTED_PRO_BILLING_USAGE_HREF, {
+ expect(screen.queryByRole('tab', { name: 'Usage' })).not.toBeInTheDocument();
+ expect(screen.queryByText('Monitored-system policy')).not.toBeInTheDocument();
+ expect(navigateMock).not.toHaveBeenCalledWith(SELF_HOSTED_PRO_BILLING_USAGE_HREF, {
replace: false,
scroll: false,
});
diff --git a/frontend-modern/src/components/Settings/useProLicensePanelState.ts b/frontend-modern/src/components/Settings/useProLicensePanelState.ts
index 82c5526fa6..782b81237b 100644
--- a/frontend-modern/src/components/Settings/useProLicensePanelState.ts
+++ b/frontend-modern/src/components/Settings/useProLicensePanelState.ts
@@ -24,7 +24,6 @@ import {
getLicenseSubscriptionStatusPresentation,
getLicenseTierLabel,
getDisplayableMonitoredSystemContinuity,
- hasActiveUncappedSelfHostedContinuity,
isDisplayableLicenseFeature,
} from '@/utils/licensePresentation';
import {
@@ -149,32 +148,35 @@ export function useProLicensePanelState() {
const limitStatus = (key: string) => entitlements()?.limits?.find((entry) => entry.key === key);
const monitoredSystemContinuity = createMemo(() => entitlements()?.monitored_system_continuity);
- const uncappedGrandfatheredPlan = createMemo(() =>
- hasActiveUncappedSelfHostedContinuity({
- planVersion: entitlements()?.plan_version,
- isLifetime: entitlements()?.is_lifetime,
- subscriptionState: entitlements()?.subscription_state,
- }),
+ const selfHostedPlanDefinition = createMemo(() =>
+ getSelfHostedPlanDefinitionForBillingTier(entitlements()?.tier),
);
+ const usesCanonicalSelfHostedPlan = createMemo(() => Boolean(selfHostedPlanDefinition()));
const monitoredSystemLimitStatus = createMemo(() =>
- uncappedGrandfatheredPlan() ? undefined : limitStatus('max_monitored_systems'),
+ usesCanonicalSelfHostedPlan() ? undefined : limitStatus('max_monitored_systems'),
);
const monitoredSystemCapacity = createMemo(() =>
- uncappedGrandfatheredPlan() ? undefined : entitlements()?.monitored_system_capacity,
+ usesCanonicalSelfHostedPlan() ? undefined : entitlements()?.monitored_system_capacity,
);
- const displayableMonitoredSystemContinuity = createMemo(() =>
- getDisplayableMonitoredSystemContinuity({
+ const displayableMonitoredSystemContinuity = createMemo(() => {
+ if (usesCanonicalSelfHostedPlan()) {
+ return null;
+ }
+ return getDisplayableMonitoredSystemContinuity({
continuity: monitoredSystemContinuity(),
planVersion: entitlements()?.plan_version,
isLifetime: entitlements()?.is_lifetime,
subscriptionState: entitlements()?.subscription_state,
- }),
- );
+ });
+ });
const showUsageSection = createMemo(() => {
if (!panelDataSettled()) {
return true;
}
+ if (usesCanonicalSelfHostedPlan()) {
+ return false;
+ }
const continuity = displayableMonitoredSystemContinuity();
if (continuity) {
@@ -364,7 +366,7 @@ export function useProLicensePanelState() {
const monitoredSystemUsageSummary = createMemo(() => {
const limit = monitoredSystemLimitStatus();
const capacity = monitoredSystemCapacity();
- if (!limit && !capacity && uncappedGrandfatheredPlan()) {
+ if (!limit && !capacity && usesCanonicalSelfHostedPlan()) {
return 'Unlimited';
}
return getMonitoredSystemLimitUsageSummary(limit, capacity);
@@ -372,29 +374,19 @@ export function useProLicensePanelState() {
const monitoredSystemCapacityStatusSummary = createMemo(() => {
const limit = monitoredSystemLimitStatus();
const capacity = monitoredSystemCapacity();
- if (!limit && !capacity && uncappedGrandfatheredPlan()) {
+ if (!limit && !capacity && usesCanonicalSelfHostedPlan()) {
return 'Unlimited';
}
return getMonitoredSystemLimitCapacityStatusSummary(limit, capacity);
});
- const monitoredSystemCapacityPosture = createMemo(() =>
- resolveMonitoredSystemCapacityStatus(monitoredSystemCapacity(), monitoredSystemLimitStatus()),
- );
- const currentRetailPlanDefinition = createMemo(() => {
- if (displayableMonitoredSystemContinuity()) {
- return null;
- }
- if (uncappedGrandfatheredPlan()) {
- return null;
- }
- if ((monitoredSystemCapacityPosture()?.limit ?? 0) > 0) {
+ const currentRetailPlanDefinition = createMemo(() => selfHostedPlanDefinition());
+ const monitoredSystemContinuityNotice = createMemo(() => {
+ const continuity = displayableMonitoredSystemContinuity();
+ if (!continuity) {
return null;
}
- return getSelfHostedPlanDefinitionForBillingTier(entitlements()?.tier);
- });
- const monitoredSystemContinuityNotice = createMemo(() =>
- getMonitoredSystemContinuityNotice(
- monitoredSystemContinuity(),
+ return getMonitoredSystemContinuityNotice(
+ continuity,
monitoredSystemLimitStatus(),
monitoredSystemCapacity(),
{
@@ -402,8 +394,8 @@ export function useProLicensePanelState() {
isLifetime: entitlements()?.is_lifetime,
subscriptionState: entitlements()?.subscription_state,
},
- ),
- );
+ );
+ });
const monitoredSystemCapacitySection = createMemo(() => {
const section = buildMonitoredSystemCapacitySectionModel(
monitoredSystemLimitStatus(),
diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
index 80c8226515..ba4fc740e3 100644
--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
@@ -254,6 +254,31 @@ describe('licensePresentation', () => {
supplementalSummary: '',
});
+ expect(
+ getSelfHostedCurrentPlanPresentation({
+ entitlements: {
+ tier: 'pro',
+ subscription_state: 'active',
+ plan_version: 'legacy_migration_fallback',
+ capabilities: ['relay', 'ai_autofix'],
+ limits: [{ key: 'max_monitored_systems', limit: 10, current: 23, state: 'enforced' }],
+ upgrade_reasons: [],
+ monitored_system_continuity: {
+ plan_limit: 10,
+ grandfathered_floor: 23,
+ effective_limit: 23,
+ capture_pending: false,
+ },
+ },
+ displayableCapabilities: ['Pulse Relay (Remote Access)', 'Safe Remediation Workflows'],
+ }),
+ ).toMatchObject({
+ title: 'Current plan: Pulse Pro',
+ body: 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation workflows, 90-day history, and admin/reporting extras are unlocked right now.',
+ supplementalBadges: [],
+ supplementalSummary: '',
+ });
+
expect(
getSelfHostedCurrentPlanPresentation({
entitlements: {
diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.ts
index f1c692612d..9697626093 100644
--- a/frontend-modern/src/utils/licensePresentation.ts
+++ b/frontend-modern/src/utils/licensePresentation.ts
@@ -515,12 +515,14 @@ export const getSelfHostedCurrentPlanPresentation = ({
);
}
- const continuity = getDisplayableMonitoredSystemContinuity({
- continuity: current.monitored_system_continuity,
- planVersion: current.plan_version,
- isLifetime: current.is_lifetime,
- subscriptionState: current.subscription_state,
- });
+ const continuity = planDefinition
+ ? null
+ : getDisplayableMonitoredSystemContinuity({
+ continuity: current.monitored_system_continuity,
+ planVersion: current.plan_version,
+ isLifetime: current.is_lifetime,
+ subscriptionState: current.subscription_state,
+ });
if (continuity?.capture_pending) {
supplementalBadges.push('Continuity pending');
supplementalDetails.push(