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
fix(frontend): ship terms docs locally
rcourtman7a824337e646
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 8a175ec221..915d6d2296 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -238,6 +238,11 @@ activation-surface copy for `SelfHostedCommercialActivationSection.tsx`,including the activation field label/help text, legacy-key exchange notice,and self-serve trial panel labels, so that activation wording does not driftseparately from the rest of the Pro billing surface.+That same activation boundary also owns the linked legal surface:+`SelfHostedCommercialActivationSection.tsx` must route its Terms-of-Service+link through the shipped `TERMS.md` docs asset instead of sending operators to+GitHub `main`, so the activation trust surface stays version-matched and+available on restricted installs.Hosted self-serve trial leases are also part of that same contract. A redeemedhosted trial must carry the canonical Pro capability set and the authoritative`limits.max_monitored_systems` cap inside the signed lease rather than relyingdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 9d89409aa3..5aee0bb1af 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -212,6 +212,10 @@ work extends shared components instead of creating new local variants.`settingsHeaderMeta.ts` and the leading `SettingsPanel` in`RelaySettingsPanel.tsx` must reuse the same description and availabilitycopy instead of drifting into separate rollout or pairing wording.+13. Keep shared settings-shell legal and docs referrals on+ `frontend-modern/src/utils/docsLinks.ts`. Shared settings surfaces such as+ `AIRuntimeControlsSection.tsx` must not hardcode GitHub `main` doc URLs for+ privacy, security, proxy-auth, scope-reference, or Terms-of-Service links.## Current State@@ -1425,6 +1429,11 @@ That shared shell boundary now also covers version-matched docs-link framing:customer-facing privacy disclosures in shared settings surfaces must routethrough `frontend-modern/src/utils/docsLinks.ts` rather than panel-localexternal URLs.+That same docs-link boundary also governs local legal docs surfaced from the+settings shell: shared settings surfaces such as+`AIRuntimeControlsSection.tsx` must route Terms-of-Service links through the+shipped `TERMS.md` asset instead of hardcoding GitHub `main` URLs that can+drift from the running build.The same shell boundary now also owns shared relay route framing copy:`frontend-modern/src/utils/relayPresentation.ts` is the canonical owner forthe top-level relay settings description and availability copy used by bothdiff --git a/frontend-modern/public/docs/TERMS.md b/frontend-modern/public/docs/TERMS.mdnew file mode 100644index 0000000000..57955df872--- /dev/null+++ b/frontend-modern/public/docs/TERMS.md@@ -0,0 +1,31 @@+# Pulse Pro - Terms of Service & Software License Agreement++**Version 1.0**+**Effective Date: January 1, 2026**++IMPORTANT: PLEASE READ THIS AGREEMENT CAREFULLY. BY PURCHASING, INSTALLING, OR USING PULSE PRO ("THE SOFTWARE"), YOU AGREE TO BE BOUND BY THESE TERMS.++## 1. THE SOFTWARE+Pulse Pro is an infrastructure monitoring and AI-powered automation tool. It interacts directly with your servers, containers, and virtual machines.++## 2. "AS IS" WARRANTY DISCLAIMER+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.++## 3. LIMITATION OF LIABILITY+IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL THE AUTHOR, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.++**OUR TOTAL LIABILITY TO YOU FOR ALL CLAIMS ARISING OUT OF OR RELATED TO THIS AGREEMENT SHALL NOT EXCEED THE TOTAL AMOUNT PAID BY YOU FOR THE SOFTWARE DURING THE TWELVE (12) MONTHS PRIOR TO THE ACCRUAL OF THE FIRST CLAIM.**++## 4. AI AUTOMATION & AUTONOMOUS MODE+The Software includes features ("AI Patrol", "Auto-Fix", "Autonomous Mode") that use Artificial Intelligence to execute commands on your infrastructure.+* **User Responsibility**: You acknowledge that AI models can hallucinate or produce incorrect commands. You are solely responsible for verifying the actions recommended or taken by the Software.+* **High-Risk Environments**: Use in production or mission-critical environments is at your own risk. We strongly recommend using "Approval Mode" rather than "Autonomous Mode".++## 5. INDEMNIFICATION+You agree to indemnify and hold harmless the Author from and against all claims, damages, losses, liabilities, costs, and expenses (including reasonable attorneys' fees) arising out of or related to your use of the Software.++## 6. GOVERNING LAW+This Agreement shall be governed by and construed in accordance with the laws of England and Wales. Any legal action or proceeding related to this Agreement shall be brought exclusively in the courts of England and Wales.++---+*Pulse is a product of Pulse Monitoring Ltd (Company No. 16939106, registered in England and Wales).*diff --git a/frontend-modern/scripts/sync-public-docs.mjs b/frontend-modern/scripts/sync-public-docs.mjsindex c8d39a9be2..45371fd539 100644--- a/frontend-modern/scripts/sync-public-docs.mjs+++ b/frontend-modern/scripts/sync-public-docs.mjs@@ -14,6 +14,7 @@ const shippedDocs = [{ source: path.join(repoRoot, 'docs', 'CONFIGURATION.md'), target: 'CONFIGURATION.md' },{ source: path.join(repoRoot, 'docs', 'PROXY_AUTH.md'), target: 'PROXY_AUTH.md' },{ source: path.join(repoRoot, 'SECURITY.md'), target: 'SECURITY.md' },+ { source: path.join(repoRoot, 'TERMS.md'), target: 'TERMS.md' },];export async function syncPublicDocs() {diff --git a/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx b/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsxindex c95c145b2b..ab4b5b1ac3 100644--- a/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx+++ b/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx@@ -3,6 +3,7 @@ import type { AIControlLevel } from '@/utils/aiControlLevelPresentation';import type { AISettingsState } from '@/components/Settings/useAISettingsState';import { HelpIcon } from '@/components/shared/HelpIcon';import { Toggle } from '@/components/shared/Toggle';+import { TERMS_DOC_URL } from '@/utils/docsLinks';import {getAIControlLevelBadgeClass,getAIControlLevelDescription,@@ -226,7 +227,7 @@ export const AIRuntimeControlsSection: Component<AIRuntimeControlsSectionProps><strong>Legal Disclaimer:</strong> Model-driven systems can hallucinate. You areresponsible for any damage caused by autonomous actions. See{' '}<a- href="https://github.com/rcourtman/Pulse/blob/main/TERMS.md"+ href={TERMS_DOC_URL}target="_blank"rel="noopener noreferrer"class="inline-flex min-h-10 sm:min-h-9 items-center rounded px-1 underline"diff --git a/frontend-modern/src/components/Settings/SelfHostedCommercialActivationSection.tsx b/frontend-modern/src/components/Settings/SelfHostedCommercialActivationSection.tsxindex 8701ca2661..405da8c934 100644--- a/frontend-modern/src/components/Settings/SelfHostedCommercialActivationSection.tsx+++ b/frontend-modern/src/components/Settings/SelfHostedCommercialActivationSection.tsx@@ -1,6 +1,7 @@import { Component, Show } from 'solid-js';import { formField, formHelpText, labelClass, controlClass } from '@/components/shared/Form';import { SELF_HOSTED_ACTIVATION_PRESENTATION } from '@/utils/licensePresentation';+import { TERMS_DOC_URL } from '@/utils/docsLinks';import { CommercialSection } from './CommercialBillingSections';interface SelfHostedCommercialActivationSectionProps {@@ -39,7 +40,7 @@ export const SelfHostedCommercialActivationSection: Component<<p class={formHelpText}>{SELF_HOSTED_ACTIVATION_PRESENTATION.helpTextBeforeTerms}{' '}<a- href="https://github.com/rcourtman/Pulse/blob/main/TERMS.md"+ href={TERMS_DOC_URL}target="_blank"rel="noopener noreferrer"class="inline-flex min-h-10 sm:min-h-9 items-center rounded px-1 text-blue-600 hover:underline"diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsxindex 5445fa4e11..2060e48227 100644--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx@@ -487,6 +487,10 @@ describe('ProLicensePanel', () => {expect(selfHostedCommercialActivationSectionSource).toContain('SELF_HOSTED_ACTIVATION_PRESENTATION',);+ expect(selfHostedCommercialActivationSectionSource).toContain('TERMS_DOC_URL');+ expect(selfHostedCommercialActivationSectionSource).not.toContain(+ 'https://github.com/rcourtman/Pulse/blob/main/TERMS.md',+ );expect(selfHostedCommercialActivationSectionSource).not.toContain('Start 14-day Pro Trial');expect(selfHostedCommercialActivationSectionSource).not.toContain('Legacy v5 license detected',diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 0698ba9b66..9063231040 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -1253,8 +1253,12 @@ describe('Settings architecture guardrails', () => {expect(generalSettingsPanelSource).toContain('PRIVACY_DOC_URL');expect(apiAccessPanelSource).toContain('@/utils/docsLinks');expect(apiAccessPanelSource).toContain('API_TOKEN_SCOPES_DOC_URL');+ expect(aiRuntimeControlsSectionSource).toContain('@/utils/docsLinks');+ expect(aiRuntimeControlsSectionSource).toContain('TERMS_DOC_URL');expect(securityOverviewPanelSource).toContain('@/utils/docsLinks');expect(securityOverviewPanelSource).toContain('PROXY_AUTH_DOC_URL');+ expect(selfHostedCommercialActivationSectionSource).toContain('@/utils/docsLinks');+ expect(selfHostedCommercialActivationSectionSource).toContain('TERMS_DOC_URL');expect(apiTokenManagerModelSource).toContain('@/utils/docsLinks');expect(apiTokenManagerModelSource).toContain('API_TOKEN_SCOPES_DOC_URL');expect(recoverySettingsPanelSource).toContain('@/utils/systemSettingsPresentation');@@ -1276,6 +1280,7 @@ describe('Settings architecture guardrails', () => {"export const PROXY_AUTH_DOC_URL = getShippedDocUrl('PROXY_AUTH.md')",);expect(docsLinksSource).toContain("export const SECURITY_DOC_URL = getShippedDocUrl('SECURITY.md')");+ expect(docsLinksSource).toContain("export const TERMS_DOC_URL = getShippedDocUrl('TERMS.md')");});it('routes every top-level settings surface through the canonical panel shell framing', () => {diff --git a/frontend-modern/src/utils/__tests__/docsLinks.test.ts b/frontend-modern/src/utils/__tests__/docsLinks.test.tsindex b445083f34..7e4df1b909 100644--- a/frontend-modern/src/utils/__tests__/docsLinks.test.ts+++ b/frontend-modern/src/utils/__tests__/docsLinks.test.ts@@ -9,12 +9,15 @@ import {PROXY_AUTH_DOC_URL,README_DOC_URL,SECURITY_DOC_URL,+ TERMS_DOC_URL,SHIPPED_DOCS_ROOT,getShippedDocUrl,} from '@/utils/docsLinks';import apiAccessPanelSource from '@/components/Settings/APIAccessPanel.tsx?raw';+import aiRuntimeControlsSectionSource from '@/components/Settings/AIRuntimeControlsSection.tsx?raw';import apiTokenManagerModelSource from '@/components/Settings/apiTokenManagerModel.ts?raw';import securityOverviewPanelSource from '@/components/Settings/SecurityOverviewPanel.tsx?raw';+import selfHostedCommercialActivationSectionSource from '@/components/Settings/SelfHostedCommercialActivationSection.tsx?raw';import securityWarningSource from '@/components/SecurityWarning.tsx?raw';const __filename = fileURLToPath(import.meta.url);@@ -31,6 +34,7 @@ describe('docsLinks', () => {expect(CONFIGURATION_DOC_URL).toBe('/docs/CONFIGURATION.md');expect(PROXY_AUTH_DOC_URL).toBe('/docs/PROXY_AUTH.md');expect(SECURITY_DOC_URL).toBe('/docs/SECURITY.md');+ expect(TERMS_DOC_URL).toBe('/docs/TERMS.md');expect(API_TOKEN_SCOPES_DOC_URL).toBe('/docs/CONFIGURATION.md');});@@ -41,6 +45,7 @@ describe('docsLinks', () => {{ source: path.join(repoRoot, 'docs', 'CONFIGURATION.md'), target: 'CONFIGURATION.md' },{ source: path.join(repoRoot, 'docs', 'PROXY_AUTH.md'), target: 'PROXY_AUTH.md' },{ source: path.join(repoRoot, 'SECURITY.md'), target: 'SECURITY.md' },+ { source: path.join(repoRoot, 'TERMS.md'), target: 'TERMS.md' },];for (const { source, target } of docPairs) {@@ -68,5 +73,13 @@ describe('docsLinks', () => {expect(securityWarningSource).not.toContain('https://github.com/rcourtman/Pulse/blob/main/docs/',);+ expect(aiRuntimeControlsSectionSource).toContain('TERMS_DOC_URL');+ expect(aiRuntimeControlsSectionSource).not.toContain(+ 'https://github.com/rcourtman/Pulse/blob/main/TERMS.md',+ );+ expect(selfHostedCommercialActivationSectionSource).toContain('TERMS_DOC_URL');+ expect(selfHostedCommercialActivationSectionSource).not.toContain(+ 'https://github.com/rcourtman/Pulse/blob/main/TERMS.md',+ );});});diff --git a/frontend-modern/src/utils/docsLinks.ts b/frontend-modern/src/utils/docsLinks.tsindex e38f859298..5996c47edf 100644--- a/frontend-modern/src/utils/docsLinks.ts+++ b/frontend-modern/src/utils/docsLinks.ts@@ -9,4 +9,5 @@ export const PRIVACY_DOC_URL = getShippedDocUrl('PRIVACY.md');export const CONFIGURATION_DOC_URL = getShippedDocUrl('CONFIGURATION.md');export const PROXY_AUTH_DOC_URL = getShippedDocUrl('PROXY_AUTH.md');export const SECURITY_DOC_URL = getShippedDocUrl('SECURITY.md');+export const TERMS_DOC_URL = getShippedDocUrl('TERMS.md');export const API_TOKEN_SCOPES_DOC_URL = CONFIGURATION_DOC_URL;diff --git a/tests/integration/tests/20-local-doc-links.spec.ts b/tests/integration/tests/20-local-doc-links.spec.tsindex 38f15b5e01..9ac967ad25 100644--- a/tests/integration/tests/20-local-doc-links.spec.ts+++ b/tests/integration/tests/20-local-doc-links.spec.ts@@ -132,4 +132,42 @@ test.describe('Local docs links', () => {await expect(securityGuideLink).toHaveAttribute('href', '/docs/SECURITY.md');await expectPopupDoc(page, securityGuideLink, '/docs/SECURITY.md', 'Pulse Security');});++ test('ai runtime controls open the shipped terms doc', async ({ page }, testInfo) => {+ test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop-only local docs coverage');++ await page.goto('/settings/system-ai', { waitUntil: 'domcontentloaded' });+ await page.waitForURL(/\/settings/, { timeout: 15_000 });++ const permissionSelect = page+ .locator('select')+ .filter({ has: page.locator('option[value="autonomous"]') })+ .first();+ await permissionSelect.selectOption('autonomous');++ const termsLink = page.getByRole('link', { name: 'Terms of Service' }).first();+ await expect(termsLink).toHaveAttribute('href', '/docs/TERMS.md');+ await expectPopupDoc(+ page,+ termsLink,+ '/docs/TERMS.md',+ 'Pulse Pro - Terms of Service & Software License Agreement',+ );+ });++ test('self-hosted commercial activation opens the shipped terms doc', async ({ page }, testInfo) => {+ test.skip(testInfo.project.name.startsWith('mobile-'), 'Desktop-only local docs coverage');++ await page.goto('/settings/system-pro', { waitUntil: 'domcontentloaded' });+ await page.waitForURL(/\/settings/, { timeout: 15_000 });++ const termsLink = page.getByRole('link', { name: /terms of service/i }).first();+ await expect(termsLink).toHaveAttribute('href', '/docs/TERMS.md');+ await expectPopupDoc(+ page,+ termsLink,+ '/docs/TERMS.md',+ 'Pulse Pro - Terms of Service & Software License Agreement',+ );+ });});