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.

Neutralize inactive self-hosted plan copy

rcourtman5ba851f59482
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index a5253db2ae..de73dcd066 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -1465,7 +1465,9 @@ it as a current public Pulse Pro+ package. When direct plan-selection intent
opens the explicit self-hosted comparison surface, the shared presentation
helpers must show Pro's operations, admin, and reporting extras together while
still framing Community, Relay, and Pro as unlimited core monitoring rather
-than monitored-system capacity tiers.
+than monitored-system capacity tiers. The same factual plan surface must use
+neutral inactive-state copy such as paid self-hosted activation rather than
+v5-era "No Pro license" language.
The shared license presentation owner also holds self-hosted Pro settings
trial-ended notice copy for `ProLicensePlanSection.tsx`; that surface must
consume canonical helper notices instead of carrying inline upgrade copy or
diff --git a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx
index 8b733df2e1..f7e429f8c6 100644
--- a/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx
+++ b/frontend-modern/src/components/Settings/ProLicensePlanSection.tsx
@@ -4,7 +4,7 @@ import { UpgradeLink } from '@/components/shared/UpgradeLink';
import { licenseEntitlementsLoadError } from '@/stores/licenseEntitlements';
import {
getLicenseStatusLoadingState,
- getNoActiveProLicenseState,
+ getNoActiveSelfHostedActivationState,
} from '@/utils/licensePresentation';
import { SELF_HOSTED_PRO_BILLING_PRESENTATION } from './selfHostedBillingPresentation';
import type { UpgradeDestination } from '@/utils/upgradeNavigation';
@@ -340,7 +340,11 @@ export const ProLicensePlanSection: Component<ProLicensePlanSectionProps> = (pro
>
<Show
when={props.hasLicenseDetails}
- fallback={<div class="text-sm text-muted">{getNoActiveProLicenseState().text}</div>}
+ fallback={
+ <div class="text-sm text-muted">
+ {getNoActiveSelfHostedActivationState().text}
+ </div>
+ }
>
<CommercialStatGrid items={props.commercialPlanModel.summary} />
diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
index 92cee4c806..8ed07d3971 100644
--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
@@ -1113,7 +1113,7 @@ describe('ProLicensePanel', () => {
expect(proLicensePanelStateSource).not.toContain('startProTrial()');
expect(proLicensePanelStateSource).toContain("'A license or activation key is required'");
expect(proLicensePlanSectionSource).toContain('getLicenseStatusLoadingState');
- expect(proLicensePlanSectionSource).toContain('getNoActiveProLicenseState');
+ expect(proLicensePlanSectionSource).toContain('getNoActiveSelfHostedActivationState');
expect(proLicensePlanSectionSource).not.toContain('getTrialEndedProLicenseNotice');
expect(proLicensePlanSectionSource).toContain('currentPlanSummary.title');
expect(proLicensePlanSectionSource).toContain('currentPlanSummary.supplementalBadges');
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index f0ae3de436..0b38201d4e 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -2526,11 +2526,12 @@ describe('frontend resource type boundaries', () => {
expect(proLicensePanelStateSource).not.toContain('getTrialActivationNotice');
expect(proLicensePanelStateSource).toContain('getCommercialMigrationNotice');
expect(proLicensePlanSectionSource).toContain('getLicenseStatusLoadingState');
- expect(proLicensePlanSectionSource).toContain('getNoActiveProLicenseState');
+ expect(proLicensePlanSectionSource).toContain('getNoActiveSelfHostedActivationState');
expect(proLicensePlanSectionSource).not.toContain('getTrialEndedProLicenseNotice');
expect(proLicensePlanSectionSource).not.toContain('getInactiveProUpsellNotice');
expect(proLicensePanelSource).not.toContain('Loading license status...');
expect(proLicensePanelSource).not.toContain('No Pro license is active.');
+ expect(proLicensePanelSource).not.toContain('No paid self-hosted activation is active');
expect(proLicensePanelSource).not.toContain('const statusLabel =');
expect(proLicensePanelStateSource).not.toContain('const statusTone =');
expect(proLicensePanelStateSource).not.toContain('const formatTitleCase =');
@@ -2540,7 +2541,9 @@ describe('frontend resource type boundaries', () => {
'export const getLicenseSubscriptionStatusPresentation',
);
expect(licensePresentationSource).toContain('export const getLicenseStatusLoadingState');
- expect(licensePresentationSource).toContain('export const getNoActiveProLicenseState');
+ expect(licensePresentationSource).toContain(
+ 'export const getNoActiveSelfHostedActivationState',
+ );
expect(licensePresentationSource).not.toContain('export const getTrialEndedProLicenseNotice');
expect(licensePresentationSource).not.toContain('export const getInactiveProUpsellNotice');
expect(licensePresentationSource).toContain(
diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
index 13402b7f0e..80c8226515 100644
--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
@@ -19,7 +19,7 @@ import {
getLicenseTierLabel,
getDisplayableMonitoredSystemContinuity,
getMonitoredSystemContinuityNotice,
- getNoActiveProLicenseState,
+ getNoActiveSelfHostedActivationState,
getOrganizationBillingLicenseStatusLabel,
getPurchaseActivationNotice,
isDisplayableLicenseFeature,
@@ -45,8 +45,8 @@ describe('licensePresentation', () => {
expect(getLicenseStatusLoadingState()).toEqual({
text: 'Loading license status...',
});
- expect(getNoActiveProLicenseState()).toEqual({
- text: 'No Pro license is active.',
+ expect(getNoActiveSelfHostedActivationState()).toEqual({
+ text: 'No paid self-hosted activation is active on this instance.',
});
expect(SELF_HOSTED_RECOVERY_PRESENTATION).toMatchObject({
disclosureLabel: 'Redeem existing key',
diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.ts
index 15c313cd1a..f1c692612d 100644
--- a/frontend-modern/src/utils/licensePresentation.ts
+++ b/frontend-modern/src/utils/licensePresentation.ts
@@ -800,8 +800,8 @@ export const getLicenseStatusLoadingState = (): LicenseLoadingStateCopy => ({
text: 'Loading license status...',
});
-export const getNoActiveProLicenseState = (): LicenseLoadingStateCopy => ({
- text: 'No Pro license is active.',
+export const getNoActiveSelfHostedActivationState = (): LicenseLoadingStateCopy => ({
+ text: 'No paid self-hosted activation is active on this instance.',
});
export const SELF_HOSTED_RECOVERY_PRESENTATION: SelfHostedRecoveryPresentation = {