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.

Hide internal commercial settings from public docs

rcourtman1b3e66f1d617
diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md
index 3d7a54331f..bf19688816 100644
--- a/docs/CONFIGURATION.md
+++ b/docs/CONFIGURATION.md
@@ -182,8 +182,6 @@ Numeric intervals are **seconds** unless noted otherwise.
| `metricsRetentionHourlyDays` | Hourly metrics retention (days) |
| `metricsRetentionDailyDays` | Daily metrics retention (days) |
| `disableDockerUpdateActions` | Hide Docker update actions in UI |
-| `reduceProUpsellNoise` | Legacy compatibility preference for proactive commercial prompts. Default self-hosted v6 sessions already hide paid prompts unless the user enters an explicit commercial handoff or has an existing entitlement. |
-| `disableLocalUpgradeMetrics` | Disable local-only commercial handoff event collection |
| `backendPort` | Legacy (unused) |
| `frontendPort` | Legacy (ignored; use `FRONTEND_PORT`) |
@@ -275,7 +273,6 @@ When `allowEmbedding` is `false`, Pulse sends `X-Frame-Options: DENY` and `frame
| `DNS_CACHE_TIMEOUT` | Cache TTL for DNS lookups | `5m` |
| `MAX_POLL_TIMEOUT` | Maximum time per polling cycle | `3m` |
| `PULSE_DISABLE_DOCKER_UPDATE_ACTIONS` | Hide Docker update buttons (read-only mode) | `false` |
-| `PULSE_DISABLE_LOCAL_UPGRADE_METRICS` | Disable local-only upgrade event collection | `false` |
| `PULSE_TELEMETRY` | Anonymous outbound usage telemetry ([details](PRIVACY.md)); set `false` to disable | `true` |
### Logging Overrides
diff --git a/docs/PRIVACY.md b/docs/PRIVACY.md
index ef77b41d22..821e26ed57 100644
--- a/docs/PRIVACY.md
+++ b/docs/PRIVACY.md
@@ -99,7 +99,3 @@ Pulse can make outbound connections when you enable specific features:
- **AI providers**: when AI features are configured, Pulse sends only the context required for your request to the provider you chose. Local providers stay on your network; non-local providers such as OpenAI or Anthropic receive provider-bound context directly from your Pulse instance. AI prompts from self-managed installs do not transit Pulse infrastructure. Before non-local model requests leave the instance, governed resource details use the same resource-policy redaction shown in Data Handling: local-only resource details are omitted from detailed prompt sections or replaced with policy-safe summaries, and known restricted resource identifiers are redacted where they appear in provider-bound context. See `docs/AI.md`.
- **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.
-
-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/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 2fd8318fe0..bdb75c8ff9 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1012,9 +1012,10 @@ vocabulary. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx`,
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.
+or support diagnostics, and public configuration docs must not list their
+internal compatibility switches as ordinary operator settings. 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 typed
at the browser edge. Summary rows may memoize repeated pending-update reads,
shared buttons must preserve discriminated disclosure props, toggle and a11y
diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.md
index f9cb072c81..477116acfd 100644
--- a/docs/release-control/v6/internal/subsystems/security-privacy.md
+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md
@@ -155,7 +155,8 @@ evidence with no subsystem ownership.
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.
+diagnostics, outbound telemetry disclosure copy, and public configuration
+reference tables.
That same operator-reporting boundary now also owns reusable latest-install
adoption baselines. `scripts/telemetry_adoption_report.py` must emit
windowed 24h, 72h, and 7d latest-install snapshots that split published
@@ -191,8 +192,10 @@ runtime, so privacy governance must not describe a live public hosted-model
proxy 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 compatibility, and
-auth/privacy runtime state, while
+canonical owner for customer-visible telemetry and auth/privacy runtime state,
+while internal commercial prompt and local-upgrade-metrics compatibility stay
+below the customer settings panel in the backend/settings-store compatibility
+path,
`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
@@ -202,11 +205,11 @@ or the registry hook just because the shell wiring changed.
That shell split now also applies to tab-save coordination: the dedicated
`frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts` owner may
decide which settings tabs participate in shell-level save prompts, but it must
-remain pure shell metadata. Telemetry, local-upgrade-metrics, and auth/privacy
-state transitions stay canonically owned by
-`frontend-modern/src/components/Settings/useSystemSettingsState.ts` and the
-backing `frontend-modern/src/stores/systemSettings.ts` trust surface, not by
-settings navigation metadata or other frontend-primitives owners.
+remain pure shell metadata. Telemetry and auth/privacy state transitions stay
+canonically owned by `frontend-modern/src/components/Settings/useSystemSettingsState.ts`,
+while local commercial compatibility state remains an internal store/backend
+concern in `frontend-modern/src/stores/systemSettings.ts`, not settings
+navigation metadata or other frontend-primitives owners.
The security transport surfaces remain intentionally shared with
`api-contracts`: token, auth, and telemetry settings payloads are still API
diff --git a/frontend-modern/public/docs/CONFIGURATION.md b/frontend-modern/public/docs/CONFIGURATION.md
index 3d7a54331f..bf19688816 100644
--- a/frontend-modern/public/docs/CONFIGURATION.md
+++ b/frontend-modern/public/docs/CONFIGURATION.md
@@ -182,8 +182,6 @@ Numeric intervals are **seconds** unless noted otherwise.
| `metricsRetentionHourlyDays` | Hourly metrics retention (days) |
| `metricsRetentionDailyDays` | Daily metrics retention (days) |
| `disableDockerUpdateActions` | Hide Docker update actions in UI |
-| `reduceProUpsellNoise` | Legacy compatibility preference for proactive commercial prompts. Default self-hosted v6 sessions already hide paid prompts unless the user enters an explicit commercial handoff or has an existing entitlement. |
-| `disableLocalUpgradeMetrics` | Disable local-only commercial handoff event collection |
| `backendPort` | Legacy (unused) |
| `frontendPort` | Legacy (ignored; use `FRONTEND_PORT`) |
@@ -275,7 +273,6 @@ When `allowEmbedding` is `false`, Pulse sends `X-Frame-Options: DENY` and `frame
| `DNS_CACHE_TIMEOUT` | Cache TTL for DNS lookups | `5m` |
| `MAX_POLL_TIMEOUT` | Maximum time per polling cycle | `3m` |
| `PULSE_DISABLE_DOCKER_UPDATE_ACTIONS` | Hide Docker update buttons (read-only mode) | `false` |
-| `PULSE_DISABLE_LOCAL_UPGRADE_METRICS` | Disable local-only upgrade event collection | `false` |
| `PULSE_TELEMETRY` | Anonymous outbound usage telemetry ([details](PRIVACY.md)); set `false` to disable | `true` |
### Logging Overrides
diff --git a/frontend-modern/public/docs/PRIVACY.md b/frontend-modern/public/docs/PRIVACY.md
index ef77b41d22..821e26ed57 100644
--- a/frontend-modern/public/docs/PRIVACY.md
+++ b/frontend-modern/public/docs/PRIVACY.md
@@ -99,7 +99,3 @@ Pulse can make outbound connections when you enable specific features:
- **AI providers**: when AI features are configured, Pulse sends only the context required for your request to the provider you chose. Local providers stay on your network; non-local providers such as OpenAI or Anthropic receive provider-bound context directly from your Pulse instance. AI prompts from self-managed installs do not transit Pulse infrastructure. Before non-local model requests leave the instance, governed resource details use the same resource-policy redaction shown in Data Handling: local-only resource details are omitted from detailed prompt sections or replaced with policy-safe summaries, and known restricted resource identifiers are redacted where they appear in provider-bound context. See `docs/AI.md`.
- **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.
-
-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/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index df504f10cb..78b6c1a955 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -178,7 +178,7 @@ describe('settings architecture guardrails', () => {
expect(systemSettingsPresentationSource).not.toContain(
'Unable to update local-only commercial events.',
);
- expect(systemSettingsPresentationSource).toContain(
+ expect(systemSettingsPresentationSource).not.toContain(
'Unable to update commercial prompt preferences.',
);
expect(dataHandlingPanelSource).not.toContain('Start Trial');
diff --git a/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts b/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts
index 12692660bf..8d6f0db59f 100644
--- a/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts
@@ -95,7 +95,6 @@ describe('useSystemSettingsState', () => {
vi.doMock('@/stores/systemSettings', () => ({
updateDisableLocalUpgradeMetricsSetting: vi.fn(),
updateDockerUpdateActionsSetting: vi.fn(),
- updateReduceProUpsellNoiseSetting: vi.fn(),
}));
({ useSystemSettingsState } = await import('../useSystemSettingsState'));
diff --git a/frontend-modern/src/components/Settings/useSystemSettingsState.ts b/frontend-modern/src/components/Settings/useSystemSettingsState.ts
index 038da0baa5..2630c24b51 100644
--- a/frontend-modern/src/components/Settings/useSystemSettingsState.ts
+++ b/frontend-modern/src/components/Settings/useSystemSettingsState.ts
@@ -6,10 +6,7 @@ import { notificationStore } from '@/stores/notifications';
import { logger } from '@/utils/logger';
import { updateStore } from '@/stores/updates';
import { copyToClipboard } from '@/utils/clipboard';
-import {
- updateDockerUpdateActionsSetting,
- updateReduceProUpsellNoiseSetting,
-} from '@/stores/systemSettings';
+import { updateDockerUpdateActionsSetting } from '@/stores/systemSettings';
import {
BACKUP_INTERVAL_OPTIONS,
getCheckForUpdatesErrorMessage,
@@ -17,7 +14,6 @@ import {
getBackupIntervalSummary,
getDockerUpdateActionsUpdateErrorMessage,
getHideLocalLoginUpdateErrorMessage,
- getReduceUpsellNoiseUpdateErrorMessage,
getStartUpdateErrorMessage,
getSystemSettingsSaveErrorMessage,
getTelemetryUpdateErrorMessage,
@@ -62,8 +58,6 @@ export function useSystemSettingsState({
const [savingHideLocalLogin, setSavingHideLocalLogin] = createSignal(false);
const [disableDockerUpdateActions, setDisableDockerUpdateActions] = createSignal(false);
const [savingDockerUpdateActions, setSavingDockerUpdateActions] = createSignal(false);
- const [reduceProUpsellNoise, setReduceProUpsellNoise] = createSignal(false);
- const [savingReduceUpsells, setSavingReduceUpsells] = createSignal(false);
const [telemetryEnabled, setTelemetryEnabled] = createSignal(true);
const [savingTelemetry, setSavingTelemetry] = createSignal(false);
const [telemetryPreview, setTelemetryPreview] = createSignal<TelemetryPreviewResponse | null>(
@@ -149,7 +143,6 @@ export function useSystemSettingsState({
);
setHideLocalLogin(systemSettings.hideLocalLogin ?? false);
setDisableDockerUpdateActions(systemSettings.disableDockerUpdateActions ?? false);
- setReduceProUpsellNoise(systemSettings.reduceProUpsellNoise ?? false);
setTelemetryEnabled(systemSettings.telemetryEnabled ?? true);
if (typeof systemSettings.backupPollingEnabled === 'boolean') {
@@ -317,33 +310,6 @@ export function useSystemSettingsState({
}
};
- const handleReduceProUpsellNoiseChange = async (enabled: boolean): Promise<void> => {
- if (savingReduceUpsells()) {
- return;
- }
-
- const previous = reduceProUpsellNoise();
- setReduceProUpsellNoise(enabled);
- setSavingReduceUpsells(true);
-
- try {
- await SettingsAPI.updateSystemSettings({ reduceProUpsellNoise: enabled });
- updateReduceProUpsellNoiseSetting(enabled);
- notificationStore.success(
- enabled ? 'Commercial prompts reduced' : 'Commercial prompt preference restored',
- 2000,
- );
- } catch (error) {
- logger.error('Failed to update commercial prompt preference', error);
- notificationStore.error(
- getReduceUpsellNoiseUpdateErrorMessage(error instanceof Error ? error.message : undefined),
- );
- setReduceProUpsellNoise(previous);
- } finally {
- setSavingReduceUpsells(false);
- }
- };
-
const handleTelemetryEnabledChange = async (enabled: boolean): Promise<void> => {
if (telemetryEnabledLocked() || savingTelemetry()) {
return;
@@ -547,9 +513,6 @@ export function useSystemSettingsState({
disableDockerUpdateActionsLocked,
savingDockerUpdateActions,
handleDisableDockerUpdateActionsChange,
- reduceProUpsellNoise,
- savingReduceUpsells,
- handleReduceProUpsellNoiseChange,
telemetryEnabled,
telemetryEnabledLocked,
savingTelemetry,
diff --git a/frontend-modern/src/stores/__tests__/systemSettings.test.ts b/frontend-modern/src/stores/__tests__/systemSettings.test.ts
index 171126dc4f..4f5f782686 100644
--- a/frontend-modern/src/stores/__tests__/systemSettings.test.ts
+++ b/frontend-modern/src/stores/__tests__/systemSettings.test.ts
@@ -72,12 +72,22 @@ describe('systemSettings store', () => {
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).not.toContain('reduceProUpsellNoise');
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');
expect(privacyDoc).toContain('Reset ID');
});
+ it('keeps internal commercial compatibility switches out of public configuration docs', () => {
+ const configurationDoc = readFileSync(path.join(repoRoot, 'docs', 'CONFIGURATION.md'), 'utf8');
+
+ expect(configurationDoc).not.toContain('reduceProUpsellNoise');
+ expect(configurationDoc).not.toContain('disableLocalUpgradeMetrics');
+ expect(configurationDoc).not.toContain('PULSE_DISABLE_LOCAL_UPGRADE_METRICS');
+ expect(configurationDoc).toContain('PULSE_TELEMETRY');
+ });
+
it('documents self-hosted AI provider transport and resource-policy redaction in the privacy doc', () => {
const privacyDoc = readFileSync(path.join(repoRoot, 'docs', 'PRIVACY.md'), 'utf8');
diff --git a/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.ts b/frontend-modern/src/utils/__tests__/systemSettingsPresentation.test.ts
index 4d55da932c..f0566949df 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,
- getReduceUpsellNoiseUpdateErrorMessage,
getStartUpdateErrorMessage,
getSystemSettingsSaveErrorMessage,
getTelemetryUpdateErrorMessage,
@@ -98,9 +97,6 @@ describe('systemSettingsPresentation', () => {
expect(getDockerUpdateActionsUpdateErrorMessage()).toBe(
'Unable to update Docker / Podman update actions.',
);
- expect(getReduceUpsellNoiseUpdateErrorMessage()).toBe(
- 'Unable to update commercial prompt preferences.',
- );
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.ts
index 701438a1d3..690747cc88 100644
--- a/frontend-modern/src/utils/systemSettingsPresentation.ts
+++ b/frontend-modern/src/utils/systemSettingsPresentation.ts
@@ -86,10 +86,6 @@ export function getDockerUpdateActionsUpdateErrorMessage(message?: string): stri
return message || `Unable to update ${DOCKER_PODMAN_SOURCE_LABEL} update actions.`;
}
-export function getReduceUpsellNoiseUpdateErrorMessage(message?: string): string {
- return message || 'Unable to update commercial prompt preferences.';
-}
-
export function getTelemetryUpdateErrorMessage(message?: string): string {
return message || 'Unable to update anonymous telemetry.';
}