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.

Split settings tab coordination owners

rcourtman6ee9a1783c8d
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 1f8403a64e..5ba28ac77e 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -86,8 +86,11 @@ work extends shared components instead of creating new local variants.
64. `frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts`
65. `frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx`
66. `frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts`
-67. `frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx`
-68. `frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx`
+67. `frontend-modern/src/components/Settings/settingsNavCatalog.ts`
+68. `frontend-modern/src/components/Settings/settingsNavVisibility.ts`
+69. `frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts`
+70. `frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx`
+71. `frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx`
## Shared Boundaries
@@ -280,6 +283,10 @@ shared discovery draft and subnet-validation state,
`frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts`
owns infrastructure workspace prop assembly and resource-derived infrastructure
read-model shaping for the shell,
+`frontend-modern/src/components/Settings/settingsNavCatalog.ts` owns settings
+navigation metadata and item lookup, `settingsNavVisibility.ts` owns
+feature/capability visibility and lock policy for settings navigation, and
+`settingsTabSaveBehavior.ts` owns settings tab save-behavior lookup,
`frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx` owns
system panel prop assembly for general, network, updates, and recovery, and
`frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx` owns
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index 4322881dce..4e81ef48f4 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -1864,10 +1864,13 @@
"frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx",
"frontend-modern/src/components/Settings/Settings.tsx",
"frontend-modern/src/components/Settings/settingsHeaderMeta.ts",
+ "frontend-modern/src/components/Settings/settingsNavCatalog.ts",
+ "frontend-modern/src/components/Settings/settingsNavVisibility.ts",
"frontend-modern/src/components/Settings/SettingsPageShell.tsx",
"frontend-modern/src/components/Settings/settingsPanelRegistry.ts",
"frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx",
"frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts",
+ "frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts",
"frontend-modern/src/components/Settings/ssoProvidersModel.ts",
"frontend-modern/src/components/Settings/SSOProvidersPanel.tsx",
"frontend-modern/src/components/Settings/SystemLogsPanel.tsx",
@@ -1951,10 +1954,13 @@
"frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx",
"frontend-modern/src/components/Settings/Settings.tsx",
"frontend-modern/src/components/Settings/settingsHeaderMeta.ts",
+ "frontend-modern/src/components/Settings/settingsNavCatalog.ts",
+ "frontend-modern/src/components/Settings/settingsNavVisibility.ts",
"frontend-modern/src/components/Settings/SettingsPageShell.tsx",
"frontend-modern/src/components/Settings/settingsPanelRegistry.ts",
"frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx",
"frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts",
+ "frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts",
"frontend-modern/src/components/Settings/ssoProvidersModel.ts",
"frontend-modern/src/components/Settings/SSOProvidersPanel.tsx",
"frontend-modern/src/components/Settings/UpdateInstallGuide.tsx",
diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.md
index 81ede14254..5a6b1a7e62 100644
--- a/docs/release-control/v6/internal/subsystems/security-privacy.md
+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md
@@ -88,6 +88,14 @@ stays a presentation boundary and `frontend-modern/src/components/Settings/useSe
may only assemble props for the shared settings shell. Privacy or telemetry
behavior must not drift into `frontend-modern/src/components/Settings/Settings.tsx`
or the registry hook just because the shell wiring changed.
+That shell split now also applies to tab-save coordination: the dedicated
+`frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts` owner may
+decide which settings tabs participate in shell-level save prompts, but it must
+remain pure shell metadata. Telemetry, local-upgrade-metrics, and auth/privacy
+state transitions stay canonically owned by
+`frontend-modern/src/components/Settings/useSystemSettingsState.ts` and the
+backing `frontend-modern/src/stores/systemSettings.ts` trust surface, not by
+settings navigation metadata or other frontend-primitives owners.
The security transport surfaces remain intentionally shared with
`api-contracts`: token, auth, and telemetry settings payloads are still API
diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx
index 491358c8dd..511a319d5c 100644
--- a/frontend-modern/src/components/Settings/Settings.tsx
+++ b/frontend-modern/src/components/Settings/Settings.tsx
@@ -5,7 +5,7 @@ import { useWebSocket } from '@/App';
import { SettingsDialogs } from './SettingsDialogs';
import { SettingsPageShell } from './SettingsPageShell';
import { eventBus } from '@/stores/events';
-import { getSettingsTabSaveBehavior } from './settingsTabs';
+import { getSettingsTabSaveBehavior } from './settingsTabSaveBehavior';
import { useBackupTransferFlow } from './useBackupTransferFlow';
import { useDiscoverySettingsState } from './useDiscoverySettingsState';
import { useInfrastructureSettingsState } from './useInfrastructureSettingsState';
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index ec90633656..2a05897fde 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -27,10 +27,13 @@ import infrastructureSettingsStateSource from '../useInfrastructureSettingsState
import infrastructureSettingsModelSource from '../infrastructureSettingsModel.ts?raw';
import infrastructureConfiguredNodesStateSource from '../useInfrastructureConfiguredNodesState.ts?raw';
import infrastructureDiscoveryRuntimeStateSource from '../useInfrastructureDiscoveryRuntimeState.ts?raw';
+import settingsNavCatalogSource from '../settingsNavCatalog.ts?raw';
+import settingsNavVisibilitySource from '../settingsNavVisibility.ts?raw';
import settingsInfrastructurePanelPropsSource from '../useSettingsInfrastructurePanelProps.ts?raw';
import nodeModalStateSource from '../useNodeModalState.ts?raw';
import settingsPanelRegistryContextSource from '../settingsPanelRegistryContext.tsx?raw';
import settingsPanelRegistryLoadersSource from '../settingsPanelRegistryLoaders.ts?raw';
+import settingsTabSaveBehaviorSource from '../settingsTabSaveBehavior.ts?raw';
import settingsPanelRegistryHookSource from '../useSettingsPanelRegistry.tsx?raw';
import settingsSystemPanelsSource from '../useSettingsSystemPanels.tsx?raw';
import apiAccessPanelSource from '../APIAccessPanel.tsx?raw';
@@ -126,7 +129,9 @@ import { SETTINGS_HEADER_META } from '../settingsHeaderMeta';
const extractedModules = [
'../settingsTypes.ts',
- '../settingsTabs.ts',
+ '../settingsNavCatalog.ts',
+ '../settingsNavVisibility.ts',
+ '../settingsTabSaveBehavior.ts',
'../DockerRuntimeSettingsCard.tsx',
'../settingsHeaderMeta.ts',
'../settingsFeatureGates.ts',
@@ -239,7 +244,7 @@ const extractedModules = [
] as const;
const requiredImportSources = [
- './settingsTabs',
+ './settingsTabSaveBehavior',
'./SettingsDialogs',
'./SettingsPageShell',
'./useBackupTransferFlow',
@@ -382,6 +387,9 @@ describe('Settings architecture guardrails', () => {
expect(registrySource).toContain('SETTINGS_PANEL_REGISTRY_LOADERS');
expect(registrySource).toContain("'security-webhooks'");
expect(accessHookSource).toContain('shouldHideSettingsNavItem');
+ expect(accessHookSource).toContain('SETTINGS_NAV_GROUPS');
+ expect(accessHookSource).toContain('./settingsNavCatalog');
+ expect(accessHookSource).toContain('./settingsNavVisibility');
expect(accessHookSource).toContain('tabFeatureRequirements');
expect(panelRegistryHookSource).toContain('createSettingsPanelRegistry');
expect(panelRegistryHookSource).toContain('buildSettingsPanelRegistryContext');
@@ -393,6 +401,7 @@ describe('Settings architecture guardrails', () => {
expect(settingsSource).toContain('useSettingsPanelRegistry');
expect(settingsSource).toContain('useSettingsAccess');
expect(settingsSource).toContain('useSettingsShellState');
+ expect(settingsSource).toContain('getSettingsTabSaveBehavior');
expect(settingsSource).toContain('activeSettingsPanelEntry');
expect(settingsSource).toContain('<Dynamic component={entry().component}');
expect(settingsSource).not.toContain('<ProxmoxSettingsPanel');
@@ -403,6 +412,7 @@ describe('Settings architecture guardrails', () => {
it('keeps settings shell panel assembly split between dedicated system and registry owners', () => {
expect(settingsSource).toContain('useSettingsSystemPanels');
expect(settingsSource).toContain('useSettingsInfrastructurePanelProps');
+ expect(settingsSource).toContain('./settingsTabSaveBehavior');
expect(settingsSource).toContain('const systemPanels = useSettingsSystemPanels({');
expect(settingsSource).toContain(
'const infrastructurePanelProps = useSettingsInfrastructurePanelProps({',
@@ -443,6 +453,11 @@ describe('Settings architecture guardrails', () => {
expect(settingsInfrastructurePanelPropsSource).toContain('pmgInstanceFromResource');
expect(settingsInfrastructurePanelPropsSource).toContain('const agentStateResources = createMemo');
expect(settingsInfrastructurePanelPropsSource).toContain('getInfrastructurePanelProps');
+ expect(settingsNavCatalogSource).toContain('export const SETTINGS_NAV_GROUPS');
+ expect(settingsNavCatalogSource).toContain('export function getSettingsNavItem');
+ expect(settingsNavVisibilitySource).toContain('export function shouldHideSettingsNavItem');
+ expect(settingsNavVisibilitySource).toContain('export function isSettingsNavItemLocked');
+ expect(settingsTabSaveBehaviorSource).toContain('getSettingsNavItem(tab)?.saveBehavior');
});
it('keeps commercial plan and usage sections on a shared billing owner', () => {
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx b/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx
index 67e0f9cea7..4e76f79678 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx
@@ -1,7 +1,8 @@
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
import { deriveTabFromPath, settingsTabPath, type SettingsTab } from '../settingsRouting';
import { getTabLockReason, isTabLocked } from '../settingsFeatureGates';
-import { getSettingsTabSaveBehavior, shouldHideSettingsNavItem } from '../settingsTabs';
+import { shouldHideSettingsNavItem } from '../settingsNavVisibility';
+import { getSettingsTabSaveBehavior } from '../settingsTabSaveBehavior';
import { updateDisableLocalUpgradeMetricsSetting } from '@/stores/systemSettings';
const canonicalTabPaths = {
diff --git a/frontend-modern/src/components/Settings/settingsTabs.ts b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
similarity index 72%
rename from frontend-modern/src/components/Settings/settingsTabs.ts
rename to frontend-modern/src/components/Settings/settingsNavCatalog.ts
index 7a931198fa..4b010e48df 100644
--- a/frontend-modern/src/components/Settings/settingsTabs.ts
+++ b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
@@ -11,20 +11,15 @@ import Sliders from 'lucide-solid/icons/sliders-horizontal';
import RefreshCw from 'lucide-solid/icons/refresh-cw';
import Clock from 'lucide-solid/icons/clock';
import Sparkles from 'lucide-solid/icons/sparkles';
-
import Globe from 'lucide-solid/icons/globe';
-import { PulseLogoIcon } from '@/components/icons/PulseLogoIcon';
import BadgeCheck from 'lucide-solid/icons/badge-check';
-import type { SecurityStatusSettingsCapabilities } from '@/types/config';
-
import Building2 from 'lucide-solid/icons/building-2';
import Share2 from 'lucide-solid/icons/share-2';
import CreditCard from 'lucide-solid/icons/credit-card';
-import { isTabLocked } from './settingsFeatureGates';
-import type { SettingsNavGroup, SettingsNavItem } from './settingsTypes';
-import type { SettingsTab } from './settingsTypes';
+import { PulseLogoIcon } from '@/components/icons/PulseLogoIcon';
+import type { SettingsNavGroup, SettingsNavItem, SettingsTab } from './settingsTypes';
-export const baseTabGroups: SettingsNavGroup[] = [
+export const SETTINGS_NAV_GROUPS: SettingsNavGroup[] = [
{
id: 'infrastructure',
label: 'Infrastructure',
@@ -201,68 +196,10 @@ export const baseTabGroups: SettingsNavGroup[] = [
},
];
-export interface SettingsNavVisibilityContext {
- hasFeature: (feature: string) => boolean;
- licenseLoaded: () => boolean;
- hostedModeEnabled?: boolean;
- settingsCapabilities?: Partial<SecurityStatusSettingsCapabilities> | null;
- settingsCapabilitiesResolved?: boolean;
-}
-
-const navItemsByTab = new Map<SettingsTab, SettingsNavItem>(
- baseTabGroups.flatMap((group) => group.items.map((item) => [item.id, item] as const)),
+const settingsNavItemsByTab = new Map<SettingsTab, SettingsNavItem>(
+ SETTINGS_NAV_GROUPS.flatMap((group) => group.items.map((item) => [item.id, item] as const)),
);
export function getSettingsNavItem(tab: SettingsTab): SettingsNavItem | undefined {
- return navItemsByTab.get(tab);
-}
-
-export function getSettingsTabSaveBehavior(tab: SettingsTab): SettingsNavItem['saveBehavior'] {
- return navItemsByTab.get(tab)?.saveBehavior;
-}
-
-function hasRequiredFeatures(
- item: SettingsNavItem | undefined,
- hasFeature: (feature: string) => boolean,
-): boolean {
- const requiredFeatures = item?.features ?? [];
- return requiredFeatures.every((feature) => hasFeature(feature));
-}
-
-export function shouldHideSettingsNavItem(
- tab: SettingsTab,
- context: SettingsNavVisibilityContext,
-): boolean {
- const item = navItemsByTab.get(tab);
- if (!item) return false;
-
- if (item.hostedOnly && !context.hostedModeEnabled) {
- return true;
- }
-
- if (
- item.requiredCapability &&
- context.settingsCapabilitiesResolved &&
- context.settingsCapabilities?.[item.requiredCapability] !== true
- ) {
- return true;
- }
-
- if (item.hideWhenUnavailable && !hasRequiredFeatures(item, context.hasFeature)) {
- return true;
- }
-
- return false;
-}
-
-export function isSettingsNavItemLocked(
- tab: SettingsTab,
- context: SettingsNavVisibilityContext,
-): boolean {
- const item = navItemsByTab.get(tab);
- if (!item || item.hideWhenUnavailable) {
- return false;
- }
-
- return isTabLocked(tab, context.hasFeature, context.licenseLoaded);
+ return settingsNavItemsByTab.get(tab);
}
diff --git a/frontend-modern/src/components/Settings/settingsNavVisibility.ts b/frontend-modern/src/components/Settings/settingsNavVisibility.ts
new file mode 100644
index 0000000000..0fea599ae4
--- /dev/null
+++ b/frontend-modern/src/components/Settings/settingsNavVisibility.ts
@@ -0,0 +1,58 @@
+import type { SecurityStatusSettingsCapabilities } from '@/types/config';
+import { isTabLocked } from './settingsFeatureGates';
+import { getSettingsNavItem } from './settingsNavCatalog';
+import type { SettingsTab } from './settingsTypes';
+
+export interface SettingsNavVisibilityContext {
+ hasFeature: (feature: string) => boolean;
+ licenseLoaded: () => boolean;
+ hostedModeEnabled?: boolean;
+ settingsCapabilities?: Partial<SecurityStatusSettingsCapabilities> | null;
+ settingsCapabilitiesResolved?: boolean;
+}
+
+function hasRequiredFeatures(
+ tab: SettingsTab,
+ hasFeature: (feature: string) => boolean,
+): boolean {
+ const requiredFeatures = getSettingsNavItem(tab)?.features ?? [];
+ return requiredFeatures.every((feature) => hasFeature(feature));
+}
+
+export function shouldHideSettingsNavItem(
+ tab: SettingsTab,
+ context: SettingsNavVisibilityContext,
+): boolean {
+ const item = getSettingsNavItem(tab);
+ if (!item) return false;
+
+ if (item.hostedOnly && !context.hostedModeEnabled) {
+ return true;
+ }
+
+ if (
+ item.requiredCapability &&
+ context.settingsCapabilitiesResolved &&
+ context.settingsCapabilities?.[item.requiredCapability] !== true
+ ) {
+ return true;
+ }
+
+ if (item.hideWhenUnavailable && !hasRequiredFeatures(tab, context.hasFeature)) {
+ return true;
+ }
+
+ return false;
+}
+
+export function isSettingsNavItemLocked(
+ tab: SettingsTab,
+ context: SettingsNavVisibilityContext,
+): boolean {
+ const item = getSettingsNavItem(tab);
+ if (!item || item.hideWhenUnavailable) {
+ return false;
+ }
+
+ return isTabLocked(tab, context.hasFeature, context.licenseLoaded);
+}
diff --git a/frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts b/frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts
new file mode 100644
index 0000000000..ea95cd4b5a
--- /dev/null
+++ b/frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts
@@ -0,0 +1,6 @@
+import type { SettingsTab } from './settingsTypes';
+import { getSettingsNavItem } from './settingsNavCatalog';
+
+export function getSettingsTabSaveBehavior(tab: SettingsTab) {
+ return getSettingsNavItem(tab)?.saveBehavior;
+}
diff --git a/frontend-modern/src/components/Settings/useSettingsAccess.ts b/frontend-modern/src/components/Settings/useSettingsAccess.ts
index 616956a7b4..9961596f95 100644
--- a/frontend-modern/src/components/Settings/useSettingsAccess.ts
+++ b/frontend-modern/src/components/Settings/useSettingsAccess.ts
@@ -5,7 +5,8 @@ import { hasFeature, isHostedModeEnabled, licenseLoaded } from '@/stores/license
import { DEFAULT_SETTINGS_TAB } from './settingsRouting';
import { tabFeatureRequirements } from './settingsFeatureGates';
import { SETTINGS_HEADER_META } from './settingsHeaderMeta';
-import { baseTabGroups, getSettingsNavItem, shouldHideSettingsNavItem } from './settingsTabs';
+import { getSettingsNavItem, SETTINGS_NAV_GROUPS } from './settingsNavCatalog';
+import { shouldHideSettingsNavItem } from './settingsNavVisibility';
import type { SettingsTab } from './settingsTypes';
interface UseSettingsAccessParams {
@@ -27,7 +28,7 @@ export function useSettingsAccess({
const settingsCapabilities = securityStatus()?.settingsCapabilities ?? null;
const settingsCapabilitiesResolved = securityStatus() !== null;
- return baseTabGroups
+ return SETTINGS_NAV_GROUPS
.map((group) => ({
...group,
items: group.items.filter(
diff --git a/frontend-modern/src/components/Settings/useSystemSettingsState.ts b/frontend-modern/src/components/Settings/useSystemSettingsState.ts
index edc77565f1..314c2d3b8a 100644
--- a/frontend-modern/src/components/Settings/useSystemSettingsState.ts
+++ b/frontend-modern/src/components/Settings/useSystemSettingsState.ts
@@ -27,7 +27,7 @@ import {
PVE_POLLING_MIN_SECONDS,
PVE_POLLING_PRESETS,
} from '@/utils/systemSettingsPresentation';
-import { getSettingsTabSaveBehavior } from './settingsTabs';
+import { getSettingsTabSaveBehavior } from './settingsTabSaveBehavior';
import type { SettingsTab } from './settingsTypes';
interface UseSystemSettingsStateParams {
diff --git a/frontend-modern/src/stores/__tests__/systemSettings.test.ts b/frontend-modern/src/stores/__tests__/systemSettings.test.ts
index 6f4b2eb28f..d7124e1561 100644
--- a/frontend-modern/src/stores/__tests__/systemSettings.test.ts
+++ b/frontend-modern/src/stores/__tests__/systemSettings.test.ts
@@ -1,5 +1,6 @@
import { beforeEach, describe, expect, it } from 'vitest';
import {
+ areSystemSettingsLoaded,
markSystemSettingsLoadedWithDefaults,
shouldDisableLocalUpgradeMetrics,
shouldHideDockerUpdateActions,
@@ -38,4 +39,15 @@ describe('systemSettings store', () => {
expect(shouldReduceProUpsellNoise()).toBe(false);
expect(shouldDisableLocalUpgradeMetrics()).toBe(false);
});
+
+ it('keeps privacy and upgrade metrics defaults safe when flags are omitted', () => {
+ updateSystemSettingsFromResponse({
+ autoUpdateEnabled: false,
+ });
+
+ expect(areSystemSettingsLoaded()).toBe(true);
+ expect(shouldHideDockerUpdateActions()).toBe(false);
+ expect(shouldReduceProUpsellNoise()).toBe(false);
+ expect(shouldDisableLocalUpgradeMetrics()).toBe(false);
+ });
});
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index fb75b72e57..166a90dfa7 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -31,6 +31,9 @@ import settingsShellSource from '@/components/Settings/Settings.tsx?raw';
import settingsPanelRegistrySource from '@/components/Settings/useSettingsPanelRegistry.tsx?raw';
import settingsPanelRegistryContextSource from '@/components/Settings/settingsPanelRegistryContext.tsx?raw';
import settingsPanelRegistryLoadersSource from '@/components/Settings/settingsPanelRegistryLoaders.ts?raw';
+import settingsNavCatalogSource from '@/components/Settings/settingsNavCatalog.ts?raw';
+import settingsNavVisibilitySource from '@/components/Settings/settingsNavVisibility.ts?raw';
+import settingsTabSaveBehaviorSource from '@/components/Settings/settingsTabSaveBehavior.ts?raw';
import settingsSystemPanelsSource from '@/components/Settings/useSettingsSystemPanels.tsx?raw';
import settingsInfrastructurePanelPropsSource from '@/components/Settings/useSettingsInfrastructurePanelProps.ts?raw';
import discoverySettingsStateSource from '@/components/Settings/useDiscoverySettingsState.ts?raw';
@@ -851,6 +854,7 @@ describe('frontend resource type boundaries', () => {
expect(settingsShellSource).toContain('./useDiscoverySettingsState');
expect(settingsShellSource).toContain('./useSettingsInfrastructurePanelProps');
expect(settingsShellSource).toContain('./useSettingsPanelRegistry');
+ expect(settingsShellSource).toContain('./settingsTabSaveBehavior');
expect(settingsShellSource).toContain('./useSettingsSystemPanels');
expect(settingsShellSource).toContain('const discoverySettings = useDiscoverySettingsState()');
expect(settingsShellSource).toContain('const systemPanels = useSettingsSystemPanels({');
@@ -872,6 +876,9 @@ describe('frontend resource type boundaries', () => {
);
expect(settingsPanelRegistryContextSource).toContain('const systemBillingPanel: Component');
expect(settingsPanelRegistryContextSource).toContain('getSecurityAuthPanelProps');
+ expect(settingsNavCatalogSource).toContain('export const SETTINGS_NAV_GROUPS');
+ expect(settingsNavVisibilitySource).toContain('shouldHideSettingsNavItem');
+ expect(settingsTabSaveBehaviorSource).toContain('getSettingsNavItem(tab)?.saveBehavior');
expect(settingsPanelRegistrySource).not.toContain('allowedOrigins: params.');
expect(settingsPanelRegistrySource).not.toContain('backupPollingEnabled: params.');
expect(settingsSystemPanelsSource).toContain('GeneralSettingsPanel');
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index 956bab4973..144aab3ee8 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -1912,6 +1912,9 @@ class SubsystemLookupTest(unittest.TestCase):
"frontend-modern/src/components/Settings/UpdatesSettingsPanel.tsx",
"frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx",
"frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts",
+ "frontend-modern/src/components/Settings/settingsNavCatalog.ts",
+ "frontend-modern/src/components/Settings/settingsNavVisibility.ts",
+ "frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts",
"frontend-modern/src/components/Settings/useDiscoverySettingsState.ts",
"frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts",
"frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx",