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.

Route managed hosting links to support

rcourtman9176a2fa7648
diff --git a/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts b/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts
index 6aca2f9550..c23207e966 100644
--- a/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts
+++ b/frontend-modern/src/utils/__tests__/pricingHandoff.test.ts
@@ -1,7 +1,7 @@
import { describe, expect, it } from 'vitest';
import { SELF_HOSTED_FEATURE_CATALOG } from '@/utils/selfHostedFeatureCatalog.generated';
import {
- getCloudAccountPortalUrl,
+ getManagedHostingRequestUrl,
getSelfHostedPurchaseStartUrl,
getSelfHostedBillingHref,
getSelfHostedBillingPlanDetail,
@@ -40,8 +40,8 @@ describe('pricingHandoff', () => {
);
});
- it('routes cloud pricing links out to Pulse Account instead of an in-product trial page', () => {
- expect(getUpgradeFallbackDestination('cloud')).toBe(getCloudAccountPortalUrl());
+ it('routes cloud pricing links to request-assisted hosting instead of an in-product trial page', () => {
+ expect(getUpgradeFallbackDestination('cloud')).toBe(getManagedHostingRequestUrl());
expect(getInProductPricingDestination('cloud')).toBeUndefined();
});
@@ -241,7 +241,7 @@ describe('pricingHandoff', () => {
it('detects external pricing destinations', () => {
expect(isExternalPricingDestination(getPublicPricingUrl('relay'))).toBe(true);
expect(isExternalPricingDestination(getSelfHostedPurchaseStartUrl('relay'))).toBe(false);
- expect(isExternalPricingDestination(getCloudAccountPortalUrl())).toBe(true);
+ expect(isExternalPricingDestination(getManagedHostingRequestUrl())).toBe(true);
});
it('detects the internal self-hosted purchase start destination', () => {
diff --git a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
index e48c7ecc4c..7dfb4c47b5 100644
--- a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
+++ b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
@@ -75,8 +75,8 @@ describe('selfHostedPlans', () => {
footerLinks: [
{
preface: 'Need managed hosting?',
- label: 'Open Pulse Account',
- href: 'https://cloud.pulserelay.pro/portal',
+ label: 'Request managed hosting',
+ href: 'mailto:[email protected]?subject=Pulse%20Managed%20Hosting',
},
{
preface: 'Managing clients?',
diff --git a/frontend-modern/src/utils/__tests__/upgradeNavigation.test.ts b/frontend-modern/src/utils/__tests__/upgradeNavigation.test.ts
index 5c9750a553..7057ab92a8 100644
--- a/frontend-modern/src/utils/__tests__/upgradeNavigation.test.ts
+++ b/frontend-modern/src/utils/__tests__/upgradeNavigation.test.ts
@@ -10,6 +10,7 @@ describe('upgradeNavigation', () => {
it('classifies external upgrade hrefs without treating product routes as external', () => {
expect(isExternalUpgradeHref('https://pulserelay.pro/pricing')).toBe(true);
expect(isExternalUpgradeHref('http://127.0.0.1:3000/upgrade')).toBe(true);
+ expect(isExternalUpgradeHref('mailto:[email protected]')).toBe(true);
expect(isExternalUpgradeHref('/settings/system/billing')).toBe(false);
expect(isExternalUpgradeHref(' /cloud ')).toBe(false);
expect(isExternalUpgradeHref('')).toBe(false);
@@ -31,6 +32,13 @@ describe('upgradeNavigation', () => {
newTab: true,
preserveOpener: false,
});
+ expect(resolveUpgradeDestination(' mailto:[email protected] ')).toEqual({
+ href: 'mailto:[email protected]',
+ external: true,
+ hardNavigation: true,
+ newTab: true,
+ preserveOpener: false,
+ });
});
it('routes internal destinations through the provided navigate callback', () => {
diff --git a/frontend-modern/src/utils/pricingHandoff.ts b/frontend-modern/src/utils/pricingHandoff.ts
index 9bdb21be5e..339fac4117 100644
--- a/frontend-modern/src/utils/pricingHandoff.ts
+++ b/frontend-modern/src/utils/pricingHandoff.ts
@@ -6,7 +6,8 @@ import {
const DEFAULT_PUBLIC_PRICING_URL =
'https://pulserelay.pro/pricing?utm_source=pulse&utm_medium=app&utm_campaign=upgrade';
-const DEFAULT_CLOUD_ACCOUNT_PORTAL_URL = 'https://cloud.pulserelay.pro/portal';
+const DEFAULT_MANAGED_HOSTING_REQUEST_URL =
+ 'mailto:[email protected]?subject=Pulse%20Managed%20Hosting';
export const SELF_HOSTED_PURCHASE_START_PATH = '/auth/license-purchase-start';
export const SELF_HOSTED_PRO_BILLING_ROUTE = '/settings/system/billing';
@@ -161,14 +162,14 @@ export function getPublicPricingUrl(feature?: string | null): string {
return url.toString();
}
-export function getCloudAccountPortalUrl(): string {
- return DEFAULT_CLOUD_ACCOUNT_PORTAL_URL;
+export function getManagedHostingRequestUrl(): string {
+ return DEFAULT_MANAGED_HOSTING_REQUEST_URL;
}
export function getUpgradeFallbackDestination(feature?: string | null): string | undefined {
if (isRetiredPricingFeature(feature)) return undefined;
if (normalizeFeatureKey(feature) === 'cloud') {
- return getCloudAccountPortalUrl();
+ return getManagedHostingRequestUrl();
}
return getInProductPricingDestination(feature) || getSelfHostedPurchaseStartUrl(feature);
}
diff --git a/frontend-modern/src/utils/selfHostedPlans.ts b/frontend-modern/src/utils/selfHostedPlans.ts
index 9bebe6dae8..73d9efb3e8 100644
--- a/frontend-modern/src/utils/selfHostedPlans.ts
+++ b/frontend-modern/src/utils/selfHostedPlans.ts
@@ -207,8 +207,8 @@ export const SELF_HOSTED_COMMERCIAL_PRESENTATION: SelfHostedCommercialPresentati
footerLinks: [
{
preface: 'Need managed hosting?',
- label: 'Open Pulse Account',
- href: 'https://cloud.pulserelay.pro/portal',
+ label: 'Request managed hosting',
+ href: 'mailto:[email protected]?subject=Pulse%20Managed%20Hosting',
},
{
preface: 'Managing clients?',
diff --git a/frontend-modern/src/utils/upgradeNavigation.ts b/frontend-modern/src/utils/upgradeNavigation.ts
index 0730b27162..5d66374e24 100644
--- a/frontend-modern/src/utils/upgradeNavigation.ts
+++ b/frontend-modern/src/utils/upgradeNavigation.ts
@@ -18,7 +18,7 @@ function normalizeUpgradeHref(href: string | null | undefined): string {
export function isExternalUpgradeHref(href: string | null | undefined): boolean {
const normalized = normalizeUpgradeHref(href);
- return normalized !== '' && /^https?:\/\//.test(normalized);
+ return normalized !== '' && /^(?:https?:\/\/|mailto:)/.test(normalized);
}
export function resolveUpgradeDestination(