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
Route pro-feature paywall keys to billing plan page for self-hosted instances
rcourtmanedb732074f66
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex d40468a514..7d760fef38 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -250,6 +250,14 @@ Insights`, rather than reviving generic `AI Patrol` or `AI ... analysis`## Current State+`frontend-modern/src/utils/pricingHandoff.ts` now routes pro-feature paywall+keys (`ai_alerts`, `ai_autofix`, `relay`, `rbac`, `audit_logging`,+`advanced_sso`, `agent_profiles`, `long_term_metrics`, `trial_expired`) to the+self-hosted billing plan page instead of the Pulse Account purchase-start+handoff. The purchase-start handoff requires a `PublicURL` and fails on local+instances; routing these keys to the in-product billing plan keeps upgrades+accessible from self-hosted environments.+Cloud paid readiness is materially behind architecture work. The main concern iscontract coherence between pricing, entitlements, and runtime enforcement.That public-demo commercial boundary also owns monitored-system previewdiff --git a/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts b/frontend-modern/src/utils/__tests__/pricingHandoff.test.tsindex 7f2f449d20..1085a928f7 100644--- a/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts+++ b/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts@@ -40,8 +40,16 @@ describe('pricingHandoff', () => {expect(getUpgradeFallbackDestination('cloud')).toBe('/cloud');});- it('routes self-hosted upgrades to Pulse Account first', () => {- expect(getUpgradeFallbackDestination('relay')).toBe(getSelfHostedPurchaseStartUrl('relay'));+ it('routes Pro feature upgrades to the in-product billing plan page', () => {+ expect(getUpgradeFallbackDestination('relay')).toBe(SELF_HOSTED_PRO_BILLING_PLAN_HREF);+ expect(getUpgradeFallbackDestination('ai_alerts')).toBe(SELF_HOSTED_PRO_BILLING_PLAN_HREF);+ expect(getUpgradeFallbackDestination('rbac')).toBe(SELF_HOSTED_PRO_BILLING_PLAN_HREF);+ });++ it('routes unknown feature upgrades to Pulse Account purchase start', () => {+ expect(getUpgradeFallbackDestination('unknown_pro_feature')).toBe(+ getSelfHostedPurchaseStartUrl('unknown_pro_feature'),+ );});it('returns the canonical public pricing URL when no feature is provided', () => {@@ -51,10 +59,12 @@ describe('pricingHandoff', () => {});it('preserves extra query parameters when handing off the legacy pricing route', () => {- expect(getPricingRouteDestination('?feature=relay&utm_content=legacy-bookmark')).toBe(+ expect(+ getPricingRouteDestination('?feature=unknown_pro_feature&utm_content=legacy-bookmark'),+ ).toBe(getSelfHostedPurchaseStartUrl(- 'relay',- new URLSearchParams('feature=relay&utm_content=legacy-bookmark'),+ 'unknown_pro_feature',+ new URLSearchParams('feature=unknown_pro_feature&utm_content=legacy-bookmark'),),);});diff --git a/frontend-modern/src/utils/pricingHandoff.ts b/frontend-modern/src/utils/pricingHandoff.tsindex 0bc757452c..6e7d14bb03 100644--- a/frontend-modern/src/utils/pricingHandoff.ts+++ b/frontend-modern/src/utils/pricingHandoff.ts@@ -53,6 +53,17 @@ const IN_PRODUCT_PRICING_DESTINATIONS: Record<string, string> = {self_hosted_plan: SELF_HOSTED_PRO_BILLING_PLAN_MONITORED_SYSTEM_UPGRADE_HREF,max_monitored_systems: SELF_HOSTED_PRO_BILLING_PLAN_MONITORED_SYSTEM_UPGRADE_HREF,cloud: '/cloud',+ // Pro-feature keys: route to billing plan page instead of the Pulse Account+ // purchase-start handoff, which fails for local instances without PublicURL.+ ai_alerts: SELF_HOSTED_PRO_BILLING_PLAN_HREF,+ ai_autofix: SELF_HOSTED_PRO_BILLING_PLAN_HREF,+ relay: SELF_HOSTED_PRO_BILLING_PLAN_HREF,+ rbac: SELF_HOSTED_PRO_BILLING_PLAN_HREF,+ audit_logging: SELF_HOSTED_PRO_BILLING_PLAN_HREF,+ advanced_sso: SELF_HOSTED_PRO_BILLING_PLAN_HREF,+ agent_profiles: SELF_HOSTED_PRO_BILLING_PLAN_HREF,+ long_term_metrics: SELF_HOSTED_PRO_BILLING_PLAN_HREF,+ trial_expired: SELF_HOSTED_PRO_BILLING_PLAN_HREF,};const INTERNAL_HREF_BASE = 'https://pulse.invalid';