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.

Consolidate settings navigation owners

rcourtman12e01a5b7cf8
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 5ba28ac77e..4f20eb7dbc 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -86,11 +86,16 @@ 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/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`
+67. `frontend-modern/src/components/Settings/settingsNavigationModel.ts`
+68. `frontend-modern/src/components/Settings/settingsNavCatalog.ts`
+69. `frontend-modern/src/components/Settings/settingsNavigationModel.ts`
+70. `frontend-modern/src/components/Settings/settingsNavVisibility.ts`
+71. `frontend-modern/src/components/Settings/settingsRouting.ts`
+72. `frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts`
+73. `frontend-modern/src/components/Settings/settingsTypes.ts`
+74. `frontend-modern/src/components/Settings/useSettingsNavigation.ts`
+75. `frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx`
+76. `frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx`
## Shared Boundaries
@@ -283,10 +288,16 @@ 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/settingsNavigationModel.ts` owns
+settings tab identity, canonical route derivation, legacy alias normalization,
+and Proxmox agent route metadata. `settingsRouting.ts` and
+`settingsTypes.ts` remain thin compatibility re-export shims only, so external
+consumers can bridge to the canonical owner without reintroducing a second
+settings navigation model. `settingsNavCatalog.ts` owns settings navigation
+metadata and item lookup, `settingsNavVisibility.ts` owns
+feature/capability visibility and lock policy for settings navigation,
+`useSettingsNavigation.ts` owns reactive URL sync and canonical tab-selection
+state, 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 4e81ef48f4..f494137aef 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -1865,12 +1865,15 @@
"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/settingsNavigationModel.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/settingsRouting.ts",
"frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts",
+ "frontend-modern/src/components/Settings/settingsTypes.ts",
"frontend-modern/src/components/Settings/ssoProvidersModel.ts",
"frontend-modern/src/components/Settings/SSOProvidersPanel.tsx",
"frontend-modern/src/components/Settings/SystemLogsPanel.tsx",
@@ -1884,6 +1887,7 @@
"frontend-modern/src/components/Settings/useDiscoverySettingsState.ts",
"frontend-modern/src/components/Settings/useReportingPanelState.ts",
"frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts",
+ "frontend-modern/src/components/Settings/useSettingsNavigation.ts",
"frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx",
"frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx",
"frontend-modern/src/components/Settings/useSSOProvidersState.ts",
@@ -1955,12 +1959,15 @@
"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/settingsNavigationModel.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/settingsRouting.ts",
"frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts",
+ "frontend-modern/src/components/Settings/settingsTypes.ts",
"frontend-modern/src/components/Settings/ssoProvidersModel.ts",
"frontend-modern/src/components/Settings/SSOProvidersPanel.tsx",
"frontend-modern/src/components/Settings/UpdateInstallGuide.tsx",
@@ -1972,6 +1979,7 @@
"frontend-modern/src/components/Settings/useDiagnosticsPanelState.ts",
"frontend-modern/src/components/Settings/useDiscoverySettingsState.ts",
"frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts",
+ "frontend-modern/src/components/Settings/useSettingsNavigation.ts",
"frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx",
"frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx",
"frontend-modern/src/components/Settings/useSSOProvidersState.ts"
diff --git a/frontend-modern/src/components/Settings/SettingsPageShell.tsx b/frontend-modern/src/components/Settings/SettingsPageShell.tsx
index e86face678..19ba5747f3 100644
--- a/frontend-modern/src/components/Settings/SettingsPageShell.tsx
+++ b/frontend-modern/src/components/Settings/SettingsPageShell.tsx
@@ -4,7 +4,11 @@ import { Card } from '@/components/shared/Card';
import { PageHeader } from '@/components/shared/PageHeader';
import { SearchInput } from '@/components/shared/SearchInput';
import { getSettingsSearchEmptyState } from '@/utils/settingsShellPresentation';
-import type { SettingsHeaderMeta, SettingsNavGroup, SettingsTab } from './settingsTypes';
+import type {
+ SettingsHeaderMeta,
+ SettingsNavGroup,
+ SettingsTab,
+} from './settingsNavigationModel';
interface SettingsPageShellProps {
headerMeta: Accessor<SettingsHeaderMeta>;
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 2a05897fde..74e4e8e77f 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -27,9 +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 settingsNavigationModelSource from '../settingsNavigationModel.ts?raw';
+import settingsRoutingSource from '../settingsRouting.ts?raw';
+import settingsTypesSource from '../settingsTypes.ts?raw';
import settingsNavCatalogSource from '../settingsNavCatalog.ts?raw';
import settingsNavVisibilitySource from '../settingsNavVisibility.ts?raw';
import settingsInfrastructurePanelPropsSource from '../useSettingsInfrastructurePanelProps.ts?raw';
+import settingsNavigationHookSource from '../useSettingsNavigation.ts?raw';
import nodeModalStateSource from '../useNodeModalState.ts?raw';
import settingsPanelRegistryContextSource from '../settingsPanelRegistryContext.tsx?raw';
import settingsPanelRegistryLoadersSource from '../settingsPanelRegistryLoaders.ts?raw';
@@ -128,10 +132,12 @@ import userAssignmentsPanelStateSource from '../useUserAssignmentsPanelState.ts?
import { SETTINGS_HEADER_META } from '../settingsHeaderMeta';
const extractedModules = [
- '../settingsTypes.ts',
+ '../settingsNavigationModel.ts',
+ '../settingsRouting.ts',
'../settingsNavCatalog.ts',
'../settingsNavVisibility.ts',
'../settingsTabSaveBehavior.ts',
+ '../settingsTypes.ts',
'../DockerRuntimeSettingsCard.tsx',
'../settingsHeaderMeta.ts',
'../settingsFeatureGates.ts',
@@ -453,6 +459,15 @@ describe('Settings architecture guardrails', () => {
expect(settingsInfrastructurePanelPropsSource).toContain('pmgInstanceFromResource');
expect(settingsInfrastructurePanelPropsSource).toContain('const agentStateResources = createMemo');
expect(settingsInfrastructurePanelPropsSource).toContain('getInfrastructurePanelProps');
+ expect(settingsNavigationModelSource).toContain('export type SettingsTab =');
+ expect(settingsNavigationModelSource).toContain('export const DEFAULT_SETTINGS_TAB');
+ expect(settingsNavigationModelSource).toContain('export function resolveCanonicalSettingsPath');
+ expect(settingsNavigationModelSource).toContain('export function settingsTabPath');
+ expect(settingsNavigationHookSource).toContain('deriveTabFromPath');
+ expect(settingsNavigationHookSource).toContain('resolveCanonicalSettingsPath');
+ expect(settingsNavigationHookSource).toContain('settingsTabPath');
+ expect(settingsRoutingSource).toContain("from './settingsNavigationModel'");
+ expect(settingsTypesSource).toContain("from './settingsNavigationModel'");
expect(settingsNavCatalogSource).toContain('export const SETTINGS_NAV_GROUPS');
expect(settingsNavCatalogSource).toContain('export function getSettingsNavItem');
expect(settingsNavVisibilitySource).toContain('export function shouldHideSettingsNavItem');
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 4e76f79678..7923abff0c 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx
@@ -1,5 +1,5 @@
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
-import { deriveTabFromPath, settingsTabPath, type SettingsTab } from '../settingsRouting';
+import { deriveTabFromPath, settingsTabPath, type SettingsTab } from '../settingsNavigationModel';
import { getTabLockReason, isTabLocked } from '../settingsFeatureGates';
import { shouldHideSettingsNavItem } from '../settingsNavVisibility';
import { getSettingsTabSaveBehavior } from '../settingsTabSaveBehavior';
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsRouting.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsRouting.test.ts
index e7455e4af8..d060da1157 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsRouting.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsRouting.test.ts
@@ -12,7 +12,7 @@ import {
settingsAgentPlatformType,
settingsTabPath,
type SettingsTab,
-} from '../settingsRouting';
+} from '../settingsNavigationModel';
import { isFeatureLocked, isTabLocked } from '../settingsFeatureGates';
const canonicalTabPaths = {
@@ -45,7 +45,7 @@ const hasFeatures =
(feature: string): boolean =>
features.includes(feature);
-describe('settingsRouting', () => {
+describe('settingsNavigationModel', () => {
it('uses infrastructure operations as the default /settings landing tab', () => {
expect(DEFAULT_SETTINGS_TAB).toBe('infrastructure-operations');
});
diff --git a/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts b/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts
index ef9c59cb76..906522daab 100644
--- a/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts
@@ -1,6 +1,6 @@
import { createRoot, createSignal } from 'solid-js';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
-import type { SettingsTab } from '../settingsTypes';
+import type { SettingsTab } from '../settingsNavigationModel';
type UseSystemSettingsStateModule = typeof import('../useSystemSettingsState');
diff --git a/frontend-modern/src/components/Settings/settingsFeatureGates.ts b/frontend-modern/src/components/Settings/settingsFeatureGates.ts
index a8637bb8cc..3e8f43c7b2 100644
--- a/frontend-modern/src/components/Settings/settingsFeatureGates.ts
+++ b/frontend-modern/src/components/Settings/settingsFeatureGates.ts
@@ -1,4 +1,4 @@
-import type { SettingsTab } from './settingsTypes';
+import type { SettingsTab } from './settingsNavigationModel';
import { trackPaywallViewed } from '@/utils/upgradeMetrics';
import { getFeatureMinTierLabel } from '@/utils/licensePresentation';
diff --git a/frontend-modern/src/components/Settings/settingsHeaderMeta.ts b/frontend-modern/src/components/Settings/settingsHeaderMeta.ts
index c69b58dc1c..eb28ad42cf 100644
--- a/frontend-modern/src/components/Settings/settingsHeaderMeta.ts
+++ b/frontend-modern/src/components/Settings/settingsHeaderMeta.ts
@@ -1,4 +1,4 @@
-import type { SettingsHeaderMetaMap } from './settingsTypes';
+import type { SettingsHeaderMetaMap } from './settingsNavigationModel';
export const SETTINGS_HEADER_META: SettingsHeaderMetaMap = {
proxmox: {
diff --git a/frontend-modern/src/components/Settings/settingsNavCatalog.ts b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
index 4b010e48df..03e7b290f4 100644
--- a/frontend-modern/src/components/Settings/settingsNavCatalog.ts
+++ b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
@@ -17,7 +17,11 @@ 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 { PulseLogoIcon } from '@/components/icons/PulseLogoIcon';
-import type { SettingsNavGroup, SettingsNavItem, SettingsTab } from './settingsTypes';
+import type {
+ SettingsNavGroup,
+ SettingsNavItem,
+ SettingsTab,
+} from './settingsNavigationModel';
export const SETTINGS_NAV_GROUPS: SettingsNavGroup[] = [
{
diff --git a/frontend-modern/src/components/Settings/settingsNavVisibility.ts b/frontend-modern/src/components/Settings/settingsNavVisibility.ts
index 0fea599ae4..a3988f2385 100644
--- a/frontend-modern/src/components/Settings/settingsNavVisibility.ts
+++ b/frontend-modern/src/components/Settings/settingsNavVisibility.ts
@@ -1,7 +1,7 @@
import type { SecurityStatusSettingsCapabilities } from '@/types/config';
import { isTabLocked } from './settingsFeatureGates';
import { getSettingsNavItem } from './settingsNavCatalog';
-import type { SettingsTab } from './settingsTypes';
+import type { SettingsTab } from './settingsNavigationModel';
export interface SettingsNavVisibilityContext {
hasFeature: (feature: string) => boolean;
diff --git a/frontend-modern/src/components/Settings/settingsNavigationModel.ts b/frontend-modern/src/components/Settings/settingsNavigationModel.ts
new file mode 100644
index 0000000000..e0e6fb850e
--- /dev/null
+++ b/frontend-modern/src/components/Settings/settingsNavigationModel.ts
@@ -0,0 +1,334 @@
+import type { Component } from 'solid-js';
+import type { SecurityStatusSettingsCapabilities } from '@/types/config';
+import { normalizeSourcePlatformKey } from '@/utils/sourcePlatforms';
+import type { PlatformType } from '@/types/resource';
+
+export type SettingsTab =
+ | 'proxmox'
+ | 'infrastructure-operations'
+ | 'system-general'
+ | 'system-network'
+ | 'system-updates'
+ | 'system-recovery'
+ | 'system-ai'
+ | 'system-relay'
+ | 'system-billing'
+ | 'organization-overview'
+ | 'organization-access'
+ | 'organization-billing'
+ | 'organization-billing-admin'
+ | 'organization-sharing'
+ | 'api'
+ | 'security-overview'
+ | 'security-auth'
+ | 'security-sso'
+ | 'security-roles'
+ | 'security-users'
+ | 'security-audit'
+ | 'security-webhooks';
+
+export type AgentKey = 'pve' | 'pbs' | 'pmg';
+export type ProxmoxPlatformType = Extract<
+ PlatformType,
+ 'proxmox-pve' | 'proxmox-pbs' | 'proxmox-pmg'
+>;
+
+export type SettingsNavGroupId = 'infrastructure' | 'organization' | 'system' | 'security';
+
+export interface SettingsNavItem {
+ id: SettingsTab;
+ label: string;
+ icon: Component<{ class?: string; strokeWidth?: number }>;
+ iconProps?: { strokeWidth?: number };
+ saveBehavior?: 'system';
+ disabled?: boolean;
+ locked?: boolean;
+ hideWhenUnavailable?: boolean;
+ hostedOnly?: boolean;
+ requiredCapability?: keyof SecurityStatusSettingsCapabilities;
+ badge?: string;
+ features?: string[];
+ permissions?: string[];
+}
+
+export interface SettingsNavGroup {
+ id: SettingsNavGroupId;
+ label: string;
+ items: SettingsNavItem[];
+}
+
+export interface SettingsHeaderMeta {
+ title: string;
+ description: string;
+}
+
+export type SettingsHeaderMetaMap = Record<SettingsTab, SettingsHeaderMeta>;
+
+// Default landing tab for /settings when no deep-link tab is provided.
+export const DEFAULT_SETTINGS_TAB: SettingsTab = 'infrastructure-operations';
+const LEGACY_INFRASTRUCTURE_PREFIX = '/settings/infrastructure';
+const LEGACY_AGENTS_PREFIX = '/settings/workloads';
+const LEGACY_DOCKER_PREFIX = '/settings/workloads/docker';
+const INFRASTRUCTURE_INSTALL_PREFIX = '/settings/infrastructure/install';
+const INFRASTRUCTURE_OPERATIONS_PREFIX = '/settings/infrastructure/operations';
+const PROXMOX_PREFIX = '/settings/infrastructure/proxmox';
+const LEGACY_PROXMOX_API_PREFIX = '/settings/infrastructure/api';
+const LEGACY_INTEGRATIONS_API_PREFIX = '/settings/integrations/api';
+const SECURITY_API_PREFIX = '/settings/security/api';
+const SYSTEM_BILLING_PREFIX = '/settings/system/billing';
+const LEGACY_SYSTEM_PRO_PREFIX = '/settings/system-pro';
+
+const PROXMOX_AGENT_META: Record<
+ AgentKey,
+ {
+ path: string;
+ platformType: ProxmoxPlatformType;
+ label: string;
+ nodeLabel: string;
+ }
+> = {
+ pve: {
+ path: `${PROXMOX_PREFIX}/pve`,
+ platformType: 'proxmox-pve',
+ label: 'Proxmox VE',
+ nodeLabel: 'Proxmox VE node',
+ },
+ pbs: {
+ path: `${PROXMOX_PREFIX}/pbs`,
+ platformType: 'proxmox-pbs',
+ label: 'Proxmox Backup Server',
+ nodeLabel: 'Proxmox Backup Server',
+ },
+ pmg: {
+ path: `${PROXMOX_PREFIX}/pmg`,
+ platformType: 'proxmox-pmg',
+ label: 'Proxmox Mail Gateway',
+ nodeLabel: 'Proxmox Mail Gateway',
+ },
+};
+
+const normalizeSettingsPath = (path: string): string => {
+ const trimmed = (path || '').trim();
+ if (!trimmed) return '/settings';
+ if (trimmed.length > 1 && trimmed.endsWith('/')) {
+ return trimmed.replace(/\/+$/, '');
+ }
+ return trimmed;
+};
+
+export function resolveCanonicalSettingsPath(path: string): string | null {
+ const normalizedPath = normalizeSettingsPath(path);
+ if (!normalizedPath.startsWith('/settings')) return null;
+ if (normalizedPath === '/settings') {
+ return settingsTabPath(DEFAULT_SETTINGS_TAB);
+ }
+ if (normalizedPath === LEGACY_AGENTS_PREFIX) {
+ return settingsTabPath(DEFAULT_SETTINGS_TAB);
+ }
+ if (normalizedPath === LEGACY_INFRASTRUCTURE_PREFIX) {
+ return settingsTabPath(DEFAULT_SETTINGS_TAB);
+ }
+ if (normalizedPath === LEGACY_DOCKER_PREFIX) {
+ return settingsTabPath(DEFAULT_SETTINGS_TAB);
+ }
+ if (normalizedPath === LEGACY_PROXMOX_API_PREFIX) {
+ return PROXMOX_PREFIX;
+ }
+ if (normalizedPath === `${LEGACY_INFRASTRUCTURE_PREFIX}/pve`) {
+ return `${PROXMOX_PREFIX}/pve`;
+ }
+ if (normalizedPath === `${LEGACY_INFRASTRUCTURE_PREFIX}/pbs`) {
+ return `${PROXMOX_PREFIX}/pbs`;
+ }
+ if (normalizedPath === `${LEGACY_INFRASTRUCTURE_PREFIX}/pmg`) {
+ return `${PROXMOX_PREFIX}/pmg`;
+ }
+ if (normalizedPath === `${LEGACY_PROXMOX_API_PREFIX}/pve`) {
+ return `${PROXMOX_PREFIX}/pve`;
+ }
+ if (normalizedPath === `${LEGACY_PROXMOX_API_PREFIX}/pbs`) {
+ return `${PROXMOX_PREFIX}/pbs`;
+ }
+ if (normalizedPath === `${LEGACY_PROXMOX_API_PREFIX}/pmg`) {
+ return `${PROXMOX_PREFIX}/pmg`;
+ }
+ if (normalizedPath === LEGACY_INTEGRATIONS_API_PREFIX) {
+ return SECURITY_API_PREFIX;
+ }
+ if (normalizedPath === LEGACY_SYSTEM_PRO_PREFIX) {
+ return SYSTEM_BILLING_PREFIX;
+ }
+ return normalizedPath;
+}
+
+export function deriveTabFromPath(path: string): SettingsTab {
+ const canonicalPath = resolveCanonicalSettingsPath(path) ?? normalizeSettingsPath(path);
+
+ if (canonicalPath === '/settings') return DEFAULT_SETTINGS_TAB;
+ if (
+ canonicalPath === INFRASTRUCTURE_INSTALL_PREFIX ||
+ canonicalPath === INFRASTRUCTURE_OPERATIONS_PREFIX
+ ) {
+ return 'infrastructure-operations';
+ }
+ if (canonicalPath.includes(PROXMOX_PREFIX) || canonicalPath.includes(LEGACY_PROXMOX_API_PREFIX))
+ return 'infrastructure-operations';
+
+ if (canonicalPath.includes('/settings/system-general')) return 'system-general';
+ if (canonicalPath.includes('/settings/system-network')) return 'system-network';
+ if (canonicalPath.includes('/settings/system-updates')) return 'system-updates';
+ if (canonicalPath.includes('/settings/system-recovery')) return 'system-recovery';
+ if (canonicalPath.includes('/settings/system-ai')) return 'system-ai';
+ if (canonicalPath.includes('/settings/system-relay')) return 'system-relay';
+ if (canonicalPath.includes(SYSTEM_BILLING_PREFIX) || canonicalPath.includes(LEGACY_SYSTEM_PRO_PREFIX))
+ return 'system-billing';
+ if (canonicalPath.includes('/settings/organization/access')) return 'organization-access';
+ if (canonicalPath.includes('/settings/organization/sharing')) return 'organization-sharing';
+ if (canonicalPath.includes('/settings/organization/billing-admin'))
+ return 'organization-billing-admin';
+ if (canonicalPath.includes('/settings/organization/billing')) return 'organization-billing';
+ if (canonicalPath.includes('/settings/organization')) return 'organization-overview';
+
+ if (canonicalPath.includes(SECURITY_API_PREFIX)) return 'api';
+ if (canonicalPath.includes(LEGACY_INTEGRATIONS_API_PREFIX)) return 'api';
+
+ if (canonicalPath.includes('/settings/security-overview')) return 'security-overview';
+ if (canonicalPath.includes('/settings/security-auth')) return 'security-auth';
+ if (canonicalPath.includes('/settings/security-sso')) return 'security-sso';
+ if (canonicalPath.includes('/settings/security-roles')) return 'security-roles';
+ if (canonicalPath.includes('/settings/security-users')) return 'security-users';
+ if (canonicalPath.includes('/settings/security-audit')) return 'security-audit';
+ if (canonicalPath.includes('/settings/security-webhooks')) return 'security-webhooks';
+
+ return DEFAULT_SETTINGS_TAB;
+}
+
+export function deriveAgentFromPath(path: string): AgentKey | null {
+ const canonicalPath = resolveCanonicalSettingsPath(path) ?? normalizeSettingsPath(path);
+
+ for (const [agent, meta] of Object.entries(PROXMOX_AGENT_META) as Array<
+ [AgentKey, (typeof PROXMOX_AGENT_META)[AgentKey]]
+ >) {
+ if (canonicalPath.includes(meta.path)) return agent;
+ }
+ return null;
+}
+
+export function settingsAgentPath(agent: AgentKey): string {
+ return PROXMOX_AGENT_META[agent].path;
+}
+
+export function settingsAgentPlatformType(agent: AgentKey): ProxmoxPlatformType {
+ return PROXMOX_AGENT_META[agent].platformType;
+}
+
+export function settingsAgentLabel(agent: AgentKey): string {
+ return PROXMOX_AGENT_META[agent].label;
+}
+
+export function settingsAgentNodeLabel(agent: AgentKey): string {
+ return PROXMOX_AGENT_META[agent].nodeLabel;
+}
+
+export function agentKeyFromPlatformType(value: string | null | undefined): AgentKey | null {
+ const normalized = normalizeSourcePlatformKey(value);
+ switch (normalized) {
+ case 'proxmox-pve':
+ return 'pve';
+ case 'proxmox-pbs':
+ return 'pbs';
+ case 'proxmox-pmg':
+ return 'pmg';
+ default:
+ return null;
+ }
+}
+
+export function deriveTabFromQuery(search: string): SettingsTab | null {
+ const params = new URLSearchParams(search);
+ const tab = params.get('tab')?.trim().toLowerCase();
+ if (!tab) return null;
+
+ switch (tab) {
+ case 'infrastructure':
+ case 'workloads':
+ case 'agents':
+ return 'infrastructure-operations';
+ case 'proxmox':
+ return 'proxmox';
+ case 'system-recovery':
+ return 'system-recovery';
+ case 'system-updates':
+ return 'system-updates';
+ case 'system-network':
+ return 'system-network';
+ case 'system-general':
+ return 'system-general';
+ case 'system-ai':
+ return 'system-ai';
+ case 'system-relay':
+ return 'system-relay';
+ case 'system-pro':
+ case 'system-billing':
+ return 'system-billing';
+ case 'api':
+ return 'api';
+ case 'docker':
+ return 'infrastructure-operations';
+ case 'organization-overview':
+ return 'organization-overview';
+ case 'organization-access':
+ return 'organization-access';
+ case 'organization-sharing':
+ return 'organization-sharing';
+ case 'organization-billing':
+ return 'organization-billing';
+ case 'organization-billing-admin':
+ return 'organization-billing-admin';
+ case 'security-overview':
+ return 'security-overview';
+ case 'security-auth':
+ return 'security-auth';
+ case 'security-sso':
+ return 'security-sso';
+ case 'security-roles':
+ return 'security-roles';
+ case 'security-users':
+ return 'security-users';
+ case 'security-audit':
+ return 'security-audit';
+ case 'security-webhooks':
+ return 'security-webhooks';
+ default:
+ return null;
+ }
+}
+
+export function settingsTabPath(tab: SettingsTab): string {
+ switch (tab) {
+ case 'proxmox':
+ return PROXMOX_PREFIX;
+ case 'infrastructure-operations':
+ return INFRASTRUCTURE_OPERATIONS_PREFIX;
+ case 'system-recovery':
+ return '/settings/system-recovery';
+ case 'organization-overview':
+ return '/settings/organization';
+ case 'organization-access':
+ return '/settings/organization/access';
+ case 'organization-sharing':
+ return '/settings/organization/sharing';
+ case 'organization-billing':
+ return '/settings/organization/billing';
+ case 'organization-billing-admin':
+ return '/settings/organization/billing-admin';
+ case 'api':
+ return SECURITY_API_PREFIX;
+ case 'system-relay':
+ return '/settings/system-relay';
+ case 'system-billing':
+ return SYSTEM_BILLING_PREFIX;
+ default:
+ return `/settings/${tab}`;
+ }
+}
diff --git a/frontend-modern/src/components/Settings/settingsPanelRegistry.ts b/frontend-modern/src/components/Settings/settingsPanelRegistry.ts
index 0784681d2c..f848efdf4d 100644
--- a/frontend-modern/src/components/Settings/settingsPanelRegistry.ts
+++ b/frontend-modern/src/components/Settings/settingsPanelRegistry.ts
@@ -12,7 +12,7 @@ import type { SecurityAuthPanel as SecurityAuthPanelType } from './SecurityAuthP
import type { RelaySettingsPanel as RelaySettingsPanelType } from './RelaySettingsPanel';
import type { AuditWebhookPanel as AuditWebhookPanelType } from './AuditWebhookPanel';
import type { InfrastructureWorkspace as InfrastructureWorkspaceType } from './InfrastructureWorkspace';
-import type { SettingsTab } from './settingsTypes';
+import type { SettingsTab } from './settingsNavigationModel';
import { SETTINGS_PANEL_REGISTRY_LOADERS } from './settingsPanelRegistryLoaders';
export interface SettingsPanelRegistryEntry {
diff --git a/frontend-modern/src/components/Settings/settingsRouting.ts b/frontend-modern/src/components/Settings/settingsRouting.ts
index 28ff64b3ac..f288ca600f 100644
--- a/frontend-modern/src/components/Settings/settingsRouting.ts
+++ b/frontend-modern/src/components/Settings/settingsRouting.ts
@@ -1,301 +1,16 @@
-import { normalizeSourcePlatformKey } from '@/utils/sourcePlatforms';
-import type { PlatformType } from '@/types/resource';
-
-export type SettingsTab =
- | 'proxmox'
- | 'infrastructure-operations'
- | 'system-general'
- | 'system-network'
- | 'system-updates'
- | 'system-recovery'
- | 'system-ai'
- | 'system-relay'
- | 'system-billing'
- | 'organization-overview'
- | 'organization-access'
- | 'organization-billing'
- | 'organization-billing-admin'
- | 'organization-sharing'
- | 'api'
- | 'security-overview'
- | 'security-auth'
- | 'security-sso'
- | 'security-roles'
- | 'security-users'
- | 'security-audit'
- | 'security-webhooks';
-
-export type AgentKey = 'pve' | 'pbs' | 'pmg';
-export type ProxmoxPlatformType = Extract<
- PlatformType,
- 'proxmox-pve' | 'proxmox-pbs' | 'proxmox-pmg'
->;
-
-// Default landing tab for /settings when no deep-link tab is provided.
-export const DEFAULT_SETTINGS_TAB: SettingsTab = 'infrastructure-operations';
-const LEGACY_INFRASTRUCTURE_PREFIX = '/settings/infrastructure';
-const LEGACY_AGENTS_PREFIX = '/settings/workloads';
-const LEGACY_DOCKER_PREFIX = '/settings/workloads/docker';
-const INFRASTRUCTURE_INSTALL_PREFIX = '/settings/infrastructure/install';
-const INFRASTRUCTURE_OPERATIONS_PREFIX = '/settings/infrastructure/operations';
-const PROXMOX_PREFIX = '/settings/infrastructure/proxmox';
-const LEGACY_PROXMOX_API_PREFIX = '/settings/infrastructure/api';
-const LEGACY_INTEGRATIONS_API_PREFIX = '/settings/integrations/api';
-const SECURITY_API_PREFIX = '/settings/security/api';
-const SYSTEM_BILLING_PREFIX = '/settings/system/billing';
-const LEGACY_SYSTEM_PRO_PREFIX = '/settings/system-pro';
-
-const PROXMOX_AGENT_META: Record<
- AgentKey,
- {
- path: string;
- platformType: ProxmoxPlatformType;
- label: string;
- nodeLabel: string;
- }
-> = {
- pve: {
- path: `${PROXMOX_PREFIX}/pve`,
- platformType: 'proxmox-pve',
- label: 'Proxmox VE',
- nodeLabel: 'Proxmox VE node',
- },
- pbs: {
- path: `${PROXMOX_PREFIX}/pbs`,
- platformType: 'proxmox-pbs',
- label: 'Proxmox Backup Server',
- nodeLabel: 'Proxmox Backup Server',
- },
- pmg: {
- path: `${PROXMOX_PREFIX}/pmg`,
- platformType: 'proxmox-pmg',
- label: 'Proxmox Mail Gateway',
- nodeLabel: 'Proxmox Mail Gateway',
- },
-};
-
-const normalizeSettingsPath = (path: string): string => {
- const trimmed = (path || '').trim();
- if (!trimmed) return '/settings';
- if (trimmed.length > 1 && trimmed.endsWith('/')) {
- return trimmed.replace(/\/+$/, '');
- }
- return trimmed;
-};
-
-export function resolveCanonicalSettingsPath(path: string): string | null {
- const normalizedPath = normalizeSettingsPath(path);
- if (!normalizedPath.startsWith('/settings')) return null;
- if (normalizedPath === '/settings') {
- return settingsTabPath(DEFAULT_SETTINGS_TAB);
- }
- if (normalizedPath === LEGACY_AGENTS_PREFIX) {
- return settingsTabPath(DEFAULT_SETTINGS_TAB);
- }
- if (normalizedPath === LEGACY_INFRASTRUCTURE_PREFIX) {
- return settingsTabPath(DEFAULT_SETTINGS_TAB);
- }
- if (normalizedPath === LEGACY_DOCKER_PREFIX) {
- return settingsTabPath(DEFAULT_SETTINGS_TAB);
- }
- if (normalizedPath === LEGACY_PROXMOX_API_PREFIX) {
- return PROXMOX_PREFIX;
- }
- if (normalizedPath === `${LEGACY_INFRASTRUCTURE_PREFIX}/pve`) {
- return `${PROXMOX_PREFIX}/pve`;
- }
- if (normalizedPath === `${LEGACY_INFRASTRUCTURE_PREFIX}/pbs`) {
- return `${PROXMOX_PREFIX}/pbs`;
- }
- if (normalizedPath === `${LEGACY_INFRASTRUCTURE_PREFIX}/pmg`) {
- return `${PROXMOX_PREFIX}/pmg`;
- }
- if (normalizedPath === `${LEGACY_PROXMOX_API_PREFIX}/pve`) {
- return `${PROXMOX_PREFIX}/pve`;
- }
- if (normalizedPath === `${LEGACY_PROXMOX_API_PREFIX}/pbs`) {
- return `${PROXMOX_PREFIX}/pbs`;
- }
- if (normalizedPath === `${LEGACY_PROXMOX_API_PREFIX}/pmg`) {
- return `${PROXMOX_PREFIX}/pmg`;
- }
- if (normalizedPath === LEGACY_INTEGRATIONS_API_PREFIX) {
- return SECURITY_API_PREFIX;
- }
- if (normalizedPath === LEGACY_SYSTEM_PRO_PREFIX) {
- return SYSTEM_BILLING_PREFIX;
- }
- return normalizedPath;
-}
-
-export function deriveTabFromPath(path: string): SettingsTab {
- const canonicalPath = resolveCanonicalSettingsPath(path) ?? normalizeSettingsPath(path);
-
- if (canonicalPath === '/settings') return DEFAULT_SETTINGS_TAB;
- if (
- canonicalPath === INFRASTRUCTURE_INSTALL_PREFIX ||
- canonicalPath === INFRASTRUCTURE_OPERATIONS_PREFIX
- ) {
- return 'infrastructure-operations';
- }
- if (canonicalPath.includes(PROXMOX_PREFIX) || canonicalPath.includes(LEGACY_PROXMOX_API_PREFIX))
- return 'infrastructure-operations';
-
- if (canonicalPath.includes('/settings/system-general')) return 'system-general';
- if (canonicalPath.includes('/settings/system-network')) return 'system-network';
- if (canonicalPath.includes('/settings/system-updates')) return 'system-updates';
- if (canonicalPath.includes('/settings/system-recovery')) return 'system-recovery';
- if (canonicalPath.includes('/settings/system-ai')) return 'system-ai';
- if (canonicalPath.includes('/settings/system-relay')) return 'system-relay';
- if (canonicalPath.includes(SYSTEM_BILLING_PREFIX) || canonicalPath.includes(LEGACY_SYSTEM_PRO_PREFIX))
- return 'system-billing';
- if (canonicalPath.includes('/settings/organization/access')) return 'organization-access';
- if (canonicalPath.includes('/settings/organization/sharing')) return 'organization-sharing';
- if (canonicalPath.includes('/settings/organization/billing-admin'))
- return 'organization-billing-admin';
- if (canonicalPath.includes('/settings/organization/billing')) return 'organization-billing';
- if (canonicalPath.includes('/settings/organization')) return 'organization-overview';
-
- if (canonicalPath.includes(SECURITY_API_PREFIX)) return 'api';
- if (canonicalPath.includes(LEGACY_INTEGRATIONS_API_PREFIX)) return 'api';
-
- if (canonicalPath.includes('/settings/security-overview')) return 'security-overview';
- if (canonicalPath.includes('/settings/security-auth')) return 'security-auth';
- if (canonicalPath.includes('/settings/security-sso')) return 'security-sso';
- if (canonicalPath.includes('/settings/security-roles')) return 'security-roles';
- if (canonicalPath.includes('/settings/security-users')) return 'security-users';
- if (canonicalPath.includes('/settings/security-audit')) return 'security-audit';
- if (canonicalPath.includes('/settings/security-webhooks')) return 'security-webhooks';
-
- return DEFAULT_SETTINGS_TAB;
-}
-
-export function deriveAgentFromPath(path: string): AgentKey | null {
- const canonicalPath = resolveCanonicalSettingsPath(path) ?? normalizeSettingsPath(path);
-
- for (const [agent, meta] of Object.entries(PROXMOX_AGENT_META) as Array<
- [AgentKey, (typeof PROXMOX_AGENT_META)[AgentKey]]
- >) {
- if (canonicalPath.includes(meta.path)) return agent;
- }
- return null;
-}
-
-export function settingsAgentPath(agent: AgentKey): string {
- return PROXMOX_AGENT_META[agent].path;
-}
-
-export function settingsAgentPlatformType(agent: AgentKey): ProxmoxPlatformType {
- return PROXMOX_AGENT_META[agent].platformType;
-}
-
-export function settingsAgentLabel(agent: AgentKey): string {
- return PROXMOX_AGENT_META[agent].label;
-}
-
-export function settingsAgentNodeLabel(agent: AgentKey): string {
- return PROXMOX_AGENT_META[agent].nodeLabel;
-}
-
-export function agentKeyFromPlatformType(value: string | null | undefined): AgentKey | null {
- const normalized = normalizeSourcePlatformKey(value);
- switch (normalized) {
- case 'proxmox-pve':
- return 'pve';
- case 'proxmox-pbs':
- return 'pbs';
- case 'proxmox-pmg':
- return 'pmg';
- default:
- return null;
- }
-}
-
-export function deriveTabFromQuery(search: string): SettingsTab | null {
- const params = new URLSearchParams(search);
- const tab = params.get('tab')?.trim().toLowerCase();
- if (!tab) return null;
-
- switch (tab) {
- case 'infrastructure':
- case 'workloads':
- case 'agents':
- return 'infrastructure-operations';
- case 'proxmox':
- return 'proxmox';
- case 'system-recovery':
- return 'system-recovery';
- case 'system-updates':
- return 'system-updates';
- case 'system-network':
- return 'system-network';
- case 'system-general':
- return 'system-general';
- case 'system-ai':
- return 'system-ai';
- case 'system-relay':
- return 'system-relay';
- case 'system-pro':
- case 'system-billing':
- return 'system-billing';
- case 'api':
- return 'api';
- case 'docker':
- return 'infrastructure-operations';
- case 'organization-overview':
- return 'organization-overview';
- case 'organization-access':
- return 'organization-access';
- case 'organization-sharing':
- return 'organization-sharing';
- case 'organization-billing':
- return 'organization-billing';
- case 'organization-billing-admin':
- return 'organization-billing-admin';
- case 'security-overview':
- return 'security-overview';
- case 'security-auth':
- return 'security-auth';
- case 'security-sso':
- return 'security-sso';
- case 'security-roles':
- return 'security-roles';
- case 'security-users':
- return 'security-users';
- case 'security-audit':
- return 'security-audit';
- case 'security-webhooks':
- return 'security-webhooks';
- default:
- return null;
- }
-}
-
-export function settingsTabPath(tab: SettingsTab): string {
- switch (tab) {
- case 'proxmox':
- return PROXMOX_PREFIX;
- case 'infrastructure-operations':
- return INFRASTRUCTURE_OPERATIONS_PREFIX;
- case 'system-recovery':
- return '/settings/system-recovery';
- case 'organization-overview':
- return '/settings/organization';
- case 'organization-access':
- return '/settings/organization/access';
- case 'organization-sharing':
- return '/settings/organization/sharing';
- case 'organization-billing':
- return '/settings/organization/billing';
- case 'organization-billing-admin':
- return '/settings/organization/billing-admin';
- case 'api':
- return SECURITY_API_PREFIX;
- case 'system-relay':
- return '/settings/system-relay';
- case 'system-billing':
- return SYSTEM_BILLING_PREFIX;
- default:
- return `/settings/${tab}`;
- }
-}
+export {
+ DEFAULT_SETTINGS_TAB,
+ agentKeyFromPlatformType,
+ deriveAgentFromPath,
+ deriveTabFromPath,
+ deriveTabFromQuery,
+ resolveCanonicalSettingsPath,
+ settingsAgentLabel,
+ settingsAgentNodeLabel,
+ settingsAgentPath,
+ settingsAgentPlatformType,
+ settingsTabPath,
+ type AgentKey,
+ type ProxmoxPlatformType,
+ type SettingsTab,
+} from './settingsNavigationModel';
diff --git a/frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts b/frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts
index ea95cd4b5a..c4f5beebc8 100644
--- a/frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts
+++ b/frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts
@@ -1,4 +1,4 @@
-import type { SettingsTab } from './settingsTypes';
+import type { SettingsTab } from './settingsNavigationModel';
import { getSettingsNavItem } from './settingsNavCatalog';
export function getSettingsTabSaveBehavior(tab: SettingsTab) {
diff --git a/frontend-modern/src/components/Settings/settingsTypes.ts b/frontend-modern/src/components/Settings/settingsTypes.ts
index 89c9c28433..c192b30418 100644
--- a/frontend-modern/src/components/Settings/settingsTypes.ts
+++ b/frontend-modern/src/components/Settings/settingsTypes.ts
@@ -1,36 +1,8 @@
-import type { Component } from 'solid-js';
-import type { SecurityStatusSettingsCapabilities } from '@/types/config';
-import type { SettingsTab } from './settingsRouting';
-
-export type { SettingsTab } from './settingsRouting';
-
-export type SettingsNavGroupId = 'infrastructure' | 'organization' | 'system' | 'security';
-
-export interface SettingsNavItem {
- id: SettingsTab;
- label: string;
- icon: Component<{ class?: string; strokeWidth?: number }>;
- iconProps?: { strokeWidth?: number };
- saveBehavior?: 'system';
- disabled?: boolean;
- locked?: boolean;
- hideWhenUnavailable?: boolean;
- hostedOnly?: boolean;
- requiredCapability?: keyof SecurityStatusSettingsCapabilities;
- badge?: string;
- features?: string[];
- permissions?: string[];
-}
-
-export interface SettingsNavGroup {
- id: SettingsNavGroupId;
- label: string;
- items: SettingsNavItem[];
-}
-
-export interface SettingsHeaderMeta {
- title: string;
- description: string;
-}
-
-export type SettingsHeaderMetaMap = Record<SettingsTab, SettingsHeaderMeta>;
+export type {
+ SettingsHeaderMeta,
+ SettingsHeaderMetaMap,
+ SettingsNavGroup,
+ SettingsNavGroupId,
+ SettingsNavItem,
+ SettingsTab,
+} from './settingsNavigationModel';
diff --git a/frontend-modern/src/components/Settings/useSettingsAccess.ts b/frontend-modern/src/components/Settings/useSettingsAccess.ts
index 9961596f95..9b3857d6e1 100644
--- a/frontend-modern/src/components/Settings/useSettingsAccess.ts
+++ b/frontend-modern/src/components/Settings/useSettingsAccess.ts
@@ -2,12 +2,11 @@ import { Accessor, createEffect, createMemo, createSignal } from 'solid-js';
import type { SecurityStatus } from '@/types/config';
import { logger } from '@/utils/logger';
import { hasFeature, isHostedModeEnabled, licenseLoaded } from '@/stores/license';
-import { DEFAULT_SETTINGS_TAB } from './settingsRouting';
+import { DEFAULT_SETTINGS_TAB, type SettingsTab } from './settingsNavigationModel';
import { tabFeatureRequirements } from './settingsFeatureGates';
import { SETTINGS_HEADER_META } from './settingsHeaderMeta';
import { getSettingsNavItem, SETTINGS_NAV_GROUPS } from './settingsNavCatalog';
import { shouldHideSettingsNavItem } from './settingsNavVisibility';
-import type { SettingsTab } from './settingsTypes';
interface UseSettingsAccessParams {
activeTab: Accessor<SettingsTab>;
diff --git a/frontend-modern/src/components/Settings/useSettingsNavigation.ts b/frontend-modern/src/components/Settings/useSettingsNavigation.ts
index 5e6c9e5dd0..24deb1d169 100644
--- a/frontend-modern/src/components/Settings/useSettingsNavigation.ts
+++ b/frontend-modern/src/components/Settings/useSettingsNavigation.ts
@@ -9,7 +9,7 @@ import {
settingsTabPath,
type AgentKey,
type SettingsTab,
-} from './settingsRouting';
+} from './settingsNavigationModel';
type SettingsDispatchableTab = Exclude<SettingsTab, 'proxmox'>;
diff --git a/frontend-modern/src/components/Settings/useSettingsShellState.ts b/frontend-modern/src/components/Settings/useSettingsShellState.ts
index edd880b1b3..e6b67ba65e 100644
--- a/frontend-modern/src/components/Settings/useSettingsShellState.ts
+++ b/frontend-modern/src/components/Settings/useSettingsShellState.ts
@@ -1,6 +1,6 @@
import { Accessor, createMemo, createSignal } from 'solid-js';
import { SETTINGS_HEADER_META } from './settingsHeaderMeta';
-import type { SettingsTab } from './settingsTypes';
+import type { SettingsTab } from './settingsNavigationModel';
interface UseSettingsShellStateParams {
activeTab: Accessor<SettingsTab>;
diff --git a/frontend-modern/src/stores/__tests__/systemSettings.test.ts b/frontend-modern/src/stores/__tests__/systemSettings.test.ts
index d7124e1561..dfe3f91cd8 100644
--- a/frontend-modern/src/stores/__tests__/systemSettings.test.ts
+++ b/frontend-modern/src/stores/__tests__/systemSettings.test.ts
@@ -50,4 +50,5 @@ describe('systemSettings store', () => {
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 166a90dfa7..da1980f069 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -31,6 +31,10 @@ 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 settingsNavigationModelSource from '@/components/Settings/settingsNavigationModel.ts?raw';
+import settingsRoutingSource from '@/components/Settings/settingsRouting.ts?raw';
+import settingsTypesSource from '@/components/Settings/settingsTypes.ts?raw';
+import settingsNavigationHookSource from '@/components/Settings/useSettingsNavigation.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';
@@ -876,6 +880,14 @@ describe('frontend resource type boundaries', () => {
);
expect(settingsPanelRegistryContextSource).toContain('const systemBillingPanel: Component');
expect(settingsPanelRegistryContextSource).toContain('getSecurityAuthPanelProps');
+ expect(settingsNavigationModelSource).toContain('export type SettingsTab =');
+ expect(settingsNavigationModelSource).toContain('export function resolveCanonicalSettingsPath');
+ expect(settingsNavigationModelSource).toContain('export function settingsTabPath');
+ expect(settingsNavigationHookSource).toContain('deriveTabFromPath');
+ expect(settingsNavigationHookSource).toContain('resolveCanonicalSettingsPath');
+ expect(settingsNavigationHookSource).toContain('settingsTabPath');
+ expect(settingsRoutingSource).toContain("from './settingsNavigationModel'");
+ expect(settingsTypesSource).toContain("from './settingsNavigationModel'");
expect(settingsNavCatalogSource).toContain('export const SETTINGS_NAV_GROUPS');
expect(settingsNavVisibilitySource).toContain('shouldHideSettingsNavItem');
expect(settingsTabSaveBehaviorSource).toContain('getSettingsNavItem(tab)?.saveBehavior');
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index 144aab3ee8..a85fa4cb59 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -1910,11 +1910,13 @@ class SubsystemLookupTest(unittest.TestCase):
"frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx",
"frontend-modern/src/components/Settings/SSOProvidersPanel.tsx",
"frontend-modern/src/components/Settings/UpdatesSettingsPanel.tsx",
+ "frontend-modern/src/components/Settings/settingsNavigationModel.ts",
"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/useSettingsNavigation.ts",
"frontend-modern/src/components/Settings/useDiscoverySettingsState.ts",
"frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts",
"frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx",