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.

Keep trial starts out of feature gates

rcourtman8c6d4dff6466
diff --git a/TERMS.md b/TERMS.md
index daf19b6f13..551311d4ff 100644
--- a/TERMS.md
+++ b/TERMS.md
@@ -17,7 +17,7 @@ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL THE AUTHOR, OR ANY OTHER PART
**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.
+The Software includes features ("AI Patrol", "safe remediation workflows", "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".
diff --git a/docs/AI.md b/docs/AI.md
index d547f0a98b..aadb9001b1 100644
--- a/docs/AI.md
+++ b/docs/AI.md
@@ -168,7 +168,7 @@ Patrol supports three autonomy modes that control how much action it can take:
|------|----------|------|
| **Monitor** | Detect issues only. No investigation or fixes. | Community (BYOK) |
| **Investigate** | Investigates findings and proposes fixes. All fixes require approval before execution. | Pro / hosted Cloud |
-| **Auto-fix** | Automatically fixes issues and verifies results. Critical findings still require approval by default. | Pro / hosted Cloud |
+| **Remediate** | Runs governed remediation actions and verifies results. Critical findings still require approval by default. | Pro / hosted Cloud |
Community and Relay installs can still run scheduled Patrol findings with BYOK.
Investigation, proposed remediation, and fix execution are paid AI-operations
@@ -176,7 +176,7 @@ capabilities rather than a core monitoring limit.
### Investigation Flow
-When a finding is created in Investigate or Auto-fix mode:
+When a finding is created in Investigate or Remediate mode:
```
Finding created
@@ -314,7 +314,7 @@ Pulse uses model identifiers in the form: `provider:model-name`
You can set separate models for:
- Chat (`chat_model`)
- Patrol (`patrol_model`)
-- Auto-fix remediation (`auto_fix_model`)
+- Safe remediation model (`auto_fix_model`)
### Storage
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index ce9b20e547..c4bbb295fa 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -1032,12 +1032,16 @@ The dedicated profile client now also routes list, schema, and validation
parsing through shared response helpers in `frontend-modern/src/api/agentProfiles.ts`,
so profile transport stays aligned with the governed API contract instead of
reintroducing local array or JSON parsing rules.
-That same lifecycle-owned install/profile surface now also routes trial-start
-CTA orchestration through `frontend-modern/src/utils/trialStartAction.ts`.
-Agent profile paywalls, NodeModal upgrade prompts, and setup-completion trial
-actions may choose their own success copy, but they must use the shared helper
-for hosted trial redirects and canonical denial handling instead of open-coding
-`startProTrial()` branches in each lifecycle surface.
+That same lifecycle-owned install/profile surface now also keeps trial-start
+CTA orchestration out of ordinary authenticated self-hosted feature gates.
+Agent profile paywalls may describe the entitled lifecycle capability and link
+to neutral plan review, but they must not call
+`frontend-modern/src/utils/trialStartAction.ts` directly or present direct
+trial-start copy inside the normal Settings flow. Trial-start orchestration
+through that helper remains limited to explicit first-run, hosted, activation,
+recovery, or support handoff contexts that own redirect, success-notification,
+and canonical denial handling instead of open-coding `startProTrial()`
+branches in each lifecycle surface.
The owned backend API surfaces must preserve the exact-release installer
fallback, canonical /api/auto-register behavior, and hosted org install-command
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 04c87deecd..f18ae3f84e 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -848,11 +848,13 @@ truth. Trial initiation surfaces must preserve backend denial messages when the
request is blocked for migration, active commercial state, or other operational
reasons, and only map the explicit canonical cases (`trial_already_used`,
rate-limit retry) to fixed copy.
-That same helper boundary also owns generic settings-paywall CTA labels such as
-`Upgrade to Pro` and `Start free trial`; feature panels like
-`AIRuntimeControlsSection.tsx` and `RelaySettingsPanel.tsx` must consume the
-shared upgrade presentation owner instead of embedding those CTA strings
-locally.
+That same helper boundary also owns generic settings-paywall CTA labels. Under
+the v6 free-first self-hosted policy, non-billing feature gates must stay
+factual and route deliberate commercial intent to Plans with neutral "View
+plans" copy; they must not start a Pro trial directly or embed local
+`Upgrade to Pro` / `Start free trial` strings. Direct trial-start actions stay
+owned by explicit billing, hosted, activation, recovery, and support handoff
+surfaces where the operator has already chosen the commercial path.
The same shared self-hosted commercial presentation boundary also owns the
recovery-surface copy for `SelfHostedCommercialRecoverySection.tsx`,
including the existing-key field label/help text and legacy-key exchange
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 3088970e39..0ee0811529 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1174,20 +1174,16 @@ later" message; user-facing CTA surfaces must therefore inherit
`Retry-After`-backed copy through the shared helper path rather than
inventing lane-local 429 wording.
That same shared primitive boundary now also owns intent-level commercial
-selectors for non-billing surfaces. Leaf/shared state such as
-`useTrialBannerState.ts`,
-`useMonitoredSystemLimitWarningBannerState.ts`, settings panel state, and
-Patrol approval/header shells must consume selector helpers from
+selectors for surfaces that are allowed to show commercial state. Trial status
+surfaces such as `useTrialBannerState.ts` must consume selector helpers from
`frontend-modern/src/stores/licenseCommercial.ts` such as
-`canOfferCommercialTrial()`, `canStartCommercialTrial()`,
`isCommercialTrialActive()`, `commercialTrialDaysRemaining()`, and
`commercialOverflowDaysRemaining()` instead of branching directly on raw
-`subscription_state`, `trial_eligible`, or day-count fields.
-That same owner also holds generic settings-paywall CTA labels. Runtime shells
-such as `AIRuntimeControlsSection.tsx` and `RelaySettingsPanel.tsx` must source
-shared labels like `Upgrade to Pro` and `Start free trial` from
-`upgradePresentation.ts` rather than embedding local CTA strings in the panel
-markup.
+`subscription_state`, `trial_eligible`, or day-count fields. Non-billing
+feature gates must not consume `canOfferCommercialTrial()` or call
+`runStartProTrialAction()` directly; they may show neutral "View plans" links
+through `upgradePresentation.ts`, while trial starts remain owned by explicit
+Plans, hosted, activation, recovery, or support handoff surfaces.
Top-level route files are now also expected to stay thin when a feature owns
the real product surface. `frontend-modern/src/pages/Infrastructure.tsx` now
acts only as the route boundary, while
diff --git a/docs/release-control/v6/internal/subsystems/organization-settings.md b/docs/release-control/v6/internal/subsystems/organization-settings.md
index d224cdd760..ff3b37d743 100644
--- a/docs/release-control/v6/internal/subsystems/organization-settings.md
+++ b/docs/release-control/v6/internal/subsystems/organization-settings.md
@@ -231,10 +231,11 @@ lane-local `startProTrial()` branch once that shared helper covers the same
runtime contract.
That same RBAC paywall surface now also depends on the runtime-versus-
commercial license split: RBAC enablement must stay on the runtime capability
-store, while free-trial eligibility and upgrade routing stay on the canonical
-commercial-posture store backed by `/api/license/commercial-posture`.
-Organization settings must not collapse those two concerns back into one
-payload just because the same paywall shell renders both.
+store, while commercial routing stays on the canonical upgrade destination
+helper backed by the shared commercial boundary. Organization settings must
+not collapse those concerns back into one payload just because the same
+paywall shell renders both, and RBAC feature gates must not start trials
+directly.
That same posture split now also fixes RBAC bootstrap ownership.
`frontend-modern/src/components/Settings/useRBACFeatureGateState.ts` may
consume the resolved commercial-posture store for trial and upgrade copy, but
@@ -242,11 +243,11 @@ it must not issue its own mount-time `loadCommercialPosture()` read.
Authenticated-shell bootstrap belongs to
`frontend-modern/src/useAppRuntimeState.ts`, with only the governed first-run
setup completion surface allowed to bootstrap posture outside that shell.
-RBAC paywall state should also consume intent-level selectors such as
-`canOfferCommercialTrial()` from `frontend-modern/src/stores/licenseCommercial.ts`
-instead of reading raw posture fields locally.
+RBAC paywall state should not read raw commercial posture fields locally or
+offer direct trial-start actions from non-billing feature gates.
Under the free-first self-hosted v6 policy, those RBAC gates must also honor
`presentationPolicy.hideUpgrade`: ordinary self-hosted users should not see
-RBAC trial CTAs, upgrade copy, or paid-only Roles/Users/Audit navigation by
-default. Direct routes may recover to the canonical free settings surface, and
-entitled or hosted-mode installs may still render the governed RBAC surfaces.
+RBAC trial CTAs, hard-sell upgrade copy, or paid-only Roles/Users/Audit
+navigation by default. Direct routes may recover to the canonical free
+settings surface, and entitled or hosted-mode installs may still render the
+governed RBAC surfaces.
diff --git a/frontend-modern/public/docs/TERMS.md b/frontend-modern/public/docs/TERMS.md
index daf19b6f13..551311d4ff 100644
--- a/frontend-modern/public/docs/TERMS.md
+++ b/frontend-modern/public/docs/TERMS.md
@@ -17,7 +17,7 @@ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL THE AUTHOR, OR ANY OTHER PART
**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.
+The Software includes features ("AI Patrol", "safe remediation workflows", "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".
diff --git a/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx b/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx
index 4fb2439953..d2e392e231 100644
--- a/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx
+++ b/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx
@@ -16,11 +16,7 @@ import {
getAISettingsWorkloadDiscoverySummary,
} from '@/utils/aiSettingsPresentation';
import { trackUpgradeClicked } from '@/utils/upgradeMetrics';
-import {
- UPGRADE_ACTION_LABEL,
- UPGRADE_TRIAL_LABEL,
- UPGRADE_TRIAL_LINK_CLASS,
-} from '@/utils/upgradePresentation';
+import { UPGRADE_ACTION_LABEL } from '@/utils/upgradePresentation';
interface AIRuntimeControlsSectionProps {
state: AISettingsState;
@@ -287,18 +283,7 @@ export const AIRuntimeControlsSection: Component<AIRuntimeControlsSectionProps>
>
{UPGRADE_ACTION_LABEL}
</UpgradeLink>{' '}
- to enable autonomous mode.
- <Show when={state.canStartTrial()}>
- {' '}
- <button
- type="button"
- onClick={state.handleStartTrial}
- disabled={state.startingTrial()}
- class={UPGRADE_TRIAL_LINK_CLASS}
- >
- {UPGRADE_TRIAL_LABEL}
- </button>
- </Show>
+ to review autonomous-mode options.
</p>
</Show>
diff --git a/frontend-modern/src/components/Settings/AISettings.tsx b/frontend-modern/src/components/Settings/AISettings.tsx
index 906ab7496b..fd84d5320c 100644
--- a/frontend-modern/src/components/Settings/AISettings.tsx
+++ b/frontend-modern/src/components/Settings/AISettings.tsx
@@ -144,12 +144,9 @@ export const AISettings: Component = () => {
setSetupOllamaUrl={state.setSetupOllamaUrl}
setupMode={state.setupMode}
setupSaving={state.setupSaving}
- startingTrial={state.startingTrial}
quickstartBlockedReason={state.quickstartBlockedReason}
handleCloseSetupModal={state.handleCloseSetupModal}
handleSetupSubmit={state.handleSetupSubmit}
- canStartTrial={state.canStartTrial}
- handleStartTrial={state.handleStartTrial}
/>
</>
);
diff --git a/frontend-modern/src/components/Settings/AISettingsDialogs.tsx b/frontend-modern/src/components/Settings/AISettingsDialogs.tsx
index bd82c2865a..f461732191 100644
--- a/frontend-modern/src/components/Settings/AISettingsDialogs.tsx
+++ b/frontend-modern/src/components/Settings/AISettingsDialogs.tsx
@@ -26,12 +26,9 @@ export interface AISettingsDialogsProps {
setupOllamaUrl: Accessor<string>;
setSetupOllamaUrl: Setter<string>;
setupSaving: Accessor<boolean>;
- startingTrial: Accessor<boolean>;
quickstartBlockedReason: Accessor<string>;
handleCloseSetupModal: () => void;
handleSetupSubmit: () => Promise<void>;
- canStartTrial: () => boolean;
- handleStartTrial: () => Promise<void>;
}
export const AISettingsDialogs: Component<AISettingsDialogsProps> = (props) => {
@@ -116,31 +113,6 @@ export const AISettingsDialogs: Component<AISettingsDialogsProps> = (props) => {
</div>
</Show>
- <Show when={props.setupMode() === 'activation-or-provider' && props.canStartTrial()}>
- <div class="rounded-md border border-blue-200 bg-blue-50 p-4 dark:border-blue-800 dark:bg-blue-950/40">
- <div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
- <div>
- <p class="text-sm font-medium text-blue-900 dark:text-blue-100">
- Use hosted quickstart for Patrol
- </p>
- <p class="mt-1 text-xs text-blue-800 dark:text-blue-200">
- Open the hosted quickstart handoff, or skip it and connect your own model
- provider below. Hosted quickstart routes policy-redacted prompts through
- Pulse infrastructure; BYOK providers go direct to your chosen provider.
- </p>
- </div>
- <button
- type="button"
- onClick={() => void props.handleStartTrial()}
- class="inline-flex min-h-10 sm:min-h-9 items-center justify-center rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 disabled:opacity-50"
- disabled={props.startingTrial()}
- >
- {props.startingTrial() ? 'Opening handoff...' : 'Open hosted handoff'}
- </button>
- </div>
- </div>
- </Show>
-
<SelectionCardGroup
options={AI_SETUP_PROVIDER_OPTIONS}
value={props.setupProvider()}
diff --git a/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx b/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx
index b9fec33433..9e1e3c53ed 100644
--- a/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx
+++ b/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx
@@ -22,7 +22,6 @@ import { useAgentProfilesPanelState } from './useAgentProfilesPanelState';
export const AgentProfilesPanel: Component = () => {
const {
aiAvailable,
- canStartTrial,
checkingLicense,
connectedAgents,
editingProfile,
@@ -43,7 +42,6 @@ export const AgentProfilesPanel: Component = () => {
handleDelete,
handleEdit,
handleSave,
- handleStartTrial,
handleSuggest,
handleSuggestionAccepted,
hasAgentProfiles,
@@ -57,14 +55,11 @@ export const AgentProfilesPanel: Component = () => {
showUpgradePrompts,
showModal,
showSuggestModal,
- startingTrial,
trackUpgradeClicked,
unknownKeys,
updateSetting,
formatRelativeTime,
UPGRADE_ACTION_LABEL,
- UPGRADE_TRIAL_LABEL,
- UPGRADE_TRIAL_LINK_CLASS,
} = useAgentProfilesPanelState();
// License gate - using Show components for proper SolidJS reactivity
@@ -110,16 +105,6 @@ export const AgentProfilesPanel: Component = () => {
<Crown class="w-4 h-4" />
{UPGRADE_ACTION_LABEL}
</UpgradeLink>
- <Show when={canStartTrial()}>
- <button
- type="button"
- onClick={handleStartTrial}
- disabled={startingTrial()}
- class={UPGRADE_TRIAL_LINK_CLASS}
- >
- {UPGRADE_TRIAL_LABEL}
- </button>
- </Show>
</div>
</Card>
</Show>
diff --git a/frontend-modern/src/components/Settings/AuditLogPanel.tsx b/frontend-modern/src/components/Settings/AuditLogPanel.tsx
index 33dade7007..29dcbb9232 100644
--- a/frontend-modern/src/components/Settings/AuditLogPanel.tsx
+++ b/frontend-modern/src/components/Settings/AuditLogPanel.tsx
@@ -25,8 +25,6 @@ import {
import {
getUpgradeActionButtonClass,
UPGRADE_ACTION_LABEL,
- UPGRADE_TRIAL_LABEL,
- UPGRADE_TRIAL_LINK_CLASS,
} from '@/utils/upgradePresentation';
import { useAuditLogPanelState } from '@/components/Settings/useAuditLogPanelState';
@@ -38,7 +36,6 @@ export default function AuditLogPanel() {
auditLoggingEnabled,
autoVerifyEnabled,
autoVerifyLimit,
- canStartTrial,
cancelVerification,
clearFilterChip,
clearFilters,
@@ -49,7 +46,6 @@ export default function AuditLogPanel() {
goToLastPage,
goToNextPage,
goToPreviousPage,
- handleStartTrial,
handleUpgradeClick,
hasNextPage,
hasResumeEvents,
@@ -74,7 +70,6 @@ export default function AuditLogPanel() {
setVerificationFilter,
showUpgradePaywall,
showUpgradePrompts,
- startingTrial,
submitPageInput,
successFilter,
totalEvents,
@@ -175,16 +170,6 @@ export default function AuditLogPanel() {
>
{UPGRADE_ACTION_LABEL}
</UpgradeLink>
- <Show when={canStartTrial()}>
- <button
- type="button"
- onClick={handleStartTrial}
- disabled={startingTrial()}
- class={UPGRADE_TRIAL_LINK_CLASS}
- >
- {UPGRADE_TRIAL_LABEL}
- </button>
- </Show>
</div>
</Show>
</div>
diff --git a/frontend-modern/src/components/Settings/AuditWebhookPanel.tsx b/frontend-modern/src/components/Settings/AuditWebhookPanel.tsx
index 57073e1d69..235d09bac6 100644
--- a/frontend-modern/src/components/Settings/AuditWebhookPanel.tsx
+++ b/frontend-modern/src/components/Settings/AuditWebhookPanel.tsx
@@ -22,8 +22,6 @@ import { trackUpgradeClicked } from '@/utils/upgradeMetrics';
import {
getUpgradeActionButtonClass,
UPGRADE_ACTION_LABEL,
- UPGRADE_TRIAL_LABEL,
- UPGRADE_TRIAL_LINK_CLASS,
} from '@/utils/upgradePresentation';
import { useAuditWebhookPanelState } from '@/components/Settings/useAuditWebhookPanelState';
@@ -34,17 +32,14 @@ interface AuditWebhookPanelProps {
export const AuditWebhookPanel: Component<AuditWebhookPanelProps> = (props) => {
const {
canManage,
- canStartTrial,
handleAddWebhook,
handleRemoveWebhook,
- handleStartTrial,
isAuditLoggingEnabled,
loading,
newUrl,
saving,
setNewUrl,
showUpgradePrompts,
- startingTrial,
upgradeDestination,
webhookUrls,
} = useAuditWebhookPanelState(props.canManage);
@@ -75,16 +70,6 @@ export const AuditWebhookPanel: Component<AuditWebhookPanelProps> = (props) => {
>
{UPGRADE_ACTION_LABEL}
</UpgradeLink>
- <Show when={canStartTrial()}>
- <button
- type="button"
- onClick={handleStartTrial}
- disabled={startingTrial()}
- class={UPGRADE_TRIAL_LINK_CLASS}
- >
- {UPGRADE_TRIAL_LABEL}
- </button>
- </Show>
</div>
</Show>
</div>
diff --git a/frontend-modern/src/components/Settings/RBACFeatureGateSection.tsx b/frontend-modern/src/components/Settings/RBACFeatureGateSection.tsx
index 3015ab66f0..bb98d5d099 100644
--- a/frontend-modern/src/components/Settings/RBACFeatureGateSection.tsx
+++ b/frontend-modern/src/components/Settings/RBACFeatureGateSection.tsx
@@ -6,18 +6,13 @@ import { trackUpgradeClicked } from '@/utils/upgradeMetrics';
import {
getUpgradeActionButtonClass,
UPGRADE_ACTION_LABEL,
- UPGRADE_TRIAL_LABEL,
- UPGRADE_TRIAL_LINK_CLASS,
} from '@/utils/upgradePresentation';
import type { RBACFeatureGateLocation } from './useRBACFeatureGateState';
interface RBACFeatureGateSectionProps {
- canStartTrial: boolean;
copy: RBACFeatureGateCopy;
paywallLocation: RBACFeatureGateLocation;
showUpgradePrompts: boolean;
- startingTrial: boolean;
- onStartTrial: () => void | Promise<void>;
}
export const RBACFeatureGateSection: Component<RBACFeatureGateSectionProps> = (props) => (
@@ -36,16 +31,6 @@ export const RBACFeatureGateSection: Component<RBACFeatureGateSectionProps> = (p
>
{UPGRADE_ACTION_LABEL}
</UpgradeLink>
- <Show when={props.canStartTrial}>
- <button
- type="button"
- onClick={props.onStartTrial}
- disabled={props.startingTrial}
- class={UPGRADE_TRIAL_LINK_CLASS}
- >
- {UPGRADE_TRIAL_LABEL}
- </button>
- </Show>
</div>
</Show>
</div>
diff --git a/frontend-modern/src/components/Settings/RelaySettingsPanel.tsx b/frontend-modern/src/components/Settings/RelaySettingsPanel.tsx
index d9d00eeec8..be873db119 100644
--- a/frontend-modern/src/components/Settings/RelaySettingsPanel.tsx
+++ b/frontend-modern/src/components/Settings/RelaySettingsPanel.tsx
@@ -12,7 +12,6 @@ import {
RELAY_ENABLE_HELP_TEXT,
RELAY_INFO_MESSAGE_CLASS,
RELAY_INFO_TITLE_CLASS,
- RELAY_INLINE_ACTION_CLASS,
RELAY_LAST_ERROR_CLASS,
RELAY_LICENSE_REQUIRED_MESSAGE,
RELAY_PAIRING_AVAILABILITY_MESSAGE,
@@ -22,7 +21,6 @@ import {
RELAY_READONLY_NOTICE_CLASS,
RELAY_SETTINGS_DESCRIPTION,
} from '@/utils/relayPresentation';
-import { UPGRADE_TRIAL_LABEL } from '@/utils/upgradePresentation';
import { RelayPairingSection } from './RelayPairingSection';
import {
useRelaySettingsPanelState,
@@ -53,18 +51,8 @@ export const RelaySettingsPanel: Component<RelaySettingsPanelProps> = (props) =>
class={RELAY_PRIMARY_LINK_CLASS}
onClick={() => trackUpgradeClicked('settings_relay_panel', 'relay')}
>
- Upgrade
+ View plans
</UpgradeLink>
- <Show when={state.canStartTrial()}>
- <button
- type="button"
- onClick={state.handleStartTrial}
- disabled={state.startingTrial()}
- class={RELAY_INLINE_ACTION_CLASS}
- >
- {UPGRADE_TRIAL_LABEL}
- </button>
- </Show>
</div>
</Show>
</div>
diff --git a/frontend-modern/src/components/Settings/ReportingPanel.tsx b/frontend-modern/src/components/Settings/ReportingPanel.tsx
index c2db7c5e2b..b845d35d8a 100644
--- a/frontend-modern/src/components/Settings/ReportingPanel.tsx
+++ b/frontend-modern/src/components/Settings/ReportingPanel.tsx
@@ -15,8 +15,6 @@ import { trackUpgradeClicked } from '@/utils/upgradeMetrics';
import {
getUpgradeActionButtonClass,
UPGRADE_ACTION_LABEL,
- UPGRADE_TRIAL_LABEL,
- UPGRADE_TRIAL_LINK_CLASS,
} from '@/utils/upgradePresentation';
import { ResourcePicker } from './ResourcePicker';
@@ -43,13 +41,11 @@ function FormField(props: FormFieldProps) {
export function ReportingPanel() {
const {
- canStartTrial,
exportingInventory,
format,
handleExportVMInventory,
generating,
handleGenerate,
- handleStartTrial,
isLocked,
isReportingEnabled,
metricType,
@@ -65,7 +61,6 @@ export function ReportingPanel() {
setSelectedResources,
setTitle,
showUpgradePrompts,
- startingTrial,
title,
upgradeDestination,
} = useReportingPanelState();
@@ -154,16 +149,6 @@ export function ReportingPanel() {
>
{UPGRADE_ACTION_LABEL}
</UpgradeLink>
- <Show when={canStartTrial()}>
- <button
- type="button"
- onClick={handleStartTrial}
- disabled={startingTrial()}
- class={UPGRADE_TRIAL_LINK_CLASS}
- >
- {UPGRADE_TRIAL_LABEL}
- </button>
- </Show>
</div>
</Show>
</div>
diff --git a/frontend-modern/src/components/Settings/RolesPanel.tsx b/frontend-modern/src/components/Settings/RolesPanel.tsx
index 0e73bd7fa2..c60f39d6b7 100644
--- a/frontend-modern/src/components/Settings/RolesPanel.tsx
+++ b/frontend-modern/src/components/Settings/RolesPanel.tsx
@@ -34,12 +34,9 @@ export const RolesPanel: Component = () => {
>
<Show when={state.featureGate.paywallVisible()}>
<RBACFeatureGateSection
- canStartTrial={state.featureGate.canStartTrial()}
copy={state.featureGate.featureGateCopy()}
paywallLocation="settings_roles_panel"
showUpgradePrompts={state.featureGate.showUpgradePrompts()}
- startingTrial={state.featureGate.startingTrial()}
- onStartTrial={state.featureGate.handleStartTrial}
/>
</Show>
diff --git a/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx b/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx
index 7bdce9de90..c5539b7f19 100644
--- a/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx
+++ b/frontend-modern/src/components/Settings/SSOProvidersPanel.tsx
@@ -30,8 +30,6 @@ import {
import {
getUpgradeActionButtonClass,
UPGRADE_ACTION_LABEL,
- UPGRADE_TRIAL_LABEL,
- UPGRADE_TRIAL_LINK_CLASS,
} from '@/utils/upgradePresentation';
import { ALERT_EMAIL_REPLY_TO_PLACEHOLDER } from '@/utils/alertEmailPresentation';
import { useSSOProvidersState } from '@/components/Settings/useSSOProvidersState';
@@ -67,9 +65,6 @@ export const SSOProvidersPanel: Component<SSOProvidersPanelProps> = (props) => {
loadingPreview,
hasAdvancedSSO,
canManage,
- startingTrial,
- canStartTrial,
- handleStartTrial,
openAddModal,
openEditModal,
handleSave,
@@ -131,16 +126,6 @@ export const SSOProvidersPanel: Component<SSOProvidersPanelProps> = (props) => {
{UPGRADE_ACTION_LABEL}
<ExternalLink class="w-4 h-4" />
</UpgradeLink>
- <Show when={canStartTrial()}>
- <button
- type="button"
- onClick={handleStartTrial}
- disabled={startingTrial()}
- class={UPGRADE_TRIAL_LINK_CLASS}
- >
- {UPGRADE_TRIAL_LABEL}
- </button>
- </Show>
</div>
</div>
</div>
@@ -171,16 +156,6 @@ export const SSOProvidersPanel: Component<SSOProvidersPanelProps> = (props) => {
{UPGRADE_ACTION_LABEL}
<ExternalLink class="w-4 h-4" />
</UpgradeLink>
- <Show when={canStartTrial()}>
- <button
- type="button"
- onClick={handleStartTrial}
- disabled={startingTrial()}
- class={UPGRADE_TRIAL_LINK_CLASS}
- >
- {UPGRADE_TRIAL_LABEL}
- </button>
- </Show>
</div>
</div>
</div>
diff --git a/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx b/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx
index 27984c1a9d..061bd7ce6e 100644
--- a/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx
+++ b/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx
@@ -34,12 +34,9 @@ export const UserAssignmentsPanel: Component = () => {
>
<Show when={state.featureGate.paywallVisible()}>
<RBACFeatureGateSection
- canStartTrial={state.featureGate.canStartTrial()}
copy={state.featureGate.featureGateCopy()}
paywallLocation="settings_user_assignments_panel"
showUpgradePrompts={state.featureGate.showUpgradePrompts()}
- startingTrial={state.featureGate.startingTrial()}
- onStartTrial={state.featureGate.handleStartTrial}
/>
</Show>
diff --git a/frontend-modern/src/components/Settings/__tests__/AISettings.test.tsx b/frontend-modern/src/components/Settings/__tests__/AISettings.test.tsx
index 74700ac229..fb936c6d19 100644
--- a/frontend-modern/src/components/Settings/__tests__/AISettings.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/AISettings.test.tsx
@@ -538,7 +538,7 @@ describe('AISettings quickstart enablement flow', () => {
expect(notificationSuccessMock).toHaveBeenCalledWith('Assistant & Patrol enabled');
});
- it('shows activation-aware setup guidance instead of generic provider setup when quickstart is blocked', async () => {
+ it('keeps activation-required quickstart guidance out of default provider setup', async () => {
getSettingsMock.mockResolvedValue({
...baseSettings(),
configured: false,
@@ -559,18 +559,17 @@ describe('AISettings quickstart enablement flow', () => {
fireEvent.click(screen.getByRole('button', { name: /enable assistant and patrol/i }));
expect(updateSettingsMock).not.toHaveBeenCalled();
+ expect(await screen.findByText('Set Up Assistant & Patrol')).toBeInTheDocument();
expect(
- await screen.findByText('Activate quickstart or connect a provider'),
+ screen.getByText('Connect a provider to power Pulse Assistant and Patrol.'),
).toBeInTheDocument();
expect(
- screen.getAllByText(
- 'Connect your API key to use AI Patrol on this install. Hosted quickstart requires an activated entitlement.',
- ),
- ).toHaveLength(2);
- expect(screen.getByRole('button', { name: /open hosted handoff/i })).toBeInTheDocument();
+ screen.queryByText(/Hosted quickstart requires an activated entitlement/i),
+ ).not.toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: /open hosted handoff/i })).not.toBeInTheDocument();
});
- it('hides trial setup guidance when self-hosted upgrade prompts are disabled', async () => {
+ it('keeps activation-required quickstart guidance hidden when upgrade prompts are disabled', async () => {
presentationPolicyHidesUpgradePromptsMock.mockReturnValue(true);
getSettingsMock.mockResolvedValue({
...baseSettings(),
diff --git a/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx
index 6c4a74277d..3d95b48f95 100644
--- a/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx
@@ -273,7 +273,8 @@ afterEach(() => {
describe('AgentProfilesPanel V6 agent ID handling', () => {
it('relies on shared commercial posture bootstrap instead of local posture loads', () => {
expect(agentProfilesPanelStateSource).not.toContain('loadCommercialPosture(');
- expect(agentProfilesPanelStateSource).toContain('canOfferCommercialTrial');
+ expect(agentProfilesPanelStateSource).not.toContain('canOfferCommercialTrial');
+ expect(agentProfilesPanelSource).not.toContain('UPGRADE_TRIAL_LABEL');
expect(agentProfilesPanelStateSource).not.toContain('commercialPosture()?.trial_eligible');
});
diff --git a/frontend-modern/src/components/Settings/__tests__/RBACPaywallPanels.test.tsx b/frontend-modern/src/components/Settings/__tests__/RBACPaywallPanels.test.tsx
index 28ad3e2603..10db5a13af 100644
--- a/frontend-modern/src/components/Settings/__tests__/RBACPaywallPanels.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/RBACPaywallPanels.test.tsx
@@ -134,7 +134,7 @@ describe('RBAC paywall settings panels', () => {
expect(screen.getByText('Custom Roles (Pro)')).toBeInTheDocument();
});
- expect(screen.getByRole('link', { name: 'Upgrade to Pro' })).toHaveAttribute(
+ expect(screen.getByRole('link', { name: 'View plans' })).toHaveAttribute(
'href',
'https://example.com/upgrade?feature=rbac',
);
@@ -153,8 +153,8 @@ describe('RBAC paywall settings panels', () => {
expect(screen.getByText('Custom Roles (Pro)')).toBeInTheDocument();
});
- expect(screen.queryByRole('link', { name: 'Upgrade to Pro' })).not.toBeInTheDocument();
- expect(screen.queryByRole('button', { name: 'Start free trial' })).not.toBeInTheDocument();
+ expect(screen.queryByRole('link', { name: 'View plans' })).not.toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: 'Start trial' })).not.toBeInTheDocument();
expect(trackPaywallViewedMock).not.toHaveBeenCalled();
expect(getRolesMock).not.toHaveBeenCalled();
});
@@ -181,7 +181,7 @@ describe('RBAC paywall settings panels', () => {
expect(screen.getByText('Centralized Access Control (Pro)')).toBeInTheDocument();
});
- expect(screen.getByRole('link', { name: 'Upgrade to Pro' })).toHaveAttribute(
+ expect(screen.getByRole('link', { name: 'View plans' })).toHaveAttribute(
'href',
'https://example.com/upgrade?feature=rbac',
);
@@ -235,32 +235,19 @@ describe('RBAC paywall settings panels', () => {
expect(screen.getByRole('dialog', { name: 'Manage access: alice' })).toBeInTheDocument();
});
- it('surfaces backend trial-start messages instead of collapsing every conflict into already-used', async () => {
+ it('keeps trial start out of RBAC feature gates', async () => {
hasFeatureMock.mockImplementation((feature: string) => feature !== 'rbac');
commercialPostureMock.mockReturnValue({ trial_eligible: true });
entitlementsMock.mockReturnValue({ trial_eligible: true });
- startProTrialMock.mockRejectedValueOnce(
- Object.assign(
- new Error('Trial cannot be started while a paid v5 license migration is pending'),
- {
- status: 409,
- code: 'trial_not_available',
- },
- ),
- );
render(() => <RolesPanel />);
await waitFor(() => {
- expect(screen.getByRole('button', { name: 'Start free trial' })).toBeInTheDocument();
+ expect(screen.getByText('Custom Roles (Pro)')).toBeInTheDocument();
});
- fireEvent.click(screen.getByRole('button', { name: 'Start free trial' }));
-
- await waitFor(() => {
- expect(notificationErrorMock).toHaveBeenCalledWith(
- 'Trial cannot be started while a paid v5 license migration is pending',
- );
- });
+ expect(screen.getByRole('link', { name: 'View plans' })).toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: 'Start trial' })).not.toBeInTheDocument();
+ expect(startProTrialMock).not.toHaveBeenCalled();
});
});
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 a936bf52b3..30d0485202 100644
--- a/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx
@@ -156,7 +156,7 @@ describe('RelaySettingsPanel runtime', () => {
it('relies on shared commercial posture bootstrap for relay settings', () => {
expect(relaySettingsPanelStateSource).not.toContain('loadCommercialPosture(');
- expect(relaySettingsPanelStateSource).toContain('canOfferCommercialTrial');
+ expect(relaySettingsPanelStateSource).not.toContain('canOfferCommercialTrial');
expect(relaySettingsPanelStateSource).not.toContain('commercialPosture()?.trial_eligible');
});
@@ -174,7 +174,7 @@ describe('RelaySettingsPanel runtime', () => {
'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.',
),
).toBeInTheDocument();
- expect(screen.getByRole('link', { name: 'Upgrade' })).toHaveAttribute(
+ expect(screen.getByRole('link', { name: 'View plans' })).toHaveAttribute(
'href',
'https://example.com/upgrade',
);
@@ -495,8 +495,8 @@ describe('RelaySettingsPanel runtime', () => {
it('keeps relay settings split into shell, runtime, and pairing owners', () => {
expect(relaySettingsPanelSource).toContain('./useRelaySettingsPanelState');
expect(relaySettingsPanelSource).toContain('./RelayPairingSection');
- expect(relaySettingsPanelSource).toContain('@/utils/upgradePresentation');
- expect(relaySettingsPanelSource).toContain('UPGRADE_TRIAL_LABEL');
+ expect(relaySettingsPanelSource).not.toContain('@/utils/upgradePresentation');
+ expect(relaySettingsPanelSource).not.toContain('UPGRADE_TRIAL_LABEL');
expect(relaySettingsPanelSource).not.toContain('createSignal(');
expect(relaySettingsPanelSource).not.toContain('QRCode.toDataURL(');
expect(relaySettingsPanelSource).not.toContain('>Start free trial<');
diff --git a/frontend-modern/src/components/Settings/__tests__/ReportingPanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ReportingPanel.test.tsx
index 0cddbeb2bd..537f291b4f 100644
--- a/frontend-modern/src/components/Settings/__tests__/ReportingPanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ReportingPanel.test.tsx
@@ -76,13 +76,11 @@ const baseCatalog = {
function buildState(overrides: Record<string, unknown> = {}) {
return {
- canStartTrial: () => false,
exportingInventory: () => false,
format: () => 'pdf' as const,
handleExportVMInventory: vi.fn(),
generating: () => false,
handleGenerate: vi.fn(),
- handleStartTrial: vi.fn(),
isLocked: () => false,
isReportingEnabled: () => true,
metricType: () => '',
@@ -98,7 +96,6 @@ function buildState(overrides: Record<string, unknown> = {}) {
setSelectedResources: vi.fn(),
setTitle: vi.fn(),
showUpgradePrompts: () => true,
- startingTrial: () => false,
title: () => '',
upgradeDestination: () => ({
href: getPublicPricingUrl('advanced_reporting'),
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 3c807ecb1a..c86c91c649 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -131,8 +131,8 @@ describe('settings architecture guardrails', () => {
});
it('keeps default self-hosted commercial copy opt-in from shared settings primitives', () => {
- expect(aiSettingsDialogsSource).toContain('Open hosted handoff');
- expect(aiSettingsDialogsSource).toContain('Hosted quickstart routes policy-redacted prompts');
+ expect(aiSettingsDialogsSource).not.toContain('Open hosted handoff');
+ expect(aiSettingsDialogsSource).not.toContain('Hosted quickstart routes policy-redacted prompts');
expect(aiSettingsDialogsSource).not.toContain('Start Trial');
expect(aiSettingsDialogsSource).not.toContain('RELAY_ONBOARDING_TRIAL_STARTING_LABEL');
expect(generalSettingsPanelSource).toContain('Disable local-only commercial events');
diff --git a/frontend-modern/src/components/Settings/useAISettingsState.ts b/frontend-modern/src/components/Settings/useAISettingsState.ts
index 06ddd5df01..1d58ad952f 100644
--- a/frontend-modern/src/components/Settings/useAISettingsState.ts
+++ b/frontend-modern/src/components/Settings/useAISettingsState.ts
@@ -17,7 +17,7 @@ import {
syncAIRuntimeSettings,
} from '@/stores/aiRuntimeState';
import { hasFeature, loadRuntimeCapabilities } from '@/stores/license';
-import { canOfferCommercialTrial, getUpgradeActionDestination } from '@/stores/licenseCommercial';
+import { getUpgradeActionDestination } from '@/stores/licenseCommercial';
import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
import { notificationStore } from '@/stores/notifications';
import type { AISettings as AISettingsType, AIProvider, AuthMethod, ModelInfo } from '@/types/ai';
@@ -40,8 +40,6 @@ import {
normalizeQuickstartReason,
} from '@/utils/aiQuickstartContract';
import { logger } from '@/utils/logger';
-import { showSuccess, showWarning } from '@/utils/toast';
-import { runStartProTrialAction } from '@/utils/trialStartAction';
import { trackPaywallViewed } from '@/utils/upgradeMetrics';
type AISetupMode = 'provider' | 'activation-or-provider' | 'provider-required';
@@ -80,7 +78,6 @@ export const useAISettingsState = () => {
const [preflightRunning, setPreflightRunning] = createSignal(false);
const [preflightLastCheckedAt, setPreflightLastCheckedAt] = createSignal<number | null>(null);
- const [startingTrial, setStartingTrial] = createSignal(false);
const [showSetupModal, setShowSetupModal] = createSignal(false);
const [setupMode, setSetupMode] = createSignal<AISetupMode>('provider');
const [setupProvider, setSetupProvider] = createSignal<AIProvider>('anthropic');
@@ -119,7 +116,7 @@ export const useAISettingsState = () => {
const showUpgradePrompts = () => !presentationPolicyHidesUpgradePrompts();
const visibleQuickstartBlockedReason = () => {
const normalized = normalizeQuickstartReason(settings()?.quickstart_blocked_reason);
- if (normalized === AI_QUICKSTART_ACTIVATION_REQUIRED_REASON && !showUpgradePrompts()) {
+ if (normalized === AI_QUICKSTART_ACTIVATION_REQUIRED_REASON) {
return '';
}
return normalized;
@@ -161,7 +158,6 @@ export const useAISettingsState = () => {
Boolean(settings()?.quickstart_credits_available),
);
const quickstartBlockedReason = createMemo(visibleQuickstartBlockedReason);
- const canStartTrial = () => showUpgradePrompts() && canOfferCommercialTrial();
const upgradeAutofixDestination = () => getUpgradeActionDestination('ai_autofix');
const hasProviderBackedModels = (data: AISettingsType | null | undefined) =>
@@ -307,23 +303,6 @@ export const useAISettingsState = () => {
const formatDiffStats = (change: FileChange) => `+${change.added} -${change.removed}`;
- const handleStartTrial = async () => {
- if (startingTrial()) return;
- setStartingTrial(true);
- try {
- const outcome = await runStartProTrialAction({
- showSuccess,
- showError: showWarning,
- });
- if (outcome === 'activated') {
- setShowSetupModal(false);
- await loadSettings();
- }
- } finally {
- setStartingTrial(false);
- }
- };
-
const handleCloseSetupModal = () => {
setShowSetupModal(false);
setSetupMode('provider');
@@ -861,7 +840,6 @@ export const useAISettingsState = () => {
return {
autoFixLocked,
availableModels,
- canStartTrial,
chatSessions,
chatSessionsError,
chatSessionsLoading,
@@ -881,7 +859,6 @@ export const useAISettingsState = () => {
handleSessionRevert,
handleSessionSummarize,
handleSetupSubmit,
- handleStartTrial,
handleTest,
handleTestProvider,
hasConfiguredProvider,
@@ -928,7 +905,6 @@ export const useAISettingsState = () => {
showDiscoverySettings,
showSetupModal,
showUpgradePrompts,
- startingTrial,
testing,
testingProvider,
quickstartBlockedReason,
diff --git a/frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts b/frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts
index 4c25183c41..d5c28f15b5 100644
--- a/frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts
+++ b/frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts
@@ -14,7 +14,7 @@ import {
runtimeCapabilitiesLoaded,
runtimeCapabilitiesLoading,
} from '@/stores/license';
-import { canOfferCommercialTrial, getUpgradeActionDestination } from '@/stores/licenseCommercial';
+import { getUpgradeActionDestination } from '@/stores/licenseCommercial';
import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
import { loadRuntimeCapabilities } from '@/stores/license';
import { aiChatStore } from '@/stores/aiChat';
@@ -25,11 +25,8 @@ import { logger } from '@/utils/logger';
import {
getUpgradeActionButtonClass,
UPGRADE_ACTION_LABEL,
- UPGRADE_TRIAL_LABEL,
- UPGRADE_TRIAL_LINK_CLASS,
} from '@/utils/upgradePresentation';
import { trackPaywallViewed, trackUpgradeClicked } from '@/utils/upgradeMetrics';
-import { runStartProTrialAction } from '@/utils/trialStartAction';
import { KNOWN_SETTINGS } from './agentProfileSettings';
import {
getActionableAgentIdFromResource,
@@ -71,9 +68,7 @@ export const useAgentProfilesPanelState = () => {
const checkingLicense = () => !runtimeCapabilitiesLoaded() || runtimeCapabilitiesLoading();
const hasAgentProfiles = () => hasEntitlement('agent_profiles');
- const [startingTrial, setStartingTrial] = createSignal(false);
const showUpgradePrompts = () => !presentationPolicyHidesUpgradePrompts();
- const canStartTrial = () => showUpgradePrompts() && canOfferCommercialTrial();
const aiAvailable = createMemo(() => aiChatStore.enabled === true);
const [profiles, setProfiles] = createSignal<AgentProfile[]>([]);
@@ -210,19 +205,6 @@ export const useAgentProfilesPanelState = () => {
}
};
- const handleStartTrial = async () => {
- if (startingTrial()) return;
- setStartingTrial(true);
- try {
- await runStartProTrialAction({
- showSuccess: notificationStore.success,
- showError: notificationStore.error,
- });
- } finally {
- setStartingTrial(false);
- }
- };
-
createEffect((wasPaywallVisible) => {
const isPaywallVisible = !checkingLicense() && !hasAgentProfiles();
if (showUpgradePrompts() && isPaywallVisible && !wasPaywallVisible) {
@@ -359,7 +341,6 @@ export const useAgentProfilesPanelState = () => {
return {
aiAvailable,
- canStartTrial,
checkingLicense,
connectedAgents,
formDescription,
@@ -378,7 +359,6 @@ export const useAgentProfilesPanelState = () => {
handleDelete,
handleEdit,
handleSave,
- handleStartTrial,
handleSuggest,
handleSuggestionAccepted,
hasAgentProfiles,
@@ -392,7 +372,6 @@ export const useAgentProfilesPanelState = () => {
showUpgradePrompts,
showModal,
showSuggestModal,
- startingTrial,
trackUpgradeClicked,
unknownKeys,
updateSetting,
@@ -402,7 +381,5 @@ export const useAgentProfilesPanelState = () => {
formatRelativeTime,
getAgentStatusIndicator,
UPGRADE_ACTION_LABEL,
- UPGRADE_TRIAL_LABEL,
- UPGRADE_TRIAL_LINK_CLASS,
};
};
diff --git a/frontend-modern/src/components/Settings/useAuditLogPanelState.ts b/frontend-modern/src/components/Settings/useAuditLogPanelState.ts
index ddad10abd6..d133d1146a 100644
--- a/frontend-modern/src/components/Settings/useAuditLogPanelState.ts
+++ b/frontend-modern/src/components/Settings/useAuditLogPanelState.ts
@@ -8,11 +8,10 @@ import {
import { apiFetch } from '@/utils/apiClient';
import { showSuccess, showToast, showWarning } from '@/utils/toast';
import { hasFeature, runtimeCapabilitiesLoaded } from '@/stores/license';
-import { canOfferCommercialTrial, getUpgradeActionDestination } from '@/stores/licenseCommercial';
+import { getUpgradeActionDestination } from '@/stores/licenseCommercial';
import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
import { loadRuntimeCapabilities } from '@/stores/license';
import { trackPaywallViewed, trackUpgradeClicked } from '@/utils/upgradeMetrics';
-import { runStartProTrialAction } from '@/utils/trialStartAction';
export interface AuditEvent {
id: string;
@@ -108,7 +107,6 @@ export const useAuditLogPanelState = () => {
const [verifyControllers, setVerifyControllers] = createSignal<Record<string, AbortController>>(
{},
);
- const [startingTrial, setStartingTrial] = createSignal(false);
const auditLoggingEnabled = createMemo(
() => runtimeCapabilitiesLoaded() && hasFeature('audit_logging'),
@@ -117,7 +115,6 @@ export const useAuditLogPanelState = () => {
const showUpgradePaywall = createMemo(
() => runtimeCapabilitiesLoaded() && !auditLoggingEnabled() && !loading(),
);
- const canStartTrial = () => showUpgradePrompts() && canOfferCommercialTrial();
const upgradeDestination = createMemo(() => getUpgradeActionDestination('audit_logging'));
const fetchAuditEvents = async (options?: { limit?: number; offset?: number }) => {
@@ -518,19 +515,6 @@ export const useAuditLogPanelState = () => {
trackUpgradeClicked('settings_audit_log_panel', 'audit_logging');
};
- const handleStartTrial = async () => {
- if (startingTrial()) return;
- setStartingTrial(true);
- try {
- await runStartProTrialAction({
- showSuccess,
- showError: showWarning,
- });
- } finally {
- setStartingTrial(false);
- }
- };
-
createEffect((wasPaywallVisible) => {
const isPaywallVisible = showUpgradePaywall();
if (showUpgradePrompts() && isPaywallVisible && !wasPaywallVisible) {
@@ -591,7 +575,6 @@ export const useAuditLogPanelState = () => {
auditLoggingEnabled,
autoVerifyEnabled,
autoVerifyLimit,
- canStartTrial,
cancelVerification,
clearFilterChip,
clearFilters,
@@ -603,7 +586,6 @@ export const useAuditLogPanelState = () => {
goToLastPage,
goToNextPage,
goToPreviousPage,
- handleStartTrial,
handleUpgradeClick,
hasNextPage,
hasResumeEvents,
@@ -629,7 +611,6 @@ export const useAuditLogPanelState = () => {
setVerificationFilter,
showUpgradePaywall,
showUpgradePrompts,
- startingTrial,
submitPageInput,
successFilter,
totalEvents,
diff --git a/frontend-modern/src/components/Settings/useAuditWebhookPanelState.ts b/frontend-modern/src/components/Settings/useAuditWebhookPanelState.ts
index 3da0ae24d9..903d8c1805 100644
--- a/frontend-modern/src/components/Settings/useAuditWebhookPanelState.ts
+++ b/frontend-modern/src/components/Settings/useAuditWebhookPanelState.ts
@@ -3,7 +3,7 @@ import { apiFetchJSON } from '@/utils/apiClient';
import { logger } from '@/utils/logger';
import { showSuccess, showWarning } from '@/utils/toast';
import { hasFeature, runtimeCapabilitiesLoaded } from '@/stores/license';
-import { canOfferCommercialTrial, getUpgradeActionDestination } from '@/stores/licenseCommercial';
+import { getUpgradeActionDestination } from '@/stores/licenseCommercial';
import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
import { loadRuntimeCapabilities } from '@/stores/license';
import { trackPaywallViewed } from '@/utils/upgradeMetrics';
@@ -13,34 +13,18 @@ import {
getAuditWebhookSaveErrorMessage,
getAuditWebhookSaveSuccessMessage,
} from '@/utils/auditWebhookPresentation';
-import { runStartProTrialAction } from '@/utils/trialStartAction';
export const useAuditWebhookPanelState = (canManageOverride?: boolean) => {
const [webhookUrls, setWebhookUrls] = createSignal<string[]>([]);
const [newUrl, setNewUrl] = createSignal('');
const [saving, setSaving] = createSignal(false);
const [loading, setLoading] = createSignal(true);
- const [startingTrial, setStartingTrial] = createSignal(false);
const canManage = () => canManageOverride !== false;
const showUpgradePrompts = () => !presentationPolicyHidesUpgradePrompts();
- const canStartTrial = () => showUpgradePrompts() && canOfferCommercialTrial();
const isAuditLoggingEnabled = () => hasFeature('audit_logging');
const upgradeDestination = () => getUpgradeActionDestination('audit_logging');
- const handleStartTrial = async () => {
- if (startingTrial()) return;
- setStartingTrial(true);
- try {
- await runStartProTrialAction({
- showSuccess,
- showError: showWarning,
- });
- } finally {
- setStartingTrial(false);
- }
- };
-
const fetchWebhooks = async () => {
try {
const data = await apiFetchJSON<{ urls: string[] }>('/api/admin/webhooks/audit');
@@ -117,17 +101,14 @@ export const useAuditWebhookPanelState = (canManageOverride?: boolean) => {
return {
canManage,
- canStartTrial,
handleAddWebhook,
handleRemoveWebhook,
- handleStartTrial,
isAuditLoggingEnabled,
loading,
newUrl,
saving,
setNewUrl,
showUpgradePrompts,
- startingTrial,
upgradeDestination,
webhookUrls,
};
diff --git a/frontend-modern/src/components/Settings/useRBACFeatureGateState.ts b/frontend-modern/src/components/Settings/useRBACFeatureGateState.ts
index 0650af140a..d91966943d 100644
--- a/frontend-modern/src/components/Settings/useRBACFeatureGateState.ts
+++ b/frontend-modern/src/components/Settings/useRBACFeatureGateState.ts
@@ -1,12 +1,9 @@
-import { Accessor, createEffect, createMemo, createSignal, onMount } from 'solid-js';
+import { Accessor, createEffect, createMemo, onMount } from 'solid-js';
import { hasFeature, runtimeCapabilitiesLoaded } from '@/stores/license';
-import { canOfferCommercialTrial } from '@/stores/licenseCommercial';
import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
import { loadRuntimeCapabilities } from '@/stores/license';
-import { notificationStore } from '@/stores/notifications';
import { getRBACFeatureGateCopy, type RBACFeatureGateCopy } from '@/utils/rbacPresentation';
import { trackPaywallViewed } from '@/utils/upgradeMetrics';
-import { runStartProTrialAction } from '@/utils/trialStartAction';
export type RBACFeatureGateKind = 'roles' | 'user-assignments';
export type RBACFeatureGateLocation = 'settings_roles_panel' | 'settings_user_assignments_panel';
@@ -18,14 +15,11 @@ interface UseRBACFeatureGateStateOptions {
}
export function useRBACFeatureGateState(options: UseRBACFeatureGateStateOptions) {
- const [startingTrial, setStartingTrial] = createSignal(false);
-
const featureGateCopy = createMemo<RBACFeatureGateCopy>(() =>
getRBACFeatureGateCopy(options.kind),
);
const licenseReady = createMemo(() => runtimeCapabilitiesLoaded());
const showUpgradePrompts = createMemo(() => !presentationPolicyHidesUpgradePrompts());
- const canStartTrial = createMemo(() => showUpgradePrompts() && canOfferCommercialTrial());
const rbacEnabled = createMemo(() => licenseReady() && hasFeature('rbac'));
const paywallVisible = createMemo(
() => licenseReady() && !hasFeature('rbac') && !options.loading(),
@@ -43,27 +37,11 @@ export function useRBACFeatureGateState(options: UseRBACFeatureGateStateOptions)
return isPaywallVisible;
}, false);
- const handleStartTrial = async () => {
- if (startingTrial()) return;
- setStartingTrial(true);
- try {
- await runStartProTrialAction({
- showSuccess: notificationStore.success,
- showError: notificationStore.error,
- });
- } finally {
- setStartingTrial(false);
- }
- };
-
return {
- canStartTrial,
featureGateCopy,
- handleStartTrial,
licenseReady,
paywallVisible,
rbacEnabled,
showUpgradePrompts,
- startingTrial,
};
}
diff --git a/frontend-modern/src/components/Settings/useRelaySettingsPanelState.ts b/frontend-modern/src/components/Settings/useRelaySettingsPanelState.ts
index deb462c240..51462aa411 100644
--- a/frontend-modern/src/components/Settings/useRelaySettingsPanelState.ts
+++ b/frontend-modern/src/components/Settings/useRelaySettingsPanelState.ts
@@ -1,6 +1,6 @@
import { createEffect, createMemo, createSignal, onCleanup, onMount } from 'solid-js';
import { hasFeature, runtimeCapabilitiesLoaded } from '@/stores/license';
-import { canOfferCommercialTrial, getUpgradeActionDestination } from '@/stores/licenseCommercial';
+import { getUpgradeActionDestination } from '@/stores/licenseCommercial';
import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
import { loadRuntimeCapabilities } from '@/stores/license';
import { trackPaywallViewed } from '@/utils/upgradeMetrics';
@@ -10,7 +10,6 @@ import { OnboardingAPI, type OnboardingQRResponse } from '@/api/onboarding';
import { SecurityAPI, type APITokenRecord } from '@/api/security';
import { logger } from '@/utils/logger';
import { getRelayConnectionPresentation } from '@/utils/relayPresentation';
-import { runStartProTrialAction } from '@/utils/trialStartAction';
import QRCode from 'qrcode';
export interface RelaySettingsPanelProps {
@@ -28,11 +27,9 @@ export function useRelaySettingsPanelState(props: RelaySettingsPanelProps) {
const [pairingPayload, setPairingPayload] = createSignal<OnboardingQRResponse | null>(null);
const [pairingQRCode, setPairingQRCode] = createSignal<string | null>(null);
const [pairingTokenId, setPairingTokenId] = createSignal<string | null>(null);
- const [startingTrial, setStartingTrial] = createSignal(false);
const canManage = () => props.canManage !== false;
const showUpgradePrompts = () => !presentationPolicyHidesUpgradePrompts();
- const canStartTrial = () => showUpgradePrompts() && canOfferCommercialTrial();
const relayEnabled = () => hasFeature('relay');
const upgradeDestination = () => getUpgradeActionDestination('relay');
const connectionPresentation = createMemo(() =>
@@ -147,20 +144,6 @@ export function useRelaySettingsPanelState(props: RelaySettingsPanelProps) {
void deletePairingTokenIfUnused(pairingTokenId());
});
- const handleStartTrial = async () => {
- if (startingTrial()) return;
- setStartingTrial(true);
- try {
- await runStartProTrialAction({
- successMessage: 'Remote access trial started',
- showSuccess,
- showError,
- });
- } finally {
- setStartingTrial(false);
- }
- };
-
const handleToggleEnabled = async (enabled: boolean) => {
if (!canManage()) return;
setSaving(true);
@@ -266,14 +249,12 @@ export function useRelaySettingsPanelState(props: RelaySettingsPanelProps) {
return {
canManage,
canShowPairing,
- canStartTrial,
config,
connectionPresentation,
handleCopyPairingPayload,
handleHidePairing,
handlePairNewDevice,
handleSaveServerUrl,
- handleStartTrial,
handleToggleEnabled,
loading,
pairingLoading,
@@ -285,7 +266,6 @@ export function useRelaySettingsPanelState(props: RelaySettingsPanelProps) {
setServerUrl,
showUpgradePrompts,
showPairing,
- startingTrial,
status,
upgradeDestination,
};
diff --git a/frontend-modern/src/components/Settings/useReportingPanelState.ts b/frontend-modern/src/components/Settings/useReportingPanelState.ts
index 5cd9cb0e53..5352f355ff 100644
--- a/frontend-modern/src/components/Settings/useReportingPanelState.ts
+++ b/frontend-modern/src/components/Settings/useReportingPanelState.ts
@@ -3,7 +3,7 @@ import { apiErrorFromResponse, apiFetch } from '@/utils/apiClient';
import { showSuccess, showWarning } from '@/utils/toast';
import type { SelectedResource } from '@/components/Settings/ResourcePicker';
import { hasFeature, runtimeCapabilitiesLoaded } from '@/stores/license';
-import { canOfferCommercialTrial, getUpgradeActionDestination } from '@/stores/licenseCommercial';
+import { getUpgradeActionDestination } from '@/stores/licenseCommercial';
import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
import { loadRuntimeCapabilities } from '@/stores/license';
import { trackPaywallViewed } from '@/utils/upgradeMetrics';
@@ -16,7 +16,6 @@ import {
getReportingInventoryExportSuccessMessage,
resolveReportingDownloadFilename,
} from '@/utils/reportingPresentation';
-import { runStartProTrialAction } from '@/utils/trialStartAction';
import {
buildReportingRequest,
getReportingRangeStart,
@@ -43,13 +42,11 @@ export const useReportingPanelState = () => {
const [reportingCatalogError, setReportingCatalogError] = createSignal('');
const [reportingCatalogAttempted, setReportingCatalogAttempted] = createSignal(false);
const [title, setTitle] = createSignal('');
- const [startingTrial, setStartingTrial] = createSignal(false);
const reportingFeatureId = () => reportingCatalog()?.id ?? '';
const showUpgradePrompts = () => !presentationPolicyHidesUpgradePrompts();
const isLocked = () =>
runtimeCapabilitiesLoaded() && reportingFeatureId() !== '' && !hasFeature(reportingFeatureId());
- const canStartTrial = () => showUpgradePrompts() && canOfferCommercialTrial();
const isReportingEnabled = () =>
runtimeCapabilitiesLoaded() && reportingFeatureId() !== '' && hasFeature(reportingFeatureId());
const upgradeDestination = () =>
@@ -126,19 +123,6 @@ export const useReportingPanelState = () => {
}
});
- const handleStartTrial = async () => {
- if (startingTrial()) return;
- setStartingTrial(true);
- try {
- await runStartProTrialAction({
- showSuccess,
- showError: showWarning,
- });
- } finally {
- setStartingTrial(false);
- }
- };
-
const downloadResponseBlob = async (filename: string, response: Response) => {
const blob = await response.blob();
const url = window.URL.createObjectURL(blob);
@@ -228,13 +212,11 @@ export const useReportingPanelState = () => {
};
return {
- canStartTrial,
exportingInventory,
format,
handleExportVMInventory,
generating,
handleGenerate,
- handleStartTrial,
isLocked,
isReportingEnabled,
metricType,
@@ -254,7 +236,6 @@ export const useReportingPanelState = () => {
setRange,
setSelectedResources,
setTitle,
- startingTrial,
showUpgradePrompts,
title,
upgradeDestination,
diff --git a/frontend-modern/src/components/Settings/useSSOProvidersState.ts b/frontend-modern/src/components/Settings/useSSOProvidersState.ts
index 5d5e3bb3c3..4460017e38 100644
--- a/frontend-modern/src/components/Settings/useSSOProvidersState.ts
+++ b/frontend-modern/src/components/Settings/useSSOProvidersState.ts
@@ -3,7 +3,7 @@ import { createStore } from 'solid-js/store';
import { notificationStore } from '@/stores/notifications';
import { logger } from '@/utils/logger';
import { hasFeature, runtimeCapabilitiesLoaded } from '@/stores/license';
-import { canOfferCommercialTrial, getUpgradeActionDestination } from '@/stores/licenseCommercial';
+import { getUpgradeActionDestination } from '@/stores/licenseCommercial';
import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
import { loadRuntimeCapabilities } from '@/stores/license';
import { trackPaywallViewed, trackUpgradeClicked } from '@/utils/upgradeMetrics';
@@ -24,7 +24,6 @@ import {
getSSOProvidersLoadErrorMessage,
getSSOTestResultPresentation,
} from '@/utils/ssoProviderPresentation';
-import { runStartProTrialAction } from '@/utils/trialStartAction';
import type {
MetadataPreview,
ProviderForm,
@@ -62,27 +61,10 @@ export const useSSOProvidersState = (props: SSOProvidersPanelProps) => {
const [showMetadataPreview, setShowMetadataPreview] = createSignal(false);
const [metadataPreview, setMetadataPreview] = createSignal<MetadataPreview | null>(null);
const [loadingPreview, setLoadingPreview] = createSignal(false);
- const [startingTrial, setStartingTrial] = createSignal(false);
const hasAdvancedSSO = createMemo(() => hasFeature('advanced_sso'));
const canManage = () => props.canManage !== false;
const showUpgradePrompts = () => !presentationPolicyHidesUpgradePrompts();
- const canStartTrial = () => showUpgradePrompts() && canOfferCommercialTrial();
-
- const handleStartTrial = async () => {
- if (startingTrial()) {
- return;
- }
- setStartingTrial(true);
- try {
- await runStartProTrialAction({
- showSuccess: notificationStore.success,
- showError: notificationStore.error,
- });
- } finally {
- setStartingTrial(false);
- }
- };
createEffect((wasBannerVisible) => {
const isBannerVisible =
@@ -353,9 +335,6 @@ export const useSSOProvidersState = (props: SSOProvidersPanelProps) => {
loadingPreview,
hasAdvancedSSO,
canManage,
- startingTrial,
- canStartTrial,
- handleStartTrial,
openAddModal,
openEditModal,
handleSave,
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 94ece09658..64d011970f 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -471,6 +471,8 @@ describe('shared primitive guardrails', () => {
expect(trialBannerModelSource).toContain('getTrialBannerToneClass');
expect(trialBannerModelSource).toContain('getTrialBannerStatusLabel');
expect(trialBannerModelSource).toContain('TRIAL_BANNER_UPGRADE_LABEL');
+ expect(trialBannerModelSource).toContain("TRIAL_BANNER_UPGRADE_LABEL = 'Manage plan'");
+ expect(trialBannerModelSource).not.toContain("TRIAL_BANNER_UPGRADE_LABEL = 'Upgrade'");
});
it('keeps upgrade navigation split across shell, runtime, and utility owners', () => {
diff --git a/frontend-modern/src/components/shared/__tests__/TrialBanner.test.tsx b/frontend-modern/src/components/shared/__tests__/TrialBanner.test.tsx
index 91a037ca4a..8484a61d8d 100644
--- a/frontend-modern/src/components/shared/__tests__/TrialBanner.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/TrialBanner.test.tsx
@@ -112,7 +112,7 @@ describe('TrialBanner', () => {
expect(screen.getByRole('status')).toBeInTheDocument();
expect(screen.getByText('Pro Trial:')).toBeInTheDocument();
expect(screen.getByText('4 days remaining')).toBeInTheDocument();
- expect(screen.getByText('Upgrade').closest('a')).toHaveAttribute(
+ expect(screen.getByText('Manage plan').closest('a')).toHaveAttribute(
'href',
getPublicPricingUrl('trial_banner'),
);
@@ -151,7 +151,7 @@ describe('TrialBanner', () => {
renderBanner();
expect(screen.getByRole('status')).toBeInTheDocument();
- expect(screen.queryByText('Upgrade')).not.toBeInTheDocument();
+ expect(screen.queryByText('Manage plan')).not.toBeInTheDocument();
expect(screen.queryByRole('button', { name: 'Snooze 7d' })).not.toBeInTheDocument();
});
diff --git a/frontend-modern/src/components/shared/trialBannerModel.ts b/frontend-modern/src/components/shared/trialBannerModel.ts
index 9c9593d73a..3c117f3c74 100644
--- a/frontend-modern/src/components/shared/trialBannerModel.ts
+++ b/frontend-modern/src/components/shared/trialBannerModel.ts
@@ -2,7 +2,7 @@ export const TRIAL_BANNER_SNOOZE_KEY = 'pulse_trial_banner_snoozed';
export const TRIAL_BANNER_UPGRADE_REASON = 'trial_banner';
export const TRIAL_BANNER_TITLE = 'Pro Trial:';
export const TRIAL_BANNER_ACTIVE_LABEL = 'Active';
-export const TRIAL_BANNER_UPGRADE_LABEL = 'Upgrade';
+export const TRIAL_BANNER_UPGRADE_LABEL = 'Manage plan';
export const TRIAL_BANNER_SNOOZE_LABEL = 'Snooze 7d';
export function normalizeTrialBannerDaysRemaining(raw: unknown): number | null {
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index c043319866..6e5e1e553b 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -1477,7 +1477,7 @@ describe('frontend resource type boundaries', () => {
expect(reportingPanelSource).toContain('@/components/Settings/reportingPanelModel');
expect(reportingPanelSource).toContain('getUpgradeActionButtonClass');
expect(reportingPanelSource).toContain('UPGRADE_ACTION_LABEL');
- expect(reportingPanelSource).toContain('UPGRADE_TRIAL_LABEL');
+ expect(reportingPanelSource).not.toContain('UPGRADE_TRIAL_LABEL');
expect(reportingPanelSource).not.toContain('>Upgrade to Pro<');
expect(reportingPanelSource).not.toContain('>Start free trial<');
expect(reportingPanelSource).not.toContain('window.URL.createObjectURL');
@@ -3155,8 +3155,8 @@ describe('frontend resource type boundaries', () => {
expect(historyChartModelSource).toContain('getHistoryChartScale');
expect(historyChartHeaderSource).toContain('formatHistoryChartTooltipValue');
expect(historyChartOverlaySource).toContain('Collecting data... History will appear here.');
- expect(historyChartOverlaySource).toContain('presentationPolicyHidesUpgradePrompts');
- expect(historyChartOverlaySource).toContain('Unlock {props.chart.lockTierLabel()} Features');
+ expect(historyChartOverlaySource).not.toContain('presentationPolicyHidesUpgradePrompts');
+ expect(historyChartOverlaySource).not.toContain('Unlock {props.chart.lockTierLabel()} Features');
expect(historyChartOverlaySource).toContain('is not enabled on this');
expect(historyChartTooltipSource).toContain('formatHistoryChartTooltipValue');
expect(containerUpdateBadgeSource).toContain('useContainerUpdateButtonState');
@@ -4346,9 +4346,8 @@ describe('frontend resource type boundaries', () => {
expect(patrolIntelligenceSurfaceSource).toContain('./PatrolIntelligenceSummary');
expect(patrolIntelligenceSurfaceSource).toContain('./PatrolIntelligenceWorkspace');
expect(patrolIntelligenceBannersSource).toContain('presentationPolicyHidesUpgradePrompts');
- expect(patrolIntelligenceBannersSource).toContain(
- '!presentationPolicyHidesUpgradePrompts() && state.licenseRequired()',
- );
+ expect(patrolIntelligenceBannersSource).toContain('!presentationPolicyHidesUpgradePrompts()');
+ expect(patrolIntelligenceBannersSource).toContain('state.licenseRequired()');
expect(patrolIntelligenceHeaderSource).toContain('presentationPolicyHidesUpgradePrompts');
expect(patrolIntelligenceHeaderSource).toContain(
'!presentationPolicyHidesUpgradePrompts() && state.autoFixLocked()',
@@ -4374,7 +4373,7 @@ describe('frontend resource type boundaries', () => {
expect(patrolIntelligenceStateSource).toContain('export type PatrolIntelligenceState =');
expect(patrolIntelligenceStateSource).toContain('getPatrolStatus');
expect(patrolIntelligenceStateSource).toContain('usePatrolStream');
- expect(patrolIntelligenceStateSource).toContain('trackPaywallViewed');
+ expect(patrolIntelligenceStateSource).not.toContain('trackPaywallViewed');
expect(aiIntelligenceStoreSource).toContain(
"import { normalizeIntelligenceSummary } from './aiIntelligenceSummaryModel';",
);
@@ -4400,7 +4399,7 @@ describe('frontend resource type boundaries', () => {
expect(patrolIntelligenceSummarySource).toContain('getPatrolAssessmentPresentation');
expect(patrolIntelligenceWorkspaceSource).toContain('ApprovalBanner');
expect(patrolIntelligenceWorkspaceSource).toContain('FindingsPanel');
- expect(patrolIntelligenceBannersSource).toContain('trackUpgradeClicked');
+ expect(patrolIntelligenceBannersSource).not.toContain('trackUpgradeClicked');
expect(patrolIntelligenceSurfaceSource).not.toContain(
"summaryStats().criticalFindings > 0\n ? 'bg-red-50 dark:bg-red-900 border-red-200 dark:border-red-800'",
);
diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
index bc97f596a9..59fe73082f 100644
--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
@@ -54,13 +54,13 @@ describe('licensePresentation', () => {
expect(getTrialEndedProLicenseNotice()).toEqual({
tone: 'border-red-200 dark:border-red-900 bg-red-50 dark:bg-red-900 text-red-900 dark:text-red-100',
title: 'Your Pro trial has ended',
- body: 'Upgrade to keep root-cause analysis, safe remediation workflows, and 90-day history.',
+ body: 'Choose a paid plan to keep root-cause analysis, safe remediation workflows, and 90-day history on this instance.',
actionLabel: 'View Pro plans',
});
expect(getInactiveProUpsellNotice()).toEqual({
tone: 'border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-900 text-amber-800 dark:text-amber-200',
- title: 'Upgrade to Pro',
- body: 'Turn alert noise into root-cause analysis, safe remediation workflows, and 90-day history.',
+ title: 'Pro options available',
+ body: 'Pro adds root-cause analysis, safe remediation workflows, and 90-day history without changing the free self-hosted monitoring scope.',
actionLabel: 'View Pro plans',
});
expect(SELF_HOSTED_RECOVERY_PRESENTATION).toMatchObject({
diff --git a/frontend-modern/src/utils/__tests__/upgradePresentation.test.ts b/frontend-modern/src/utils/__tests__/upgradePresentation.test.ts
index ab6e22a889..6d222c7849 100644
--- a/frontend-modern/src/utils/__tests__/upgradePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/upgradePresentation.test.ts
@@ -14,8 +14,8 @@ import {
describe('upgradePresentation', () => {
it('returns canonical upgrade labels', () => {
- expect(UPGRADE_ACTION_LABEL).toBe('Upgrade to Pro');
- expect(UPGRADE_TRIAL_LABEL).toBe('Start free trial');
+ expect(UPGRADE_ACTION_LABEL).toBe('View plans');
+ expect(UPGRADE_TRIAL_LABEL).toBe('Start trial');
expect(UPGRADE_TRIAL_LINK_CLASS).toContain('text-indigo-500');
});
diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.ts
index 4a1609e389..b68cd7a00f 100644
--- a/frontend-modern/src/utils/licensePresentation.ts
+++ b/frontend-modern/src/utils/licensePresentation.ts
@@ -834,14 +834,14 @@ export const getNoActiveProLicenseState = (): LicenseLoadingStateCopy => ({
export const getTrialEndedProLicenseNotice = (): LicenseActionNotice => ({
tone: 'border-red-200 dark:border-red-900 bg-red-50 dark:bg-red-900 text-red-900 dark:text-red-100',
title: 'Your Pro trial has ended',
- body: 'Upgrade to keep root-cause analysis, safe remediation workflows, and 90-day history.',
+ body: 'Choose a paid plan to keep root-cause analysis, safe remediation workflows, and 90-day history on this instance.',
actionLabel: 'View Pro plans',
});
export const getInactiveProUpsellNotice = (): LicenseActionNotice => ({
tone: 'border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-900 text-amber-800 dark:text-amber-200',
- title: 'Upgrade to Pro',
- body: 'Turn alert noise into root-cause analysis, safe remediation workflows, and 90-day history.',
+ title: 'Pro options available',
+ body: 'Pro adds root-cause analysis, safe remediation workflows, and 90-day history without changing the free self-hosted monitoring scope.',
actionLabel: 'View Pro plans',
});
diff --git a/frontend-modern/src/utils/upgradePresentation.ts b/frontend-modern/src/utils/upgradePresentation.ts
index dcbadf0acd..96c78a97a5 100644
--- a/frontend-modern/src/utils/upgradePresentation.ts
+++ b/frontend-modern/src/utils/upgradePresentation.ts
@@ -5,8 +5,8 @@ export interface UpgradeActionButtonOptions {
mobileFullWidth?: boolean;
}
-export const UPGRADE_ACTION_LABEL = 'Upgrade to Pro';
-export const UPGRADE_TRIAL_LABEL = 'Start free trial';
+export const UPGRADE_ACTION_LABEL = 'View plans';
+export const UPGRADE_TRIAL_LABEL = 'Start trial';
export const UPGRADE_TRIAL_LINK_CLASS =
'text-sm text-indigo-500 hover:underline disabled:opacity-50';