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.

Trim commercial monitored-system copy

rcourtmana51b466e66d0
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 46b1d6b347..d42b0cac3b 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -48,27 +48,28 @@ agreement, and cloud-specific enforcement rules.
26. `frontend-modern/src/useAppRuntimeState.ts`
27. `frontend-modern/src/components/Dashboard/RelayOnboardingCard.tsx`
28. `frontend-modern/src/components/Dashboard/useRelayOnboardingCardState.ts`
-29. `frontend-modern/src/components/Settings/BillingAdminPanel.tsx`
-30. `frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx`
-31. `frontend-modern/src/components/Settings/OrganizationBillingPanel.tsx`
-32. `frontend-modern/src/components/Settings/OrganizationBillingLoadingState.tsx`
-33. `frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx`
-34. `frontend-modern/src/components/Settings/ProLicensePanel.tsx`
-35. `frontend-modern/src/components/Settings/ProLicensePlanSection.tsx`
-36. `frontend-modern/src/components/Settings/CommercialBillingSections.tsx`
-37. `frontend-modern/src/components/Settings/SelfHostedCommercialActivationSection.tsx`
-38. `frontend-modern/src/components/Settings/RelaySettingsPanel.tsx`
-39. `frontend-modern/src/components/Settings/RelayPairingSection.tsx`
-40. `frontend-modern/src/components/Settings/useBillingAdminPanelState.ts`
-41. `frontend-modern/src/components/Settings/useOrganizationBillingPanelState.ts`
-42. `frontend-modern/src/components/Settings/useProLicensePanelState.ts`
-43. `frontend-modern/src/components/Settings/useRelaySettingsPanelState.ts`
-44. `frontend-modern/src/pages/CloudPricing.tsx`
-45. `frontend-modern/src/pages/PricingV6.tsx`
-46. `frontend-modern/src/utils/apiClient.ts`
-47. `frontend-modern/src/utils/cloudPlans.ts`
-48. `frontend-modern/src/utils/commercialBillingModel.ts`
-49. `frontend-modern/src/utils/selfHostedPlans.ts`
+29. `frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx`
+30. `frontend-modern/src/components/Settings/BillingAdminPanel.tsx`
+31. `frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx`
+32. `frontend-modern/src/components/Settings/OrganizationBillingPanel.tsx`
+33. `frontend-modern/src/components/Settings/OrganizationBillingLoadingState.tsx`
+34. `frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx`
+35. `frontend-modern/src/components/Settings/ProLicensePanel.tsx`
+36. `frontend-modern/src/components/Settings/ProLicensePlanSection.tsx`
+37. `frontend-modern/src/components/Settings/CommercialBillingSections.tsx`
+38. `frontend-modern/src/components/Settings/SelfHostedCommercialActivationSection.tsx`
+39. `frontend-modern/src/components/Settings/RelaySettingsPanel.tsx`
+40. `frontend-modern/src/components/Settings/RelayPairingSection.tsx`
+41. `frontend-modern/src/components/Settings/useBillingAdminPanelState.ts`
+42. `frontend-modern/src/components/Settings/useOrganizationBillingPanelState.ts`
+43. `frontend-modern/src/components/Settings/useProLicensePanelState.ts`
+44. `frontend-modern/src/components/Settings/useRelaySettingsPanelState.ts`
+45. `frontend-modern/src/pages/CloudPricing.tsx`
+46. `frontend-modern/src/pages/PricingV6.tsx`
+47. `frontend-modern/src/utils/apiClient.ts`
+48. `frontend-modern/src/utils/cloudPlans.ts`
+49. `frontend-modern/src/utils/commercialBillingModel.ts`
+50. `frontend-modern/src/utils/selfHostedPlans.ts`
## Shared Boundaries
@@ -311,6 +312,10 @@ while `frontend-modern/src/pages/CloudPricing.tsx`,
`frontend-modern/src/pages/HostedSignup.tsx`, `frontend-modern/src/pages/PricingV6.tsx`,
and the self-hosted billing settings surfaces must consume those shared owners
instead of redefining retail plan facts or counted-unit policy locally.
+That same counted-unit boundary also owns the disclosure rule for retail copy:
+default billing and pricing surfaces should use concise monitored-system copy,
+while the full counted-unit definition appears only behind explicit disclosure
+such as `What counts?` instead of sitting as always-visible explanatory chrome.
That contract applies to both plan summary labels and upgrade/paywall copy:
current v6 self-hosted pricing may not drift back to the older `$49/yr Relay`,
`$99/yr Pro`, or monitored-system-count marketing drift that contradicts the
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index 4f92c87870..ab40f9e55d 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -1279,6 +1279,7 @@
"owned_files": [
"frontend-modern/src/App.tsx",
"frontend-modern/src/AppLayout.tsx",
+ "frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx",
"frontend-modern/src/components/Dashboard/RelayOnboardingCard.tsx",
"frontend-modern/src/components/Dashboard/useRelayOnboardingCardState.ts",
"frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx",
@@ -1734,6 +1735,7 @@
"label": "commercial plan model proof",
"match_prefixes": [],
"match_files": [
+ "frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx",
"frontend-modern/src/utils/cloudPlans.ts",
"frontend-modern/src/utils/commercialBillingModel.ts",
"frontend-modern/src/utils/selfHostedPlans.ts"
@@ -1741,6 +1743,7 @@
"allow_same_subsystem_tests": false,
"test_prefixes": [],
"exact_files": [
+ "frontend-modern/src/components/Commercial/__tests__/MonitoredSystemDefinitionDisclosure.test.tsx",
"frontend-modern/src/components/Settings/__tests__/OrganizationBillingPanel.test.tsx",
"frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx",
"frontend-modern/src/pages/__tests__/CloudPricing.test.tsx",
diff --git a/frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx b/frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx
new file mode 100644
index 0000000000..03dbb8d7ea
--- /dev/null
+++ b/frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx
@@ -0,0 +1,50 @@
+import { Show, createSignal, type Component } from 'solid-js';
+import {
+ SELF_HOSTED_MONITORED_SYSTEMS_DEFINITION,
+ SELF_HOSTED_MONITORED_SYSTEMS_DISCLOSURE_LABEL,
+ SELF_HOSTED_MONITORED_SYSTEMS_HIDE_LABEL,
+} from '@/utils/selfHostedPlans';
+
+interface MonitoredSystemDefinitionDisclosureProps {
+ summary?: string;
+ class?: string;
+ summaryClass?: string;
+ buttonClass?: string;
+ detailClass?: string;
+}
+
+export const MonitoredSystemDefinitionDisclosure: Component<
+ MonitoredSystemDefinitionDisclosureProps
+> = (props) => {
+ const [open, setOpen] = createSignal(false);
+
+ return (
+ <div class={props.class ?? 'space-y-2'}>
+ <Show when={props.summary}>
+ <p class={props.summaryClass ?? 'text-xs text-muted'}>{props.summary}</p>
+ </Show>
+
+ <div class="space-y-2">
+ <button
+ type="button"
+ class={
+ props.buttonClass ??
+ 'text-xs font-medium text-muted underline-offset-2 transition-colors hover:text-base-content hover:underline'
+ }
+ aria-expanded={open()}
+ onClick={() => setOpen((current) => !current)}
+ >
+ {open() ? SELF_HOSTED_MONITORED_SYSTEMS_HIDE_LABEL : SELF_HOSTED_MONITORED_SYSTEMS_DISCLOSURE_LABEL}
+ </button>
+
+ <Show when={open()}>
+ <p class={props.detailClass ?? 'max-w-2xl text-xs text-muted'}>
+ {SELF_HOSTED_MONITORED_SYSTEMS_DEFINITION}
+ </p>
+ </Show>
+ </div>
+ </div>
+ );
+};
+
+export default MonitoredSystemDefinitionDisclosure;
diff --git a/frontend-modern/src/components/Commercial/__tests__/MonitoredSystemDefinitionDisclosure.test.tsx b/frontend-modern/src/components/Commercial/__tests__/MonitoredSystemDefinitionDisclosure.test.tsx
new file mode 100644
index 0000000000..2447515b12
--- /dev/null
+++ b/frontend-modern/src/components/Commercial/__tests__/MonitoredSystemDefinitionDisclosure.test.tsx
@@ -0,0 +1,31 @@
+import { describe, expect, it } from 'vitest';
+import { fireEvent, render, screen } from '@solidjs/testing-library';
+
+import { MonitoredSystemDefinitionDisclosure } from '../MonitoredSystemDefinitionDisclosure';
+
+describe('MonitoredSystemDefinitionDisclosure', () => {
+ it('shows concise copy first and reveals the full definition on demand', async () => {
+ render(() => (
+ <MonitoredSystemDefinitionDisclosure summary="Billing is based on monitored systems." />
+ ));
+
+ expect(screen.getByText('Billing is based on monitored systems.')).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'What counts?' })).toHaveAttribute(
+ 'aria-expanded',
+ 'false',
+ );
+ expect(
+ screen.queryByText(/a monitored system is a top-level machine or cluster/i),
+ ).not.toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('button', { name: 'What counts?' }));
+
+ expect(screen.getByRole('button', { name: 'Hide details' })).toHaveAttribute(
+ 'aria-expanded',
+ 'true',
+ );
+ expect(
+ screen.getByText(/a monitored system is a top-level machine or cluster/i),
+ ).toBeInTheDocument();
+ });
+});
diff --git a/frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx b/frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx
index fde59d15bc..7885a22801 100644
--- a/frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx
+++ b/frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx
@@ -20,8 +20,8 @@ import {
import { PulseLogoIcon } from '@/components/icons/PulseLogoIcon';
import {
SELF_HOSTED_MONITORED_SYSTEM_LEDGER_DESCRIPTION,
- SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION,
} from '@/utils/selfHostedPlans';
+import { MonitoredSystemDefinitionDisclosure } from '@/components/Commercial/MonitoredSystemDefinitionDisclosure';
interface MonitoredSystemLedgerPanelProps {
embedded?: boolean;
@@ -47,7 +47,13 @@ export function MonitoredSystemLedgerPanel(props: MonitoredSystemLedgerPanelProp
{/* Summary */}
<div class="space-y-1">
<div class="flex items-center justify-between">
- <h3 class="text-sm font-semibold text-base-content">Monitored Systems</h3>
+ <div class="space-y-1">
+ <h3 class="text-sm font-semibold text-base-content">Monitored Systems</h3>
+ <MonitoredSystemDefinitionDisclosure
+ buttonClass="text-xs font-medium text-muted underline-offset-2 transition-colors hover:text-base-content hover:underline"
+ detailClass="max-w-xl text-xs text-muted"
+ />
+ </div>
<Show when={!ledger.error && ledger()}>
<span
class="text-sm font-medium"
@@ -61,9 +67,6 @@ export function MonitoredSystemLedgerPanel(props: MonitoredSystemLedgerPanelProp
</span>
</Show>
</div>
- <p class="text-xs text-muted">
- {SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION}
- </p>
</div>
{/* Loading state */}
diff --git a/frontend-modern/src/components/Settings/ProLicensePanel.tsx b/frontend-modern/src/components/Settings/ProLicensePanel.tsx
index e5f83bb5dd..d172a4b690 100644
--- a/frontend-modern/src/components/Settings/ProLicensePanel.tsx
+++ b/frontend-modern/src/components/Settings/ProLicensePanel.tsx
@@ -6,7 +6,7 @@ import { CommercialBillingShell, CommercialSection } from './CommercialBillingSe
import { ProLicensePlanSection } from './ProLicensePlanSection';
import { SelfHostedCommercialActivationSection } from './SelfHostedCommercialActivationSection';
import { useProLicensePanelState } from './useProLicensePanelState';
-import { SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION } from '@/utils/selfHostedPlans';
+import { SELF_HOSTED_MONITORED_SYSTEMS_BRIEF } from '@/utils/selfHostedPlans';
export const ProLicensePanel: Component = () => {
const state = useProLicensePanelState();
@@ -52,7 +52,7 @@ export const ProLicensePanel: Component = () => {
<CommercialSection
title="Usage"
- description={SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION}
+ description={SELF_HOSTED_MONITORED_SYSTEMS_BRIEF}
>
<MonitoredSystemLedgerPanel embedded />
</CommercialSection>
diff --git a/frontend-modern/src/components/Settings/__tests__/MonitoredSystemLedgerPanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/MonitoredSystemLedgerPanel.test.tsx
index fe6b0e97c6..18f37ca85a 100644
--- a/frontend-modern/src/components/Settings/__tests__/MonitoredSystemLedgerPanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/MonitoredSystemLedgerPanel.test.tsx
@@ -147,6 +147,13 @@ describe('MonitoredSystemLedgerPanel', () => {
'Review the monitored systems currently counting toward your Pulse Pro allocation.',
),
).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'What counts?' })).toBeInTheDocument();
+ expect(
+ screen.queryByText(/a monitored system is a top-level machine or cluster pulse actively monitors/i),
+ ).not.toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('button', { name: 'What counts?' }));
+
expect(
screen.getByText(/a monitored system is a top-level machine or cluster pulse actively monitors/i),
).toBeInTheDocument();
diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
index 24b0947fac..9d7a30fa2b 100644
--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
@@ -148,15 +148,24 @@ describe('ProLicensePanel', () => {
expect(screen.getByText('Plan Terms')).toBeInTheDocument();
});
- expect(screen.getByText('5 / 12')).toBeInTheDocument();
- expect(screen.getByText('7')).toBeInTheDocument();
- expect(screen.getAllByText('Active').length).toBeGreaterThan(0);
- expect(screen.getByText('V5 Lifetime Grandfathered')).toBeInTheDocument();
- expect(screen.getByText('Included Monitored Systems')).toBeInTheDocument();
- expect(
- screen.getAllByText(/a monitored system is a top-level machine or cluster/i).length,
- ).toBeGreaterThan(0);
- });
+ expect(screen.getByText('5 / 12')).toBeInTheDocument();
+ expect(screen.getByText('7')).toBeInTheDocument();
+ expect(screen.getAllByText('Active').length).toBeGreaterThan(0);
+ expect(screen.getByText('V5 Lifetime Grandfathered')).toBeInTheDocument();
+ expect(screen.getByText('Included Monitored Systems')).toBeInTheDocument();
+ expect(
+ screen.getByText('Billing is based on monitored systems. Child resources are included.'),
+ ).toBeInTheDocument();
+ expect(
+ screen.queryByText(/a monitored system is a top-level machine or cluster/i),
+ ).not.toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('button', { name: 'What counts?' }));
+
+ expect(
+ screen.getByText(/a monitored system is a top-level machine or cluster/i),
+ ).toBeInTheDocument();
+ });
it('shows recurring grandfathered pricing continuity for migrated v5 Pro plans', async () => {
const tests = [
diff --git a/frontend-modern/src/pages/PricingV6.tsx b/frontend-modern/src/pages/PricingV6.tsx
index ca1d05d70e..b58d2cc5c1 100644
--- a/frontend-modern/src/pages/PricingV6.tsx
+++ b/frontend-modern/src/pages/PricingV6.tsx
@@ -21,10 +21,12 @@ import { logger } from '@/utils/logger';
import {
SELF_HOSTED_FEATURE_ROWS,
SELF_HOSTED_PLAN_BY_TIER,
+ SELF_HOSTED_MONITORED_SYSTEMS_BRIEF,
type SelfHostedFeatureRow,
type SelfHostedPlanDefinition,
type SelfHostedTierKey,
} from '@/utils/selfHostedPlans';
+import { MonitoredSystemDefinitionDisclosure } from '@/components/Commercial/MonitoredSystemDefinitionDisclosure';
// ---------------------------------------------------------------------------
// Shared sub-components
@@ -339,6 +341,14 @@ export default function PricingV6() {
<TierCard tier={SELF_HOSTED_PLAN_BY_TIER.proPlus} cta={proPlusCta} />
</div>
+ <Card padding="lg" class="space-y-2">
+ <MonitoredSystemDefinitionDisclosure
+ summary={SELF_HOSTED_MONITORED_SYSTEMS_BRIEF}
+ summaryClass="text-sm text-base-content"
+ detailClass="max-w-3xl text-xs text-muted"
+ />
+ </Card>
+
{/* Upsell links */}
<div class="flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-sm text-muted">
<span>
diff --git a/frontend-modern/src/pages/__tests__/PricingV6.test.tsx b/frontend-modern/src/pages/__tests__/PricingV6.test.tsx
index 524b4f1ac6..48603f8064 100644
--- a/frontend-modern/src/pages/__tests__/PricingV6.test.tsx
+++ b/frontend-modern/src/pages/__tests__/PricingV6.test.tsx
@@ -1,5 +1,5 @@
import { describe, expect, it, vi } from 'vitest';
-import { render, screen } from '@solidjs/testing-library';
+import { fireEvent, render, screen } from '@solidjs/testing-library';
import type { JSX } from 'solid-js';
import PricingV6 from '../PricingV6';
@@ -65,6 +65,18 @@ describe('PricingV6', () => {
expect(screen.getByText('15 monitored systems')).toBeInTheDocument();
expect(screen.getByText('50 monitored systems')).toBeInTheDocument();
expect(screen.getByText('Feature Comparison')).toBeInTheDocument();
+ expect(
+ screen.getByText('Billing is based on monitored systems. Child resources are included.'),
+ ).toBeInTheDocument();
+ expect(
+ screen.queryByText(/a monitored system is a top-level machine or cluster/i),
+ ).not.toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('button', { name: 'What counts?' }));
+
+ expect(
+ screen.getByText(/a monitored system is a top-level machine or cluster/i),
+ ).toBeInTheDocument();
});
it('imports the shared self-hosted pricing model instead of redefining it locally', () => {
diff --git a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
index f1144fcd67..2118a21059 100644
--- a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
+++ b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts
@@ -2,19 +2,23 @@ import { describe, expect, it } from 'vitest';
import {
SELF_HOSTED_FEATURE_ROWS,
- SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION,
+ SELF_HOSTED_MONITORED_SYSTEMS_BRIEF,
+ SELF_HOSTED_MONITORED_SYSTEMS_DEFINITION,
SELF_HOSTED_PLAN_BY_TIER,
SELF_HOSTED_PLAN_DEFINITIONS,
} from '../selfHostedPlans';
describe('selfHostedPlans', () => {
- it('keeps the monitored-system definition explicit and child-resource inclusive', () => {
- expect(SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION).toContain(
+ it('keeps the monitored-system wording concise by default and explicit on disclosure', () => {
+ expect(SELF_HOSTED_MONITORED_SYSTEMS_BRIEF).toBe(
+ 'Billing is based on monitored systems. Child resources are included.',
+ );
+ expect(SELF_HOSTED_MONITORED_SYSTEMS_DEFINITION).toContain(
'top-level machine or cluster',
);
- expect(SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION).toContain('counts once');
- expect(SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION).toContain('VMs');
- expect(SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION).toContain('services');
+ expect(SELF_HOSTED_MONITORED_SYSTEMS_DEFINITION).toContain('counts once');
+ expect(SELF_HOSTED_MONITORED_SYSTEMS_DEFINITION).toContain('VMs');
+ expect(SELF_HOSTED_MONITORED_SYSTEMS_DEFINITION).toContain('services');
});
it('keeps self-hosted plan limits aligned across tier cards and comparison rows', () => {
diff --git a/frontend-modern/src/utils/selfHostedPlans.ts b/frontend-modern/src/utils/selfHostedPlans.ts
index 4674e49f86..d4af9e3a22 100644
--- a/frontend-modern/src/utils/selfHostedPlans.ts
+++ b/frontend-modern/src/utils/selfHostedPlans.ts
@@ -19,7 +19,14 @@ export interface SelfHostedFeatureRow {
proPlus: boolean | string;
}
-export const SELF_HOSTED_MONITORED_SYSTEMS_DESCRIPTION =
+export const SELF_HOSTED_MONITORED_SYSTEMS_BRIEF =
+ 'Billing is based on monitored systems. Child resources are included.';
+
+export const SELF_HOSTED_MONITORED_SYSTEMS_DISCLOSURE_LABEL = 'What counts?';
+
+export const SELF_HOSTED_MONITORED_SYSTEMS_HIDE_LABEL = 'Hide details';
+
+export const SELF_HOSTED_MONITORED_SYSTEMS_DEFINITION =
'A monitored system is a top-level machine or cluster Pulse actively monitors. Each system counts once no matter how Pulse collects it. Child resources like VMs, containers, pods, disks, backups, and services are included.';
export const SELF_HOSTED_MONITORED_SYSTEM_LEDGER_DESCRIPTION =
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index 6b9a957678..ac506a618e 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -564,6 +564,26 @@ class SubsystemLookupTest(unittest.TestCase):
self.assertEqual(match["lane_context"]["lane_id"], "L3")
self.assertEqual(match["verification_requirement"]["id"], "commercial-plan-models")
+ def test_lookup_paths_assigns_monitored_system_definition_disclosure_to_cloud_paid(self) -> None:
+ result = lookup_paths(
+ ["frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx"]
+ )
+ self.assertEqual(result["unowned_runtime_files"], [])
+ self.assertEqual(
+ {item["subsystem"] for item in result["impacted_subsystems"]},
+ {"cloud-paid"},
+ )
+ file_entry = result["files"][0]
+ self.assertEqual(file_entry["classification"], "runtime")
+ self.assertEqual(
+ {match["subsystem"] for match in file_entry["matches"]},
+ {"cloud-paid"},
+ )
+ match = file_entry["matches"][0]
+ self.assertEqual(match["contract"], "docs/release-control/v6/internal/subsystems/cloud-paid.md")
+ self.assertEqual(match["lane_context"]["lane_id"], "L3")
+ self.assertEqual(match["verification_requirement"]["id"], "commercial-plan-models")
+
def test_lookup_paths_assigns_relay_settings_state_owner_to_cloud_paid(self) -> None:
result = lookup_paths(["frontend-modern/src/components/Settings/useRelaySettingsPanelState.ts"])
self.assertEqual(result["unowned_runtime_files"], [])