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
Remove commercial event controls from settings
rcourtman37b1385d94ae
diff --git a/docs/PRIVACY.md b/docs/PRIVACY.mdindex 299f4759df..ef77b41d22 100644--- a/docs/PRIVACY.md+++ b/docs/PRIVACY.md@@ -4,12 +4,13 @@ Pulse is designed to run locally. By default, your monitoring data stays on your## Usage Data-Pulse currently has two usage-data scopes:+Pulse has one outbound usage-data scope: **anonymous outbound telemetry** to+help me understand active installations, release uptake, and feature use in+aggregate.-1. **Anonymous outbound telemetry** to help me understand active installations, release uptake, and feature use in aggregate.-2. **Local-only commercial handoff events** to help debug explicit paid-plan and activation handoffs on the instance where they were recorded.--These are separate scopes on purpose. The outbound telemetry path stays coarse and anonymous. The local-only commercial-event path stays on the Pulse instance and is not exported to third parties.+Commercial activation and license-recovery runtime records stay on the Pulse+instance where they were created. They are not exported to Pulse infrastructure,+third-party analytics, support diagnostics, or ordinary Settings surfaces.### Anonymous outbound telemetry@@ -99,12 +100,6 @@ Pulse can make outbound connections when you enable specific features:- **Relay / Remote Access**: when relay is enabled, Pulse connects to the configured relay endpoint to enable secure remote web access, mobile app pairing, and push notifications. See Settings → Remote Access.- **Update checks**: Pulse can check for new releases/updates (for example via GitHub release metadata) depending on your deployment and configuration.-### Local-only commercial handoff events--Pulse can record local-only usage events such as plan-link views or activation handoff attempts to improve and debug voluntary paid flows.--- These events are stored locally and are not exported to third parties.-- Disable via **Settings → System → General → Disable local-only commercial events** or set:- - `PULSE_DISABLE_LOCAL_UPGRADE_METRICS=true`--The legacy `reduceProUpsellNoise` preference remains for older proactive prompt behavior, but default self-hosted v6 sessions already hide paid prompts unless the user enters an explicit commercial handoff or has an existing entitlement.+The legacy `reduceProUpsellNoise` preference remains for older proactive prompt+behavior, but default self-hosted v6 sessions already hide paid prompts unless+the user enters an explicit commercial handoff or has an existing entitlement.diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 3770ec4bd6..a869a96d93 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -790,9 +790,10 @@ for logs and response headers.That same shared settings/licensing contract now also owns the split usage-datapayload model. `frontend-modern/src/api/settings.ts`,`internal/api/router_routes_licensing.go`, and adjacent settings callers must-keep anonymous outbound telemetry and local-only commercial handoff events as separate-browser-visible scopes, and the telemetry preview payload must ship normalized-version identity fields (`version`, `version_raw`, `version_channel`,+keep anonymous outbound telemetry as the only browser-visible usage-data scope;+local commercial reporting controls stay internal/admin-owned and must not+surface as ordinary Settings controls. The telemetry preview payload must ship+normalized version identity fields (`version`, `version_raw`, `version_channel`,`version_build`, `version_is_development`, and`version_is_published_release`) instead of leaving browser callers to inferpublished-release truth from raw build strings.diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 70439364d8..2d79b77a73 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -866,13 +866,18 @@ work extends shared components instead of creating new local variants.“IPs are never seen,” the summary copy in`GeneralSettingsPanel.tsx` must state those facts plainly instead ofreverting to a stronger but inaccurate shorthand.-28. Keep shared storage-route feature presentation on neutral capability truth.+28. Keep maintainer commercial-event controls out of customer settings.+ The shared general settings privacy panel may expose anonymous outbound+ telemetry controls, preview, and reset affordances, but it must not render+ local commercial handoff event toggles, `PULSE_DISABLE_LOCAL_UPGRADE_METRICS`,+ or other commercial-debug controls as normal customer-facing preferences.+29. Keep shared storage-route feature presentation on neutral capability truth.Reusable mappers and presenters in `frontend-modern/src/features/storageBackups/`must distinguish inventory datastores from backup repositories so VMwarerows on the shared storage route stay canonical to the admitted phase-1 floor instead ofreviving backup-target, protected-target, or recovery-local semantics on ashared page.-29. Keep infrastructure settings-shell API alternatives on the shared shell+30. Keep infrastructure settings-shell API alternatives on the shared shellcontract. `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`,`frontend-modern/src/components/Settings/settingsHeaderMeta.ts`, and`frontend-modern/src/components/Settings/settingsNavigationModel.ts` must@@ -884,7 +889,7 @@ work extends shared components instead of creating new local variants.and no per-type `ProxmoxSettingsPanel` / `TrueNASSettingsPanel` /`VMwareSettingsPanel` to route through; the provider is a field insideone `ConnectionEditor`, not a destination.-30. Keep the infrastructure settings connection inventory on one shared+31. Keep the infrastructure settings connection inventory on one sharedsource. `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`composes rows exclusively from`frontend-modern/src/components/Settings/useConnectionsLedger.ts`,@@ -894,14 +899,14 @@ work extends shared components instead of creating new local variants.`PlatformConnectionsWorkspace` / `TrueNASSettingsPanel` /`VMwareSettingsPanel` panels must not be reintroduced as a secondfetch path.-31. Keep alert-history feature composition on the current owned state contract.+32. Keep alert-history feature composition on the current owned state contract.`frontend-modern/src/features/alerts/tabs/HistoryTab.tsx` must react to theshared `alertData()` history state instead of reviving deleted aliases, andit must pass unified-resource resolution through to`frontend-modern/src/features/alerts/AlertResourceIncidentsPanel.tsx` sothe panel can render shared route chips without creating another page-localresource lookup or provider-specific handoff layer.-32. Keep the alert-thresholds containers surface on the canonical shared owner.+33. Keep the alert-thresholds containers surface on the canonical shared owner.`alertOverridesModel.ts`, `useAlertOverridesState.ts`, and`useAlertsConfigurationState.ts` must surface API-backed `app-container`parents such as TrueNAS as first-class `Container Runtimes`, while@@ -910,21 +915,21 @@ work extends shared components instead of creating new local variants.props that can collapse functions on the live Solid surface. Docker-onlycontrols in `ThresholdsTableDockerTab.tsx` must remain gated to real`docker-host` resources instead of leaking onto platform-managed runtimes.-33. Keep shared commercial upgrade navigation typed and destination-aware.+34. Keep shared commercial upgrade navigation typed and destination-aware.Shared paywall shells and upgrade actions must route internal billing orcloud destinations through `frontend-modern/src/utils/upgradeNavigation.ts`,`frontend-modern/src/components/shared/UpgradeLink.tsx`, and`frontend-modern/src/components/shared/useUpgradeNavigation.ts` instead ofguessing from labels, hardcoding `target="_blank"`, or calling`window.open(...)` from each feature surface.-34. Keep same-shell infrastructure route transitions on retained shared state.+35. Keep same-shell infrastructure route transitions on retained shared state.`frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`may show its full-page loading shell only before the first compatibleresource snapshot exists; once a fresh canonical snapshot is alreadypresent in the shared app shell, top-level tab switches must reuse thatstate boundary instead of flashing a transient infrastructure pagetakeover between tabs.-35. Keep self-hosted paid-service prompts opt-in at the shared shell layer.+36. Keep self-hosted paid-service prompts opt-in at the shared shell layer.`settingsNavCatalog.ts`, `settingsNavVisibility.ts`, shared upgrade linkprimitives, trial banners, monitored-system warning banners, history-lockoverlays, and Patrol lock helpers must honor `presentationPolicy.hideUpgrade`@@ -1000,10 +1005,12 @@ vocabulary. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx`,`frontend-modern/src/components/shared/whatsNewModalModel.ts`,`frontend-modern/src/components/Settings/useSystemSettingsState.ts`, and`frontend-modern/src/utils/systemSettingsPresentation.ts` must present one-explicit `Usage data and privacy` model with the separate labels-`Anonymous outbound telemetry` and `Disable local-only commercial events`, and-must describe telemetry with normalized release identity rather than falling-back to ambiguous `telemetry`, `upgrade metrics`, or raw-version wording.+explicit `Usage data and privacy` model centered on `Anonymous outbound+telemetry`; maintainer commercial-event controls, upgrade-metrics labels, and+sales/onboarding reporting language must not appear in customer-facing Settings+or support diagnostics. The telemetry copy must describe normalized release+identity rather than falling back to ambiguous `telemetry`, `upgrade metrics`,+or raw-version wording.Shared table, disclosure, and form primitives must also stay explicitly typedat the browser edge. Summary rows may memoize repeated pending-update reads,shared buttons must preserve discriminated disclosure props, toggle and a11ydiff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.mdindex 46cf6b8714..f9cb072c81 100644--- a/docs/release-control/v6/internal/subsystems/security-privacy.md+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md@@ -17,10 +17,11 @@## Purpose-Own Pulse's canonical privacy disclosures, usage-data boundary (anonymous-outbound telemetry plus local-only commercial handoff events), and the security-facing-settings surfaces that expose authentication posture, token-management-visibility, and privacy controls to operators.+Own Pulse's canonical privacy disclosures, outbound usage-data boundary,+and the security-facing settings surfaces that expose authentication posture,+token-management visibility, and privacy controls to operators. Customer-facing+privacy and Settings surfaces must not present maintainer commercial-event+controls as normal product settings.## Canonical Files@@ -151,9 +152,10 @@ visibility, and privacy controls to operators.This subsystem now gives `L14` an explicit governed home for privacy guidanceand telemetry disclosures instead of leaving those trust surfaces as lane-levelevidence with no subsystem ownership.-That same governed home now also owns the single "usage data" vocabulary for-anonymous outbound telemetry and local-only commercial handoff events, so Pulse stops-describing those two privacy scopes as unrelated systems.+That same governed home now also owns the single customer-facing "usage data"+vocabulary for anonymous outbound telemetry. Local commercial activation and+license-recovery runtime records must stay out of ordinary Settings, support+diagnostics, and outbound telemetry disclosure copy.That same operator-reporting boundary now also owns reusable latest-installadoption baselines. `scripts/telemetry_adoption_report.py` must emitwindowed 24h, 72h, and 7d latest-install snapshots that split published@@ -189,10 +191,12 @@ runtime, so privacy governance must not describe a live public hosted-modelproxy for normal self-hosted v6 installs.That shared settings boundary now also has an explicit split of responsibilities:`frontend-modern/src/components/Settings/useSystemSettingsState.ts` remains the-canonical owner for telemetry, local-upgrade-metrics, and auth/privacy runtime-state, while `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx`-stays a presentation boundary and `frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx`-may only assemble props for the shared settings shell. Privacy or telemetry+canonical owner for telemetry, local-upgrade-metrics compatibility, and+auth/privacy runtime state, while+`frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx` stays a+customer-facing presentation boundary for outbound telemetry controls and+`frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx` may only+assemble customer-visible props for the shared settings shell. Privacy or telemetrybehavior must not drift into `frontend-modern/src/components/Settings/Settings.tsx`or the registry hook just because the shell wiring changed.That shell split now also applies to tab-save coordination: the dedicateddiff --git a/frontend-modern/public/docs/PRIVACY.md b/frontend-modern/public/docs/PRIVACY.mdindex 299f4759df..ef77b41d22 100644--- a/frontend-modern/public/docs/PRIVACY.md+++ b/frontend-modern/public/docs/PRIVACY.md@@ -4,12 +4,13 @@ Pulse is designed to run locally. By default, your monitoring data stays on your## Usage Data-Pulse currently has two usage-data scopes:+Pulse has one outbound usage-data scope: **anonymous outbound telemetry** to+help me understand active installations, release uptake, and feature use in+aggregate.-1. **Anonymous outbound telemetry** to help me understand active installations, release uptake, and feature use in aggregate.-2. **Local-only commercial handoff events** to help debug explicit paid-plan and activation handoffs on the instance where they were recorded.--These are separate scopes on purpose. The outbound telemetry path stays coarse and anonymous. The local-only commercial-event path stays on the Pulse instance and is not exported to third parties.+Commercial activation and license-recovery runtime records stay on the Pulse+instance where they were created. They are not exported to Pulse infrastructure,+third-party analytics, support diagnostics, or ordinary Settings surfaces.### Anonymous outbound telemetry@@ -99,12 +100,6 @@ Pulse can make outbound connections when you enable specific features:- **Relay / Remote Access**: when relay is enabled, Pulse connects to the configured relay endpoint to enable secure remote web access, mobile app pairing, and push notifications. See Settings → Remote Access.- **Update checks**: Pulse can check for new releases/updates (for example via GitHub release metadata) depending on your deployment and configuration.-### Local-only commercial handoff events--Pulse can record local-only usage events such as plan-link views or activation handoff attempts to improve and debug voluntary paid flows.--- These events are stored locally and are not exported to third parties.-- Disable via **Settings → System → General → Disable local-only commercial events** or set:- - `PULSE_DISABLE_LOCAL_UPGRADE_METRICS=true`--The legacy `reduceProUpsellNoise` preference remains for older proactive prompt behavior, but default self-hosted v6 sessions already hide paid prompts unless the user enters an explicit commercial handoff or has an existing entitlement.+The legacy `reduceProUpsellNoise` preference remains for older proactive prompt+behavior, but default self-hosted v6 sessions already hide paid prompts unless+the user enters an explicit commercial handoff or has an existing entitlement.diff --git a/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx b/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsxindex bd0d4e91d8..d1ddcec7f2 100644--- a/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx+++ b/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx@@ -54,11 +54,6 @@ export interface GeneralSettingsPanelProps {pvePollingEnvLocked: () => boolean;setHasUnsavedChanges: Setter<boolean>;- disableLocalUpgradeMetrics: Accessor<boolean>;- disableLocalUpgradeMetricsLocked: () => boolean;- savingUpgradeMetrics: Accessor<boolean>;- handleDisableLocalUpgradeMetricsChange: (disabled: boolean) => Promise<void>;-telemetryEnabled: Accessor<boolean>;telemetryEnabledLocked: () => boolean;savingTelemetry: Accessor<boolean>;@@ -202,36 +197,10 @@ export const GeneralSettingsPanel: Component<GeneralSettingsPanelProps> = (props{/* Usage Data + Privacy Card */}<SettingsPaneltitle="Usage data and privacy"- description="Control local-only usage events and anonymous outbound telemetry."+ description="Control anonymous outbound telemetry from this Pulse instance."noPaddingbodyClass="divide-y divide-border">- <div class="flex items-center justify-between gap-4 p-4 sm:p-6">- <div class="flex-1 min-w-0 space-y-1">- <div class="flex items-center gap-2">- <span class="text-sm font-medium text-base-content truncate">- Disable local-only commercial events- </span>- <Show when={props.disableLocalUpgradeMetricsLocked()}>- <EnvironmentLockBadge envVar="PULSE_DISABLE_LOCAL_UPGRADE_METRICS" />- </Show>- </div>- <p class="text-xs text-muted line-clamp-2">- Records local-only commercial handoff events, such as plan-link views or activation- handoff attempts, to debug voluntary paid flows. These events stay on this Pulse- instance and are not exported to third parties.- </p>- </div>- <Toggle- checked={props.disableLocalUpgradeMetrics()}- class="shrink-0"- disabled={props.disableLocalUpgradeMetricsLocked() || props.savingUpgradeMetrics()}- onChange={() =>- props.handleDisableLocalUpgradeMetricsChange(!props.disableLocalUpgradeMetrics())- }- />- </div>-<div class="p-4 sm:p-6 space-y-4"><div class="flex items-center justify-between gap-4"><div class="flex-1 min-w-0 space-y-1">diff --git a/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.guardrails.test.ts b/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.guardrails.test.tsindex 013cd6c198..76adf8f05a 100644--- a/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.guardrails.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.guardrails.test.ts@@ -13,12 +13,17 @@ describe('GeneralSettingsPanel guardrails', () => {it('keeps telemetry preview and reset controls in the general settings panel', () => {expect(generalSettingsPanelSource).toContain('Usage data and privacy');- expect(generalSettingsPanelSource).toContain('Disable local-only commercial events');expect(generalSettingsPanelSource).toContain('Preview payload');expect(generalSettingsPanelSource).toContain('Reset ID');expect(generalSettingsPanelSource).toContain('Telemetry payload preview');});+ it('keeps maintainer commercial event controls out of customer settings', () => {+ expect(generalSettingsPanelSource).not.toContain('Disable local-only commercial events');+ expect(generalSettingsPanelSource).not.toContain('commercial handoff events');+ expect(generalSettingsPanelSource).not.toContain('PULSE_DISABLE_LOCAL_UPGRADE_METRICS');+ });+it('summarizes telemetry retention and non-storage guarantees in-product', () => {expect(normalizedGeneralSettingsPanelSource).toContain('retained for up to 90 days');expect(normalizedGeneralSettingsPanelSource).toContain(diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 7925127835..df504f10cb 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -171,9 +171,11 @@ describe('settings architecture guardrails', () => {expect(aiSettingsStateSource).not.toContain('hasQuickstartAvailable');expect(aiSettingsDialogsSource).not.toContain('Start Trial');expect(aiSettingsDialogsSource).not.toContain('RELAY_ONBOARDING_TRIAL_STARTING_LABEL');- expect(generalSettingsPanelSource).toContain('Disable local-only commercial events');+ expect(generalSettingsPanelSource).not.toContain('Disable local-only commercial events');+ expect(generalSettingsPanelSource).not.toContain('commercial handoff events');+ expect(generalSettingsPanelSource).not.toContain('PULSE_DISABLE_LOCAL_UPGRADE_METRICS');expect(generalSettingsPanelSource).not.toContain('Disable local-only upgrade events');- expect(systemSettingsPresentationSource).toContain(+ expect(systemSettingsPresentationSource).not.toContain('Unable to update local-only commercial events.',);expect(systemSettingsPresentationSource).toContain(diff --git a/frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx b/frontend-modern/src/components/Settings/useSettingsSystemPanels.tsxindex 8d698d9a6c..c55cd150f2 100644--- a/frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx+++ b/frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx@@ -40,11 +40,6 @@ export function useSettingsSystemPanels(setPVEPollingCustomSeconds: params.systemSettings.setPVEPollingCustomSeconds,pvePollingEnvLocked: params.systemSettings.pvePollingEnvLocked,setHasUnsavedChanges: params.systemSettings.setHasUnsavedChanges,- disableLocalUpgradeMetrics: params.systemSettings.disableLocalUpgradeMetrics,- disableLocalUpgradeMetricsLocked: params.systemSettings.disableLocalUpgradeMetricsLocked,- savingUpgradeMetrics: params.systemSettings.savingUpgradeMetrics,- handleDisableLocalUpgradeMetricsChange:- params.systemSettings.handleDisableLocalUpgradeMetricsChange,telemetryEnabled: params.systemSettings.telemetryEnabled,telemetryEnabledLocked: params.systemSettings.telemetryEnabledLocked,savingTelemetry: params.systemSettings.savingTelemetry,diff --git a/frontend-modern/src/components/Settings/useSystemSettingsState.ts b/frontend-modern/src/components/Settings/useSystemSettingsState.tsindex 41ca3428e2..038da0baa5 100644--- a/frontend-modern/src/components/Settings/useSystemSettingsState.ts+++ b/frontend-modern/src/components/Settings/useSystemSettingsState.ts@@ -7,7 +7,6 @@ import { logger } from '@/utils/logger';import { updateStore } from '@/stores/updates';import { copyToClipboard } from '@/utils/clipboard';import {- updateDisableLocalUpgradeMetricsSetting,updateDockerUpdateActionsSetting,updateReduceProUpsellNoiseSetting,} from '@/stores/systemSettings';@@ -18,7 +17,6 @@ import {getBackupIntervalSummary,getDockerUpdateActionsUpdateErrorMessage,getHideLocalLoginUpdateErrorMessage,- getLocalUpgradeMetricsUpdateErrorMessage,getReduceUpsellNoiseUpdateErrorMessage,getStartUpdateErrorMessage,getSystemSettingsSaveErrorMessage,@@ -66,8 +64,6 @@ export function useSystemSettingsState({const [savingDockerUpdateActions, setSavingDockerUpdateActions] = createSignal(false);const [reduceProUpsellNoise, setReduceProUpsellNoise] = createSignal(false);const [savingReduceUpsells, setSavingReduceUpsells] = createSignal(false);- const [disableLocalUpgradeMetrics, setDisableLocalUpgradeMetrics] = createSignal(false);- const [savingUpgradeMetrics, setSavingUpgradeMetrics] = createSignal(false);const [telemetryEnabled, setTelemetryEnabled] = createSignal(true);const [savingTelemetry, setSavingTelemetry] = createSignal(false);const [telemetryPreview, setTelemetryPreview] = createSignal<TelemetryPreviewResponse | null>(@@ -102,11 +98,6 @@ export function useSystemSettingsState({envOverrides().disableDockerUpdateActions ||envOverrides()['PULSE_DISABLE_DOCKER_UPDATE_ACTIONS'],);- const disableLocalUpgradeMetricsLocked = () =>- Boolean(- envOverrides().disableLocalUpgradeMetrics ||- envOverrides()['PULSE_DISABLE_LOCAL_UPGRADE_METRICS'],- );const telemetryEnabledLocked = () =>Boolean(envOverrides().telemetryEnabled || envOverrides()['PULSE_TELEMETRY']);const pvePollingEnvLocked = () =>@@ -159,7 +150,6 @@ export function useSystemSettingsState({setHideLocalLogin(systemSettings.hideLocalLogin ?? false);setDisableDockerUpdateActions(systemSettings.disableDockerUpdateActions ?? false);setReduceProUpsellNoise(systemSettings.reduceProUpsellNoise ?? false);- setDisableLocalUpgradeMetrics(systemSettings.disableLocalUpgradeMetrics ?? false);setTelemetryEnabled(systemSettings.telemetryEnabled ?? true);if (typeof systemSettings.backupPollingEnabled === 'boolean') {@@ -354,35 +344,6 @@ export function useSystemSettingsState({}};- const handleDisableLocalUpgradeMetricsChange = async (disabled: boolean): Promise<void> => {- if (disableLocalUpgradeMetricsLocked() || savingUpgradeMetrics()) {- return;- }-- const previous = disableLocalUpgradeMetrics();- setDisableLocalUpgradeMetrics(disabled);- setSavingUpgradeMetrics(true);-- try {- await SettingsAPI.updateSystemSettings({ disableLocalUpgradeMetrics: disabled });- updateDisableLocalUpgradeMetricsSetting(disabled);- notificationStore.success(- disabled ? 'Local-only commercial events disabled' : 'Local-only commercial events enabled',- 2000,- );- } catch (error) {- logger.error('Failed to update local-only commercial events setting', error);- notificationStore.error(- getLocalUpgradeMetricsUpdateErrorMessage(- error instanceof Error ? error.message : undefined,- ),- );- setDisableLocalUpgradeMetrics(previous);- } finally {- setSavingUpgradeMetrics(false);- }- };-const handleTelemetryEnabledChange = async (enabled: boolean): Promise<void> => {if (telemetryEnabledLocked() || savingTelemetry()) {return;@@ -589,10 +550,6 @@ export function useSystemSettingsState({reduceProUpsellNoise,savingReduceUpsells,handleReduceProUpsellNoiseChange,- disableLocalUpgradeMetrics,- disableLocalUpgradeMetricsLocked,- savingUpgradeMetrics,- handleDisableLocalUpgradeMetricsChange,telemetryEnabled,telemetryEnabledLocked,savingTelemetry,diff --git a/frontend-modern/src/stores/__tests__/systemSettings.test.ts b/frontend-modern/src/stores/__tests__/systemSettings.test.tsindex ca46097e7d..171126dc4f 100644--- a/frontend-modern/src/stores/__tests__/systemSettings.test.ts+++ b/frontend-modern/src/stores/__tests__/systemSettings.test.ts@@ -49,7 +49,7 @@ describe('systemSettings store', () => {expect(shouldDisableLocalUpgradeMetrics()).toBe(false);});- it('keeps privacy and upgrade metrics defaults safe when flags are omitted', () => {+ it('keeps privacy and local paid-flow defaults safe when flags are omitted', () => {updateSystemSettingsFromResponse({autoUpdateEnabled: false,});@@ -68,8 +68,10 @@ describe('systemSettings store', () => {const privacyDoc = readFileSync(path.join(repoRoot, 'docs', 'PRIVACY.md'), 'utf8');expect(privacyDoc).toContain('## Usage Data');- expect(privacyDoc).toContain('Local-only commercial handoff events');- expect(privacyDoc).not.toContain('Local-only upgrade events');+ expect(privacyDoc).toContain('Pulse has one outbound usage-data scope');+ expect(privacyDoc).toContain('Commercial activation and license-recovery runtime records');+ expect(privacyDoc).not.toContain('Local-only commercial handoff events');+ expect(privacyDoc).not.toContain('Disable local-only commercial events');expect(privacyDoc).toContain('Every field is listed below with the reason it exists');expect(privacyDoc).toContain('rows older than **90 days** are purged automatically');expect(privacyDoc).toContain('uses client IP addresses transiently for abuse/rate limiting');diff --git a/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.ts b/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.tsindex 71614206a3..4d55da932c 100644--- a/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.ts@@ -13,7 +13,6 @@ import {getCheckForUpdatesErrorMessage,getDockerUpdateActionsUpdateErrorMessage,getHideLocalLoginUpdateErrorMessage,- getLocalUpgradeMetricsUpdateErrorMessage,getReduceUpsellNoiseUpdateErrorMessage,getStartUpdateErrorMessage,getSystemSettingsSaveErrorMessage,@@ -102,9 +101,6 @@ describe('systemSettingsPresentation', () => {expect(getReduceUpsellNoiseUpdateErrorMessage()).toBe('Unable to update commercial prompt preferences.',);- expect(getLocalUpgradeMetricsUpdateErrorMessage()).toBe(- 'Unable to update local-only commercial events.',- );expect(getTelemetryUpdateErrorMessage()).toBe('Unable to update anonymous telemetry.');expect(getTemperatureMonitoringUpdateErrorMessage()).toBe('Unable to update temperature monitoring.',diff --git a/frontend-modern/src/utils/systemSettingsPresentation.ts b/frontend-modern/src/utils/systemSettingsPresentation.tsindex 76f22a7342..701438a1d3 100644--- a/frontend-modern/src/utils/systemSettingsPresentation.ts+++ b/frontend-modern/src/utils/systemSettingsPresentation.ts@@ -90,10 +90,6 @@ export function getReduceUpsellNoiseUpdateErrorMessage(message?: string): stringreturn message || 'Unable to update commercial prompt preferences.';}-export function getLocalUpgradeMetricsUpdateErrorMessage(message?: string): string {- return message || 'Unable to update local-only commercial events.';-}-export function getTelemetryUpdateErrorMessage(message?: string): string {return message || 'Unable to update anonymous telemetry.';}