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.

Show full Pro value in plan comparison

rcourtmane4fa761e3db0
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 634dd63640..a5253db2ae 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -1461,7 +1461,11 @@ meter-style entitlement fields on retail Community, Relay, or Pro plans. Pro+
may appear only as a legacy continuity tier, and
`frontend-modern/src/utils/licensePresentation.ts` must label `pro_plus`
accordingly in tier, plan, and plan-version presentation instead of rendering
-it as a current public Pulse Pro+ package.
+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.
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/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
index f1d17b29b8..92cee4c806 100644
--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
@@ -475,7 +475,7 @@ describe('ProLicensePanel', () => {
expect(screen.getByText('Current plan: Pulse Pro')).toBeInTheDocument();
expect(
screen.getByText(
- 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation workflows, and 90-day history are unlocked right now.',
+ 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation workflows, 90-day history, and admin/reporting extras are unlocked right now.',
),
).toBeInTheDocument();
expect(screen.getByText('Primary capabilities')).toBeInTheDocument();
diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
index 706e0c643f..13402b7f0e 100644
--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
@@ -271,7 +271,7 @@ describe('licensePresentation', () => {
}),
).toEqual({
title: 'Current plan: Pulse Pro',
- body: 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation workflows, and 90-day history are unlocked right now.',
+ 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.',
unlockedFeaturesLabel: 'Primary capabilities',
unlockedFeatures: [
'Alert Root-Cause Analysis',
@@ -303,7 +303,7 @@ describe('licensePresentation', () => {
}),
).toMatchObject({
title: 'Current plan: Legacy Pulse Pro+',
- body: 'Legacy Pulse Pro+ is active on this instance. Root-cause analysis, safe remediation workflows, and 90-day history are unlocked right now.',
+ body: 'Legacy Pulse Pro+ is active on this instance. Root-cause analysis, safe remediation workflows, 90-day history, and admin/reporting extras are unlocked right now.',
unlockedFeaturesLabel: 'Primary capabilities',
unlockedFeatures: [
'Alert Root-Cause Analysis',
@@ -332,7 +332,7 @@ describe('licensePresentation', () => {
}),
).toEqual({
title: 'Current plan: Pulse Pro',
- body: 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation workflows, and 90-day history are unlocked right now.',
+ 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.',
unlockedFeaturesLabel: 'Primary capabilities',
unlockedFeatures: [
'Alert Root-Cause Analysis',
@@ -383,6 +383,11 @@ describe('licensePresentation', () => {
'Alert Root-Cause Analysis',
'Safe Remediation Workflows',
'90-day metric history',
+ 'Advanced SSO (SAML/Multi-Provider)',
+ 'Role-Based Access Control (RBAC)',
+ 'Audit Logging',
+ 'PDF/CSV Reporting',
+ 'Centralized Agent Profiles',
],
},
],
@@ -407,6 +412,11 @@ describe('licensePresentation', () => {
'Alert Root-Cause Analysis',
'Safe Remediation Workflows',
'90-day metric history',
+ 'Advanced SSO (SAML/Multi-Provider)',
+ 'Role-Based Access Control (RBAC)',
+ 'Audit Logging',
+ 'PDF/CSV Reporting',
+ 'Centralized Agent Profiles',
],
},
],
@@ -452,6 +462,11 @@ describe('licensePresentation', () => {
'Alert Root-Cause Analysis',
'Safe Remediation Workflows',
'90-day metric history',
+ 'Advanced SSO (SAML/Multi-Provider)',
+ 'Role-Based Access Control (RBAC)',
+ 'Audit Logging',
+ 'PDF/CSV Reporting',
+ 'Centralized Agent Profiles',
],
});
diff --git a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
index c70da2caa1..d36dde34fd 100644
--- a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
+++ b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
@@ -113,7 +113,7 @@ describe('selfHostedPlans', () => {
'Analysis, remediation, and admin controls',
);
expect(SELF_HOSTED_PLAN_BY_TIER.pro.entitlementSummary).toContain(
- 'Root-cause analysis, safe remediation workflows, and 90-day history are unlocked right now.',
+ 'Root-cause analysis, safe remediation workflows, 90-day history, and admin/reporting extras are unlocked right now.',
);
expect(SELF_HOSTED_PLAN_BY_TIER.pro.comparisonSummary).toContain(
'safe remediation workflows, 90-day history',
diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.ts
index d80b33e913..15c313cd1a 100644
--- a/frontend-modern/src/utils/licensePresentation.ts
+++ b/frontend-modern/src/utils/licensePresentation.ts
@@ -368,7 +368,10 @@ const getSelfHostedActivationHighlights = ({
displayableCapabilities: string[];
}): string[] => {
const planDefinition = getSelfHostedPlanDefinitionForBillingTier(entitlements?.tier);
- const prioritized = [...(planDefinition?.entitlementHighlights ?? [])];
+ const prioritized = [
+ ...(planDefinition?.entitlementHighlights ?? []),
+ ...(planDefinition?.includedExtras ?? []),
+ ];
const unlockedFeatures = getSelfHostedUnlockedFeatures({
entitlements,
displayableCapabilities,
@@ -380,7 +383,7 @@ const getSelfHostedActivationHighlights = ({
continue;
}
highlights.push(feature);
- if (highlights.length >= 4) {
+ if (highlights.length >= 8) {
break;
}
}
@@ -388,6 +391,28 @@ const getSelfHostedActivationHighlights = ({
return highlights;
};
+const getSelfHostedPlanComparisonHighlights = (
+ planDefinition: ReturnType<typeof getSelfHostedPlanDefinitionForBillingTier>,
+): string[] => {
+ if (!planDefinition) {
+ return [];
+ }
+ const highlights: string[] = [];
+ for (const feature of [
+ ...planDefinition.entitlementHighlights,
+ ...planDefinition.includedExtras,
+ ]) {
+ if (!feature || highlights.includes(feature)) {
+ continue;
+ }
+ highlights.push(feature);
+ if (highlights.length >= 8) {
+ break;
+ }
+ }
+ return highlights;
+};
+
const getSelfHostedActivePlanSummary = (
planLabel: string,
planDefinition: ReturnType<typeof getSelfHostedPlanDefinitionForBillingTier>,
@@ -398,7 +423,7 @@ const getSelfHostedActivePlanSummary = (
case 'relay':
return `${planLabel} is active on this instance. Remote access, mobile, push, and longer history are unlocked right now.`;
case 'pro':
- return `${planLabel} is active on this instance. Root-cause analysis, safe remediation workflows, and 90-day history are unlocked right now.`;
+ return `${planLabel} is active on this instance. Root-cause analysis, safe remediation workflows, 90-day history, and admin/reporting extras are unlocked right now.`;
default:
return null;
}
@@ -427,7 +452,7 @@ export const getSelfHostedPlanComparisonPresentation = ({
return {
title: `What ${getSelfHostedPlanLabel(tier)} adds`,
body: definition.comparisonSummary,
- highlights: [...definition.entitlementHighlights].slice(0, 4),
+ highlights: getSelfHostedPlanComparisonHighlights(definition),
};
})
.filter((card): card is SelfHostedPlanComparisonCardPresentation => card !== null),
diff --git a/frontend-modern/src/utils/selfHostedPlans.ts b/frontend-modern/src/utils/selfHostedPlans.ts
index 81bee3edec..843b56329b 100644
--- a/frontend-modern/src/utils/selfHostedPlans.ts
+++ b/frontend-modern/src/utils/selfHostedPlans.ts
@@ -136,7 +136,7 @@ export const SELF_HOSTED_PLAN_DEFINITIONS: readonly SelfHostedPlanDefinition[] =
metricHistoryDays: 90,
billingExtrasSummary: 'Analysis, remediation, and admin controls',
entitlementSummary:
- 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation workflows, and 90-day history are unlocked right now.',
+ 'Pulse Pro is active on this instance. Root-cause analysis, safe remediation workflows, 90-day history, and admin/reporting extras are unlocked right now.',
entitlementHighlights: getTierEntitlementHighlights('pro', 90),
includedExtras: getTierIncludedExtras('pro'),
comparisonSummary: