@wildo-ai/saas-frontend-lib 1.1.13 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js +17 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
- package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.d.ts.map +1 -1
- package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.js +5 -2
- package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.js.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js +20 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
- package/dist/esm/components/form/chromes/FormFieldChrome.js +1 -1
- package/dist/esm/components/form/chromes/FormFieldChrome.js.map +1 -1
- package/dist/esm/components/form/chromes/field-control-aria.d.ts +8 -1
- package/dist/esm/components/form/chromes/field-control-aria.d.ts.map +1 -1
- package/dist/esm/components/form/chromes/field-control-aria.js +19 -2
- package/dist/esm/components/form/chromes/field-control-aria.js.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.d.ts +5 -0
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.js +6 -2
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.js.map +1 -1
- package/dist/esm/components/resources/ResourceCollectionBody_Table.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceCollectionBody_Table.js +8 -1
- package/dist/esm/components/resources/ResourceCollectionBody_Table.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js +2 -2
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +2 -2
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
- package/dist/esm/components/resources/ResourceListItemRenderer.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceListItemRenderer.js +6 -1
- package/dist/esm/components/resources/ResourceListItemRenderer.js.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.js +2 -2
- package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
- package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.d.ts.map +1 -1
- package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.js +71 -16
- package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.js.map +1 -1
- package/dist/esm/components/sections/surface.d.ts +12 -0
- package/dist/esm/components/sections/surface.d.ts.map +1 -1
- package/dist/esm/components/sections/surface.js +14 -0
- package/dist/esm/components/sections/surface.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.d.ts.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.js +3 -2
- package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +15 -0
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +29 -0
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/use-shell-motion.d.ts.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/use-shell-motion.js +2 -2
- package/dist/esm/core/app-shell/shell-motion/use-shell-motion.js.map +1 -1
- package/dist/esm/core/branding/useBrandPresentation.d.ts.map +1 -1
- package/dist/esm/core/branding/useBrandPresentation.js +17 -6
- package/dist/esm/core/branding/useBrandPresentation.js.map +1 -1
- package/dist/esm/core/execution/useExecutionResourceOperationContextBuilder.d.ts.map +1 -1
- package/dist/esm/core/execution/useExecutionResourceOperationContextBuilder.js +11 -1
- package/dist/esm/core/execution/useExecutionResourceOperationContextBuilder.js.map +1 -1
- package/dist/esm/core/i18n/I18nContext.d.ts.map +1 -1
- package/dist/esm/core/i18n/I18nContext.js +8 -2
- package/dist/esm/core/i18n/I18nContext.js.map +1 -1
- package/dist/esm/core/i18n/component-label-resolution.utils.d.ts.map +1 -1
- package/dist/esm/core/i18n/component-label-resolution.utils.js +6 -1
- package/dist/esm/core/i18n/component-label-resolution.utils.js.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.d.ts +0 -15
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.d.ts.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js +71 -6
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsEventBridge.d.ts.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsEventBridge.js +12 -3
- package/dist/esm/core/monitoring/analytics/AnalyticsEventBridge.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContext.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContext.js +60 -17
- package/dist/esm/core/navigation/NavigationContext.js.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.d.ts +29 -0
- package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.js +31 -0
- package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
- package/dist/esm/core/navigation/navigation-controller-internals.d.ts +48 -0
- package/dist/esm/core/navigation/navigation-controller-internals.d.ts.map +1 -1
- package/dist/esm/core/navigation/navigation-controller-internals.js +56 -3
- package/dist/esm/core/navigation/navigation-controller-internals.js.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.d.ts.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.js +30 -2
- package/dist/esm/core/navigation/useNavigationRouterSync.js.map +1 -1
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.d.ts +44 -0
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.d.ts.map +1 -0
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.js +63 -0
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.js.map +1 -0
- package/dist/esm/core/resources/useOperationDirectExecution.d.ts.map +1 -1
- package/dist/esm/core/resources/useOperationDirectExecution.js +45 -6
- package/dist/esm/core/resources/useOperationDirectExecution.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +18 -1
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/security/UserOrgsContext.d.ts.map +1 -1
- package/dist/esm/core/security/UserOrgsContext.js +61 -8
- package/dist/esm/core/security/UserOrgsContext.js.map +1 -1
- package/dist/esm/core/ui/inner-control-activation.utils.d.ts +16 -0
- package/dist/esm/core/ui/inner-control-activation.utils.d.ts.map +1 -0
- package/dist/esm/core/ui/inner-control-activation.utils.js +44 -0
- package/dist/esm/core/ui/inner-control-activation.utils.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRouter.js","sourceRoot":"","sources":["../../../../src/core/runtime/AppRouter.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,yCAAyC,EAEzC,oCAAoC,EACpC,uBAAuB,EACvB,sCAAsC,GACvC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CA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ourceConfiguration_Operation_UrlParameterInfo,\n PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS,\n LEGAL_NOTICE_ROUTE_PATH,\n readPublicGovernedDocumentReleaseQuery,\n} from '@wildo-ai/saas-models';\nimport type { AnyFrontendResourceConfiguration, FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport React from 'react';\nimport { Route, Routes, useLocation, useParams, useSearchParams } from 'react-router';\nimport { AppLayout_AuthenticatedRoute } from '~wildo-frontend-lib/components/app/AppLayout_AuthenticatedRoute';\nimport { AppLayout_Home } from '~wildo-frontend-lib/components/app/AppLayout_Home';\nimport { AppLayout_DecisionInbox } from '~wildo-frontend-lib/components/app/AppLayout_DecisionInbox';\nimport { ResourceLayout_Action } from '~wildo-frontend-lib/components/resources/ResourceLayout_Action';\nimport { ResourceLayout_Create } from '~wildo-frontend-lib/components/resources/ResourceLayout_Create';\nimport { ResourceLayout_List } from '~wildo-frontend-lib/components/resources/ResourceLayout_List';\nimport { ResourceLayout_Read } from '~wildo-frontend-lib/components/resources/ResourceLayout_Read';\nimport { ResourceLayout_Search } from '~wildo-frontend-lib/components/resources/ResourceLayout_Search';\nimport { ResourceLayout_Update } from '~wildo-frontend-lib/components/resources/ResourceLayout_Update';\n\n\nimport { AuthPage_AuthCallback } from '~wildo-frontend-lib/components/auth/pages/AuthPage_AuthCallback';\nimport { AuthPage_ReAuthenticationCallback } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ReAuthenticationCallback';\nimport { AuthPage_MagicLinkVerify } from '~wildo-frontend-lib/components/auth/pages/AuthPage_MagicLinkVerify';\nimport { AuthPage_MfaChallenge } from '~wildo-frontend-lib/components/auth/pages/AuthPage_MfaChallenge';\nimport { AuthPage_EnrollmentRequired } from '~wildo-frontend-lib/components/auth/pages/AuthPage_EnrollmentRequired';\nimport { AuthPage_OrganizationOnboarding } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OrganizationOnboarding';\nimport { AuthPage_Main } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Main';\nimport { AuthPage_ConfirmEmail } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ConfirmEmail';\nimport { AuthPage_Invitation } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Invitation';\nimport { AuthPage_OneOffSession } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OneOffSession';\nimport { FilesPage_UploadGrant } from '~wildo-frontend-lib/components/files/pages/FilesPage_UploadGrant';\nimport { AuthPage_AuthExchange } from '~wildo-frontend-lib/components/auth/pages/AuthPage_AuthExchange';\nimport { AuthPage_PasswordLost } from '~wildo-frontend-lib/components/auth/pages/AuthPage_PasswordLost';\nimport { AuthPage_OAuthConsent } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthConsent';\nimport { AuthPage_ChatIdentityLink } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ChatIdentityLink';\nimport { AuthPage_OAuthLoggedOut } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthLoggedOut';\nimport { AuthPage_OAuthLogoutConfirm } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthLogoutConfirm';\nimport { AuthPage_Register } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Register';\nimport { PublicLayout_Terms } from '~wildo-frontend-lib/components/app/PublicLayout_Terms';\nimport { PublicLayout_LegalNotice } from '~wildo-frontend-lib/components/app/PublicLayout_LegalNotice';\nimport { RouterErrorBoundary } from '~wildo-frontend-lib/core/errors/RouterErrorBoundary';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { NavigationContentType, NavigationSource, NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { NavigationRequestBridge } from '~wildo-frontend-lib/core/navigation/NavigationRequestBridge';\nimport { adjacentZoneUsableAtViewport } from '~wildo-frontend-lib/core/navigation/zone-collapse';\nimport { NavigationUtils } from '~wildo-frontend-lib/core/navigation/navigation.utils';\nimport { useTransactionAwareSyncRetry } from '~wildo-frontend-lib/core/navigation/useTransactionAwareSyncRetry';\nimport { useRouterSync, useViewRouterSync, useEnginePageRouterSync } from '~wildo-frontend-lib/core/navigation/useNavigationRouterSync';\nimport { frontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { resolveResourceOperationLayoutKind } from '~wildo-frontend-lib/core/resources/operation-semantics.frontend.utils';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { type FrontendResourceOperationContext, isOperationAddressable } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { envLoader } from '~wildo-frontend-lib/core/runtime/env-variable-loader.frontend.service';\nimport { CommonRoutePaths } from './routes.frontend.definitions';\nimport { EnginePageRef } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport { FullCustomView } from '~wildo-frontend-lib/components/views/full-custom-view/FullCustomView';\nimport { FlowsActorsView } from '~wildo-frontend-lib/components/views/flows-actors-view/FlowsActorsView';\nimport { ExecutionView } from '~wildo-frontend-lib/components/views/execution-view/ExecutionView';\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\nimport { FeatureRouteGuard } from '~wildo-frontend-lib/core/features/FeatureRouteGuard';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport {\n extractCompositeRouteContextResourceIdentifiers,\n isStandaloneRoutableResolvedCompositeView,\n resolveCompositeViewDefinition,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport {\n buildResolvedInsertedChartDescriptor,\n extractChartRouteContextResourceIdentifiers,\n extractChartRouteUrlParamValues,\n isStandaloneRoutableInsertedChartView,\n type InsertedChartDeclaration,\n type ResolvedInsertedChartDescriptor,\n resolveInsertedChartView,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport {\n extractExecutionRouteContextResourceIdentifiers,\n isStandaloneRoutableExecutionView,\n resolveExecutionViewDefinition,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from '~wildo-frontend-lib/core/config/inserted-view.frontend.schemas';\nimport { useRouterLocationAheadOfCommit } from '~wildo-frontend-lib/core/navigation/useSynchronousBrowserLocation';\nimport type { RequiredFeaturesConfig } from '@wildo-ai/saas-models';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { useEventBus } from '~wildo-frontend-lib/core/events/useEventBus';\nimport { FrontendEvents } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { useNavigationState } from '~wildo-frontend-lib/core/navigation/useNavigationState';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\n\n// ChartView is lazy-loaded — apps that don't use charts never load ECharts\nconst ChartView = React.lazy(() => import('~wildo-frontend-lib/components/views/chart-view/ChartView'));\n\ninterface ResolvedChartRouteState {\n routeViewRef: string;\n viewDefinition: InsertedChartDeclaration;\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n runtimeDescriptor?: ResolvedInsertedChartDescriptor;\n requiredFeatures?: RequiredFeaturesConfig;\n}\n\nfunction resolveInsertedChartRouteState(params: {\n insertedIdentity: FrontendInsertedViewIdentity;\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n}): ResolvedChartRouteState | undefined {\n const { insertedIdentity, contextResourceIdentifiers, urlParamValues, registry } = params;\n if (\n insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.CHART_VIEW\n ) {\n return undefined;\n }\n\n const chartView = resolveInsertedChartView({\n viewRef: insertedIdentity.insertedViewRef,\n registry,\n })?.chartView;\n if (!chartView || !isStandaloneRoutableInsertedChartView(chartView)) {\n return undefined;\n }\n\n const normalizedContextResourceIdentifiers = contextResourceIdentifiers ?? {};\n\n return {\n routeViewRef: insertedIdentity.insertedViewRef,\n viewDefinition: chartView,\n contextResourceIdentifiers: normalizedContextResourceIdentifiers,\n urlParamValues,\n runtimeDescriptor: buildResolvedInsertedChartDescriptor({\n identity: insertedIdentity,\n chartView,\n contextResourceIdentifiers: normalizedContextResourceIdentifiers,\n }),\n requiredFeatures: chartView.chartDefinition.requiredFeatures,\n };\n}\n\nfunction resolveChartRouteState(params: {\n viewRef: string | undefined;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n}): ResolvedChartRouteState | undefined {\n const { viewRef, registry, contextResourceIdentifiers, urlParamValues } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (!insertedIdentity) {\n return undefined;\n }\n\n return resolveInsertedChartRouteState({\n insertedIdentity,\n contextResourceIdentifiers,\n urlParamValues,\n registry,\n });\n}\n\nfunction useChartViewRouterSync(resolvedChartRoute: ResolvedChartRouteState | undefined): void {\n const location = useLocation();\n const routerLocationAhead = useRouterLocationAheadOfCommit(location);\n const { emit } = useEventBus();\n const { getZoneState } = useNavigationState();\n const lastSyncedPath = React.useRef<string | null>(null);\n const currentUrl = `${location.pathname}${location.search}`;\n const {\n retryTick,\n scheduleRetry: scheduleTransactionRetry,\n clearRetry: clearTransactionRetry,\n } = useTransactionAwareSyncRetry(currentUrl);\n\n React.useEffect(() => {\n if (!resolvedChartRoute) {\n return;\n }\n\n if (NavigationUtils.isInTransaction()) {\n scheduleTransactionRetry();\n return;\n }\n\n clearTransactionRetry();\n\n // The router already left the URL this route committed with (a pending location transition); rebuilding\n // from it would restore the page the browser left. See `useRouterLocationAheadOfCommit`.\n if (routerLocationAhead) {\n return;\n }\n\n if (lastSyncedPath.current === currentUrl) {\n return;\n }\n\n // Per-zone, destination-based ownership — the same question `useViewRouterSync` asks. A chart\n // is a non-derivable primary, so a pane beside it is HOSTED and the URL is composed: PRIMARY is\n // asked about the host half only, and the stamp below carries the host half only.\n if (NavigationUtils.zoneOwnsBrowserUrl(NavigationZoneName.PRIMARY, currentUrl, getZoneState)) {\n lastSyncedPath.current = currentUrl;\n return;\n }\n\n emit(FrontendEvents.NAVIGATION_REPLACE, {\n zone: NavigationZoneName.PRIMARY,\n content: {\n contentType: NavigationContentType.CHART_VIEW,\n viewRef: resolvedChartRoute.routeViewRef,\n viewDefinition: resolvedChartRoute.viewDefinition,\n contextResourceIdentifiers: resolvedChartRoute.contextResourceIdentifiers,\n urlParamValues: resolvedChartRoute.urlParamValues,\n runtimeDescriptor: resolvedChartRoute.runtimeDescriptor,\n requiredFeatures: resolvedChartRoute.requiredFeatures,\n },\n urlPath: NavigationUtils.decomposeHostedPaneBrowserUrl(currentUrl).hostUrl,\n stackEntryId: NavigationUtils.generateStackEntryId(),\n initiator: { sourceZone: NavigationZoneName.PRIMARY },\n navigationSource: NavigationSource.URL_SYNC,\n transition: NavigationTransition.REPLACE,\n });\n\n lastSyncedPath.current = currentUrl;\n }, [emit, getZoneState, resolvedChartRoute, currentUrl, routerLocationAhead, retryTick, scheduleTransactionRetry, clearTransactionRetry]);\n}\n\n/**\n * Wrapper component that extracts URL parameters and creates resource context\n * This component bridges React Router params with our resource context system\n */\ninterface ResourcePageWrapperProps {\n resourceType: string;\n operation: FrontendResourceConfiguration_Operation;\n PageComponent: React.ComponentType<{\n resourceContext: FrontendResourceOperationContext;\n navigationZone: NavigationZoneName;\n navigationInitiator?: any;\n }>;\n /** Route path parameters with relationship field info for deterministic URL selection */\n routePathParameters: ResourceConfiguration_Operation_UrlParameterInfo[];\n}\n\n/**\n * Validate URL parameters - checks for unresolved or invalid parameters\n * Returns validation result with error details if invalid\n */\ninterface UrlParameterValidation {\n isValid: boolean;\n errorType?: 'unresolved' | 'missing' | 'invalid';\n invalidParams?: string[];\n message?: string;\n}\n\n/**\n * Core-operation keywords (\"create\", \"list\", \"search\", …) are never valid resource\n * ids. A direct hit like `/todos/create` has no page route — core CREATE is an\n * overlay (non-addressable) and adds no URL segment — so the sibling parameterized\n * route `/todos/:todoId` greedily captures `todoId=\"create\"`. That renders the read\n * surface (a composite) for a phantom resource, which render-loops and freezes the\n * tab (todos CREATE freeze, 2026-06-27). Treating an operation-keyword param value as\n * an invalid URL parameter routes it to the standard not-found surface instead (`RouterErrorBoundary`).\n */\nconst RESERVED_OPERATION_ID_SEGMENTS: ReadonlySet<string> = new Set(\n Object.values(CoreResourceOperation).map((op) => String(op).toLowerCase()),\n);\n\nfunction validateUrlParameters(\n urlParameters: Record<string, string>,\n resourceType: string\n): UrlParameterValidation {\n const invalidParams: string[] = [];\n const missingParams: string[] = [];\n const reservedKeywordParams: string[] = [];\n\n for (const [key, value] of Object.entries(urlParameters)) {\n // Check for unresolved route parameters (still have : prefix in URL)\n if (value && value.startsWith(':')) {\n invalidParams.push(`${key}=${value}`);\n }\n // Check for empty or undefined values\n else if (!value || value.trim() === '') {\n missingParams.push(key);\n }\n // Check for obviously invalid placeholder values\n else if (value === 'undefined' || value === 'null' || value === '[object Object]') {\n invalidParams.push(`${key}=${value}`);\n }\n // A param value that is a core-operation keyword is a mis-navigation, not a\n // resource id (e.g. `/todos/create` → todoId=\"create\"). Render not-found.\n else if (RESERVED_OPERATION_ID_SEGMENTS.has(value.toLowerCase())) {\n reservedKeywordParams.push(`${key}=${value}`);\n }\n }\n\n if (invalidParams.length > 0) {\n return {\n isValid: false,\n errorType: 'unresolved',\n invalidParams,\n message: `Unresolved route parameters for ${resourceType}: ${invalidParams.join(', ')}. The URL contains placeholder values instead of actual IDs.`\n };\n }\n\n if (reservedKeywordParams.length > 0) {\n return {\n isValid: false,\n errorType: 'invalid',\n invalidParams: reservedKeywordParams,\n message: `Route parameter for ${resourceType} is an operation keyword, not a resource id: ${reservedKeywordParams.join(', ')}. This URL does not address a resource.`\n };\n }\n\n if (missingParams.length > 0) {\n return {\n isValid: false,\n errorType: 'missing',\n invalidParams: missingParams,\n message: `Missing required parameters for ${resourceType}: ${missingParams.join(', ')}`\n };\n }\n\n return { isValid: true };\n}\n\n/**\n * Where an invalid URL parameter's diagnostic goes (#3066 review M4): the console, and nowhere a reader sees it. The\n * reader gets the application's own not-found page (`RouterErrorBoundary`, the surface the `*` route renders).\n */\nconst logger = LoggerFrontendService.getLogger();\n\n/**\n * ResourcePageWrapper bridges React Router with the navigation system.\n * It extracts URL parameters, creates resource context, and syncs with NavigationContext.\n *\n * Validates URL parameters: a URL whose parameters are invalid or unresolved renders the application's not-found page,\n * and the reason goes to the console log.\n */\nconst ResourcePageWrapper: React.FC<ResourcePageWrapperProps> = ({\n resourceType,\n operation,\n PageComponent,\n routePathParameters\n}) => {\n const { registry } = useResourceRegistry();\n const appScope = useAppScopeSafe();\n const { navigationLayout, currentBreakpoint } = useUI();\n // The measured content area, for the same collapse question the resolver and the renderer ask.\n const { contentAreaWidth } = useNavigationState();\n\n // Extract URL parameters from React Router\n const urlParameters = useParams<Record<string, string>>() as Record<string, string>;\n\n // Validate URL parameters before allowing router-sync to reconstruct\n // navigation state from them. Invalid/placeholder params should render the\n // error surface without repopulating resource navigation entries underneath.\n const validation = React.useMemo(\n () => validateUrlParameters(urlParameters, resourceType),\n [urlParameters, resourceType]\n );\n\n // Sync URL changes with navigation state\n // Pass routePathParameters so useRouterSync can build parentResourcesRequirements\n useRouterSync(\n validation.isValid ? resourceType : undefined,\n validation.isValid ? operation : undefined,\n routePathParameters\n );\n\n // The diagnostic goes to the console only: a reader is shown the not-found page, not a developer's sentence.\n React.useEffect(() => {\n if (!validation.isValid && validation.message) {\n logger.warn(`[AppRouter] ${validation.message}`, {\n resourceType,\n operation: String(operation.operationIdentifier),\n invalidParams: validation.invalidParams,\n errorType: validation.errorType,\n url: window.location.href,\n });\n }\n }, [validation.isValid, validation.message, validation.errorType, validation.invalidParams, resourceType, operation.operationIdentifier]);\n\n // Build parentResourcesRequirements from route path parameters. Above the not-found return below, with every other\n // hook: a hook after an early return changes the hook count when the same mounted route turns valid or invalid.\n const parentResourcesRequirements = React.useMemo(() =>\n frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams(\n routePathParameters,\n resourceType,\n registry\n ),\n [routePathParameters, resourceType, registry]\n );\n\n // A URL that addresses no resource is a page that does not exist: the application's own not-found surface.\n if (!validation.isValid) {\n return <RouterErrorBoundary />;\n }\n\n // Convert URL parameters to resource identifiers map using the registry\n // Pass routePathParameters for accurate FK field mapping (e.g., assignedToUserId → USERS)\n const urlContextIdentifiers = frontendResourceUtils.extractResourceIdentifiersFromUrlParams(\n urlParameters,\n registry,\n routePathParameters\n );\n\n const targetPrimaryScope = registry.resourceConfigurations?.[resourceType]?.resourcePrimaryScope;\n const contextResourceIdentifiers = ScopeUtilsService.buildResourceOperationContextIdentifiers({\n currentUserId: appScope?.currentUserId,\n currentOrganizationId: appScope?.currentOrganizationId,\n currentApplicationId: appScope?.currentApplicationId,\n currentAnonymousUserId: appScope?.currentAnonymousUserId,\n primaryScope: targetPrimaryScope,\n liveAppScopeContextResourceIdentifiers: appScope?.buildContextResourceIdentifiers?.(),\n explicitContextResourceIdentifiers: urlContextIdentifiers,\n });\n\n // Create the frontend resource operation context with parentResourcesRequirements\n const resourceContext = frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType,\n operation,\n contextResourceIdentifiers,\n parentResourcesRequirements,\n });\n\n const resourceRelationshipDepth = NavigationUtils.calculateResourceRelationshipDepth(parentResourcesRequirements);\n /*\n * Same three inputs `useRouterSync` uses, and for the same reason: a routed page and the live\n * navigation stack must not disagree about which zone owns a flat detail. `prefersAdjacentZoneForDetail`\n * was missing here entirely, so this wrapper answered PRIMARY for every depth-0 resource even in a\n * layout that splits its detail out — the routed page's props then contradicted the stack that the\n * URL sync had just built beside it.\n */\n const prefersAdjacentZoneForDetail = resourceRelationshipDepth === 0\n && !!navigationLayout?.zones?.secondary\n && NavigationUtils.layoutSplitsOperationFromPrimary(navigationLayout, operation, currentBreakpoint);\n const preferredNavigationZone = NavigationUtils.resolveResourceTargetZone(resourceRelationshipDepth, {\n hasSecondary: !!navigationLayout?.zones?.secondary,\n hasCompanion: !!navigationLayout?.zones?.companion,\n prefersAdjacentZoneForDetail,\n });\n /*\n * ─── The VIEWPORT decides here too, for the reason the comment below already gives ─────────────\n *\n * `resolveResourceTargetZone` takes no viewport, so every caller applies the collapse itself.\n * There are exactly two, and when the collapse was added to the URL-sync caller on 2026-09-25 this\n * one was left behind — in the pass whose whole subject was an invariant applied at some of its\n * sites. On a phone URL sync restores a depth-1 resource into PRIMARY while this wrapper still\n * handed the page `navigationZone: SECONDARY`, so every zone-keyed affordance in it answered for a\n * zone the content is not in. Precisely the disagreement the comment below warns about.\n */\n const navigationZone = adjacentZoneUsableAtViewport({\n zone: preferredNavigationZone,\n layout: navigationLayout,\n viewport: currentBreakpoint,\n contentAreaWidth,\n })\n ? preferredNavigationZone\n : NavigationZoneName.PRIMARY;\n\n // Routed resource pages must receive the same owning zone as URL-sync restore.\n // Otherwise the rendered page props can disagree with the live navigation stack\n // after refresh/deep-link reconstruction.\n const navigationInitiator = {\n sourceZone: navigationZone,\n };\n\n return (\n <PageComponent\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n );\n};\n\n/**\n * Helper hook to look up a view's requiredFeatures from UIContext by viewRef and content type.\n * Returns undefined if the view has no requiredFeatures or if the view is not found.\n */\nfunction useViewRequiredFeatures(\n viewRef: string | undefined,\n contentType: NavigationContentType\n): RequiredFeaturesConfig | undefined {\n const { compositeViews, fullCustomViews, flowsActorsViews } = useUI();\n const { registry } = useResourceRegistry();\n\n return React.useMemo(() => {\n if (!viewRef) return undefined;\n\n switch (contentType) {\n case NavigationContentType.COMPOSITE_VIEW: {\n return resolveCompositeViewDefinition({\n viewRef,\n compositeViews,\n registry,\n })?.requiredFeatures;\n }\n case NavigationContentType.CHART_VIEW: {\n const insertedChart = resolveInsertedChartView({ viewRef, registry });\n return insertedChart?.chartView.chartDefinition.requiredFeatures;\n }\n case NavigationContentType.FULL_CUSTOM_VIEW: {\n const view = fullCustomViews?.find(v => v.ref === viewRef);\n return view?.requiredFeatures;\n }\n case NavigationContentType.FLOWS_ACTORS_VIEW: {\n const view = flowsActorsViews?.find(v => v.ref === viewRef);\n return view?.requiredFeatures;\n }\n case NavigationContentType.EXECUTION_VIEW: {\n const view = resolveExecutionViewDefinition({\n viewRef,\n registry,\n });\n return view?.requiredFeatures;\n }\n default:\n return undefined;\n }\n }, [viewRef, contentType, compositeViews, fullCustomViews, flowsActorsViews, registry]);\n}\n\n/**\n * Wrapper that extracts viewRef from URL params, syncs navigation state, and renders a View.\n * View components handle resolution from UIContext and not-found rendering internally.\n *\n * useViewRouterSync ensures that on refresh / deep link, the navigation state is populated\n * with the correct view content (similar to useRouterSync for resource operations).\n *\n * Includes FeatureRouteGuard: looks up the view's `requiredFeatures` from UIContext\n * and gates access based on the feature availability policy.\n */\nconst ViewRouteWrapper: React.FC<{\n ViewComponent: React.ComponentType<any>;\n contentType: NavigationContentType;\n viewProps?: Record<string, unknown>;\n}> = ({ ViewComponent, contentType, viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n useViewRouterSync(viewRef, contentType);\n\n // Look up view's requiredFeatures from UIContext\n const viewRequiredFeatures = useViewRequiredFeatures(viewRef, contentType);\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <ViewComponent viewRef={viewRef!} {...viewProps} />\n </FeatureRouteGuard>\n );\n};\n\nconst CompositeRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { compositeViews } = useUI();\n const { registry } = useResourceRegistry();\n const contextResourceIdentifiers = React.useMemo(\n () => extractCompositeRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const compositeView = React.useMemo(() => resolveCompositeViewDefinition({\n viewRef,\n compositeViews,\n registry,\n }), [viewRef, compositeViews, registry]);\n const isRoutableCompositeView = !!viewRef && isStandaloneRoutableResolvedCompositeView(compositeView);\n\n useViewRouterSync(\n isRoutableCompositeView ? viewRef : undefined,\n NavigationContentType.COMPOSITE_VIEW,\n );\n\n const viewRequiredFeatures = useViewRequiredFeatures(\n isRoutableCompositeView ? viewRef : undefined,\n NavigationContentType.COMPOSITE_VIEW,\n );\n if (!isRoutableCompositeView) {\n return <ViewNotFound viewKind=\"composite\" viewRef={viewRef} />;\n }\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <CompositeView\n viewRef={viewRef}\n contextResourceIdentifiers={contextResourceIdentifiers}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst ExecutionRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { registry } = useResourceRegistry();\n const executionView = React.useMemo(() => resolveExecutionViewDefinition({\n viewRef,\n registry,\n }), [viewRef, registry]);\n const contextResourceIdentifiers = React.useMemo(\n () => extractExecutionRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const isRoutableExecutionView =\n !!viewRef\n && !!executionView\n && isStandaloneRoutableExecutionView(executionView);\n\n useViewRouterSync(\n isRoutableExecutionView ? viewRef : undefined,\n NavigationContentType.EXECUTION_VIEW,\n );\n\n const viewRequiredFeatures = useViewRequiredFeatures(\n isRoutableExecutionView ? viewRef : undefined,\n NavigationContentType.EXECUTION_VIEW,\n );\n\n if (!isRoutableExecutionView) {\n return <ViewNotFound viewKind=\"execution\" viewRef={viewRef} />;\n }\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <ExecutionView\n viewRef={viewRef}\n contextResourceIdentifiers={contextResourceIdentifiers}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst ChartRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { registry } = useResourceRegistry();\n const contextResourceIdentifiers = React.useMemo(\n () => extractChartRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const urlParamValues = React.useMemo(\n () => extractChartRouteUrlParamValues(new URLSearchParams(location.search)),\n [location.search],\n );\n const resolvedChartRoute = React.useMemo(() => resolveChartRouteState({\n viewRef,\n registry,\n contextResourceIdentifiers,\n urlParamValues,\n }), [viewRef, registry, contextResourceIdentifiers, urlParamValues]);\n\n useChartViewRouterSync(resolvedChartRoute);\n\n if (!resolvedChartRoute) {\n return <ViewNotFound viewKind=\"chart\" viewRef={viewRef} />;\n }\n\n return (\n <FeatureRouteGuard requiredFeatures={resolvedChartRoute.requiredFeatures}>\n <ChartView\n viewRef={resolvedChartRoute.routeViewRef}\n viewDefinition={resolvedChartRoute.viewDefinition}\n contextResourceIdentifiers={resolvedChartRoute.contextResourceIdentifiers}\n urlParamValues={resolvedChartRoute.urlParamValues}\n runtimeDescriptor={resolvedChartRoute.runtimeDescriptor}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst EnginePageRouteWrapper: React.FC<{\n pageRef: EnginePageRef;\n PageComponent: React.FC;\n}> = ({ pageRef, PageComponent }) => {\n useEnginePageRouterSync(pageRef);\n return <PageComponent />;\n};\n\n/**\n * Route element for the unified Settings Hub paths (`/settings`,\n * `/settings/:sectionRef`). The hub itself is an overlay reconciled from the URL\n * by `useSettingsHubOverlaySync` (mounted once in `NavigationContentAreas`), so\n * this element only renders the PRIMARY underlay shown on a cold deep-link\n * (`AppLayout_Home`). In-session, the persisted PRIMARY surface stays beneath the\n * hub, so this fallback is ignored.\n */\nconst SettingsRouteWrapper: React.FC = () => <AppLayout_Home />;\n\n/**\n * The route element of a public governed-document page: the release a link named, read from the query string, handed\n * to the page (#3187). The page stays free of the router; this is the one place the URL is read.\n */\nfunction PublicGovernedDocumentRoute({ documentRef }: { readonly documentRef: string }): React.JSX.Element {\n const [searchParams] = useSearchParams();\n const namedRelease = readPublicGovernedDocumentReleaseQuery(searchParams);\n return <PublicLayout_Terms documentRef={documentRef} {...(namedRelease ? { namedRelease } : {})} />;\n}\n\nexport const AppRouter: React.FC = () => {\n const { registry } = useResourceRegistry();\n const isDevelopment = envLoader.isDevelopment();\n\n // Build resource-based routes for authenticated area\n const resourceRouteElements: React.ReactElement[] = [];\n\n Object.values<AnyFrontendResourceConfiguration>(registry.resourceConfigurations).forEach(rc => {\n const operations = Array.isArray(rc.operations) ? rc.operations : [];\n operations.forEach(operation => {\n // Only add routes for operations that are addressable in the current frontend app\n if (!isOperationAddressable(operation.operationFrontendConfig)) return;\n const routePaths = ResourcesConfigOperationsUrlsBuilderUtils.buildOperationFrontendRoutePaths(rc, operation, registry.allResourceFieldIdentifiers);\n const layoutKind = resolveResourceOperationLayoutKind(operation);\n\n // Determine which ResourcePage component to use\n let PageComponent: React.ComponentType<{\n resourceContext: FrontendResourceOperationContext;\n }>;\n\n switch (layoutKind) {\n case 'create': PageComponent = ResourceLayout_Create; break;\n case 'list': PageComponent = ResourceLayout_List; break;\n case 'read': PageComponent = ResourceLayout_Read; break;\n case 'update': PageComponent = ResourceLayout_Update; break;\n case 'search': PageComponent = ResourceLayout_Search; break;\n default: PageComponent = ResourceLayout_Action; break;\n }\n\n // Create routes for all possible parent combinations\n routePaths.forEach((routePath, pathIndex) => {\n const element = (\n <FeatureRouteGuard operation={operation}>\n <ResourcePageWrapper\n resourceType={rc.resourceIdentifier}\n operation={operation}\n PageComponent={PageComponent}\n routePathParameters={routePath.parameters}\n />\n </FeatureRouteGuard>\n );\n\n const routeKey = `${rc.resourceIdentifier}-${String(operation.operationIdentifier)}-${pathIndex}`;\n resourceRouteElements.push(\n <Route key={routeKey} path={routePath.url} element={element} errorElement={<RouterErrorBoundary />} />\n );\n });\n });\n });\n\n return (\n <>\n <NavigationRequestBridge />\n <Routes>\n {/* ========================================\n PUBLIC ROUTES - No authentication required\n ======================================== */}\n\n {/* OAuth2 callback — shared across all app types */}\n <Route\n path={CommonRoutePaths.authCallback}\n element={<AuthPage_AuthCallback />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Federated re-authentication landing, inside the step-up dialog's popup (#1441) */}\n <Route\n path={CommonRoutePaths.reAuthenticationCallback}\n element={<AuthPage_ReAuthenticationCallback />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Magic link verification — shared across all app types */}\n <Route\n path={CommonRoutePaths.magicLinkVerify}\n element={<AuthPage_MagicLinkVerify />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* MFA challenge — shared across all app types, serves all first-factor methods */}\n <Route\n path={CommonRoutePaths.mfaChallenge}\n element={<AuthPage_MfaChallenge />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* MFA enrollment required — shown when MFA is mandated but user has no enrolled methods */}\n <Route\n path={CommonRoutePaths.enrollmentRequired}\n element={<AuthPage_EnrollmentRequired />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Organization onboarding — an account parked at ONBOARDING_PENDING names the organization it owes (#1090) */}\n <Route\n path={CommonRoutePaths.organizationOnboarding}\n element={<AuthPage_OrganizationOnboarding />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* One-off session exchange — shared across all app types */}\n <Route\n path={CommonRoutePaths.oneOffSession}\n element={<AuthPage_OneOffSession />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* File-upload-grant drop page — public, the grant token in the URL is the only credential */}\n <Route\n path={CommonRoutePaths.fileUploadGrant}\n element={<FilesPage_UploadGrant />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Cross-frontend handoff exchange landing — cross-app-jwt-propagation Step 5 */}\n <Route\n path={CommonRoutePaths.authExchange}\n element={<AuthPage_AuthExchange />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/*\n * Public governed-document pages. Issue #168.\n *\n * Both paths have been declared in `CommonRoutePaths` since the compliance vocabulary\n * landed, and NEITHER was mounted — `/privacy` and `/terms` answered the not-found route in\n * every application, while the component they name had no implementation at all.\n *\n * One component serves both: it takes the document ref as a prop and reads the application's\n * own `compliance.publicDocuments`, so an application adding a third public document adds a\n * route rather than a component. A document never released shows its latest draft, marked\n * as a draft. Otherwise it fails CLOSED — nothing in force renders an unavailable notice,\n * never a partial document.\n *\n * Whether an unapproved release may be shown is NOT decided here. It is the application's\n * approval gate, `compliance.governedDocumentApprovalGate`, which the page reads alongside\n * every acceptance surface so the page cannot be armed alone (#1565). It used to be a prop\n * this route declined to pass. Arming it is part of Gate 3's membership test (\"an application\n * may face a real user\") — see `.claude/rules/one-source-of-truth.md` D5.\n */}\n {/*\n * Mounted FROM the pairing rather than beside it. `PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS` is\n * total over `PUBLIC_GOVERNED_DOCUMENT_REFS`, and the registration form reads the same map to\n * link a required document to the page that renders it — so the two readers cannot disagree,\n * and a third public document gets its route by joining the vocabulary.\n */}\n {Object.entries(PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS).map(([documentRef, path]) => (\n <Route\n key={documentRef}\n path={path}\n element={<PublicGovernedDocumentRoute documentRef={documentRef} />}\n errorElement={<RouterErrorBoundary />}\n />\n ))}\n {/*\n * The legal notice (imprint), #2588. Mounted for every application, from the same atom the marketing website links\n * it from: the page itself says when the operator owes none, so a link followed in error lands on a statement\n * rather than a 404.\n */}\n <Route path={LEGAL_NOTICE_ROUTE_PATH} element={<PublicLayout_LegalNotice />} errorElement={<RouterErrorBoundary />} />\n\n {/* Public auth routes — always present; auth behavior is driven by AppConfiguration_Shared.auth */}\n <Route\n path={CommonRoutePaths.login}\n element={<AuthPage_Main />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.register}\n element={<AuthPage_Register />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.passwordLost}\n element={<AuthPage_PasswordLost />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthConsent}\n element={<AuthPage_OAuthConsent />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* Chat-link page (#2660): public, self-redirects to sign in; links a chat account on explicit confirmation. */}\n <Route\n path={CommonRoutePaths.chatIdentityLink}\n element={<AuthPage_ChatIdentityLink />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthLoggedOut}\n element={<AuthPage_OAuthLoggedOut />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthLogoutConfirm}\n element={<AuthPage_OAuthLogoutConfirm />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.invitation}\n element={<AuthPage_Invitation />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.confirmEmail}\n element={<AuthPage_ConfirmEmail />}\n errorElement={<RouterErrorBoundary />}\n />\n\n\n\n\n\n\n {/* ========================================\n AUTHENTICATED ROUTES - Wrapped with MainContainer\n Uses Layout Route pattern for consistent shell\n ======================================== */}\n <Route element={<AppLayout_AuthenticatedRoute />} errorElement={<RouterErrorBoundary />}>\n {/* Home route */}\n <Route\n path={CommonRoutePaths.home}\n element={<EnginePageRouteWrapper pageRef={EnginePageRef.HOME} PageComponent={AppLayout_Home} />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* The engine's decision inbox (#2527): mounted for every application; its row is offered where a decision can wait. */}\n <Route\n path={CommonRoutePaths.decisions}\n element={<EnginePageRouteWrapper pageRef={EnginePageRef.DECISIONS} PageComponent={AppLayout_DecisionInbox} />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* Unified Settings Hub — overlay reconstructed from URL. `/settings/security`\n now opens the hub at its Security section (the standalone security page is\n migrated into the hub as a panel). */}\n <Route\n path={CommonRoutePaths.settings}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.settingsSection}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* `/settings/:sectionRef/:subTabRef` — the same wrapper: the hub is reconstructed from the\n URL by `useSettingsHubOverlaySync`, so this route exists to MATCH the deeper path rather\n than to render anything different. Without it the path fell through to the router's\n catch-all and the overlay was never reconciled. */}\n <Route\n path={CommonRoutePaths.settingsSectionSubTab}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* View routes — View components resolve definitions from UIContext internally */}\n <Route\n path=\"/composite/:viewRef\"\n element={<CompositeRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/custom/:viewRef\"\n element={<ViewRouteWrapper ViewComponent={FullCustomView} contentType={NavigationContentType.FULL_CUSTOM_VIEW} />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/flows-actors/:viewRef\"\n element={<ViewRouteWrapper ViewComponent={FlowsActorsView} contentType={NavigationContentType.FLOWS_ACTORS_VIEW} />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/execution/:viewRef\"\n element={\n <ExecutionRouteWrapper\n viewProps={{ navigationZone: NavigationZone.PRIMARY }}\n />\n }\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/chart/:viewRef\"\n element={\n <React.Suspense fallback={<div style={{ padding: '2rem', textAlign: 'center', color: 'var(--muted-foreground, #737373)' }}>Loading chart...</div>}>\n <ChartRouteWrapper />\n </React.Suspense>\n }\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Resource routes - nested inside authenticated layout */}\n {resourceRouteElements}\n </Route>\n\n {/* Fallback - handled by RouterErrorBoundary */}\n <Route\n path=\"*\"\n element={<RouterErrorBoundary />}\n />\n </Routes>\n </>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"AppRouter.js","sourceRoot":"","sources":["../../../../src/core/runtime/AppRouter.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACp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O,EACL,KAAC,qBAAqB,IACpB,SAAS,EAAE,EAAE,cAAc,EAAE,cAAc,CAAC,OAAO,EAAE,GACrD,EAEJ,YAAY,EAAE,KAAC,mBAAmB,KAAG,GACrC,EACF,KAAC,KAAK,IACJ,IAAI,EAAC,iBAAiB,EACtB,OAAO,EACL,KAAC,KAAK,CAAC,QAAQ,IAAC,QAAQ,EAAE,cAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,kCAAkC,EAAE,iCAAwB,YAC/I,KAAC,iBAAiB,KAAG,GACN,EAEnB,YAAY,EAAE,KAAC,mBAAmB,KAAG,GACrC,EAGD,qBAAqB,IAChB,EAGR,KAAC,KAAK,IACJ,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,KAAC,mBAAmB,KAAG,GAChC,IACO,IACR,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n CoreResourceOperation,\n NavigationZoneName,\n NavigationTransition,\n ResourcesConfigOperationsUrlsBuilderUtils,\n ResourceConfiguration_Operation_UrlParameterInfo,\n PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS,\n LEGAL_NOTICE_ROUTE_PATH,\n readPublicGovernedDocumentReleaseQuery,\n} from '@wildo-ai/saas-models';\nimport type { AnyFrontendResourceConfiguration, FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport React from 'react';\nimport { Route, Routes, useLocation, useParams, useSearchParams } from 'react-router';\nimport { AppLayout_AuthenticatedRoute } from '~wildo-frontend-lib/components/app/AppLayout_AuthenticatedRoute';\nimport { AppLayout_Home } from '~wildo-frontend-lib/components/app/AppLayout_Home';\nimport { AppLayout_DecisionInbox } from '~wildo-frontend-lib/components/app/AppLayout_DecisionInbox';\nimport { ResourceLayout_Action } from '~wildo-frontend-lib/components/resources/ResourceLayout_Action';\nimport { ResourceLayout_Create } from '~wildo-frontend-lib/components/resources/ResourceLayout_Create';\nimport { ResourceLayout_List } from '~wildo-frontend-lib/components/resources/ResourceLayout_List';\nimport { ResourceLayout_Read } from '~wildo-frontend-lib/components/resources/ResourceLayout_Read';\nimport { ResourceLayout_Search } from '~wildo-frontend-lib/components/resources/ResourceLayout_Search';\nimport { ResourceLayout_Update } from '~wildo-frontend-lib/components/resources/ResourceLayout_Update';\n\n\nimport { AuthPage_AuthCallback } from '~wildo-frontend-lib/components/auth/pages/AuthPage_AuthCallback';\nimport { AuthPage_ReAuthenticationCallback } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ReAuthenticationCallback';\nimport { AuthPage_MagicLinkVerify } from '~wildo-frontend-lib/components/auth/pages/AuthPage_MagicLinkVerify';\nimport { AuthPage_MfaChallenge } from '~wildo-frontend-lib/components/auth/pages/AuthPage_MfaChallenge';\nimport { AuthPage_EnrollmentRequired } from '~wildo-frontend-lib/components/auth/pages/AuthPage_EnrollmentRequired';\nimport { AuthPage_OrganizationOnboarding } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OrganizationOnboarding';\nimport { AuthPage_Main } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Main';\nimport { AuthPage_ConfirmEmail } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ConfirmEmail';\nimport { AuthPage_Invitation } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Invitation';\nimport { AuthPage_OneOffSession } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OneOffSession';\nimport { FilesPage_UploadGrant } from '~wildo-frontend-lib/components/files/pages/FilesPage_UploadGrant';\nimport { AuthPage_AuthExchange } from '~wildo-frontend-lib/components/auth/pages/AuthPage_AuthExchange';\nimport { AuthPage_PasswordLost } from '~wildo-frontend-lib/components/auth/pages/AuthPage_PasswordLost';\nimport { AuthPage_OAuthConsent } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthConsent';\nimport { AuthPage_ChatIdentityLink } from '~wildo-frontend-lib/components/auth/pages/AuthPage_ChatIdentityLink';\nimport { AuthPage_OAuthLoggedOut } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthLoggedOut';\nimport { AuthPage_OAuthLogoutConfirm } from '~wildo-frontend-lib/components/auth/pages/AuthPage_OAuthLogoutConfirm';\nimport { AuthPage_Register } from '~wildo-frontend-lib/components/auth/pages/AuthPage_Register';\nimport { PublicLayout_Terms } from '~wildo-frontend-lib/components/app/PublicLayout_Terms';\nimport { PublicLayout_LegalNotice } from '~wildo-frontend-lib/components/app/PublicLayout_LegalNotice';\nimport { RouterErrorBoundary } from '~wildo-frontend-lib/core/errors/RouterErrorBoundary';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { NavigationContentType, NavigationSource, NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { clickKeepsRestoredContentInPrimary } from '~wildo-frontend-lib/core/navigation/navigation-controller-internals';\nimport { NavigationRequestBridge } from '~wildo-frontend-lib/core/navigation/NavigationRequestBridge';\nimport { adjacentZoneUsableAtViewport } from '~wildo-frontend-lib/core/navigation/zone-collapse';\nimport { NavigationUtils } from '~wildo-frontend-lib/core/navigation/navigation.utils';\nimport { useTransactionAwareSyncRetry } from '~wildo-frontend-lib/core/navigation/useTransactionAwareSyncRetry';\nimport { useRouterSync, useViewRouterSync, useEnginePageRouterSync } from '~wildo-frontend-lib/core/navigation/useNavigationRouterSync';\nimport { frontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { resolveResourceOperationLayoutKind } from '~wildo-frontend-lib/core/resources/operation-semantics.frontend.utils';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { type FrontendResourceOperationContext, isOperationAddressable } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { envLoader } from '~wildo-frontend-lib/core/runtime/env-variable-loader.frontend.service';\nimport { CommonRoutePaths } from './routes.frontend.definitions';\nimport { EnginePageRef } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport { FullCustomView } from '~wildo-frontend-lib/components/views/full-custom-view/FullCustomView';\nimport { FlowsActorsView } from '~wildo-frontend-lib/components/views/flows-actors-view/FlowsActorsView';\nimport { ExecutionView } from '~wildo-frontend-lib/components/views/execution-view/ExecutionView';\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\nimport { FeatureRouteGuard } from '~wildo-frontend-lib/core/features/FeatureRouteGuard';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport {\n extractCompositeRouteContextResourceIdentifiers,\n isStandaloneRoutableResolvedCompositeView,\n resolveCompositeViewDefinition,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport {\n buildResolvedInsertedChartDescriptor,\n extractChartRouteContextResourceIdentifiers,\n extractChartRouteUrlParamValues,\n isStandaloneRoutableInsertedChartView,\n type InsertedChartDeclaration,\n type ResolvedInsertedChartDescriptor,\n resolveInsertedChartView,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport {\n extractExecutionRouteContextResourceIdentifiers,\n isStandaloneRoutableExecutionView,\n resolveExecutionViewDefinition,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from '~wildo-frontend-lib/core/config/inserted-view.frontend.schemas';\nimport { useRouterLocationAheadOfCommit } from '~wildo-frontend-lib/core/navigation/useSynchronousBrowserLocation';\nimport type { RequiredFeaturesConfig } from '@wildo-ai/saas-models';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { useEventBus } from '~wildo-frontend-lib/core/events/useEventBus';\nimport { FrontendEvents } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { useNavigationState } from '~wildo-frontend-lib/core/navigation/useNavigationState';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\n\n// ChartView is lazy-loaded — apps that don't use charts never load ECharts\nconst ChartView = React.lazy(() => import('~wildo-frontend-lib/components/views/chart-view/ChartView'));\n\ninterface ResolvedChartRouteState {\n routeViewRef: string;\n viewDefinition: InsertedChartDeclaration;\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n runtimeDescriptor?: ResolvedInsertedChartDescriptor;\n requiredFeatures?: RequiredFeaturesConfig;\n}\n\nfunction resolveInsertedChartRouteState(params: {\n insertedIdentity: FrontendInsertedViewIdentity;\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n}): ResolvedChartRouteState | undefined {\n const { insertedIdentity, contextResourceIdentifiers, urlParamValues, registry } = params;\n if (\n insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.CHART_VIEW\n ) {\n return undefined;\n }\n\n const chartView = resolveInsertedChartView({\n viewRef: insertedIdentity.insertedViewRef,\n registry,\n })?.chartView;\n if (!chartView || !isStandaloneRoutableInsertedChartView(chartView)) {\n return undefined;\n }\n\n const normalizedContextResourceIdentifiers = contextResourceIdentifiers ?? {};\n\n return {\n routeViewRef: insertedIdentity.insertedViewRef,\n viewDefinition: chartView,\n contextResourceIdentifiers: normalizedContextResourceIdentifiers,\n urlParamValues,\n runtimeDescriptor: buildResolvedInsertedChartDescriptor({\n identity: insertedIdentity,\n chartView,\n contextResourceIdentifiers: normalizedContextResourceIdentifiers,\n }),\n requiredFeatures: chartView.chartDefinition.requiredFeatures,\n };\n}\n\nfunction resolveChartRouteState(params: {\n viewRef: string | undefined;\n registry: ReturnType<typeof useResourceRegistry>['registry'];\n contextResourceIdentifiers?: Record<string, string>;\n urlParamValues?: Record<string, string>;\n}): ResolvedChartRouteState | undefined {\n const { viewRef, registry, contextResourceIdentifiers, urlParamValues } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (!insertedIdentity) {\n return undefined;\n }\n\n return resolveInsertedChartRouteState({\n insertedIdentity,\n contextResourceIdentifiers,\n urlParamValues,\n registry,\n });\n}\n\nfunction useChartViewRouterSync(resolvedChartRoute: ResolvedChartRouteState | undefined): void {\n const location = useLocation();\n const routerLocationAhead = useRouterLocationAheadOfCommit(location);\n const { emit } = useEventBus();\n const { getZoneState } = useNavigationState();\n const lastSyncedPath = React.useRef<string | null>(null);\n const currentUrl = `${location.pathname}${location.search}`;\n const {\n retryTick,\n scheduleRetry: scheduleTransactionRetry,\n clearRetry: clearTransactionRetry,\n } = useTransactionAwareSyncRetry(currentUrl);\n\n React.useEffect(() => {\n if (!resolvedChartRoute) {\n return;\n }\n\n if (NavigationUtils.isInTransaction()) {\n scheduleTransactionRetry();\n return;\n }\n\n clearTransactionRetry();\n\n // The router already left the URL this route committed with (a pending location transition); rebuilding\n // from it would restore the page the browser left. See `useRouterLocationAheadOfCommit`.\n if (routerLocationAhead) {\n return;\n }\n\n if (lastSyncedPath.current === currentUrl) {\n return;\n }\n\n // Per-zone, destination-based ownership — the same question `useViewRouterSync` asks. A chart\n // is a non-derivable primary, so a pane beside it is HOSTED and the URL is composed: PRIMARY is\n // asked about the host half only, and the stamp below carries the host half only.\n if (NavigationUtils.zoneOwnsBrowserUrl(NavigationZoneName.PRIMARY, currentUrl, getZoneState)) {\n lastSyncedPath.current = currentUrl;\n return;\n }\n\n emit(FrontendEvents.NAVIGATION_REPLACE, {\n zone: NavigationZoneName.PRIMARY,\n content: {\n contentType: NavigationContentType.CHART_VIEW,\n viewRef: resolvedChartRoute.routeViewRef,\n viewDefinition: resolvedChartRoute.viewDefinition,\n contextResourceIdentifiers: resolvedChartRoute.contextResourceIdentifiers,\n urlParamValues: resolvedChartRoute.urlParamValues,\n runtimeDescriptor: resolvedChartRoute.runtimeDescriptor,\n requiredFeatures: resolvedChartRoute.requiredFeatures,\n },\n urlPath: NavigationUtils.decomposeHostedPaneBrowserUrl(currentUrl).hostUrl,\n stackEntryId: NavigationUtils.generateStackEntryId(),\n initiator: { sourceZone: NavigationZoneName.PRIMARY },\n navigationSource: NavigationSource.URL_SYNC,\n transition: NavigationTransition.REPLACE,\n });\n\n lastSyncedPath.current = currentUrl;\n }, [emit, getZoneState, resolvedChartRoute, currentUrl, routerLocationAhead, retryTick, scheduleTransactionRetry, clearTransactionRetry]);\n}\n\n/**\n * Wrapper component that extracts URL parameters and creates resource context\n * This component bridges React Router params with our resource context system\n */\ninterface ResourcePageWrapperProps {\n resourceType: string;\n operation: FrontendResourceConfiguration_Operation;\n PageComponent: React.ComponentType<{\n resourceContext: FrontendResourceOperationContext;\n navigationZone: NavigationZoneName;\n navigationInitiator?: any;\n }>;\n /** Route path parameters with relationship field info for deterministic URL selection */\n routePathParameters: ResourceConfiguration_Operation_UrlParameterInfo[];\n}\n\n/**\n * Validate URL parameters - checks for unresolved or invalid parameters\n * Returns validation result with error details if invalid\n */\ninterface UrlParameterValidation {\n isValid: boolean;\n errorType?: 'unresolved' | 'missing' | 'invalid';\n invalidParams?: string[];\n message?: string;\n}\n\n/**\n * Core-operation keywords (\"create\", \"list\", \"search\", …) are never valid resource\n * ids. A direct hit like `/todos/create` has no page route — core CREATE is an\n * overlay (non-addressable) and adds no URL segment — so the sibling parameterized\n * route `/todos/:todoId` greedily captures `todoId=\"create\"`. That renders the read\n * surface (a composite) for a phantom resource, which render-loops and freezes the\n * tab (todos CREATE freeze, 2026-06-27). Treating an operation-keyword param value as\n * an invalid URL parameter routes it to the standard not-found surface instead (`RouterErrorBoundary`).\n */\nconst RESERVED_OPERATION_ID_SEGMENTS: ReadonlySet<string> = new Set(\n Object.values(CoreResourceOperation).map((op) => String(op).toLowerCase()),\n);\n\nfunction validateUrlParameters(\n urlParameters: Record<string, string>,\n resourceType: string\n): UrlParameterValidation {\n const invalidParams: string[] = [];\n const missingParams: string[] = [];\n const reservedKeywordParams: string[] = [];\n\n for (const [key, value] of Object.entries(urlParameters)) {\n // Check for unresolved route parameters (still have : prefix in URL)\n if (value && value.startsWith(':')) {\n invalidParams.push(`${key}=${value}`);\n }\n // Check for empty or undefined values\n else if (!value || value.trim() === '') {\n missingParams.push(key);\n }\n // Check for obviously invalid placeholder values\n else if (value === 'undefined' || value === 'null' || value === '[object Object]') {\n invalidParams.push(`${key}=${value}`);\n }\n // A param value that is a core-operation keyword is a mis-navigation, not a\n // resource id (e.g. `/todos/create` → todoId=\"create\"). Render not-found.\n else if (RESERVED_OPERATION_ID_SEGMENTS.has(value.toLowerCase())) {\n reservedKeywordParams.push(`${key}=${value}`);\n }\n }\n\n if (invalidParams.length > 0) {\n return {\n isValid: false,\n errorType: 'unresolved',\n invalidParams,\n message: `Unresolved route parameters for ${resourceType}: ${invalidParams.join(', ')}. The URL contains placeholder values instead of actual IDs.`\n };\n }\n\n if (reservedKeywordParams.length > 0) {\n return {\n isValid: false,\n errorType: 'invalid',\n invalidParams: reservedKeywordParams,\n message: `Route parameter for ${resourceType} is an operation keyword, not a resource id: ${reservedKeywordParams.join(', ')}. This URL does not address a resource.`\n };\n }\n\n if (missingParams.length > 0) {\n return {\n isValid: false,\n errorType: 'missing',\n invalidParams: missingParams,\n message: `Missing required parameters for ${resourceType}: ${missingParams.join(', ')}`\n };\n }\n\n return { isValid: true };\n}\n\n/**\n * Where an invalid URL parameter's diagnostic goes (#3066 review M4): the console, and nowhere a reader sees it. The\n * reader gets the application's own not-found page (`RouterErrorBoundary`, the surface the `*` route renders).\n */\nconst logger = LoggerFrontendService.getLogger();\n\n/**\n * ResourcePageWrapper bridges React Router with the navigation system.\n * It extracts URL parameters, creates resource context, and syncs with NavigationContext.\n *\n * Validates URL parameters: a URL whose parameters are invalid or unresolved renders the application's not-found page,\n * and the reason goes to the console log.\n */\nconst ResourcePageWrapper: React.FC<ResourcePageWrapperProps> = ({\n resourceType,\n operation,\n PageComponent,\n routePathParameters\n}) => {\n const { registry } = useResourceRegistry();\n const appScope = useAppScopeSafe();\n const { navigationLayout, currentBreakpoint } = useUI();\n // The measured content area, for the same collapse question the resolver and the renderer ask.\n const { contentAreaWidth } = useNavigationState();\n\n // Extract URL parameters from React Router\n const urlParameters = useParams<Record<string, string>>() as Record<string, string>;\n\n // Validate URL parameters before allowing router-sync to reconstruct\n // navigation state from them. Invalid/placeholder params should render the\n // error surface without repopulating resource navigation entries underneath.\n const validation = React.useMemo(\n () => validateUrlParameters(urlParameters, resourceType),\n [urlParameters, resourceType]\n );\n\n // Sync URL changes with navigation state\n // Pass routePathParameters so useRouterSync can build parentResourcesRequirements\n useRouterSync(\n validation.isValid ? resourceType : undefined,\n validation.isValid ? operation : undefined,\n routePathParameters\n );\n\n // The diagnostic goes to the console only: a reader is shown the not-found page, not a developer's sentence.\n React.useEffect(() => {\n if (!validation.isValid && validation.message) {\n logger.warn(`[AppRouter] ${validation.message}`, {\n resourceType,\n operation: String(operation.operationIdentifier),\n invalidParams: validation.invalidParams,\n errorType: validation.errorType,\n url: window.location.href,\n });\n }\n }, [validation.isValid, validation.message, validation.errorType, validation.invalidParams, resourceType, operation.operationIdentifier]);\n\n // Build parentResourcesRequirements from route path parameters. Above the not-found return below, with every other\n // hook: a hook after an early return changes the hook count when the same mounted route turns valid or invalid.\n const parentResourcesRequirements = React.useMemo(() =>\n frontendResourceUtils.buildParentResourcesRequirementsFromRouteParams(\n routePathParameters,\n resourceType,\n registry\n ),\n [routePathParameters, resourceType, registry]\n );\n\n // A URL that addresses no resource is a page that does not exist: the application's own not-found surface.\n if (!validation.isValid) {\n return <RouterErrorBoundary />;\n }\n\n // Convert URL parameters to resource identifiers map using the registry\n // Pass routePathParameters for accurate FK field mapping (e.g., assignedToUserId → USERS)\n const urlContextIdentifiers = frontendResourceUtils.extractResourceIdentifiersFromUrlParams(\n urlParameters,\n registry,\n routePathParameters\n );\n\n const targetPrimaryScope = registry.resourceConfigurations?.[resourceType]?.resourcePrimaryScope;\n const contextResourceIdentifiers = ScopeUtilsService.buildResourceOperationContextIdentifiers({\n currentUserId: appScope?.currentUserId,\n currentOrganizationId: appScope?.currentOrganizationId,\n currentApplicationId: appScope?.currentApplicationId,\n currentAnonymousUserId: appScope?.currentAnonymousUserId,\n primaryScope: targetPrimaryScope,\n liveAppScopeContextResourceIdentifiers: appScope?.buildContextResourceIdentifiers?.(),\n explicitContextResourceIdentifiers: urlContextIdentifiers,\n });\n\n // Create the frontend resource operation context with parentResourcesRequirements\n const resourceContext = frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType,\n operation,\n contextResourceIdentifiers,\n parentResourcesRequirements,\n });\n\n const resourceRelationshipDepth = NavigationUtils.calculateResourceRelationshipDepth(parentResourcesRequirements);\n /*\n * Same three inputs `useRouterSync` uses, and for the same reason: a routed page and the live\n * navigation stack must not disagree about which zone owns a flat detail. `prefersAdjacentZoneForDetail`\n * was missing here entirely, so this wrapper answered PRIMARY for every depth-0 resource even in a\n * layout that splits its detail out — the routed page's props then contradicted the stack that the\n * URL sync had just built beside it.\n */\n const prefersAdjacentZoneForDetail = resourceRelationshipDepth === 0\n && !!navigationLayout?.zones?.secondary\n && NavigationUtils.layoutSplitsOperationFromPrimary(navigationLayout, operation, currentBreakpoint);\n const depthPreferredNavigationZone = NavigationUtils.resolveResourceTargetZone(resourceRelationshipDepth, {\n hasSecondary: !!navigationLayout?.zones?.secondary,\n hasCompanion: !!navigationLayout?.zones?.companion,\n prefersAdjacentZoneForDetail,\n });\n /*\n * A nested record stays in its depth's pane only when a click from its parent's zone would open it there — the\n * same gate `useRouterSync` applies (#3764), so the page props and the restored stack name one zone.\n */\n const preferredNavigationZone = resourceRelationshipDepth >= 1\n && depthPreferredNavigationZone !== NavigationZoneName.PRIMARY\n && clickKeepsRestoredContentInPrimary({\n content: { contentType: NavigationContentType.RESOURCE_OPERATION, resourceContext },\n paneZone: depthPreferredNavigationZone,\n layout: navigationLayout,\n registry,\n viewport: currentBreakpoint,\n contentAreaWidth,\n })\n ? NavigationZoneName.PRIMARY\n : depthPreferredNavigationZone;\n /*\n * ─── The VIEWPORT decides here too, for the reason the comment below already gives ─────────────\n *\n * `resolveResourceTargetZone` takes no viewport, so every caller applies the collapse itself.\n * There are exactly two, and when the collapse was added to the URL-sync caller on 2026-09-25 this\n * one was left behind — in the pass whose whole subject was an invariant applied at some of its\n * sites. On a phone URL sync restores a depth-1 resource into PRIMARY while this wrapper still\n * handed the page `navigationZone: SECONDARY`, so every zone-keyed affordance in it answered for a\n * zone the content is not in. Precisely the disagreement the comment below warns about.\n */\n const navigationZone = adjacentZoneUsableAtViewport({\n zone: preferredNavigationZone,\n layout: navigationLayout,\n viewport: currentBreakpoint,\n contentAreaWidth,\n })\n ? preferredNavigationZone\n : NavigationZoneName.PRIMARY;\n\n // Routed resource pages must receive the same owning zone as URL-sync restore.\n // Otherwise the rendered page props can disagree with the live navigation stack\n // after refresh/deep-link reconstruction.\n const navigationInitiator = {\n sourceZone: navigationZone,\n };\n\n return (\n <PageComponent\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n );\n};\n\n/**\n * Helper hook to look up a view's requiredFeatures from UIContext by viewRef and content type.\n * Returns undefined if the view has no requiredFeatures or if the view is not found.\n */\nfunction useViewRequiredFeatures(\n viewRef: string | undefined,\n contentType: NavigationContentType\n): RequiredFeaturesConfig | undefined {\n const { compositeViews, fullCustomViews, flowsActorsViews } = useUI();\n const { registry } = useResourceRegistry();\n\n return React.useMemo(() => {\n if (!viewRef) return undefined;\n\n switch (contentType) {\n case NavigationContentType.COMPOSITE_VIEW: {\n return resolveCompositeViewDefinition({\n viewRef,\n compositeViews,\n registry,\n })?.requiredFeatures;\n }\n case NavigationContentType.CHART_VIEW: {\n const insertedChart = resolveInsertedChartView({ viewRef, registry });\n return insertedChart?.chartView.chartDefinition.requiredFeatures;\n }\n case NavigationContentType.FULL_CUSTOM_VIEW: {\n const view = fullCustomViews?.find(v => v.ref === viewRef);\n return view?.requiredFeatures;\n }\n case NavigationContentType.FLOWS_ACTORS_VIEW: {\n const view = flowsActorsViews?.find(v => v.ref === viewRef);\n return view?.requiredFeatures;\n }\n case NavigationContentType.EXECUTION_VIEW: {\n const view = resolveExecutionViewDefinition({\n viewRef,\n registry,\n });\n return view?.requiredFeatures;\n }\n default:\n return undefined;\n }\n }, [viewRef, contentType, compositeViews, fullCustomViews, flowsActorsViews, registry]);\n}\n\n/**\n * Wrapper that extracts viewRef from URL params, syncs navigation state, and renders a View.\n * View components handle resolution from UIContext and not-found rendering internally.\n *\n * useViewRouterSync ensures that on refresh / deep link, the navigation state is populated\n * with the correct view content (similar to useRouterSync for resource operations).\n *\n * Includes FeatureRouteGuard: looks up the view's `requiredFeatures` from UIContext\n * and gates access based on the feature availability policy.\n */\nconst ViewRouteWrapper: React.FC<{\n ViewComponent: React.ComponentType<any>;\n contentType: NavigationContentType;\n viewProps?: Record<string, unknown>;\n}> = ({ ViewComponent, contentType, viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n useViewRouterSync(viewRef, contentType);\n\n // Look up view's requiredFeatures from UIContext\n const viewRequiredFeatures = useViewRequiredFeatures(viewRef, contentType);\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <ViewComponent viewRef={viewRef!} {...viewProps} />\n </FeatureRouteGuard>\n );\n};\n\nconst CompositeRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { compositeViews } = useUI();\n const { registry } = useResourceRegistry();\n const contextResourceIdentifiers = React.useMemo(\n () => extractCompositeRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const compositeView = React.useMemo(() => resolveCompositeViewDefinition({\n viewRef,\n compositeViews,\n registry,\n }), [viewRef, compositeViews, registry]);\n const isRoutableCompositeView = !!viewRef && isStandaloneRoutableResolvedCompositeView(compositeView);\n\n useViewRouterSync(\n isRoutableCompositeView ? viewRef : undefined,\n NavigationContentType.COMPOSITE_VIEW,\n );\n\n const viewRequiredFeatures = useViewRequiredFeatures(\n isRoutableCompositeView ? viewRef : undefined,\n NavigationContentType.COMPOSITE_VIEW,\n );\n if (!isRoutableCompositeView) {\n return <ViewNotFound viewKind=\"composite\" viewRef={viewRef} />;\n }\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <CompositeView\n viewRef={viewRef}\n contextResourceIdentifiers={contextResourceIdentifiers}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst ExecutionRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { registry } = useResourceRegistry();\n const executionView = React.useMemo(() => resolveExecutionViewDefinition({\n viewRef,\n registry,\n }), [viewRef, registry]);\n const contextResourceIdentifiers = React.useMemo(\n () => extractExecutionRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const isRoutableExecutionView =\n !!viewRef\n && !!executionView\n && isStandaloneRoutableExecutionView(executionView);\n\n useViewRouterSync(\n isRoutableExecutionView ? viewRef : undefined,\n NavigationContentType.EXECUTION_VIEW,\n );\n\n const viewRequiredFeatures = useViewRequiredFeatures(\n isRoutableExecutionView ? viewRef : undefined,\n NavigationContentType.EXECUTION_VIEW,\n );\n\n if (!isRoutableExecutionView) {\n return <ViewNotFound viewKind=\"execution\" viewRef={viewRef} />;\n }\n return (\n <FeatureRouteGuard requiredFeatures={viewRequiredFeatures}>\n <ExecutionView\n viewRef={viewRef}\n contextResourceIdentifiers={contextResourceIdentifiers}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst ChartRouteWrapper: React.FC<{\n viewProps?: Record<string, unknown>;\n}> = ({ viewProps }) => {\n const { viewRef } = useParams<{ viewRef: string }>();\n const location = useLocation();\n const { registry } = useResourceRegistry();\n const contextResourceIdentifiers = React.useMemo(\n () => extractChartRouteContextResourceIdentifiers(new URLSearchParams(location.search)),\n [location.search],\n );\n const urlParamValues = React.useMemo(\n () => extractChartRouteUrlParamValues(new URLSearchParams(location.search)),\n [location.search],\n );\n const resolvedChartRoute = React.useMemo(() => resolveChartRouteState({\n viewRef,\n registry,\n contextResourceIdentifiers,\n urlParamValues,\n }), [viewRef, registry, contextResourceIdentifiers, urlParamValues]);\n\n useChartViewRouterSync(resolvedChartRoute);\n\n if (!resolvedChartRoute) {\n return <ViewNotFound viewKind=\"chart\" viewRef={viewRef} />;\n }\n\n return (\n <FeatureRouteGuard requiredFeatures={resolvedChartRoute.requiredFeatures}>\n <ChartView\n viewRef={resolvedChartRoute.routeViewRef}\n viewDefinition={resolvedChartRoute.viewDefinition}\n contextResourceIdentifiers={resolvedChartRoute.contextResourceIdentifiers}\n urlParamValues={resolvedChartRoute.urlParamValues}\n runtimeDescriptor={resolvedChartRoute.runtimeDescriptor}\n {...viewProps}\n />\n </FeatureRouteGuard>\n );\n};\n\nconst EnginePageRouteWrapper: React.FC<{\n pageRef: EnginePageRef;\n PageComponent: React.FC;\n}> = ({ pageRef, PageComponent }) => {\n useEnginePageRouterSync(pageRef);\n return <PageComponent />;\n};\n\n/**\n * Route element for the unified Settings Hub paths (`/settings`,\n * `/settings/:sectionRef`). The hub itself is an overlay reconciled from the URL\n * by `useSettingsHubOverlaySync` (mounted once in `NavigationContentAreas`), so\n * this element only renders the PRIMARY underlay shown on a cold deep-link\n * (`AppLayout_Home`). In-session, the persisted PRIMARY surface stays beneath the\n * hub, so this fallback is ignored.\n */\nconst SettingsRouteWrapper: React.FC = () => <AppLayout_Home />;\n\n/**\n * The route element of a public governed-document page: the release a link named, read from the query string, handed\n * to the page (#3187). The page stays free of the router; this is the one place the URL is read.\n */\nfunction PublicGovernedDocumentRoute({ documentRef }: { readonly documentRef: string }): React.JSX.Element {\n const [searchParams] = useSearchParams();\n const namedRelease = readPublicGovernedDocumentReleaseQuery(searchParams);\n return <PublicLayout_Terms documentRef={documentRef} {...(namedRelease ? { namedRelease } : {})} />;\n}\n\nexport const AppRouter: React.FC = () => {\n const { registry } = useResourceRegistry();\n const isDevelopment = envLoader.isDevelopment();\n\n // Build resource-based routes for authenticated area\n const resourceRouteElements: React.ReactElement[] = [];\n\n Object.values<AnyFrontendResourceConfiguration>(registry.resourceConfigurations).forEach(rc => {\n const operations = Array.isArray(rc.operations) ? rc.operations : [];\n operations.forEach(operation => {\n // Only add routes for operations that are addressable in the current frontend app\n if (!isOperationAddressable(operation.operationFrontendConfig)) return;\n const routePaths = ResourcesConfigOperationsUrlsBuilderUtils.buildOperationFrontendRoutePaths(rc, operation, registry.allResourceFieldIdentifiers);\n const layoutKind = resolveResourceOperationLayoutKind(operation);\n\n // Determine which ResourcePage component to use\n let PageComponent: React.ComponentType<{\n resourceContext: FrontendResourceOperationContext;\n }>;\n\n switch (layoutKind) {\n case 'create': PageComponent = ResourceLayout_Create; break;\n case 'list': PageComponent = ResourceLayout_List; break;\n case 'read': PageComponent = ResourceLayout_Read; break;\n case 'update': PageComponent = ResourceLayout_Update; break;\n case 'search': PageComponent = ResourceLayout_Search; break;\n default: PageComponent = ResourceLayout_Action; break;\n }\n\n // Create routes for all possible parent combinations\n routePaths.forEach((routePath, pathIndex) => {\n const element = (\n <FeatureRouteGuard operation={operation}>\n <ResourcePageWrapper\n resourceType={rc.resourceIdentifier}\n operation={operation}\n PageComponent={PageComponent}\n routePathParameters={routePath.parameters}\n />\n </FeatureRouteGuard>\n );\n\n const routeKey = `${rc.resourceIdentifier}-${String(operation.operationIdentifier)}-${pathIndex}`;\n resourceRouteElements.push(\n <Route key={routeKey} path={routePath.url} element={element} errorElement={<RouterErrorBoundary />} />\n );\n });\n });\n });\n\n return (\n <>\n <NavigationRequestBridge />\n <Routes>\n {/* ========================================\n PUBLIC ROUTES - No authentication required\n ======================================== */}\n\n {/* OAuth2 callback — shared across all app types */}\n <Route\n path={CommonRoutePaths.authCallback}\n element={<AuthPage_AuthCallback />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Federated re-authentication landing, inside the step-up dialog's popup (#1441) */}\n <Route\n path={CommonRoutePaths.reAuthenticationCallback}\n element={<AuthPage_ReAuthenticationCallback />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Magic link verification — shared across all app types */}\n <Route\n path={CommonRoutePaths.magicLinkVerify}\n element={<AuthPage_MagicLinkVerify />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* MFA challenge — shared across all app types, serves all first-factor methods */}\n <Route\n path={CommonRoutePaths.mfaChallenge}\n element={<AuthPage_MfaChallenge />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* MFA enrollment required — shown when MFA is mandated but user has no enrolled methods */}\n <Route\n path={CommonRoutePaths.enrollmentRequired}\n element={<AuthPage_EnrollmentRequired />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Organization onboarding — an account parked at ONBOARDING_PENDING names the organization it owes (#1090) */}\n <Route\n path={CommonRoutePaths.organizationOnboarding}\n element={<AuthPage_OrganizationOnboarding />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* One-off session exchange — shared across all app types */}\n <Route\n path={CommonRoutePaths.oneOffSession}\n element={<AuthPage_OneOffSession />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* File-upload-grant drop page — public, the grant token in the URL is the only credential */}\n <Route\n path={CommonRoutePaths.fileUploadGrant}\n element={<FilesPage_UploadGrant />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Cross-frontend handoff exchange landing — cross-app-jwt-propagation Step 5 */}\n <Route\n path={CommonRoutePaths.authExchange}\n element={<AuthPage_AuthExchange />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/*\n * Public governed-document pages. Issue #168.\n *\n * Both paths have been declared in `CommonRoutePaths` since the compliance vocabulary\n * landed, and NEITHER was mounted — `/privacy` and `/terms` answered the not-found route in\n * every application, while the component they name had no implementation at all.\n *\n * One component serves both: it takes the document ref as a prop and reads the application's\n * own `compliance.publicDocuments`, so an application adding a third public document adds a\n * route rather than a component. A document never released shows its latest draft, marked\n * as a draft. Otherwise it fails CLOSED — nothing in force renders an unavailable notice,\n * never a partial document.\n *\n * Whether an unapproved release may be shown is NOT decided here. It is the application's\n * approval gate, `compliance.governedDocumentApprovalGate`, which the page reads alongside\n * every acceptance surface so the page cannot be armed alone (#1565). It used to be a prop\n * this route declined to pass. Arming it is part of Gate 3's membership test (\"an application\n * may face a real user\") — see `.claude/rules/one-source-of-truth.md` D5.\n */}\n {/*\n * Mounted FROM the pairing rather than beside it. `PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS` is\n * total over `PUBLIC_GOVERNED_DOCUMENT_REFS`, and the registration form reads the same map to\n * link a required document to the page that renders it — so the two readers cannot disagree,\n * and a third public document gets its route by joining the vocabulary.\n */}\n {Object.entries(PUBLIC_GOVERNED_DOCUMENT_ROUTE_PATHS).map(([documentRef, path]) => (\n <Route\n key={documentRef}\n path={path}\n element={<PublicGovernedDocumentRoute documentRef={documentRef} />}\n errorElement={<RouterErrorBoundary />}\n />\n ))}\n {/*\n * The legal notice (imprint), #2588. Mounted for every application, from the same atom the marketing website links\n * it from: the page itself says when the operator owes none, so a link followed in error lands on a statement\n * rather than a 404.\n */}\n <Route path={LEGAL_NOTICE_ROUTE_PATH} element={<PublicLayout_LegalNotice />} errorElement={<RouterErrorBoundary />} />\n\n {/* Public auth routes — always present; auth behavior is driven by AppConfiguration_Shared.auth */}\n <Route\n path={CommonRoutePaths.login}\n element={<AuthPage_Main />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.register}\n element={<AuthPage_Register />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.passwordLost}\n element={<AuthPage_PasswordLost />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthConsent}\n element={<AuthPage_OAuthConsent />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* Chat-link page (#2660): public, self-redirects to sign in; links a chat account on explicit confirmation. */}\n <Route\n path={CommonRoutePaths.chatIdentityLink}\n element={<AuthPage_ChatIdentityLink />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthLoggedOut}\n element={<AuthPage_OAuthLoggedOut />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.oauthLogoutConfirm}\n element={<AuthPage_OAuthLogoutConfirm />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.invitation}\n element={<AuthPage_Invitation />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.confirmEmail}\n element={<AuthPage_ConfirmEmail />}\n errorElement={<RouterErrorBoundary />}\n />\n\n\n\n\n\n\n {/* ========================================\n AUTHENTICATED ROUTES - Wrapped with MainContainer\n Uses Layout Route pattern for consistent shell\n ======================================== */}\n <Route element={<AppLayout_AuthenticatedRoute />} errorElement={<RouterErrorBoundary />}>\n {/* Home route */}\n <Route\n path={CommonRoutePaths.home}\n element={<EnginePageRouteWrapper pageRef={EnginePageRef.HOME} PageComponent={AppLayout_Home} />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* The engine's decision inbox (#2527): mounted for every application; its row is offered where a decision can wait. */}\n <Route\n path={CommonRoutePaths.decisions}\n element={<EnginePageRouteWrapper pageRef={EnginePageRef.DECISIONS} PageComponent={AppLayout_DecisionInbox} />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* Unified Settings Hub — overlay reconstructed from URL. `/settings/security`\n now opens the hub at its Security section (the standalone security page is\n migrated into the hub as a panel). */}\n <Route\n path={CommonRoutePaths.settings}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path={CommonRoutePaths.settingsSection}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n {/* `/settings/:sectionRef/:subTabRef` — the same wrapper: the hub is reconstructed from the\n URL by `useSettingsHubOverlaySync`, so this route exists to MATCH the deeper path rather\n than to render anything different. Without it the path fell through to the router's\n catch-all and the overlay was never reconciled. */}\n <Route\n path={CommonRoutePaths.settingsSectionSubTab}\n element={<SettingsRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* View routes — View components resolve definitions from UIContext internally */}\n <Route\n path=\"/composite/:viewRef\"\n element={<CompositeRouteWrapper />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/custom/:viewRef\"\n element={<ViewRouteWrapper ViewComponent={FullCustomView} contentType={NavigationContentType.FULL_CUSTOM_VIEW} />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/flows-actors/:viewRef\"\n element={<ViewRouteWrapper ViewComponent={FlowsActorsView} contentType={NavigationContentType.FLOWS_ACTORS_VIEW} />}\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/execution/:viewRef\"\n element={\n <ExecutionRouteWrapper\n viewProps={{ navigationZone: NavigationZone.PRIMARY }}\n />\n }\n errorElement={<RouterErrorBoundary />}\n />\n <Route\n path=\"/chart/:viewRef\"\n element={\n <React.Suspense fallback={<div style={{ padding: '2rem', textAlign: 'center', color: 'var(--muted-foreground, #737373)' }}>Loading chart...</div>}>\n <ChartRouteWrapper />\n </React.Suspense>\n }\n errorElement={<RouterErrorBoundary />}\n />\n\n {/* Resource routes - nested inside authenticated layout */}\n {resourceRouteElements}\n </Route>\n\n {/* Fallback - handled by RouterErrorBoundary */}\n <Route\n path=\"*\"\n element={<RouterErrorBoundary />}\n />\n </Routes>\n </>\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserOrgsContext.d.ts","sourceRoot":"","sources":["../../../../src/core/security/UserOrgsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA2B,SAAS,EAAuD,MAAM,OAAO,CAAC;AACvH,OAAO,EACL,WAAW,EACX,mBAAmB,EAMnB,6BAA6B,EAC7B,WAAW,
|
|
1
|
+
{"version":3,"file":"UserOrgsContext.d.ts","sourceRoot":"","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IACzC,wBAAwB,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAG/D,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAG5B;;;;OAIG;IACH,sBAAsB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD;;;;;;OAMG;IACH,uBAAuB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7D,sBAAsB,EAAE,MAAM,mBAAmB,GAAG,IAAI,CAAC;IACzD,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAG1C,UAAU,EAAE,MAAM,WAAW,GAAG,IAAI,CAAC;IAErC;;;;;;;;;;;;OAYG;IACH,qBAAqB,EAAE,CAAC,eAAe,EAAE,SAAS,cAAc,EAAE,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;CAC7F;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAA6D,CAAC;AAEzI,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAwkC9D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useState, useMemo, useEffect, useCallback, useRef, useContext } from 'react';
|
|
3
|
-
import { CoreResourceType, ResourcesConfig_OperationPathUtils, CoreResourceOperation, ResourceOperationVariantType, OPERATION_VARIANT_KEY, SessionType, normalizeConsentPurposes, UserSelf_Operations, } from '@wildo-ai/saas-models';
|
|
3
|
+
import { CoreResourceType, ResourcesConfig_OperationPathUtils, CoreResourceOperation, ResourceOperationVariantType, OPERATION_VARIANT_KEY, SessionType, normalizeConsentPurposes, isReadShapedOperation, UserSelf_Operations, } from '@wildo-ai/saas-models';
|
|
4
4
|
import { useResourceRegistry } from '../../core/resources/useResourceRegistry.js';
|
|
5
5
|
import { LoggerFrontendService } from '../../core/monitoring/logger.frontend.service.js';
|
|
6
6
|
import { useEventBus } from '../../core/events/useEventBus.js';
|
|
@@ -41,7 +41,7 @@ const RESTORE_RETRY_MAX_DELAY_MS = 30_000;
|
|
|
41
41
|
export const UserOrgsContext = createContext(undefined);
|
|
42
42
|
export const UserOrgsProvider = ({ children }) => {
|
|
43
43
|
const { doOperation, registry } = useResourceRegistry();
|
|
44
|
-
const { emit } = useEventBus();
|
|
44
|
+
const { emit, on } = useEventBus();
|
|
45
45
|
// Consume auth session context
|
|
46
46
|
const authSession = useAuthSession();
|
|
47
47
|
const { auth, tokenStorage, identifyByEmail, authenticateWithPassword, authenticate, getSessionState, isAuthenticated, logout: authLogout, endSession, getSessionEstablishment, getSessionEndReason, initiateOAuth2Login, handleAuthCodeExchange, markSessionRestored, setSessionRestoring, connectWebSocket, } = authSession;
|
|
@@ -65,6 +65,13 @@ export const UserOrgsProvider = ({ children }) => {
|
|
|
65
65
|
const [organizations, setOrganizations] = useState([]);
|
|
66
66
|
const [permissions, setPermissions] = useState(null);
|
|
67
67
|
const [privacy, setPrivacy] = useState(null);
|
|
68
|
+
/**
|
|
69
|
+
* The latest request that may set the person's preferences in state: `recordConsentDecision`'s write and
|
|
70
|
+
* `refreshOwnPreferences`' read each take a number, and only the latest one applies its answer (#1973 review). Two
|
|
71
|
+
* requests resolving in the reverse order would otherwise let an older grant land after a newer withdrawal and start a
|
|
72
|
+
* consent-based provider again, which is the open direction for a consent control.
|
|
73
|
+
*/
|
|
74
|
+
const preferencesRequestRef = useRef(0);
|
|
68
75
|
/**
|
|
69
76
|
* The TENANT's half of the payload, derived from its preferences record rather than passed
|
|
70
77
|
* alongside it (#410).
|
|
@@ -769,6 +776,7 @@ export const UserOrgsProvider = ({ children }) => {
|
|
|
769
776
|
// this callback it would re-render every `useUserOrgs` consumer.
|
|
770
777
|
const buildScopeContextualParameters = appScope.buildContextualParameters;
|
|
771
778
|
const recordConsentDecision = useCallback(async (grantedPurposes) => {
|
|
779
|
+
const request = ++preferencesRequestRef.current;
|
|
772
780
|
const operation = registry.resourceConfigurations[CoreResourceType.USER_SELF_PREFERENCES]?.operations.find((candidate) => candidate.operationIdentifier === CoreResourceOperation.UPDATE
|
|
773
781
|
&& candidate.isOperationDefault === true
|
|
774
782
|
&& candidate.isBulkOperation !== true
|
|
@@ -791,12 +799,16 @@ export const UserOrgsProvider = ({ children }) => {
|
|
|
791
799
|
if (!storedPrivacy) {
|
|
792
800
|
throw new Error('Consent decision was written but the response carried no privacy block');
|
|
793
801
|
}
|
|
794
|
-
|
|
795
|
-
//
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
802
|
+
// A later preferences request owns the STATE (see `preferencesRequestRef`); this decision is stored all the same, is
|
|
803
|
+
// returned to its caller, and still re-loads the organizations below, which do not depend on who owns the state.
|
|
804
|
+
if (request === preferencesRequestRef.current) {
|
|
805
|
+
setPrivacy(storedPrivacy);
|
|
806
|
+
// Updating the user's preferences record re-emits USER_PREFERENCES_CHANGED through the effect
|
|
807
|
+
// above, which is how the analytics provider learns the new set without a second channel.
|
|
808
|
+
setUser((previous) => previous
|
|
809
|
+
? { ...previous, userSelfPreferences: { ...(previous.userSelfPreferences ?? {}), privacy: storedPrivacy } }
|
|
810
|
+
: previous);
|
|
811
|
+
}
|
|
800
812
|
// While a required purpose was missing the backend refused this person's organization reads, so
|
|
801
813
|
// session restore may have loaded none (#534 re-review N1). Re-load them now that the decision is
|
|
802
814
|
// stored; a failure leaves the decision recorded and is retried on the next restore.
|
|
@@ -807,6 +819,47 @@ export const UserOrgsProvider = ({ children }) => {
|
|
|
807
819
|
}
|
|
808
820
|
return storedPrivacy;
|
|
809
821
|
}, [buildScopeContextualParameters, doOperation, registry, organizations.length, refreshOrganizations]);
|
|
822
|
+
/**
|
|
823
|
+
* Take in the person's own preferences after a write made by a surface OTHER than `recordConsentDecision` (#1973).
|
|
824
|
+
*
|
|
825
|
+
* The Preferences page is the generic resource form over `userSelfPreferences`, and it writes through the ordinary
|
|
826
|
+
* UPDATE, not through this provider. Until this existed nothing told the provider about that write, so `privacy`
|
|
827
|
+
* kept the value the page loaded with: an ANALYTICS grant made there did not start the consent-based providers
|
|
828
|
+
* (`ConsentBasedProviderSdksProvider` reads `privacy` through `useGrantedConsentPurposes`), and a WITHDRAWAL did not
|
|
829
|
+
* stop a provider already running, which kept capturing and kept its browser storage until a reload or a sign-out.
|
|
830
|
+
* Measured in a real browser against Wonder Todos with PostHog, 2026-11-16.
|
|
831
|
+
*
|
|
832
|
+
* The record is READ again rather than taken from the event: the event carries the operation, not the stored row,
|
|
833
|
+
* and the server's answer is what decided (`consentDecidedAt` is the server's instant, never the client's claim). The
|
|
834
|
+
* same two updates `recordConsentDecision` makes then follow: `privacy`, and the person's preferences, whose effect
|
|
835
|
+
* re-emits `USER_PREFERENCES_CHANGED` to the language, regional and theme contexts too.
|
|
836
|
+
*/
|
|
837
|
+
const refreshOwnPreferences = useCallback(async () => {
|
|
838
|
+
const readOperation = findDefaultApiReadOperation(registry.resourceConfigurations[CoreResourceType.USER_SELF_PREFERENCES]);
|
|
839
|
+
if (!readOperation)
|
|
840
|
+
return;
|
|
841
|
+
const request = ++preferencesRequestRef.current;
|
|
842
|
+
const stored = await doOperation(ResourcesConfig_OperationPathUtils.buildOperationPathKeyFromOperation(readOperation),
|
|
843
|
+
// Above `ScopedResourceRegistryProvider`, so the user id the route is addressed by is supplied here, as in
|
|
844
|
+
// `recordConsentDecision`.
|
|
845
|
+
{ contextualParameters: buildScopeContextualParameters() });
|
|
846
|
+
// An older answer than a request started since: the newer one decides (see `preferencesRequestRef`).
|
|
847
|
+
if (!stored || request !== preferencesRequestRef.current)
|
|
848
|
+
return;
|
|
849
|
+
// A record with no privacy block grants nothing: an absent decision must stop a running consent-based provider, not
|
|
850
|
+
// keep the grant this page held before (#1973 review). `consentDecidedAt` stays absent, as it is on such a record.
|
|
851
|
+
const storedPrivacy = stored.privacy ?? { consentedPurposes: [] };
|
|
852
|
+
setPrivacy(storedPrivacy);
|
|
853
|
+
setUser((previous) => previous
|
|
854
|
+
? { ...previous, userSelfPreferences: { ...(previous.userSelfPreferences ?? {}), ...stored, privacy: storedPrivacy } }
|
|
855
|
+
: previous);
|
|
856
|
+
}, [buildScopeContextualParameters, doOperation, registry]);
|
|
857
|
+
useEffect(() => on(FrontendEvents.RESOURCE_OPERATION_EXECUTED, () => {
|
|
858
|
+
void refreshOwnPreferences().catch((error) => {
|
|
859
|
+
logger.warn('The preferences could not be read again after they were written', { error });
|
|
860
|
+
});
|
|
861
|
+
}, (payload) => payload.resourceType === CoreResourceType.USER_SELF_PREFERENCES
|
|
862
|
+
&& !isReadShapedOperation(payload.operation ?? { operationIdentifier: payload.operationIdentifier })), [on, refreshOwnPreferences]);
|
|
810
863
|
/**
|
|
811
864
|
* Logout wrapper that also clears user/org data
|
|
812
865
|
*/
|