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.

Remove stale Relay onboarding price copy

rcourtmanaa517d62216c
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 94f0f03841..9a4d14f025 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -1554,7 +1554,7 @@ remaining unowned consumers of relay licensing state.
That relay settings owner is intentionally split by role:
`frontend-modern/src/components/Settings/RelaySettingsPanel.tsx` is the
settings shell, `frontend-modern/src/components/Settings/useRelaySettingsPanelState.ts`
-owns relay config/status polling, trial, and pairing runtime, and
+owns relay config/status polling and pairing runtime, and
`frontend-modern/src/components/Settings/RelayPairingSection.tsx` owns the QR
pairing surface. Future relay settings work must extend that split instead of
pulling polling and QR-generation lifecycle back into the shell component.
diff --git a/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx b/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx
index 30d0485202..801e6fdf75 100644
--- a/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx
@@ -171,7 +171,7 @@ describe('RelaySettingsPanel runtime', () => {
expect(
screen.getByText(
- 'Remote access via Pulse Relay requires a Relay license or above. Pair supported Pulse Mobile clients with this instance using a QR code or deep link.',
+ 'Remote access is available with Relay or Pro. Pair supported Pulse Mobile clients with this instance using a QR code or deep link.',
),
).toBeInTheDocument();
expect(screen.getByRole('link', { name: 'View plans' })).toHaveAttribute(
diff --git a/frontend-modern/src/utils/__tests__/relayPresentation.test.ts b/frontend-modern/src/utils/__tests__/relayPresentation.test.ts
index 84025f6f1a..76daf47812 100644
--- a/frontend-modern/src/utils/__tests__/relayPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/relayPresentation.test.ts
@@ -9,11 +9,6 @@ import {
RELAY_INLINE_ACTION_CLASS,
RELAY_LAST_ERROR_CLASS,
RELAY_LICENSE_REQUIRED_MESSAGE,
- RELAY_ONBOARDING_DESCRIPTION,
- RELAY_ONBOARDING_DISCONNECTED_LABEL,
- RELAY_ONBOARDING_SETUP_LABEL,
- RELAY_ONBOARDING_TITLE,
- RELAY_ONBOARDING_UPGRADE_LABEL,
RELAY_PAIRING_AVAILABILITY_MESSAGE,
RELAY_PAIRING_AVAILABILITY_TITLE,
RELAY_PRIMARY_BUTTON_CLASS,
@@ -23,6 +18,7 @@ import {
RELAY_SECONDARY_BUTTON_CLASS,
RELAY_SETTINGS_DESCRIPTION,
} from '@/utils/relayPresentation';
+import relayPresentationSource from '@/utils/relayPresentation.ts?raw';
describe('relayPresentation', () => {
it('returns muted not-enabled presentation when relay is disabled', () => {
@@ -71,16 +67,18 @@ describe('relayPresentation', () => {
it('centralizes relay availability copy', () => {
expect(RELAY_SETTINGS_DESCRIPTION).toContain('Pulse Mobile pairing');
expect(RELAY_LICENSE_REQUIRED_MESSAGE).toContain('supported Pulse Mobile clients');
+ expect(RELAY_LICENSE_REQUIRED_MESSAGE).toContain('available with Relay or Pro');
expect(RELAY_PAIRING_AVAILABILITY_TITLE).toBe('Pair Pulse Mobile through Relay');
expect(RELAY_PAIRING_AVAILABILITY_MESSAGE).toContain('QR code or deep link');
expect(RELAY_ENABLE_HELP_TEXT).toContain('Pulse Mobile pairing');
});
- it('centralizes relay onboarding copy', () => {
- expect(RELAY_ONBOARDING_TITLE).toBe('Pair Your Mobile Device');
- expect(RELAY_ONBOARDING_DESCRIPTION).toContain('remote monitoring');
- expect(RELAY_ONBOARDING_UPGRADE_LABEL).toBe('Get Relay — $39/yr');
- expect(RELAY_ONBOARDING_SETUP_LABEL).toBe('Set Up Relay');
- expect(RELAY_ONBOARDING_DISCONNECTED_LABEL).toBe('Relay is currently disconnected.');
+ it('does not retain retired Relay price or trial-era onboarding copy', () => {
+ expect(relayPresentationSource).not.toContain('RELAY_ONBOARDING_UPGRADE_LABEL');
+ expect(relayPresentationSource).not.toContain('Get Relay');
+ expect(relayPresentationSource).not.toContain('$39');
+ expect(relayPresentationSource).not.toContain('$49');
+ expect(relayPresentationSource).not.toContain('$99');
+ expect(relayPresentationSource).not.toContain('Start free trial');
});
});
diff --git a/frontend-modern/src/utils/relayPresentation.ts b/frontend-modern/src/utils/relayPresentation.ts
index c3e23b2d93..41505f90b5 100644
--- a/frontend-modern/src/utils/relayPresentation.ts
+++ b/frontend-modern/src/utils/relayPresentation.ts
@@ -29,18 +29,12 @@ export const RELAY_DIAGNOSTICS_TITLE_CLASS = 'text-xs font-semibold text-base-co
export const RELAY_SETTINGS_DESCRIPTION =
'Configure Pulse relay connectivity for secure remote access and Pulse Mobile pairing.';
export const RELAY_LICENSE_REQUIRED_MESSAGE =
- 'Remote access via Pulse Relay requires a Relay license or above. Pair supported Pulse Mobile clients with this instance using a QR code or deep link.';
+ 'Remote access is available with Relay or Pro. Pair supported Pulse Mobile clients with this instance using a QR code or deep link.';
export const RELAY_PAIRING_AVAILABILITY_TITLE = 'Pair Pulse Mobile through Relay';
export const RELAY_PAIRING_AVAILABILITY_MESSAGE =
'Supported Pulse Mobile clients connect to this Pulse instance with a QR code or deep link over end-to-end encrypted relay connectivity.';
export const RELAY_ENABLE_HELP_TEXT =
'Connect this Pulse instance to the relay server for secure remote access and Pulse Mobile pairing.';
-export const RELAY_ONBOARDING_TITLE = 'Pair Your Mobile Device';
-export const RELAY_ONBOARDING_DESCRIPTION =
- 'Pulse Relay lets your phone securely connect to this Pulse instance for remote monitoring.';
-export const RELAY_ONBOARDING_UPGRADE_LABEL = 'Get Relay — $39/yr';
-export const RELAY_ONBOARDING_SETUP_LABEL = 'Set Up Relay';
-export const RELAY_ONBOARDING_DISCONNECTED_LABEL = 'Relay is currently disconnected.';
export function getRelayDiagnosticClass(severity: 'warning' | 'error'): string {
return severity === 'error'