Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(frontend): add a layer check that blocks new upward imports (#126261)

Paul D'Ambraf4a94ca32e8d
diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml
index 03a68aabc453..a09f439da4ff 100644
--- a/.github/workflows/ci-frontend.yml
+++ b/.github/workflows/ci-frontend.yml
@@ -778,6 +778,16 @@ jobs:
- name: Validate SetupTaskId completions
run: node bin/validate-setup-tasks.mjs
+ # Warn-only until the baseline has settled on master; then drop continue-on-error.
+ - name: Check frontend layer imports
+ continue-on-error: true
+ run: |
+ if [ ! -f frontend/bin/check-layers.mjs ]; then
+ echo "Skipping frontend layer check, script not present on this checkout"
+ exit 0
+ fi
+ node frontend/bin/check-layers.mjs
+
# A field removed from a model that a cached query response stores makes every old
# cache entry that holds it fail to parse. The author acknowledges the removal with a
# cache-impact label, which is read live so a re-run of this job sees a new label.
diff --git a/frontend/bin/check-layers.mjs b/frontend/bin/check-layers.mjs
new file mode 100644
index 000000000000..ae9836be8dfb
--- /dev/null
+++ b/frontend/bin/check-layers.mjs
@@ -0,0 +1,241 @@
+#!/usr/bin/env node
+// Blocks a new static import from a lower frontend layer into a higher one (see layers.mjs).
+//
+// node frontend/bin/check-layers.mjs check against the baseline
+// node frontend/bin/check-layers.mjs --prune-baseline drop fixed entries, never add one
+// node frontend/bin/check-layers.mjs --update-baseline rewrite the baseline, new debt included
+// node frontend/bin/check-layers.mjs --html <file> write an interactive view of the graph
+import fs from 'node:fs'
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+
+import { esbuildBuild } from '@posthog/esbuilder'
+
+import { AUTHENTICATED_SHELL, BOOT_ENTRIES } from './bootEntries.mjs'
+import { renderLayerGraphHtml } from './layerGraphHtml.mjs'
+import { findOpportunities } from './layerOpportunities.mjs'
+import { LAYERS, isUpward, layerOf } from './layers.mjs'
+
+const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..')
+const baselinePath = path.join(repoRoot, 'frontend', 'bin', 'layer-baseline.txt')
+const BASELINE_HEADER = `# Static imports from a lower frontend layer into a higher one (see frontend/bin/layers.mjs).
+# Grandfathered debt: the check fails on an upward import that is NOT listed here.
+#
+# DO NOT EDIT BY HAND. Mechanical output of \`hogli lint:frontend-layers --update-baseline\`.
+# Fixed one? Run \`hogli lint:frontend-layers --prune-baseline\` to drop it.
+`
+
+// Path aliases resolve through tsconfig; anything else that is not relative is a package, and packages
+// are outside the layer map.
+const ALIAS_PREFIXES = ['lib/', 'scenes/', '~/', 'products/', 'public/', '@posthog/', '@common/']
+const ASSET_EXTENSIONS = [
+ '.css',
+ '.scss',
+ '.svg',
+ '.png',
+ '.jpg',
+ '.jpeg',
+ '.gif',
+ '.webp',
+ '.avif',
+ '.ico',
+ '.woff',
+ '.woff2',
+ '.ttf',
+ '.otf',
+ '.eot',
+ '.mp3',
+ '.mp4',
+ '.wav',
+ '.ogg',
+ '.lottie',
+ '.riv',
+ '.json',
+ '.md',
+ '.txt',
+ '.html',
+ '.yaml',
+ '.yml',
+ '.csv',
+ '.wasm',
+ '.bin',
+ '.gz',
+ '.zip',
+ '.glb',
+ '.gltf',
+]
+
+const externalizePackages = {
+ name: 'externalize-packages',
+ setup(build) {
+ build.onResolve({ filter: /\?[a-z]+$/ }, (args) => ({ path: args.path, external: true }))
+ build.onResolve({ filter: /^[^./]/ }, async (args) => {
+ if (args.pluginData?.resolvingAlias) {
+ return undefined
+ }
+ if (ALIAS_PREFIXES.some((prefix) => args.path.startsWith(prefix))) {
+ const resolved = await build.resolve(args.path, {
+ kind: args.kind,
+ resolveDir: args.resolveDir,
+ importer: args.importer,
+ pluginData: { resolvingAlias: true },
+ })
+ if (!resolved.errors.length && !resolved.path.includes('/node_modules/')) {
+ return resolved
+ }
+ }
+ return { path: args.path, external: true }
+ })
+ },
+}
+
+async function readImportGraph() {
+ const result = await esbuildBuild({
+ absWorkingDir: repoRoot,
+ entryPoints: BOOT_ENTRIES.map((entry) => `frontend/${entry}`),
+ tsconfig: path.join(repoRoot, 'tsconfig.json'),
+ bundle: true,
+ splitting: true,
+ format: 'esm',
+ jsx: 'automatic',
+ write: false,
+ metafile: true,
+ outdir: path.join(repoRoot, 'frontend', '.layer-check-out'),
+ logLevel: 'silent',
+ loader: Object.fromEntries(ASSET_EXTENSIONS.map((extension) => [extension, 'empty'])),
+ plugins: [externalizePackages],
+ })
+ const files = {}
+ for (const [file, input] of Object.entries(result.metafile.inputs)) {
+ files[file] = {
+ bytes: input.bytes,
+ staticImports: input.imports
+ .filter((i) => i.kind === 'import-statement' && !i.external && !isAssetPath(i.path))
+ .map((i) => i.path),
+ }
+ }
+ return files
+}
+
+// The `empty` loader keeps asset files out of the bundle, but esbuild still records the import edge
+// in the metafile. An asset carries no feature code, so it must not count as an upward import.
+function isAssetPath(importPath) {
+ return ASSET_EXTENSIONS.includes(path.extname(importPath).toLowerCase())
+}
+
+function staticReach(files, root) {
+ const parentOf = new Map([[root, null]])
+ const queue = [root]
+ while (queue.length) {
+ const file = queue.shift()
+ for (const target of files[file]?.staticImports ?? []) {
+ if (!parentOf.has(target)) {
+ parentOf.set(target, file)
+ queue.push(target)
+ }
+ }
+ }
+ return parentOf
+}
+
+function chainTo(parentOf, file) {
+ const chain = []
+ for (let current = file; current; current = parentOf.get(current)) {
+ chain.unshift(current)
+ }
+ return chain
+}
+
+function upwardImports(files) {
+ const edges = []
+ for (const [from, { staticImports }] of Object.entries(files)) {
+ for (const to of staticImports) {
+ if (isUpward(from, to)) {
+ edges.push(`${from} -> ${to}`)
+ }
+ }
+ }
+ return [...new Set(edges)].sort()
+}
+
+function readBaseline() {
+ if (!fs.existsSync(baselinePath)) {
+ return []
+ }
+ return fs
+ .readFileSync(baselinePath, 'utf8')
+ .split('\n')
+ .filter((line) => line && !line.startsWith('#'))
+}
+
+function writeBaseline(edges) {
+ fs.writeFileSync(baselinePath, BASELINE_HEADER + edges.map((edge) => `${edge}\n`).join(''))
+}
+
+function eagerBytesByLayer(files, reach) {
+ const totals = Object.fromEntries(LAYERS.map((layer) => [layer, 0]))
+ for (const file of reach.keys()) {
+ totals[layerOf(file)] += files[file]?.bytes ?? 0
+ }
+ return totals
+}
+
+const args = process.argv.slice(2)
+const htmlIndex = args.indexOf('--html')
+
+const files = await readImportGraph()
+const shellRoot = `frontend/${AUTHENTICATED_SHELL}`
+const shellReach = staticReach(files, shellRoot)
+const current = upwardImports(files)
+const baseline = readBaseline()
+const added = current.filter((edge) => !baseline.includes(edge))
+const fixed = baseline.filter((edge) => !current.includes(edge))
+
+const mib = (bytes) => `${(bytes / 2 ** 20).toFixed(2)} MiB`
+const eager = eagerBytesByLayer(files, shellReach)
+console.info(
+ `Upward imports: ${current.length} (${baseline.length} in the baseline, ${added.length} new, ${fixed.length} fixed)`
+)
+console.info(
+ `Shell eager graph by layer (source bytes): ${LAYERS.map((layer) => `${layer} ${mib(eager[layer])}`).join(', ')}`
+)
+
+if (htmlIndex !== -1) {
+ const htmlPath = path.resolve(args[htmlIndex + 1])
+ const opportunities = findOpportunities({ files, shellRoot, shellReach })
+ fs.writeFileSync(
+ htmlPath,
+ renderLayerGraphHtml({ files, shellRoot, shellReach, upward: current, layerOf, layers: LAYERS, opportunities })
+ )
+ console.info(`Wrote ${htmlPath}`)
+}
+
+if (args.includes('--update-baseline')) {
+ writeBaseline(current)
+ console.info(`Baseline rewritten with ${current.length} entries.`)
+ process.exit(0)
+}
+if (args.includes('--prune-baseline')) {
+ writeBaseline(baseline.filter((edge) => current.includes(edge)))
+ console.info(`Dropped ${fixed.length} fixed entries.`)
+ fixed.length = 0
+}
+
+for (const edge of added) {
+ const [from, to] = edge.split(' -> ')
+ console.info(`\nNew upward import, ${layerOf(from)} -> ${layerOf(to)}:\n ${edge}`)
+ if (shellReach.has(from)) {
+ console.info(
+ ` It puts ${layerOf(to)} code on the eager path of every logged-in page:\n ${chainTo(shellReach, from).join('\n -> ')}`
+ )
+ }
+ console.info(
+ ` Load it with lazyWithRetry() or retryImport(() => import(...)), or move the shared code down a layer.`
+ )
+}
+if (fixed.length) {
+ console.info(
+ `\n${fixed.length} baseline entries are fixed. Run \`hogli lint:frontend-layers --prune-baseline\` to lock in the win.`
+ )
+}
+process.exit(added.length || fixed.length ? 1 : 0)
diff --git a/frontend/bin/layer-baseline.txt b/frontend/bin/layer-baseline.txt
new file mode 100644
index 000000000000..588e30b4bc22
--- /dev/null
+++ b/frontend/bin/layer-baseline.txt
@@ -0,0 +1,714 @@
+# Static imports from a lower frontend layer into a higher one (see frontend/bin/layers.mjs).
+# Grandfathered debt: the check fails on an upward import that is NOT listed here.
+#
+# DO NOT EDIT BY HAND. Mechanical output of `hogli lint:frontend-layers --update-baseline`.
+# Fixed one? Run `hogli lint:frontend-layers --prune-baseline` to drop it.
+frontend/src/layout/ErrorProjectUnavailable.tsx -> frontend/src/scenes/organization/CreateOrganizationModal.tsx
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/authentication/two-factor-setup/TwoFactorSetupModal.tsx
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/billing/PaymentEntryModal.tsx
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/max/components/MaybePhaiOnboarding.tsx
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/organization/CreateOrganizationModal.tsx
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/project/CreateProjectModal.tsx
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/session-recordings/player/modal/sessionPlayerModalLogic.ts
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/settings/organization/InviteModal.tsx
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/settings/organization/inviteLogic.ts
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/themes/PreviewingCustomCssModal.tsx
+frontend/src/layout/GlobalModals.tsx -> frontend/src/scenes/welcome/WelcomeDialog.tsx
+frontend/src/layout/GlobalModals.tsx -> products/conversations/frontend/components/ComposeTicket/composeTicketLogic.ts
+frontend/src/layout/GlobalModals.tsx -> products/logs/frontend/components/LogsViewer/LogsViewerModal/logsViewerModalLogic.ts
+frontend/src/layout/GlobalModals.tsx -> products/tracing/frontend/components/TraceDialog/traceDialogLogic.ts
+frontend/src/layout/InternalFeedback/InternalFeedbackWidget.tsx -> frontend/src/toolbar/shared/product-tours/ElementHighlight.tsx
+frontend/src/layout/InternalFeedback/internalFeedbackLogic.ts -> frontend/src/toolbar/shared/utils.ts
+frontend/src/layout/navigation-3000/Navigation.tsx -> frontend/src/scenes/max/maxGlobalLogic.tsx
+frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/accessControlsLogic.ts -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/layout/navigation-3000/sidepanel/panels/access_control/accessControlLogic.ts -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/layout/navigation-3000/sidepanel/panels/access_control/roleAccessControlLogic.ts -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/layout/navigation-3000/sidepanel/panels/activity/quill/QuillActivityMemberFilter.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/layout/navigation-3000/sidepanel/panels/activity/quill/QuillActivitySubscribeMenu.tsx -> frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts
+frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.tsx -> products/notifications/frontend/resourceEditedLogic.ts
+frontend/src/layout/navigation-3000/sidepanel/panels/max/SidePanelMax.tsx -> frontend/src/scenes/max/maxLogic.tsx
+frontend/src/layout/navigation-3000/sidepanel/panels/support/SidePanelSupport.tsx -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/layout/navigation-3000/sidepanel/panels/support/SidePanelSupport.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/layout/navigation-3000/sidepanel/panels/support/SidePanelSupport.tsx -> products/conversations/frontend/components/SidePanel/SidePanelTickets.tsx
+frontend/src/layout/navigation-3000/sidepanel/panels/support/SidePanelSupport.tsx -> products/conversations/frontend/components/SidePanel/sidepanelTicketsLogic.ts
+frontend/src/layout/navigation-3000/sidepanel/sidePanelLogic.tsx -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/layout/navigation-3000/sidepanel/sidePanelTabs.tsx -> products/conversations/frontend/components/SidePanel/SidePanelSupportIcon.tsx
+frontend/src/layout/navigation/Breadcrumbs/breadcrumbsLogic.tsx -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/layout/navigation/ImpersonationNotice/impersonationNoticeLogic.ts -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/layout/navigation/projectNoticeLogic.tsx -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/layout/navigation/projectNoticeLogic.tsx -> frontend/src/scenes/activity/live/liveEventsLogic.tsx
+frontend/src/layout/navigation/projectNoticeLogic.tsx -> frontend/src/scenes/authentication/verify-email/verifyEmailLogic.ts
+frontend/src/layout/navigation/projectNoticeLogic.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/layout/navigation/projectNoticeLogic.tsx -> frontend/src/scenes/insights/EmptyStates/sampleDataStateLogic.ts
+frontend/src/layout/navigation/projectNoticeLogic.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/layout/navigation/projectNoticeLogic.tsx -> frontend/src/scenes/settings/organization/inviteLogic.ts
+frontend/src/layout/navigation/projectNoticeLogic.tsx -> frontend/src/scenes/welcome/productBranding.ts
+frontend/src/layout/panel-layout/DatabaseTree/DatabaseTree.tsx -> frontend/src/scenes/data-warehouse/editor/ConnectionSelector.tsx
+frontend/src/layout/panel-layout/DatabaseTree/DatabaseTree.tsx -> frontend/src/scenes/data-warehouse/editor/editorSizingLogic.tsx
+frontend/src/layout/panel-layout/DatabaseTree/DatabaseTree.tsx -> frontend/src/scenes/data-warehouse/editor/sidebar/DatabaseSearchField.tsx
+frontend/src/layout/panel-layout/DatabaseTree/DatabaseTree.tsx -> frontend/src/scenes/data-warehouse/editor/sidebar/QueryDatabase.tsx
+frontend/src/layout/panel-layout/DatabaseTree/DatabaseTree.tsx -> frontend/src/scenes/data-warehouse/editor/sqlEditorLogic.tsx
+frontend/src/layout/panel-layout/DatabaseTree/DatabaseTree.tsx -> products/data_warehouse/frontend/shared/components/ExpressionModal.tsx
+frontend/src/layout/panel-layout/DatabaseTree/DatabaseTree.tsx -> products/data_warehouse/frontend/shared/components/ViewLinkModal.tsx
+frontend/src/layout/panel-layout/DatabaseTree/SyncMoreNotice.tsx -> frontend/src/scenes/data-warehouse/editor/sidebar/queryDatabaseLogic.tsx
+frontend/src/layout/panel-layout/DatabaseTree/SyncMoreNotice.tsx -> products/data_warehouse/frontend/shared/components/SourceIcon.tsx
+frontend/src/layout/panel-layout/PanelLayout.tsx -> products/conversations/frontend/supportTicketCounterLogic.ts
+frontend/src/layout/panel-layout/ProjectTree/customIconRegistry.tsx -> products/conversations/frontend/components/SupportNavBadge/index.tsx
+frontend/src/layout/panel-layout/ProjectTree/menus/MenuItems.tsx -> frontend/src/scenes/settings/environment/GroupAnalyticsConfig.tsx
+frontend/src/layout/panel-layout/ProjectTree/menus/MenuItems.tsx -> frontend/src/scenes/settings/environment/groupAnalyticsConfigLogic.ts
+frontend/src/layout/panel-layout/ProjectTree/menus/MenuItems.tsx -> frontend/src/scenes/terminal/terminalDockLogic.ts
+frontend/src/layout/panel-layout/ProjectTree/menus/SessionReplayMenuItems.tsx -> frontend/src/scenes/session-recordings/collections/sessionRecordingCollectionsLogic.ts
+frontend/src/layout/panel-layout/ProjectTree/menus/SessionReplayMenuItems.tsx -> frontend/src/scenes/session-recordings/filters/sessionRecordingSavedFiltersLogic.ts
+frontend/src/layout/panel-layout/navbar/tabs/NavTabChat.tsx -> frontend/src/scenes/max/components/List/AiChatListItem.tsx
+frontend/src/layout/panel-layout/navbar/tabs/NavTabChat.tsx -> frontend/src/scenes/max/maxGlobalLogic.tsx
+frontend/src/layout/panel-layout/navbar/tabs/NavTabChat.tsx -> products/posthog_ai/frontend/api/logics.ts
+frontend/src/layout/panel-layout/navbar/tabs/NavTabChat.tsx -> products/posthog_ai/frontend/api/primitives.ts
+frontend/src/layout/panel-layout/navbar/tabs/navProductItems.ts -> frontend/src/scenes/data-management/definitionsSceneTabsLogic.tsx
+frontend/src/layout/panel-layout/navbar/tabs/navProductItems.ts -> frontend/src/scenes/onboarding/welcome/welcomeNavItem.ts
+frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.ts -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.ts -> frontend/src/scenes/settings/organization/aiConsentLogic.ts
+frontend/src/layout/scenes/components/SceneTitlePanelButton.tsx -> frontend/src/scenes/max/useMaxTool.ts
+frontend/src/layout/scenes/components/SceneTitleSection.tsx -> frontend/src/scenes/max/components/AnimatedSparkles.tsx
+frontend/src/layout/today/TodayAiPanel.tsx -> frontend/src/scenes/max/components/PhaiSidePanelChat.tsx
+frontend/src/layout/today/TodayAiPanel.tsx -> frontend/src/scenes/max/maxGlobalLogic.tsx
+frontend/src/layout/today/TodayAiPanel.tsx -> frontend/src/scenes/max/maxLogic.tsx
+frontend/src/layout/today/TodayAiPanel.tsx -> products/signals/frontend/inbox/inboxTaskKickoffLogic.ts
+frontend/src/layout/today/TodayAiPanel.tsx -> products/signals/frontend/inbox/logics/scoutAiLogic.ts
+frontend/src/layout/today/TodayAnalyticsSidebar.tsx -> frontend/src/scenes/analytics/AnalyticsPinButton.tsx
+frontend/src/layout/today/TodayAnalyticsSidebar.tsx -> frontend/src/scenes/analytics/AnalyticsSpaceGlyph.tsx
+frontend/src/layout/today/TodayAnalyticsSidebar.tsx -> frontend/src/scenes/analytics/AnalyticsTypeIcon.tsx
+frontend/src/layout/today/TodayAnalyticsSidebar.tsx -> frontend/src/scenes/analytics/analyticsListLogic.ts
+frontend/src/layout/today/TodayAnalyticsSidebar.tsx -> frontend/src/scenes/analytics/analyticsPinnedLogic.ts
+frontend/src/layout/today/TodayAnalyticsSidebar.tsx -> frontend/src/scenes/analytics/analyticsUtils.ts
+frontend/src/layout/today/TodayContextPanelMenu.tsx -> frontend/src/scenes/max/components/PhaiViewSwitchMenuItem.tsx
+frontend/src/layout/today/TodayContextPanelMenu.tsx -> products/posthog_ai/frontend/api/menus.ts
+frontend/src/layout/today/TodayNewAnalyticsButton.tsx -> frontend/src/scenes/analytics/NewAnalyticsMenu.tsx
+frontend/src/layout/today/TodayNewChatButton.tsx -> frontend/src/scenes/max/maxGlobalLogic.tsx
+frontend/src/layout/today/TodayObjectHoverCard.tsx -> frontend/src/scenes/library/libraryUtils.ts
+frontend/src/layout/today/TodayObjectHoverCard.tsx -> frontend/src/scenes/project-homepage/today/todayNumbers.ts
+frontend/src/layout/today/TodayPanelTaskMenuItems.tsx -> products/posthog_ai/frontend/api/menus.ts
+frontend/src/layout/today/TodayProductsAnalyticsHint.tsx -> frontend/src/scenes/analytics/AnalyticsTypeIcon.tsx
+frontend/src/layout/today/TodayProductsAnalyticsHint.tsx -> frontend/src/scenes/analytics/analyticsUtils.ts
+frontend/src/layout/today/TodaySessionBadges.tsx -> products/tasks/frontend/spaces/TaskPullRequestChip.tsx
+frontend/src/layout/today/TodaySessionBadges.tsx -> products/tasks/frontend/spaces/TaskUserAvatar.tsx
+frontend/src/layout/today/TodaySessionHandoffDialog.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/layout/today/TodaySessionHoverCard.tsx -> products/tasks/frontend/spaces/TaskPullRequestChip.tsx
+frontend/src/layout/today/TodaySessionHoverCard.tsx -> products/tasks/frontend/spaces/TaskUserAvatar.tsx
+frontend/src/layout/today/TodaySessionRow.tsx -> products/posthog_ai/frontend/api/logics.ts
+frontend/src/layout/today/TodaySettingsSidebar.tsx -> frontend/src/scenes/settings/settingsLogic.ts
+frontend/src/layout/today/TodaySettingsSidebar.tsx -> frontend/src/scenes/settings/settingsNavTree.ts
+frontend/src/layout/today/TodaySettingsSidebar.tsx -> frontend/src/scenes/settings/types.ts
+frontend/src/layout/today/TodaySupportPanel.tsx -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/layout/today/TodaySupportPanel.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/layout/today/TodaySupportPanel.tsx -> products/conversations/frontend/components/QuillSidePanel/QuillSupportTickets.tsx
+frontend/src/layout/today/TodaySupportPanel.tsx -> products/conversations/frontend/components/SidePanel/sidepanelTicketsLogic.ts
+frontend/src/layout/today/TodaySupportResponseTimes.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/layout/today/todayAiChatLogic.ts -> frontend/src/scenes/max/components/PhaiSidePanelChat.tsx
+frontend/src/layout/today/todayAiChatLogic.ts -> frontend/src/scenes/max/mainFocusUrl.ts
+frontend/src/layout/today/todayAiChatLogic.ts -> frontend/src/scenes/max/maxGlobalLogic.tsx
+frontend/src/layout/today/todayAiChatLogic.ts -> frontend/src/scenes/max/maxLogic.tsx
+frontend/src/layout/today/todayAiChatLogic.ts -> products/posthog_ai/frontend/api/logics.ts
+frontend/src/layout/today/todayAiChatLogic.ts -> products/posthog_ai/frontend/logics/attachedContextLogic.ts
+frontend/src/layout/today/todayAiChatLogic.ts -> products/signals/frontend/inbox/inboxTaskKickoffLogic.ts
+frontend/src/layout/today/todayAiChatLogic.ts -> products/signals/frontend/inbox/logics/scoutAiLogic.ts
+frontend/src/layout/today/todayAnalyticsLogic.ts -> frontend/src/scenes/analytics/analyticsPinnedLogic.ts
+frontend/src/layout/today/todayAnalyticsLogic.ts -> frontend/src/scenes/analytics/analyticsUtils.ts
+frontend/src/layout/today/todayContextPanelLogic.ts -> frontend/src/scenes/notebooks/NotebookPanel/notebookPanelLogic.ts
+frontend/src/layout/today/todayContextPanelLogic.ts -> products/conversations/frontend/components/SidePanel/sidepanelTicketsLogic.ts
+frontend/src/layout/today/todayObjectGlanceLogic.ts -> frontend/src/scenes/library/libraryUtils.ts
+frontend/src/layout/today/todayObjectGlances.ts -> frontend/src/queries/utils.ts
+frontend/src/layout/today/todayObjectGlances.ts -> frontend/src/scenes/insights/aggregationAxisFormat.ts
+frontend/src/layout/today/todayObjectGlances.ts -> frontend/src/scenes/library/libraryUtils.ts
+frontend/src/layout/today/todayObjectGlances.ts -> frontend/src/scenes/project-homepage/today/todayNumbers.ts
+frontend/src/layout/today/todayObjectGlances.ts -> products/experiments/frontend/experimentStatus.ts
+frontend/src/layout/today/todayObjectGlances.ts -> products/feature_flags/frontend/featureFlagConfigFormat.ts
+frontend/src/layout/today/todayOrgMenuLogic.ts -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/layout/today/todayOrgMenuLogic.ts -> frontend/src/scenes/settings/organization/inviteLogic.ts
+frontend/src/layout/today/todayPaneSearch.ts -> frontend/src/scenes/analytics/analyticsUtils.ts
+frontend/src/layout/today/todayPanelChatSessionLogic.ts -> frontend/src/scenes/max/components/PhaiSidePanelChat.tsx
+frontend/src/layout/today/todayPanelChatSessionLogic.ts -> products/posthog_ai/frontend/api/logics.ts
+frontend/src/layout/today/todayPanelTaskLogic.ts -> products/posthog_ai/frontend/api/logics.ts
+frontend/src/layout/today/todayPreviewCards.ts -> frontend/src/scenes/library/libraryUtils.ts
+frontend/src/layout/today/todayPreviewCards.ts -> products/posthog_ai/frontend/api/taskSource.ts
+frontend/src/layout/today/todayRailStatusLogic.ts -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/layout/today/todayShellLogic.ts -> frontend/src/scenes/analytics/analyticsUtils.ts
+frontend/src/layout/today/todayShellLogic.ts -> frontend/src/scenes/library/libraryUtils.ts
+frontend/src/layout/today/todayShellLogic.ts -> frontend/src/scenes/max/maxGlobalLogic.tsx
+frontend/src/layout/today/todayShellLogic.ts -> frontend/src/scenes/settings/settingsSectionScenes.ts
+frontend/src/layout/today/todaySpacesLogic.ts -> frontend/src/scenes/max/maxGlobalLogic.tsx
+frontend/src/layout/today/todaySpacesLogic.ts -> products/tasks/frontend/spaces/taskPullRequests.ts
+frontend/src/layout/today/todayWorkItems.ts -> products/tasks/frontend/spaces/TaskUserAvatar.tsx
+frontend/src/layout/today/todayWorkItems.ts -> products/tasks/frontend/spaces/spacePresence.ts
+frontend/src/layout/today/todayWorkItems.ts -> products/tasks/frontend/spaces/taskPullRequests.ts
+frontend/src/lib/api.ts -> frontend/src/exporter/exporterViewLogic.ts
+frontend/src/lib/api.ts -> frontend/src/lib/apiRequestTiming.ts
+frontend/src/lib/api.ts -> frontend/src/lib/logic/apiStatusLogic.ts
+frontend/src/lib/api.ts -> frontend/src/lib/oauth/oauthClient.ts
+frontend/src/lib/api.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/api.ts -> frontend/src/scenes/surveys/constants.tsx
+frontend/src/lib/components/Account/AccountMenu.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/lib/components/Account/AccountMenu.tsx -> frontend/src/scenes/settings/organization/inviteLogic.ts
+frontend/src/lib/components/Account/InviteMembersButton.tsx -> frontend/src/scenes/settings/organization/inviteLogic.ts
+frontend/src/lib/components/Account/NewAccountMenu.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/lib/components/Account/NewAccountMenu.tsx -> frontend/src/scenes/settings/organization/inviteLogic.ts
+frontend/src/lib/components/Account/ProjectFreshnessIndicator.tsx -> frontend/src/scenes/onboarding/shared/utils.tsx
+frontend/src/lib/components/ActivityLog/ActivityLogSubscribeMenu.tsx -> frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts
+frontend/src/lib/components/ActivityLog/activityDescriptions/tagActivityDescriber.tsx -> frontend/src/scenes/insights/utils.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/authentication/shared/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/billing/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/cohorts/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/dashboard/dashboardActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/data-management/dataManagementDescribers.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/data-pipelines/batch-exports/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/data-pipelines/batch-imports/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/data-warehouse/saved_queries/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/experiments/experimentActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/exports/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/feature-flags/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/hog-functions/misc/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/notebooks/Notebook/notebookActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/product-tours/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/session-recordings/activityDescription.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/settings/organization/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/settings/project/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/settings/user/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/surveys/surveyActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> frontend/src/scenes/team-activity/teamActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/actions/frontend/actionActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/ai_observability/frontend/prompts/promptActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/ai_observability/frontend/prompts/promptLabelActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/alerts/frontend/components/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/annotations/frontend/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/canvas/frontend/activityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/conversations/frontend/activityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/cross_project_dashboards/frontend/crossProjectDashboardActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/data_warehouse/frontend/shared/components/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/endpoints/frontend/activityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/error_tracking/frontend/components/ActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/groups/frontend/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/persons/frontend/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/product_analytics/frontend/insights/activityDescriptions.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/signals/frontend/activityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/skills/frontend/activityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/stamphog/frontend/activityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/warehouse_suggestions/frontend/warehouseSuggestionActivityDescriber.tsx
+frontend/src/lib/components/ActivityLog/describers.tsx -> products/workflows/frontend/Workflows/misc/workflowActivityDescriber.tsx
+frontend/src/lib/components/AddToDashboard/addToDashboardModalLogic.ts -> frontend/src/scenes/dashboard/liveDashboardIds.ts
+frontend/src/lib/components/AddToDashboard/addToDashboardModalLogic.ts -> frontend/src/scenes/dashboard/newDashboardLogic.ts
+frontend/src/lib/components/AddToDashboard/addToDashboardModalLogic.ts -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/AddToDashboard/addToDashboardModalLogic.ts -> frontend/src/scenes/insights/sharedUtils.ts
+frontend/src/lib/components/AgentPromptButton/AgentPromptButton.tsx -> frontend/src/scenes/max/maxGlobalLogic.tsx
+frontend/src/lib/components/Alerting/AlertWizard/alertWizardLogic.ts -> frontend/src/scenes/health/healthCategories.tsx
+frontend/src/lib/components/Alerting/AlertWizard/alertWizardLogic.ts -> frontend/src/scenes/hog-functions/configuration/sampleGlobalsContexts.ts
+frontend/src/lib/components/Alerting/AlertWizard/alertWizardLogic.ts -> frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts
+frontend/src/lib/components/Alerting/AlertWizard/steps/DestinationStep.tsx -> frontend/src/scenes/hog-functions/configuration/HogFunctionIcon.tsx
+frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.tsx -> products/annotations/frontend/components/AnnotationModal.tsx
+frontend/src/lib/components/AnnotationsOverlay/AnnotationsOverlay.tsx -> products/annotations/frontend/logics/annotationModalLogic.ts
+frontend/src/lib/components/AnnotationsOverlay/annotationsOverlayLogic.ts -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/AnnotationsOverlay/annotationsOverlayLogic.ts -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/lib/components/AppMetrics/appMetricsLogic.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/components/AuthorizedUrlList/authorizedUrlListLogic.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/components/BillingUpgradeCTA.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/lib/components/Cards/InsightCard/DashboardInsightDisplayOptions.tsx -> products/product_analytics/frontend/insights/editor/InsightDisplayOptionsPanel.tsx
+frontend/src/lib/components/Cards/InsightCard/DashboardSqlDisplayOptions.tsx -> frontend/src/queries/nodes/DataVisualization/Components/DisplayTab.tsx
+frontend/src/lib/components/Cards/InsightCard/DashboardSqlDisplayOptions.tsx -> frontend/src/queries/nodes/DataVisualization/Components/TableDisplay.tsx
+frontend/src/lib/components/Cards/InsightCard/DashboardSqlDisplayOptions.tsx -> frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts
+frontend/src/lib/components/Cards/InsightCard/DashboardSqlDisplayOptions.tsx -> frontend/src/queries/nodes/DataVisualization/displayLogic.ts
+frontend/src/lib/components/Cards/InsightCard/DashboardSqlDisplayOptions.tsx -> frontend/src/queries/nodes/DataVisualization/queryUpdateUtils.ts
+frontend/src/lib/components/Cards/InsightCard/DashboardSqlDisplayOptions.tsx -> frontend/src/queries/nodes/DataVisualization/sqlVisualizationSupport.ts
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> frontend/src/exporter/exporterViewLogic.ts
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> frontend/src/queries/Query/Query.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> frontend/src/queries/nodes/InsightViz/utils.ts
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> frontend/src/scenes/insights/EmptyStates/index.ts
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> frontend/src/scenes/insights/insightDataLogic.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> frontend/src/scenes/insights/sharedUtils.ts
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> products/business_intelligence/frontend/BIDashboardFilterStatus.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> products/business_intelligence/frontend/BIDashboardTile.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> products/business_intelligence/frontend/biDashboardCrossFilters.ts
+frontend/src/lib/components/Cards/InsightCard/InsightCard.tsx -> products/dashboards/frontend/components/DashboardInsightResultMenu.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightDetails.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/components/Cards/InsightCard/InsightDetails.tsx -> frontend/src/scenes/insights/filters/ActionFilter/flagCallsSeries.ts
+frontend/src/lib/components/Cards/InsightCard/InsightDetails.tsx -> frontend/src/scenes/insights/utils.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightDetails.tsx -> frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightDetails.tsx -> products/product_analytics/frontend/insights/editor/filters/BreakdownFilter/BreakdownTag.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightDetails.tsx -> products/product_analytics/frontend/insights/journeys/journeysSummary.ts
+frontend/src/lib/components/Cards/InsightCard/InsightDetails.tsx -> products/product_analytics/frontend/insights/trends/mathsLogic.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/queries/nodes/DataNode/QueryScanTileTooltip.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/queries/nodes/DataNode/WarehouseSyncWarningList.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/queries/nodes/DataNode/queryScan.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/queries/nodes/DataNode/warehouseSyncWarnings.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/queries/nodes/InsightViz/exportAdapters.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/dashboard/dashboardEvents.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/dashboard/dashboardUtils.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/insights/insightDataLogic.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/insights/summarizeInsight.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/insights/utils.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/surveys/components/SurveyOpportunityButton.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/surveys/constants.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> frontend/src/scenes/surveys/utils/opportunityDetection.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> products/alerts/frontend/logic/insightAlertsLogic.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> products/alerts/frontend/views/ManageAlertsModal.tsx
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> products/product_analytics/frontend/insights/dataRetention/dataRetentionBannerLogic.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> products/product_analytics/frontend/insights/dataRetention/exceedsRetention.ts
+frontend/src/lib/components/Cards/InsightCard/InsightMeta.tsx -> products/product_analytics/frontend/insights/editor/insightDisplayOptions.tsx
+frontend/src/lib/components/Cards/InsightCard/QueryCard.tsx -> frontend/src/queries/Query/Query.tsx
+frontend/src/lib/components/Cards/InsightCard/RecordingsUniversalFiltersDisplay.tsx -> frontend/src/scenes/session-recordings/filters/DurationFilter.tsx
+frontend/src/lib/components/Cards/InsightCard/TopHeading.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/components/Cards/InsightCard/TopHeading.tsx -> frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
+frontend/src/lib/components/Cards/InsightCard/dashboardVisualizationOptions.tsx -> frontend/src/queries/nodes/DataVisualization/Components/SideBar.tsx
+frontend/src/lib/components/Cards/InsightCard/dashboardVisualizationOptions.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/components/Cards/InsightCard/dashboardVisualizationOptions.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/Cards/InsightCard/dashboardVisualizationOptions.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/lib/components/Cards/InsightCard/dashboardVisualizationOptions.tsx -> products/product_analytics/frontend/insights/retention/filters/RetentionChartPicker.tsx
+frontend/src/lib/components/Cards/InsightCard/dashboardWidgetMenusLogic.ts -> frontend/src/scenes/dashboard/liveDashboardIds.ts
+frontend/src/lib/components/Cards/InsightCard/visualizationShape.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/components/Cards/TextCard/TextCardModal.tsx -> frontend/src/scenes/settings/organization/aiConsentLogic.ts
+frontend/src/lib/components/Cards/TextCard/textCardMarkdown.ts -> products/dashboards/frontend/components/ImageTile/imageTileMarkdown.ts
+frontend/src/lib/components/Cards/TextCard/textCardModalLogic.ts -> products/dashboards/frontend/components/ImageTile/imageTileUtils.ts
+frontend/src/lib/components/ChartFilter/ChartFilter.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/ChartFilter/ChartFilter.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/lib/components/ChartFilter/ChartFilter.tsx -> frontend/src/scenes/insights/utils/queryUtils.ts
+frontend/src/lib/components/ChartFilter/ChartFilter.tsx -> products/product_analytics/frontend/insights/chartAlternatives/ChartDisplayIcon.tsx
+frontend/src/lib/components/ChartFilter/ChartFilter.tsx -> products/product_analytics/frontend/insights/chartAlternatives/chartDisplayOptions.ts
+frontend/src/lib/components/CommandKSearch/commandKSearchLogic.tsx -> frontend/src/scenes/max/components/PhaiSidePanelChat.tsx
+frontend/src/lib/components/CommandKSearch/commandKSearchLogic.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/CommandKSearch/commandKSearchLogic.tsx -> products/posthog_ai/frontend/api/logics.ts
+frontend/src/lib/components/Comments/commentsLogic.ts -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/CyclotronJob/CyclotronJobInputs.tsx -> frontend/src/scenes/hog-functions/email-templater/EmailTemplater.tsx
+frontend/src/lib/components/CyclotronJob/CyclotronJobInputsValidation.ts -> frontend/src/scenes/hog-functions/email-templater/types.ts
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> frontend/src/scenes/integrations/aws-s3/AwsS3SetupModal.tsx
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> frontend/src/scenes/integrations/azure-blob/AzureBlobSetupModal.tsx
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> frontend/src/scenes/integrations/databricks/DatabricksSetupModal.tsx
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> frontend/src/scenes/integrations/gitlab/GitLabSetupModal.tsx
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> frontend/src/scenes/integrations/google-cloud-service-account/GoogleCloudServiceAccountSetupModal.tsx
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> frontend/src/scenes/integrations/postgresql/PostgreSQLSetupModal.tsx
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> frontend/src/scenes/integrations/redshift/RedshiftSetupModal.tsx
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> frontend/src/scenes/integrations/s3-compatible/S3CompatibleSetupModal.tsx
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> frontend/src/scenes/integrations/snowflake/SnowflakeSetupModal.tsx
+frontend/src/lib/components/CyclotronJob/integrations/integrationSetups.tsx -> products/workflows/frontend/Channels/ChannelSetupModal.tsx
+frontend/src/lib/components/DateFilter/openJumpToTimestampModal.tsx -> frontend/src/scenes/activity/explore/defaults.ts
+frontend/src/lib/components/DefinitionPopover/CohortPopoverInfo.tsx -> frontend/src/scenes/cohorts/CohortFilters/constants.tsx
+frontend/src/lib/components/DefinitionPopover/CohortPopoverInfo.tsx -> frontend/src/scenes/cohorts/cohortUtils.tsx
+frontend/src/lib/components/DefinitionPopover/FeatureFlagPopoverInfo.tsx -> products/feature_flags/frontend/featureFlagSummaryLogic.ts
+frontend/src/lib/components/EntityFilterInfo.tsx -> frontend/src/scenes/data-management/events/DefinitionHeader.tsx
+frontend/src/lib/components/EntityFilterInfo.tsx -> frontend/src/scenes/feature-flags/flagEvaluationsTable.ts
+frontend/src/lib/components/EntityFilterInfo.tsx -> frontend/src/scenes/insights/filters/ActionFilter/flagCallsSeries.ts
+frontend/src/lib/components/EntityFilterInfo.tsx -> frontend/src/scenes/insights/filters/ActionFilter/seriesNode.ts
+frontend/src/lib/components/EntityFilterInfo.tsx -> frontend/src/scenes/insights/utils.tsx
+frontend/src/lib/components/Errors/Exception/CollapsibleExceptionHeader.tsx -> products/error_tracking/frontend/components/RuntimeIcon.tsx
+frontend/src/lib/components/Errors/Frame/FrameVariables.tsx -> products/error_tracking/frontend/components/PropertiesTable.tsx
+frontend/src/lib/components/EventPropertyTabs/EventPropertyTabs.tsx -> frontend/src/scenes/surveys/utils.ts
+frontend/src/lib/components/EventPropertyTabs/EventPropertyTabs.tsx -> products/error_tracking/frontend/utils.ts
+frontend/src/lib/components/ExportButton/exportNudge.ts -> products/subscriptions/frontend/components/Subscriptions/exportNudge/ExportNudgeToast.tsx
+frontend/src/lib/components/ExportButton/exportNudge.ts -> products/subscriptions/frontend/components/Subscriptions/exportNudge/exportNudgeLogic.ts
+frontend/src/lib/components/ExportButton/exportNudge.ts -> products/subscriptions/frontend/components/Subscriptions/exportNudge/exportNudgeSubject.ts
+frontend/src/lib/components/ExportButton/exportsLogic.ts -> frontend/src/scenes/cohorts/cohortSavedToast.ts
+frontend/src/lib/components/FlagCalledRebuildBanner/flagCalledDependencies.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/components/FlagCalledRebuildBanner/flagCalledDependencies.ts -> frontend/src/scenes/cohorts/CohortFilters/types.ts
+frontend/src/lib/components/FlagCalledRebuildBanner/flagCalledDependencies.ts -> frontend/src/scenes/cohorts/cohortUtils.tsx
+frontend/src/lib/components/FlagCalledRebuildBanner/flagCalledDependencies.ts -> frontend/src/scenes/feature-flags/flagEvaluationsTable.ts
+frontend/src/lib/components/FlagCalledRebuildBanner/flagCalledRebuildBannerLogic.ts -> frontend/src/scenes/feature-flags/flagEvaluationsTable.ts
+frontend/src/lib/components/HedgehogMode/HedgehogMode.tsx -> frontend/src/toolbar/shared/toolbarConfigLogic.ts
+frontend/src/lib/components/HedgehogMode/hedgehogModeLogic.ts -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/HedgehogMode/hedgehogModeLogic.ts -> frontend/src/toolbar/shared/toolbarConfigLogic.ts
+frontend/src/lib/components/HedgehogMode/hedgehogModeLogic.ts -> frontend/src/toolbar/shared/toolbarFetch.ts
+frontend/src/lib/components/HelpMenu/HelpMenu.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/lib/components/HighlightedJSONViewer.tsx -> products/ai_observability/frontend/ConversationDisplay/HighlightedContentWrapper.tsx
+frontend/src/lib/components/HogQLDropdown/HogQLDropdown.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/components/HogQLEditor/HogQLEditor.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/components/IngestionControls/TriggerMatchChoice.tsx -> frontend/src/queries/nodes/InsightViz/PropertyGroupFilters/AndOrFilterSelect.tsx
+frontend/src/lib/components/IngestionControls/TriggerMatchChoice.tsx -> frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx
+frontend/src/lib/components/IngestionControls/triggers/EventTrigger.tsx -> frontend/src/scenes/settings/environment/replayTriggersLogic.ts
+frontend/src/lib/components/IngestionControls/triggers/FlagTrigger/flagTriggerLogic.ts -> frontend/src/scenes/feature-flags/featureFlagLogic.ts
+frontend/src/lib/components/IngestionControls/triggers/UrlConfig.tsx -> frontend/src/scenes/session-recordings/components/AiRegexHelper/AiRegexHelper.tsx
+frontend/src/lib/components/IngestionControls/triggers/triggerGroups/TriggerGroupsEditor.tsx -> frontend/src/scenes/settings/environment/ReplayTriggers.tsx
+frontend/src/lib/components/IngestionControls/triggers/triggerGroups/TriggerGroupsEditor.tsx -> frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx
+frontend/src/lib/components/InsightLabel/index.tsx -> frontend/src/scenes/insights/utils.tsx
+frontend/src/lib/components/InsightLabel/index.tsx -> frontend/src/scenes/insights/utils/resultSeries.ts
+frontend/src/lib/components/InsightLabel/index.tsx -> products/product_analytics/frontend/insights/trends/mathsLogic.tsx
+frontend/src/lib/components/InsightLegend/InsightLegend.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/InsightLegend/InsightLegend.tsx -> products/product_analytics/frontend/insights/trends/trendsDataLogic.ts
+frontend/src/lib/components/InsightLegend/InsightLegendRow.tsx -> frontend/src/scenes/insights/aggregationAxisFormat.ts
+frontend/src/lib/components/InsightLegend/InsightLegendRow.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/InsightLegend/InsightLegendRow.tsx -> frontend/src/scenes/insights/utils.tsx
+frontend/src/lib/components/InsightLegend/InsightLegendRow.tsx -> frontend/src/scenes/insights/utils/resultSeries.ts
+frontend/src/lib/components/InsightLegend/InsightLegendRow.tsx -> products/product_analytics/frontend/insights/shared/InsightsTable/columns/SeriesColumn.tsx
+frontend/src/lib/components/InsightLegend/InsightLegendRow.tsx -> products/product_analytics/frontend/insights/trends/trendsDataLogic.ts
+frontend/src/lib/components/IntervalFilter/IntervalFilter.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/IntervalFilter/IntervalFilter.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/lib/components/JSSnippet.tsx -> docs/onboarding/product-analytics/index.ts
+frontend/src/lib/components/JSSnippet.tsx -> frontend/src/scenes/settings/environment/proxyLogic.ts
+frontend/src/lib/components/LiveUserCount/liveUserCountLogic.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/components/MemberMultiSelect.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/MemberSelect.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/MemberSelectMultiple.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/MemberSelectMultipleOptions.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/MemberSelectMultiplePopover.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/Metalytics/metalyticsLogic.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/components/Metalytics/metalyticsLogic.ts -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/NotFound/index.tsx -> frontend/src/scenes/activity/explore/defaults.ts
+frontend/src/lib/components/NotFound/index.tsx -> frontend/src/scenes/notebooks/Nodes/NotebookNodeContext.ts
+frontend/src/lib/components/PathCleanFilters/PathRegexModal.tsx -> frontend/src/scenes/session-recordings/components/AiRegexHelper/AiRegexHelper.tsx
+frontend/src/lib/components/PayGateMini/PayGateButton.tsx -> frontend/src/scenes/billing/paymentEntryLogic.ts
+frontend/src/lib/components/PayGateMini/PayGateMini.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/lib/components/PayGateMini/PayGateMini.tsx -> frontend/src/scenes/onboarding/shared/utils.tsx
+frontend/src/lib/components/PayGateMini/payGateMiniLogic.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/lib/components/ProductEmptyState/ProductEmptyState.tsx -> frontend/src/scenes/onboarding/shared/useWizardCommand.ts
+frontend/src/lib/components/ProductSetup/productSetupLogic.ts -> frontend/src/scenes/settings/organization/inviteLogic.ts
+frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx -> products/persons/frontend/components/NewProperty.tsx
+frontend/src/lib/components/PropertyFilters/PropertyFilters.tsx -> frontend/src/scenes/cohorts/CohortFilters/CohortCriteriaRowBuilder.tsx
+frontend/src/lib/components/PropertyFilters/components/GroupKeyFilterTooltip.tsx -> products/persons/frontend/components/GroupActorDisplay.tsx
+frontend/src/lib/components/PropertyFilters/components/GroupKeySelect.tsx -> products/persons/frontend/components/GroupActorDisplay.tsx
+frontend/src/lib/components/PropertyFilters/components/PropertyFilterButton.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/PropertyFilters/components/PropertyValue.tsx -> products/error_tracking/frontend/components/Assignee/AssigneeDisplay.tsx
+frontend/src/lib/components/PropertyFilters/components/PropertyValue.tsx -> products/error_tracking/frontend/components/Assignee/AssigneeSelect.tsx
+frontend/src/lib/components/PropertyFilters/components/TaxonomicPropertyFilter.tsx -> products/cohorts/frontend/realtime/CohortRealtimeTag.tsx
+frontend/src/lib/components/PropertyFilters/components/TaxonomicPropertyFilter.tsx -> products/data_warehouse/frontend/shared/logics/joinsLogic.ts
+frontend/src/lib/components/PropertyFilters/components/distinctIdSelectLogic.ts -> products/persons/frontend/person-utils.ts
+frontend/src/lib/components/PropertyFilters/components/groupKeySelectLogic.ts -> products/persons/frontend/components/GroupActorDisplay.tsx
+frontend/src/lib/components/PropertyFilters/utils.ts -> frontend/src/queries/nodes/DataTable/utils.ts
+frontend/src/lib/components/PropertyKeyInfo.tsx -> frontend/src/scenes/surveys/surveyQuestionLabelsLogic.ts
+frontend/src/lib/components/QuickFilters/quickFiltersLogic.ts -> frontend/src/exporter/exporterViewLogic.ts
+frontend/src/lib/components/ResultMenu/ResultMenu.tsx -> frontend/src/scenes/insights/utils.tsx
+frontend/src/lib/components/ReverseProxyChecker/reverseProxyCheckerLogic.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/components/RichContentEditor/MentionsExtension.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/RichContentEditor/RichContentNodeMention.tsx -> frontend/src/scenes/organization/membersLogic.tsx
+frontend/src/lib/components/SaveToCohortModalContent/saveToCohortModalContentLogic.ts -> frontend/src/scenes/cohorts/cohortEditLogic.ts
+frontend/src/lib/components/SaveToCohortModalContent/saveToCohortModalContentLogic.ts -> frontend/src/scenes/cohorts/cohortSavedToast.ts
+frontend/src/lib/components/Scenes/InsightOrDashboard/SceneAddToNotebookDropdownMenu.tsx -> frontend/src/scenes/notebooks/types.ts
+frontend/src/lib/components/Scenes/InsightOrDashboard/SceneNotebookMenuItems.tsx -> frontend/src/scenes/notebooks/Nodes/NotebookNodeContext.ts
+frontend/src/lib/components/Scenes/InsightOrDashboard/SceneNotebookMenuItems.tsx -> frontend/src/scenes/notebooks/NotebookSelectButton/notebookSelectButtonLogic.ts
+frontend/src/lib/components/Scenes/InsightOrDashboard/SceneNotebookMenuItems.tsx -> frontend/src/scenes/notebooks/types.ts
+frontend/src/lib/components/Scenes/InsightSubscribeProminentButton.tsx -> products/subscriptions/frontend/components/Subscriptions/subscriptionsLogic.ts
+frontend/src/lib/components/Scenes/InsightSubscribeProminentButton.tsx -> products/subscriptions/frontend/components/Subscriptions/utils.tsx
+frontend/src/lib/components/Scenes/SceneMenuBarAddToNotebook.tsx -> frontend/src/scenes/notebooks/NotebookSelectButton/notebookSelectButtonLogic.ts
+frontend/src/lib/components/Scenes/SceneMenuBarAddToNotebook.tsx -> frontend/src/scenes/notebooks/types.ts
+frontend/src/lib/components/Scenes/SceneMenuBarPinItem.tsx -> frontend/src/scenes/analytics/analyticsPinnedLogic.ts
+frontend/src/lib/components/Scenes/SceneMenuBarPinItem.tsx -> frontend/src/scenes/analytics/analyticsUtils.ts
+frontend/src/lib/components/Search/searchItems.tsx -> products/customer_analytics/frontend/components/Accounts/accountStatusTags.ts
+frontend/src/lib/components/Search/searchListsLogic.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/lib/components/Search/searchListsLogic.tsx -> frontend/src/scenes/settings/flagGating.ts
+frontend/src/lib/components/Search/searchListsLogic.tsx -> frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts
+frontend/src/lib/components/Search/searchListsLogic.tsx -> frontend/src/scenes/settings/settingsSearch.ts
+frontend/src/lib/components/Search/searchListsLogic.tsx -> frontend/src/scenes/terminal/terminalDockLogic.ts
+frontend/src/lib/components/SessionTimeline/timeline/items/custom.tsx -> products/error_tracking/frontend/components/RuntimeIcon.tsx
+frontend/src/lib/components/SessionTimeline/timeline/items/eventDetails.tsx -> frontend/src/scenes/sessions/components/SessionEventDetails.tsx
+frontend/src/lib/components/SessionTimeline/timeline/items/exceptionSteps.tsx -> products/error_tracking/frontend/components/RuntimeIcon.tsx
+frontend/src/lib/components/SessionTimeline/timeline/items/exceptions.tsx -> products/error_tracking/frontend/components/RuntimeIcon.tsx
+frontend/src/lib/components/SessionTimeline/timeline/items/logs.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/components/SessionTimeline/timeline/items/logs.tsx -> products/error_tracking/frontend/components/RuntimeIcon.tsx
+frontend/src/lib/components/SessionTimeline/timeline/items/page.tsx -> products/error_tracking/frontend/components/RuntimeIcon.tsx
+frontend/src/lib/components/Sharing/SharingModal.tsx -> frontend/src/queries/nodes/InsightQuery/defaults.ts
+frontend/src/lib/components/Sharing/SharingModal.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/components/Sharing/SharingModal.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/lib/components/Sharing/sharingLogic.ts -> frontend/src/scenes/insights/utils.tsx
+frontend/src/lib/components/SmoothingFilter/SmoothingFilter.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/SmoothingFilter/SmoothingFilter.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/lib/components/SmoothingFilter/SmoothingFilter.tsx -> products/product_analytics/frontend/insights/trends/trendsDataLogic.ts
+frontend/src/lib/components/SocialLoginButton/SocialLoginButton.tsx -> frontend/src/scenes/authentication/shared/passkeyLogic.ts
+frontend/src/lib/components/Superpowers/Superpowers.tsx -> frontend/src/scenes/max/maxGlobalLogic.tsx
+frontend/src/lib/components/Superpowers/buildFakeBillingAlert.ts -> frontend/src/scenes/billing/billing-utils.ts
+frontend/src/lib/components/SurveyResponseDisplay/SurveyResponseDisplay.tsx -> frontend/src/scenes/surveys/hooks/useSurveyResponseColumns.tsx
+frontend/src/lib/components/SurveyResponseDisplay/SurveyResponseDisplay.tsx -> frontend/src/scenes/surveys/surveyLogic.tsx
+frontend/src/lib/components/SurveyResponseDisplay/SurveyResponseDisplay.tsx -> frontend/src/scenes/surveys/utils.ts
+frontend/src/lib/components/SurveyResponseDisplay/SurveyResponseDisplay.tsx -> products/persons/frontend/components/PersonDisplay.tsx
+frontend/src/lib/components/TablePreview/databaseTablePreviewLogic.ts -> frontend/src/queries/query.ts
+frontend/src/lib/components/TablePreview/databaseTablePreviewLogic.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> frontend/src/scenes/data-management/events/DefinitionHeader.tsx
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> frontend/src/scenes/data-warehouse/settings/dataWarehouseSettingsSceneLogic.ts
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> frontend/src/scenes/feature-flags/constants.tsx
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> frontend/src/scenes/hog-functions/filters/productEventFilterOptions.ts
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> frontend/src/scenes/session-recordings/filters/SavedFiltersTaxonomicGroup.tsx
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> products/cohorts/frontend/realtime/CohortRealtimeTag.tsx
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> products/data_warehouse/frontend/shared/logics/joinsLogic.ts
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> products/experiments/frontend/scenes/experimentsLogic.ts
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> products/persons/frontend/components/GroupActorDisplay.tsx
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> products/persons/frontend/components/PersonSearchMatchTags.tsx
+frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx -> products/workflows/frontend/Workflows/hogflows/filters/LazyHogFlowTaxonomicFilters.tsx
+frontend/src/lib/components/TerraformExporter/alertHclExporter.ts -> products/alerts/frontend/types.ts
+frontend/src/lib/components/TerraformExporter/insightHclExporter.ts -> frontend/src/scenes/dashboard/liveDashboardIds.ts
+frontend/src/lib/components/TerraformExporter/useTerraformExport.ts -> products/alerts/frontend/logic/alertNotifications.ts
+frontend/src/lib/components/TimeSensitiveAuthentication/timeSensitiveAuthenticationLogic.ts -> frontend/src/scenes/authentication/shared/loginErrorMessages.tsx
+frontend/src/lib/components/UnitPicker/UnitPicker.tsx -> frontend/src/scenes/insights/aggregationAxisFormat.ts
+frontend/src/lib/components/UnitPicker/UnitPicker.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/lib/components/UnitPicker/UnitPicker.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/lib/components/UniversalFilters/universalFiltersLogic.ts -> frontend/src/scenes/session-recordings/filters/sessionRecordingSavedFiltersLogic.ts
+frontend/src/lib/components/UpgradeModal/upgradeModalLogic.ts -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/lib/components/ViewRecordingButton/ViewRecordingButton.tsx -> frontend/src/scenes/session-recordings/player/modal/sessionPlayerModalLogic.ts
+frontend/src/lib/components/ViewRecordingButton/ViewRecordingButton.tsx -> frontend/src/scenes/session-recordings/playlist/UnwatchedIndicator.tsx
+frontend/src/lib/components/heatmaps/heatmapDataLogic.ts -> frontend/src/toolbar/shared/toolbarConfigLogic.ts
+frontend/src/lib/components/heatmaps/heatmapDataLogic.ts -> frontend/src/toolbar/shared/toolbarFetch.ts
+frontend/src/lib/components/heatmaps/heatmapDataLogic.ts -> frontend/src/toolbar/shared/toolbarRequestError.ts
+frontend/src/lib/components/heatmaps/useScrollSync.ts -> frontend/src/toolbar/shared/toolbarConfigLogic.ts
+frontend/src/lib/components/openPublishToCommunityDialog.tsx -> products/skills/frontend/PublishToCommunityContents.tsx
+frontend/src/lib/hog.ts -> frontend/src/queries/query.ts
+frontend/src/lib/hog.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/hooks/useFeatureFlag.ts -> frontend/src/lib/logic/featureFlagLogic.ts
+frontend/src/lib/hooks/useFileSystemLogView.ts -> frontend/src/exporter/exporterViewLogic.ts
+frontend/src/lib/hooks/useFileSystemLogView.ts -> frontend/src/models/recentItemsModel.ts
+frontend/src/lib/hooks/useKeyboardHotkeys.tsx -> frontend/src/lib/posthog-typed.ts
+frontend/src/lib/hooks/useThemedHtml.ts -> frontend/src/lib/logic/themeLogic.ts
+frontend/src/lib/hooks/useThemedHtml.ts -> frontend/src/scenes/sceneLogic.tsx
+frontend/src/lib/integrations/VercelIntegrationSuffix.tsx -> frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts
+frontend/src/lib/lemon-ui/LemonCalendar/LemonCalendar.tsx -> frontend/src/lib/components/ScrollableShadows/ScrollableShadows.tsx
+frontend/src/lib/lemon-ui/LemonCalendar/LemonCalendar.tsx -> frontend/src/scenes/teamLogic.tsx
+frontend/src/lib/lemon-ui/LemonColor/LemonColorButton.tsx -> frontend/src/lib/logic/dataThemeLogic.tsx
+frontend/src/lib/lemon-ui/LemonColor/LemonColorGlyph.tsx -> frontend/src/lib/logic/dataThemeLogic.tsx
+frontend/src/lib/lemon-ui/LemonColor/LemonColorGlyph.tsx -> frontend/src/lib/logic/themeLogic.ts
+frontend/src/lib/lemon-ui/LemonColor/LemonColorPicker.tsx -> frontend/src/lib/logic/dataThemeLogic.tsx
+frontend/src/lib/lemon-ui/LemonDrawer/LemonDrawer.tsx -> frontend/src/lib/components/KeyboardShortcut/KeyboardShortcut.tsx
+frontend/src/lib/lemon-ui/LemonDrawer/LemonDrawer.tsx -> frontend/src/lib/components/Resizer/Resizer.tsx
+frontend/src/lib/lemon-ui/LemonDrawer/LemonDrawer.tsx -> frontend/src/lib/components/Resizer/resizerLogic.ts
+frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx -> frontend/src/lib/components/AutoSizer/index.ts
+frontend/src/lib/lemon-ui/LemonInputSelect/LemonInputSelect.tsx -> frontend/src/lib/components/KeyboardShortcut/KeyboardShortcut.tsx
+frontend/src/lib/lemon-ui/LemonMarkdown/LemonMarkdown.tsx -> frontend/src/lib/components/CodeSnippet/index.ts
+frontend/src/lib/lemon-ui/LemonMarkdown/LemonMarkdown.tsx -> frontend/src/lib/components/RichContentEditor/RichContentNodeMention.tsx
+frontend/src/lib/lemon-ui/LemonMarkdown/MermaidDiagram.tsx -> frontend/src/lib/components/CodeSnippet/index.ts
+frontend/src/lib/lemon-ui/LemonMarkdown/MermaidDiagram.tsx -> frontend/src/lib/logic/themeLogic.ts
+frontend/src/lib/lemon-ui/LemonMarkdown/mention.ts -> frontend/src/lib/components/RichContentEditor/types.ts
+frontend/src/lib/lemon-ui/LemonMenu/LemonMenu.tsx -> frontend/src/lib/components/KeyboardShortcut/KeyboardShortcut.tsx
+frontend/src/lib/lemon-ui/LemonModal/LemonModal.tsx -> frontend/src/lib/components/KeyboardShortcut/KeyboardShortcut.tsx
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/components/Cards/TextCard/TextCard.tsx
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/components/EmojiPicker/EmojiPickerPopover.tsx
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/components/RichContentEditor/CommandEnterExtension.tsx
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/components/RichContentEditor/EmojiSuggestionExtension.tsx
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/components/RichContentEditor/MentionsExtension.tsx
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/components/RichContentEditor/RichContentNodeMention.tsx
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/components/RichContentEditor/index.tsx
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/components/RichContentEditor/types.ts
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/components/RichContentEditor/utils.ts
+frontend/src/lib/lemon-ui/LemonRichContent/LemonRichContentEditor.tsx -> frontend/src/lib/logic/preflightLogic.tsx
+frontend/src/lib/lemon-ui/LemonTable/LemonTable.tsx -> frontend/src/lib/components/ScrollableShadows/ScrollableShadows.tsx
+frontend/src/lib/lemon-ui/LemonTable/columnUtils.tsx -> frontend/src/lib/components/TZLabel/index.tsx
+frontend/src/lib/lemon-ui/LemonTextArea/LemonTextAreaMarkdown.tsx -> frontend/src/lib/components/Cards/TextCard/TextCard.tsx
+frontend/src/lib/lemon-ui/LemonTextArea/LemonTextAreaMarkdown.tsx -> frontend/src/lib/components/EmojiPicker/EmojiPickerPopover.tsx
+frontend/src/lib/lemon-ui/LemonTextArea/LemonTextAreaMarkdown.tsx -> frontend/src/lib/logic/preflightLogic.tsx
+frontend/src/lib/lemon-ui/LemonToast/LemonToast.tsx -> frontend/src/lib/components/HelpMenu/incidentStatus.ts
+frontend/src/lib/lemon-ui/LemonToast/LemonToast.tsx -> frontend/src/lib/holidays.tsx
+frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsx -> frontend/src/lib/components/ScrollableShadows/ScrollableShadows.tsx
+frontend/src/lib/lemon-ui/Link/Link.tsx -> frontend/src/scenes/urls.ts
+frontend/src/lib/lemon-ui/Popover/Popover.tsx -> frontend/src/lib/components/ScrollableShadows/ScrollableShadows.tsx
+frontend/src/lib/lemon-ui/ProfilePicture/ProfilePicture.tsx -> frontend/src/lib/components/HedgehogMode/HedgehogModeStatic.tsx
+frontend/src/lib/lemon-ui/ProfilePicture/ProfilePicture.tsx -> frontend/src/scenes/userLogic.ts
+frontend/src/lib/logic/apiStatusLogic.ts -> frontend/src/scenes/authentication/two-factor-setup/twoFactorLogic.ts
+frontend/src/lib/monaco/codeEditorLogic.tsx -> frontend/src/queries/query.ts
+frontend/src/lib/monaco/codeEditorLogic.tsx -> frontend/src/queries/utils.ts
+frontend/src/lib/monaco/hogQLAutocompleteProvider.ts -> frontend/src/queries/query.ts
+frontend/src/lib/monaco/hogQLAutocompleteProvider.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/oauth/oauthLogic.ts -> products/data_warehouse/frontend/sqlEditorDraftCleanup.ts
+frontend/src/lib/signals/SignalReportFixOrStatus.tsx -> products/signals/frontend/inbox/components/badges/SignalReportStatusBadge.tsx
+frontend/src/lib/signals/SignalReportFixOrStatus.tsx -> products/signals/frontend/inbox/utils/reportPresentation.ts
+frontend/src/lib/signals/SignalReportFixOrStatus.tsx -> products/signals/frontend/inbox/utils/reportPullRequests.ts
+frontend/src/lib/signals/prState.ts -> products/signals/frontend/inbox/types.ts
+frontend/src/lib/ui/Combobox/Combobox.tsx -> frontend/src/lib/components/ScrollableShadows/ScrollableShadows.tsx
+frontend/src/lib/ui/ContextMenu/ContextMenu.tsx -> frontend/src/lib/components/ScrollableShadows/ScrollableShadows.tsx
+frontend/src/lib/ui/DropdownMenu/DropdownMenu.tsx -> frontend/src/lib/components/ScrollableShadows/ScrollableShadows.tsx
+frontend/src/lib/ui/SelectPrimitive/SelectPrimitive.tsx -> frontend/src/lib/components/ScrollableShadows/ScrollableShadows.tsx
+frontend/src/lib/utils/accessControlUtils.ts -> frontend/src/scenes/sceneTypes.ts
+frontend/src/lib/utils/apiHost.ts -> frontend/src/lib/oauth/oauthClient.ts
+frontend/src/lib/utils/dateFilters.ts -> frontend/src/lib/components/DateFilter/types.ts
+frontend/src/lib/utils/deleteWithUndo.tsx -> frontend/src/layout/panel-layout/ProjectTree/projectTreeLogic.tsx
+frontend/src/lib/utils/deleteWithUndo.tsx -> frontend/src/scenes/dashboard/liveDashboardIds.ts
+frontend/src/lib/utils/eventUsageLogic.ts -> frontend/src/lib/logic/preflightLogic.tsx
+frontend/src/lib/utils/eventUsageLogic.ts -> frontend/src/queries/utils.ts
+frontend/src/lib/utils/eventUsageLogic.ts -> frontend/src/scenes/product-tours/constants.ts
+frontend/src/lib/utils/eventUsageLogic.ts -> frontend/src/scenes/userLogic.ts
+frontend/src/lib/utils/eventUsageLogic.ts -> products/business_intelligence/frontend/biEditorAnalytics.ts
+frontend/src/lib/utils/eventUsageLogic.ts -> products/experiments/frontend/experimentStatus.ts
+frontend/src/lib/utils/events.ts -> frontend/src/taxonomy/taxonomy.tsx
+frontend/src/lib/utils/getAppContext.ts -> frontend/src/lib/oauth/oauthClient.ts
+frontend/src/loadPostHogJS.tsx -> products/webmcp/frontend/webmcpToolError.ts
+frontend/src/models/cohortsModel.ts -> frontend/src/exporter/exporterViewLogic.ts
+frontend/src/models/cohortsModel.ts -> frontend/src/scenes/cohorts/CohortFilters/constants.tsx
+frontend/src/models/cohortsModel.ts -> frontend/src/scenes/cohorts/CohortFilters/types.ts
+frontend/src/models/cohortsModel.ts -> products/persons/frontend/logics/personsLogic.tsx
+frontend/src/models/insightsModel.tsx -> frontend/src/scenes/insights/utils/api.ts
+frontend/src/models/notebooksModel.ts -> frontend/src/scenes/analytics/analyticsBackLink.ts
+frontend/src/models/notebooksModel.ts -> frontend/src/scenes/notebooks/Notebook/notebookLogic.ts
+frontend/src/models/notebooksModel.ts -> frontend/src/scenes/notebooks/NotebookPanel/notebookPanelLogic.ts
+frontend/src/models/notebooksModel.ts -> frontend/src/scenes/notebooks/NotebookTemplates/notebookTemplates.ts
+frontend/src/models/notebooksModel.ts -> frontend/src/scenes/notebooks/types.ts
+frontend/src/models/notebooksModel.ts -> frontend/src/scenes/notebooks/utils.ts
+frontend/src/models/saveAsActionDialog.tsx -> frontend/src/scenes/activity/explore/createActionFromEvent.tsx
+frontend/src/models/saveAsActionDialog.tsx -> frontend/src/scenes/insights/filters/ActionFilter/ActionFilterRow/saveAsActionUtils.ts
+frontend/src/posthogAiToolRenderers.ts -> products/cdp/frontend/posthogAiToolRenderers.tsx
+frontend/src/posthogAiToolRenderers.ts -> products/error_tracking/frontend/posthogAiToolRenderers.tsx
+frontend/src/posthogAiToolRenderers.ts -> products/logs/frontend/posthogAiToolRenderers.tsx
+frontend/src/posthogAiToolRenderers.ts -> products/posthog_ai/frontend/posthogAiToolRenderers.tsx
+frontend/src/products.tsx -> frontend/src/queries/examples.ts
+frontend/src/products.tsx -> frontend/src/queries/utils.ts
+frontend/src/products.tsx -> products/ai_observability/frontend/clusters/constants.ts
+frontend/src/products.tsx -> products/ai_observability/frontend/scoreDefinitions/scoreDefinitionNavigation.ts
+frontend/src/products.tsx -> products/error_tracking/frontend/settingsRedirects.ts
+frontend/src/queries/Query/Query.tsx -> frontend/src/scenes/debug/HogDebug.tsx
+frontend/src/queries/Query/Query.tsx -> products/endpoints/frontend/nodes/index.ts
+frontend/src/queries/Query/Query.tsx -> products/metrics/frontend/nodes/index.ts
+frontend/src/queries/nodes/DataNode/TestAccountFilters.tsx -> frontend/src/scenes/settings/environment/filterTestAccountDefaultsLogic.ts
+frontend/src/queries/nodes/DataNode/dataNodeLogic.ts -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/queries/nodes/DataNode/dataNodeLogic.ts -> frontend/src/scenes/insights/utils/queryUtils.ts
+frontend/src/queries/nodes/DataTable/BackToSource.tsx -> frontend/src/scenes/insights/summarizeInsight.ts
+frontend/src/queries/nodes/DataTable/BackToSource.tsx -> products/product_analytics/frontend/insights/trends/mathsLogic.tsx
+frontend/src/queries/nodes/DataTable/DataTable.tsx -> frontend/src/scenes/insights/EmptyStates/index.ts
+frontend/src/queries/nodes/DataTable/DataTable.tsx -> frontend/src/scenes/web-analytics/tabs/marketing-analytics/frontend/components/CampaignMapping/CampaignMappingCellActions.tsx
+frontend/src/queries/nodes/DataTable/DataTable.tsx -> frontend/src/scenes/web-analytics/tabs/marketing-analytics/frontend/components/CampaignMapping/mappingUtils.ts
+frontend/src/queries/nodes/DataTable/DataTable.tsx -> frontend/src/scenes/web-analytics/tabs/marketing-analytics/frontend/logic/utils.ts
+frontend/src/queries/nodes/DataTable/DataTable.tsx -> products/data_warehouse/frontend/shared/components/ViewLinkModal.tsx
+frontend/src/queries/nodes/DataTable/DataTable.tsx -> products/persons/frontend/components/PersonDeleteModal.tsx
+frontend/src/queries/nodes/DataTable/EventRowActions.tsx -> frontend/src/scenes/insights/utils.tsx
+frontend/src/queries/nodes/DataTable/EventRowActions.tsx -> frontend/src/scenes/surveys/components/ArchiveSurveyButton.tsx
+frontend/src/queries/nodes/DataTable/EventRowActions.tsx -> frontend/src/scenes/surveys/utils.ts
+frontend/src/queries/nodes/DataTable/InsightActorsQueryOptions.tsx -> frontend/src/scenes/trends/persons-modal/persons-modal-utils.tsx
+frontend/src/queries/nodes/DataTable/TableView/tableViewLogic.ts -> products/groups/frontend/logics/groupsListLogic.ts
+frontend/src/queries/nodes/DataTable/TableView/tableViewLogic.ts -> products/persons/frontend/logics/personsLogic.tsx
+frontend/src/queries/nodes/DataTable/TableView/tableViewLogic.ts -> products/persons/frontend/logics/personsSceneLogic.ts
+frontend/src/queries/nodes/DataTable/clipboardUtils.ts -> products/persons/frontend/person-utils.ts
+frontend/src/queries/nodes/DataTable/defaultEventsQuery.ts -> frontend/src/scenes/activity/explore/defaults.ts
+frontend/src/queries/nodes/DataTable/renderColumn.tsx -> frontend/src/scenes/sessions/sessionColumnRenderers.tsx
+frontend/src/queries/nodes/DataTable/renderColumn.tsx -> products/ai_observability/frontend/aiObservabilityGlobalColumns.tsx
+frontend/src/queries/nodes/DataTable/renderColumn.tsx -> products/mcp_analytics/frontend/dashboard/HarnessLabel.tsx
+frontend/src/queries/nodes/DataTable/renderColumn.tsx -> products/persons/frontend/components/GroupActorDisplay.tsx
+frontend/src/queries/nodes/DataTable/renderColumn.tsx -> products/persons/frontend/components/PersonDisplay.tsx
+frontend/src/queries/nodes/DataTable/renderColumn.tsx -> products/persons/frontend/person-utils.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlBarGraph.tsx -> products/product_analytics/frontend/insights/trends/shared/chartErrorHandler.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlBoxPlot.tsx -> products/product_analytics/frontend/insights/trends/shared/chartErrorHandler.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlComboGraph.tsx -> products/product_analytics/frontend/insights/trends/shared/chartErrorHandler.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlLineGraph.tsx -> products/product_analytics/frontend/insights/trends/shared/chartErrorHandler.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlMetricCard.tsx -> frontend/src/scenes/insights/EmptyStates/index.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlMetricCard.tsx -> products/product_analytics/frontend/insights/trends/shared/chartErrorHandler.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlPieGraph.tsx -> products/product_analytics/frontend/insights/trends/TrendsPieChart/DonutCenterLabel.tsx
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlPieGraph.tsx -> products/product_analytics/frontend/insights/trends/shared/chartErrorHandler.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlProportionBar.tsx -> products/product_analytics/frontend/insights/trends/shared/chartErrorHandler.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/SqlScatterGraph.tsx -> products/product_analytics/frontend/insights/trends/shared/chartErrorHandler.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/sqlLineGraphAdapter.ts -> products/product_analytics/frontend/insights/shared/chartStyleAdapter.ts
+frontend/src/queries/nodes/DataVisualization/Components/Charts/sqlLineGraphAdapter.ts -> products/product_analytics/frontend/insights/trends/shared/goalLinesAdapter.ts
+frontend/src/queries/nodes/DataVisualization/Components/Heatmap/TwoDimensionalHeatmap.tsx -> frontend/src/scenes/insights/EmptyStates/index.ts
+frontend/src/queries/nodes/DataVisualization/Components/SeriesTab.tsx -> frontend/src/scenes/insights/aggregationAxisFormat.ts
+frontend/src/queries/nodes/DataVisualization/Components/SideBar.tsx -> products/business_intelligence/frontend/biTableLayout.ts
+frontend/src/queries/nodes/DataVisualization/Components/Table.tsx -> frontend/src/scenes/insights/EmptyStates/index.ts
+frontend/src/queries/nodes/DataVisualization/Components/Variables/NewVariableModal.tsx -> frontend/src/scenes/data-management/variables/insightColumns.tsx
+frontend/src/queries/nodes/DataVisualization/Components/Variables/VariableFields.tsx -> products/data_warehouse/frontend/shared/logics/connectionSelectorLogic.ts
+frontend/src/queries/nodes/DataVisualization/Components/Variables/Variables.tsx -> frontend/src/scenes/dashboard/dashboardLogic.tsx
+frontend/src/queries/nodes/DataVisualization/Components/Variables/variableDataLogic.ts -> frontend/src/exporter/exporterViewLogic.ts
+frontend/src/queries/nodes/DataVisualization/Components/Variables/variableModalLogic.ts -> frontend/src/scenes/data-management/variables/insightsLoader.ts
+frontend/src/queries/nodes/DataVisualization/Components/Variables/variablesLogic.ts -> frontend/src/scenes/insights/utils/queryUtils.ts
+frontend/src/queries/nodes/DataVisualization/Components/seriesBreakdownLogic.ts -> products/business_intelligence/frontend/biEditorTypes.ts
+frontend/src/queries/nodes/DataVisualization/Components/seriesBreakdownLogic.ts -> products/business_intelligence/frontend/biMemberAliases.ts
+frontend/src/queries/nodes/DataVisualization/Components/seriesBreakdownLogic.ts -> products/business_intelligence/frontend/biQueryResults.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> frontend/src/scenes/insights/EmptyStates/index.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> frontend/src/scenes/insights/insightDataLogic.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/alerts/frontend/logic/insightAlertsLogic.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/BIChartAxisControls.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/BIChartYearLabels.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/BIComparisonSummary.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/BIDrilldownMenu.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/BIDrilldownModal.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/BIPaneCharts.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/BIPivotTable.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/BIScatterGraph.tsx
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/biChartDateAxis.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/biDrilldown.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/biDrilldownLogic.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/biEditorTypes.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/biMemberAliases.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/biQueryResults.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/business_intelligence/frontend/biTableLayout.ts
+frontend/src/queries/nodes/DataVisualization/DataVisualization.tsx -> products/product_analytics/frontend/insights/shared/BoldNumber/BoldNumber.tsx
+frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts -> products/business_intelligence/frontend/biEditorAnalytics.ts
+frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts -> products/business_intelligence/frontend/biEditorTypes.ts
+frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts -> products/business_intelligence/frontend/biMemberAliases.ts
+frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts -> products/business_intelligence/frontend/biQueryResults.ts
+frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts -> products/business_intelligence/frontend/biTableLayout.ts
+frontend/src/queries/nodes/DataVisualization/eventColumnLabels.ts -> frontend/src/scenes/insights/utils.tsx
+frontend/src/queries/nodes/EventsNode/EventName.tsx -> products/actions/frontend/components/EventName.tsx
+frontend/src/queries/nodes/HogQLQuery/HogQLQueryEditor.tsx -> frontend/src/scenes/data-warehouse/settings/dataWarehouseSettingsSceneLogic.ts
+frontend/src/queries/nodes/HogQLQuery/hogQLQueryEditorLogic.tsx -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/queries/nodes/HogQLQuery/hogQLQueryEditorLogic.tsx -> frontend/src/scenes/data-warehouse/saved_queries/dataWarehouseViewsLogic.tsx
+frontend/src/queries/nodes/HogQLQuery/hogQLQueryEditorLogic.tsx -> frontend/src/scenes/data-warehouse/saved_queries/savedQueryNameValidation.ts
+frontend/src/queries/nodes/HogQLQuery/hogQLQueryEditorLogic.tsx -> frontend/src/scenes/data-warehouse/settings/dataWarehouseSettingsSceneLogic.ts
+frontend/src/queries/nodes/HogQLX/render.tsx -> products/mcp_analytics/frontend/components/BrandMarkLabel.tsx
+frontend/src/queries/nodes/InsightQuery/defaults.ts -> products/product_analytics/frontend/insights/journeys/stepSourcePresets.ts
+frontend/src/queries/nodes/InsightViz/ComputationTimeWithRefresh.tsx -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/queries/nodes/InsightViz/ComputationTimeWithRefresh.tsx -> frontend/src/scenes/insights/insightDataLogic.tsx
+frontend/src/queries/nodes/InsightViz/ComputationTimeWithRefresh.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/queries/nodes/InsightViz/FlagCallsRetentionNotice.tsx -> frontend/src/scenes/feature-flags/flagEvaluationsTable.ts
+frontend/src/queries/nodes/InsightViz/InsightResultMetadata.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/queries/nodes/InsightViz/InsightResultMetadata.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/queries/nodes/InsightViz/InsightResultMetadata.tsx -> products/product_analytics/frontend/insights/editor/filters/daysOfWeekFilterUtils.ts
+frontend/src/queries/nodes/InsightViz/InsightViz.tsx -> frontend/src/scenes/insights/insightDataLogic.tsx
+frontend/src/queries/nodes/InsightViz/InsightViz.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/queries/nodes/InsightViz/InsightViz.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/queries/nodes/InsightViz/InsightViz.tsx -> products/product_analytics/frontend/insights/editor/EditorFilters.tsx
+frontend/src/queries/nodes/InsightViz/InsightViz.tsx -> products/product_analytics/frontend/insights/shared/selectorMatchChange/SelectorMatchChangeNotice.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> frontend/src/scenes/dashboard/dashboardLogic.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> frontend/src/scenes/insights/EmptyStates/index.ts
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> frontend/src/scenes/insights/filters/ActionFilter/ActionFilterRow/mathUtils.ts
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> frontend/src/scenes/insights/insightDataLogic.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> frontend/src/scenes/insights/sharedUtils.ts
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> frontend/src/scenes/insights/utils/queryUtils.ts
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/InsightNav/insightNavLogic.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/chartAlternatives/ChartAlternatives.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/dataChecks/InsightDataChecks.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/editor/InsightDisplayConfig.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/funnels/Funnel.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/funnels/FunnelCanvasLabel.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/funnels/FunnelStepsTable/FunnelStepsTable.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/funnels/FunnelTimeToConvertTable/FunnelTimeToConvertTable.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/funnels/FunnelTrendsTable/FunnelTrendsTable.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/funnels/funnelDataLogic.ts
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/journeys/Journeys.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/paths/Paths.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/paths/PathsLabel.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/retention/RetentionContainer.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/shared/InsightAIAnalysis.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/shared/InsightsTable/InsightsTable.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/shared/insightImageCapture.ts
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/trends/BoxPlot/BoxPlotLegend.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/trends/BoxPlot/BoxPlotResultsTable.tsx
+frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx -> products/product_analytics/frontend/insights/trends/Trends.tsx
+frontend/src/queries/nodes/InsightViz/ResultCustomizationsModal.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/queries/nodes/InsightViz/ResultCustomizationsModal.tsx -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/queries/nodes/InsightViz/ResultCustomizationsModal.tsx -> frontend/src/scenes/insights/utils.tsx
+frontend/src/queries/nodes/InsightViz/ResultCustomizationsModal.tsx -> frontend/src/scenes/insights/utils/resultSeries.ts
+frontend/src/queries/nodes/InsightViz/ResultCustomizationsModal.tsx -> products/product_analytics/frontend/insights/trends/trendsDataLogic.ts
+frontend/src/queries/nodes/InsightViz/exportAdapters.ts -> frontend/src/scenes/insights/utils/resultSeries.ts
+frontend/src/queries/nodes/InsightViz/insightVizKeys.ts -> frontend/src/scenes/insights/sharedUtils.ts
+frontend/src/queries/nodes/InsightViz/resultCustomizationsModalLogic.ts -> frontend/src/scenes/insights/insightVizDataLogic.ts
+frontend/src/queries/nodes/InsightViz/resultCustomizationsModalLogic.ts -> frontend/src/scenes/insights/sharedUtils.ts
+frontend/src/queries/nodes/InsightViz/resultCustomizationsModalLogic.ts -> frontend/src/scenes/insights/utils.tsx
+frontend/src/queries/nodes/InsightViz/resultCustomizationsModalLogic.ts -> products/product_analytics/frontend/insights/funnels/funnelDataLogic.ts
+frontend/src/queries/nodes/InsightViz/resultCustomizationsModalLogic.ts -> products/product_analytics/frontend/insights/trends/trendsDataLogic.ts
+frontend/src/queries/nodes/PersonsNode/DeletePersonButton.tsx -> products/persons/frontend/logics/personDeleteModalLogic.tsx
+frontend/src/queries/nodes/SavedInsight/SavedInsight.tsx -> frontend/src/scenes/insights/insightDataLogic.tsx
+frontend/src/queries/nodes/SavedInsight/SavedInsight.tsx -> frontend/src/scenes/insights/insightLogic.tsx
+frontend/src/queries/nodes/WebVitals/WebVitals.tsx -> frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx
+frontend/src/queries/nodes/WebVitals/WebVitalsContent.tsx -> frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx
+frontend/src/queries/nodes/WebVitals/WebVitalsPathBreakdown.tsx -> frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx
+frontend/src/queries/query.ts -> frontend/src/exporter/exporterViewLogic.ts
+frontend/src/scenes/AuthenticatedShell.tsx -> frontend/src/scenes/billing/billingLogic.tsx
+frontend/src/scenes/AuthenticatedShell.tsx -> frontend/src/scenes/onboarding/shared/wizard-sync/WizardHandoffDialog.tsx
+frontend/src/scenes/AuthenticatedShell.tsx -> frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncDebugPanel.tsx
+frontend/src/scenes/AuthenticatedShell.tsx -> frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncFab.tsx
+frontend/src/scenes/AuthenticatedShell.tsx -> products/webmcp/frontend/logics/webmcpLogic.ts
+frontend/src/scenes/AuthenticatedShell.tsx -> products/wizard/frontend/runs/WizardRunSyncFab.tsx
+frontend/src/scenes/appLogic.tsx -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/scenes/appScenes.ts -> frontend/src/scenes/project-homepage/importProjectHomepage.ts
+frontend/src/scenes/bootApp.ts -> frontend/src/scenes/notebooks/AddToNotebook/registerNotebookLinkDrag.ts
+frontend/src/scenes/sceneLogic.tsx -> frontend/src/exporter/exporterViewLogic.ts
+frontend/src/scenes/sceneLogic.tsx -> frontend/src/scenes/PreflightCheck/preflightLogic.tsx
+frontend/src/scenes/sceneLogic.tsx -> frontend/src/scenes/authentication/auth/loginLogic.ts
+frontend/src/scenes/sceneLogic.tsx -> frontend/src/scenes/coupons/utils.ts
+frontend/src/scenes/sceneLogic.tsx -> frontend/src/scenes/onboarding/onboardingDelegationState.ts
+frontend/src/scenes/sceneLogic.tsx -> frontend/src/scenes/settings/organization/inviteLogic.ts
+frontend/src/scenes/scenes.ts -> frontend/src/scenes/activity/explore/defaults.ts
+frontend/src/scenes/userLogic.ts -> frontend/src/scenes/authentication/shared/verificationCode.ts
+frontend/src/scenes/userLogic.ts -> products/data_warehouse/frontend/sqlEditorDraftCleanup.ts
+frontend/src/taxonomy/helpers.ts -> frontend/src/scenes/surveys/surveyQuestionLabelsLogic.ts
diff --git a/frontend/bin/layerGraphHtml.mjs b/frontend/bin/layerGraphHtml.mjs
new file mode 100644
index 000000000000..8ea80803299a
--- /dev/null
+++ b/frontend/bin/layerGraphHtml.mjs
@@ -0,0 +1,323 @@
+import { groupOf, shortName } from './layers.mjs'
+
+// Renders check-layers.mjs results as one self-contained HTML page: a column per layer, a box per
+// folder, and a line for each folder pair joined by an upward import.
+
+function bytesSavedByCut(files, root, reachBytes, cutFrom, cutTo) {
+ const seen = new Set([root])
+ const queue = [root]
+ let bytes = files[root]?.bytes ?? 0
+ while (queue.length) {
+ const file = queue.pop()
+ for (const target of files[file]?.staticImports ?? []) {
+ if ((file === cutFrom && target === cutTo) || seen.has(target)) {
+ continue
+ }
+ seen.add(target)
+ bytes += files[target]?.bytes ?? 0
+ queue.push(target)
+ }
+ }
+ return reachBytes - bytes
+}
+
+export function renderLayerGraphHtml({ files, shellRoot, shellReach, upward, layerOf, layers, opportunities }) {
+ const reachBytes = [...shellReach.keys()].reduce((sum, file) => sum + (files[file]?.bytes ?? 0), 0)
+ const groups = {}
+ for (const [file, { bytes }] of Object.entries(files)) {
+ const layer = layerOf(file)
+ const key = `${layer}|${groupOf(file)}`
+ groups[key] ??= { key, layer, name: groupOf(file), bytes: 0, eagerBytes: 0, files: [] }
+ const eager = shellReach.has(file)
+ groups[key].bytes += bytes
+ groups[key].eagerBytes += eager ? bytes : 0
+ groups[key].files.push([shortName(file), bytes, eager ? 1 : 0])
+ }
+ const imports = upward.map((edge) => {
+ const [from, to] = edge.split(' -> ')
+ const eager = shellReach.has(from)
+ return {
+ from: shortName(from),
+ to: shortName(to),
+ fromGroup: `${layerOf(from)}|${groupOf(from)}`,
+ toGroup: `${layerOf(to)}|${groupOf(to)}`,
+ eager: eager ? 1 : 0,
+ saved: eager ? bytesSavedByCut(files, shellRoot, reachBytes, from, to) : 0,
+ }
+ })
+ const parents = {}
+ for (const [file, parent] of shellReach) {
+ if (parent) {
+ parents[shortName(file)] = shortName(parent)
+ }
+ }
+ const data = {
+ layers,
+ groups: Object.values(groups),
+ imports,
+ parents,
+ reachBytes,
+ opportunities,
+ generated: new Date().toISOString(),
+ }
+ // A callback, because a replacement string expands $' and $` found in repository paths.
+ return PAGE.replace('__DATA__', () => JSON.stringify(data).replace(/</g, '\\u003c'))
+}
+
+const PAGE = `<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<title>Frontend layer graph</title>
+<style>
+.viz-root {
+ color-scheme: light;
+ --surface-1: #fcfcfb; --surface-2: #f2f1ee; --border: #dcdbd6;
+ --text-primary: #0b0b0b; --text-secondary: #52514e; --text-muted: #77766f;
+ --layer-kernel: #2a78d6; --layer-query: #1baf7a; --layer-shell: #eda100; --layer-features: #4a3aa7;
+ --critical: #d03b3b;
+}
+@media (prefers-color-scheme: dark) {
+ .viz-root {
+ color-scheme: dark;
+ --surface-1: #1a1a19; --surface-2: #242423; --border: #3a3a38;
+ --text-primary: #ffffff; --text-secondary: #c3c2b7; --text-muted: #9a998f;
+ --layer-kernel: #3987e5; --layer-query: #199e70; --layer-shell: #c98500; --layer-features: #9085e9;
+ }
+}
+* { box-sizing: border-box; }
+body { margin: 0; font: 13px/1.4 system-ui, sans-serif; }
+.viz-root { background: var(--surface-1); color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; }
+header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
+header h1 { font-size: 16px; margin: 0; }
+.stat { color: var(--text-secondary); }
+.stat b { color: var(--text-primary); }
+.controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-left: auto; }
+input[type=search] { background: var(--surface-2); color: var(--text-primary); border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; min-width: 220px; }
+button.tab { background: none; border: 1px solid var(--border); color: var(--text-secondary); border-radius: 4px; padding: 4px 10px; cursor: pointer; }
+button.tab[aria-pressed=true] { color: var(--text-primary); background: var(--surface-2); }
+main { flex: 1; display: flex; min-height: 0; }
+#graph { flex: 1; overflow: auto; }
+aside { width: 380px; flex-shrink: 0; border-left: 1px solid var(--border); overflow: auto; padding: 12px 16px; }
+aside h2 { font-size: 15px; margin: 0 0 4px; word-break: break-all; }
+aside h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 16px 0 6px; }
+aside ol, aside ul { margin: 0; padding-left: 18px; }
+aside li { margin: 2px 0; word-break: break-all; }
+.muted { color: var(--text-muted); }
+.legend { display: flex; gap: 12px; align-items: center; color: var(--text-secondary); }
+.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
+.upline { display: inline-block; width: 18px; border-top: 2px dashed var(--critical); margin-right: 4px; vertical-align: 3px; }
+svg text { fill: var(--text-primary); font-size: 11px; pointer-events: none; }
+svg .column-label { font-size: 13px; font-weight: 600; }
+svg .size { fill: var(--text-secondary); }
+.node rect { stroke: var(--surface-1); stroke-width: 2px; cursor: pointer; rx: 4px; }
+.node.dim { opacity: .2; }
+.edge { fill: none; stroke: var(--critical); stroke-dasharray: 5 3; }
+.edge.dim { opacity: .04; }
+#tooltip { position: fixed; pointer-events: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 6px 8px; display: none; max-width: 360px; }
+table { border-collapse: collapse; width: 100%; }
+th, td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-all; }
+th { color: var(--text-muted); font-weight: 600; cursor: pointer; position: sticky; top: 0; background: var(--surface-1); }
+td.layers, th { white-space: nowrap; }
+td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
+#table, #opportunities { flex: 1; overflow: auto; padding: 0 16px 16px; display: none; }
+#opportunities h2 { font-size: 15px; margin: 20px 0 2px; }
+#opportunities p { color: var(--text-secondary); margin: 0 0 8px; max-width: 80ch; }
+details summary { cursor: pointer; }
+a { color: inherit; }
+</style>
+</head>
+<body>
+<div class="viz-root">
+<header>
+ <h1>Frontend layer graph</h1>
+ <span class="stat" id="totals"></span>
+ <span class="legend" id="legend"></span>
+ <div class="controls">
+ <label><input type="checkbox" id="eagerOnly" checked> Eager path of every logged-in page only</label>
+ <input type="search" id="search" placeholder="Filter folders">
+ <button class="tab" id="showGraph" aria-pressed="true">Graph</button>
+ <button class="tab" id="showTable" aria-pressed="false">Table</button>
+ <button class="tab" id="showOpportunities" aria-pressed="false">Opportunities</button>
+ </div>
+</header>
+<main>
+ <div id="graph"></div>
+ <div id="table"></div>
+ <div id="opportunities"></div>
+ <aside id="details"><p class="muted">Select a folder to see its upward imports, why it is eager, and its largest files. Sizes are source bytes, before minify.</p></aside>
+</main>
+<div id="tooltip"></div>
+</div>
+<script>
+const DATA = __DATA__
+const { layers, groups, imports, parents } = DATA
+const kib = (bytes) => bytes >= 1048576 ? (bytes / 1048576).toFixed(2) + ' MiB' : Math.round(bytes / 1024) + ' KiB'
+// Folder and file names come from repository paths, so they are untrusted: a crafted directory name
+// must not run script when its report entry is rendered through innerHTML.
+const ESCAPE_MAP = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }
+const esc = (s) => String(s).replace(/[&<>"']/g, (c) => ESCAPE_MAP[c])
+const byKey = Object.fromEntries(groups.map((g) => [g.key, g]))
+const state = { eagerOnly: true, search: '', selected: null, sort: 'saved' }
+
+const eagerImports = imports.filter((i) => i.eager)
+document.getElementById('totals').innerHTML =
+ '<b>' + imports.length + '</b> upward imports, <b>' + eagerImports.length + '</b> on the eager path. Eager path: <b>' + kib(DATA.reachBytes) + '</b> source.'
+document.getElementById('legend').innerHTML =
+ layers.map((l) => '<span><span class="swatch" style="background:var(--layer-' + l + ')"></span>' + l + '</span>').join('') +
+ '<span><span class="upline"></span>upward import</span>'
+
+function visibleGroups() {
+ return groups.filter((g) => (!state.eagerOnly || g.eagerBytes > 0) && (!state.search || g.name.includes(state.search)))
+}
+function visibleImports() {
+ return imports.filter((i) => !state.eagerOnly || i.eager)
+}
+const sizeOf = (g) => (state.eagerOnly ? g.eagerBytes : g.bytes)
+
+function edgesBetweenGroups(list) {
+ const edges = {}
+ for (const i of list) {
+ const key = i.fromGroup + '>' + i.toGroup
+ edges[key] ??= { from: i.fromGroup, to: i.toGroup, count: 0, saved: 0 }
+ edges[key].count++
+ edges[key].saved = Math.max(edges[key].saved, i.saved)
+ }
+ return Object.values(edges)
+}
+
+function drawGraph() {
+ const shown = visibleGroups()
+ const maxBytes = Math.max(1, ...shown.map(sizeOf))
+ const columnWidth = 220, gap = 80, top = 40, left = 16
+ const positions = {}
+ let height = 0
+ layers.forEach((layer, column) => {
+ let y = top
+ for (const g of shown.filter((g) => g.layer === layer).sort((a, b) => sizeOf(b) - sizeOf(a))) {
+ const h = 18 + Math.round(70 * Math.sqrt(sizeOf(g) / maxBytes))
+ positions[g.key] = { x: left + column * (columnWidth + gap), y, h }
+ y += h + 2
+ }
+ height = Math.max(height, y)
+ })
+ const width = left * 2 + layers.length * columnWidth + (layers.length - 1) * gap
+ const edges = edgesBetweenGroups(visibleImports()).filter((e) => positions[e.from] && positions[e.to])
+ const related = new Set()
+ if (state.selected) {
+ related.add(state.selected)
+ for (const e of edges) if (e.from === state.selected || e.to === state.selected) { related.add(e.from); related.add(e.to) }
+ }
+ const maxSaved = Math.max(1, ...edges.map((e) => e.saved))
+ let svg = '<svg width="' + width + '" height="' + (height + 20) + '" role="img" aria-label="Folders by layer, with upward imports">'
+ layers.forEach((layer, column) => {
+ svg += '<text class="column-label" x="' + (left + column * (columnWidth + gap)) + '" y="22">' + layer + '</text>'
+ })
+ for (const e of edges) {
+ const a = positions[e.from], b = positions[e.to]
+ const x1 = a.x + columnWidth, y1 = a.y + a.h / 2, x2 = b.x, y2 = b.y + b.h / 2, mid = (x1 + x2) / 2
+ const dim = state.selected && e.from !== state.selected && e.to !== state.selected
+ const strokeWidth = 1 + (state.eagerOnly ? 3 * Math.sqrt(e.saved / maxSaved) : Math.min(3, e.count / 4))
+ svg += '<path class="edge' + (dim ? ' dim' : '') + '" stroke-width="' + strokeWidth.toFixed(1) + '" opacity="0.55" d="M' + x1 + ',' + y1 + ' C' + mid + ',' + y1 + ' ' + mid + ',' + y2 + ' ' + x2 + ',' + y2 + '"/>'
+ }
+ for (const g of shown) {
+ const p = positions[g.key]
+ const dim = state.selected && !related.has(g.key)
+ svg += '<g class="node' + (dim ? ' dim' : '') + '" data-key="' + esc(g.key) + '"><rect x="' + p.x + '" y="' + p.y + '" width="' + columnWidth + '" height="' + p.h + '" fill="var(--layer-' + g.layer + ')" fill-opacity="0.22"/>' +
+ '<rect x="' + p.x + '" y="' + p.y + '" width="4" height="' + p.h + '" fill="var(--layer-' + g.layer + ')"/>' +
+ '<text x="' + (p.x + 10) + '" y="' + (p.y + 13) + '">' + esc(truncate(g.name, 26)) + '</text>' +
+ '<text class="size" x="' + (p.x + columnWidth - 6) + '" y="' + (p.y + 13) + '" text-anchor="end">' + kib(sizeOf(g)) + '</text></g>'
+ }
+ svg += '</svg>'
+ const container = document.getElementById('graph')
+ container.innerHTML = svg
+ container.querySelectorAll('.node').forEach((node) => {
+ const g = byKey[node.dataset.key]
+ node.addEventListener('click', () => select(g.key))
+ node.addEventListener('mousemove', (event) => showTooltip(event, '<b>' + esc(g.name) + '</b><br>' + g.layer + ' layer<br>' + kib(sizeOf(g)) + ' in ' + g.files.filter((f) => !state.eagerOnly || f[2]).length + ' files'))
+ node.addEventListener('mouseleave', hideTooltip)
+ })
+}
+
+function truncate(text, max) { return text.length > max ? '...' + text.slice(text.length - max + 3) : text }
+
+function showTooltip(event, html) {
+ const tip = document.getElementById('tooltip')
+ tip.innerHTML = html
+ tip.style.display = 'block'
+ tip.style.left = event.clientX + 14 + 'px'
+ tip.style.top = event.clientY + 14 + 'px'
+}
+function hideTooltip() { document.getElementById('tooltip').style.display = 'none' }
+
+function chainTo(file) {
+ const chain = []
+ for (let f = file; f; f = parents[f]) chain.unshift(f)
+ return chain
+}
+
+function select(key) {
+ state.selected = state.selected === key ? null : key
+ drawGraph()
+ const details = document.getElementById('details')
+ if (!state.selected) { details.innerHTML = '<p class="muted">Select a folder.</p>'; return }
+ const g = byKey[key]
+ const out = visibleImports().filter((i) => i.fromGroup === key).sort((a, b) => b.saved - a.saved)
+ const into = visibleImports().filter((i) => i.toGroup === key).sort((a, b) => b.saved - a.saved)
+ const eagerFiles = g.files.filter((f) => f[2]).sort((a, b) => b[1] - a[1])
+ const list = (items, render) => items.length ? '<ul>' + items.map(render).join('') + '</ul>' : '<p class="muted">None.</p>'
+ const importLine = (i) => '<li>' + esc(i.from) + ' <span class="muted">-></span> ' + esc(i.to) + (i.eager ? ' <span class="muted">(' + (i.saved ? 'cut saves ' + kib(i.saved) : 'other imports keep it eager') + ')</span>' : '') + '</li>'
+ details.innerHTML =
+ '<h2>' + esc(g.name) + '</h2><div class="muted">' + g.layer + ' layer, ' + kib(g.eagerBytes) + ' eager of ' + kib(g.bytes) + '</div>' +
+ '<h3>Upward imports out (' + out.length + ')</h3>' + list(out, importLine) +
+ '<h3>Upward imports in (' + into.length + ')</h3>' + list(into, importLine) +
+ '<h3>Why it is eager</h3>' + (eagerFiles.length ? '<ol>' + chainTo(eagerFiles[0][0]).map((f) => '<li>' + esc(f) + '</li>').join('') + '</ol>' : '<p class="muted">Not on the eager path.</p>') +
+ '<h3>Largest files</h3>' + list(g.files.slice().sort((a, b) => b[1] - a[1]).slice(0, 25), (f) => '<li>' + esc(f[0]) + ' <span class="muted">' + kib(f[1]) + (f[2] ? ', eager' : '') + '</span></li>')
+}
+
+function drawTable() {
+ const rows = visibleImports().filter((i) => !state.search || i.from.includes(state.search) || i.to.includes(state.search))
+ const key = state.sort
+ rows.sort((a, b) => (key === 'saved' ? b.saved - a.saved : String(a[key]).localeCompare(String(b[key]))))
+ const layer = (groupKey) => groupKey.split('|')[0]
+ document.getElementById('table').innerHTML = '<table><thead><tr>' +
+ [['from', 'From'], ['to', 'To'], ['fromGroup', 'Layers'], ['saved', 'Cut saves']].map(([k, label]) => '<th data-sort="' + k + '">' + label + '</th>').join('') +
+ '</tr></thead><tbody>' + rows.map((i) => '<tr><td>' + esc(i.from) + '</td><td>' + esc(i.to) + '</td><td class="layers">' + layer(i.fromGroup) + ' -> ' + layer(i.toGroup) + '</td><td class="num">' + (i.eager ? kib(i.saved) : '-') + '</td></tr>').join('') + '</tbody></table>'
+ document.querySelectorAll('#table th').forEach((th) => th.addEventListener('click', () => { state.sort = th.dataset.sort; drawTable() }))
+}
+
+function drawOpportunities() {
+ const o = DATA.opportunities
+ const short = (f) => f.replace('frontend/src/', '')
+ const files = (list) => '<details><summary>' + list.length + '</summary>' + list.map((f) => esc(short(f))).join('<br>') + '</details>'
+ const table = (heads, rows) => '<table><thead><tr>' + heads.map((h) => '<th>' + h + '</th>').join('') + '</tr></thead><tbody>' + rows.map((r) => '<tr>' + r.map((c, i) => '<td' + (typeof c === 'number' ? ' class="num"' : '') + '>' + c + '</td>').join('') + '</tr>').join('') + '</tbody></table>'
+ const match = (text) => !state.search || text.includes(state.search)
+ document.getElementById('opportunities').innerHTML =
+ '<h2>Make a folder lazy</h2><p>A feature or query folder on the eager path, and the bytes saved if every import into it from outside became a dynamic import. Fewest imports for the most bytes first.</p>' +
+ table(['Folder', 'Layer', 'Saves', 'Imports to change'], o.lazyFolders.filter((x) => match(x.folder)).map((x) => [esc(x.folder), x.layer, kib(x.saved), files(x.entries.map(([from, to]) => from + ' -> ' + to))])) +
+ '<h2>Move a file down a layer</h2><p>Lower layers import this file, and it imports nothing above the lowest of them. Moving it down clears these baseline entries and adds none.</p>' +
+ table(['File', 'Move', 'Clears', 'Imported from'], o.misplacedFiles.filter((x) => match(x.file)).map((x) => [esc(short(x.file)), x.layer + ' -> ' + x.moveTo, x.lowerImporters.length, files(x.lowerImporters)])) +
+ '<h2>Split a heavy hub</h2><p>A file the shell path imports upward that pulls in far more than its own size. Usually a cheap export sits next to a heavy one.</p>' +
+ table(['File', 'Layer', 'Own size', 'Drags in'], o.heavyHubs.filter((x) => match(x.file)).map((x) => [esc(short(x.file)), x.layer, kib(x.bytes), kib(x.saved)])) +
+ '<h2>Kernel leaks</h2><p>Kernel is the bottom layer, so it should import nothing above it. Each target is either kernel code in the wrong place or a kernel file that needs a split.</p>' +
+ table(['Target', 'Layer', 'Kernel importers'], o.kernelLeaks.filter((x) => match(x.file)).map((x) => [esc(short(x.file)), x.layer, files(x.importers)]))
+}
+
+function redraw() { drawGraph(); drawTable(); drawOpportunities() }
+document.getElementById('eagerOnly').addEventListener('change', (e) => { state.eagerOnly = e.target.checked; state.selected = null; redraw() })
+document.getElementById('search').addEventListener('input', (e) => { state.search = e.target.value.trim(); redraw() })
+const VIEWS = { graph: 'showGraph', table: 'showTable', opportunities: 'showOpportunities' }
+function showView(view) {
+ for (const [id, button] of Object.entries(VIEWS)) {
+ document.getElementById(id).style.display = id === view ? 'block' : 'none'
+ document.getElementById(button).setAttribute('aria-pressed', String(id === view))
+ }
+}
+for (const [id, button] of Object.entries(VIEWS)) {
+ document.getElementById(button).addEventListener('click', () => showView(id))
+}
+redraw()
+</script>
+</body>
+</html>
+`
diff --git a/frontend/bin/layerGraphHtml.test.ts b/frontend/bin/layerGraphHtml.test.ts
new file mode 100644
index 000000000000..2dee1babbbc7
--- /dev/null
+++ b/frontend/bin/layerGraphHtml.test.ts
@@ -0,0 +1,30 @@
+import { renderLayerGraphHtml } from './layerGraphHtml.mjs'
+import { LAYERS, groupOf, layerOf } from './layers.mjs'
+
+describe('layerGraphHtml.mjs', () => {
+ it.each([
+ [
+ 'a double quote that ends the attribute',
+ 'frontend/src/lib/components/Bad" onpointerover="alert(1)/index.tsx',
+ ],
+ ['an entity that the attribute decodes', 'frontend/src/lib/components/Bad&quot;/index.tsx'],
+ ['a pattern that String.replace expands', "frontend/src/lib/components/A$'$`alert(1);$'/index.tsx"],
+ ])('keeps a folder name with %s inside its graph node key', (_, file) => {
+ const html = renderLayerGraphHtml({
+ files: { [file]: { bytes: 100, staticImports: [] } },
+ shellRoot: file,
+ shellReach: new Map([[file, null]]),
+ upward: [],
+ layerOf,
+ layers: LAYERS,
+ opportunities: { lazyFolders: [], misplacedFiles: [], heavyHubs: [], kernelLeaks: [] },
+ })
+ document.documentElement.innerHTML = html
+ new Function(html.match(/<script>([\s\S]*)<\/script>/)![1])()
+
+ const nodes = document.querySelectorAll('#graph .node')
+ expect(nodes).toHaveLength(1)
+ expect(nodes[0].getAttribute('onpointerover')).toBeNull()
+ expect(nodes[0].getAttribute('data-key')).toEqual(`${layerOf(file)}|${groupOf(file)}`)
+ })
+})
diff --git a/frontend/bin/layerOpportunities.mjs b/frontend/bin/layerOpportunities.mjs
new file mode 100644
index 000000000000..29ad790d5953
--- /dev/null
+++ b/frontend/bin/layerOpportunities.mjs
@@ -0,0 +1,118 @@
+// Ranks structural changes that would shrink the shell's eager graph or make the layer map tell the truth.
+import { LAYERS, groupOf, layerOf } from './layers.mjs'
+
+const MIN_SAVING_BYTES = 30 * 1024
+
+function reachableBytes(files, root, isCut) {
+ const seen = new Set([root])
+ const queue = [root]
+ let bytes = files[root]?.bytes ?? 0
+ while (queue.length) {
+ const from = queue.pop()
+ for (const to of files[from]?.staticImports ?? []) {
+ if (seen.has(to) || isCut(from, to)) {
+ continue
+ }
+ seen.add(to)
+ bytes += files[to]?.bytes ?? 0
+ queue.push(to)
+ }
+ }
+ return bytes
+}
+
+const rank = (file) => LAYERS.indexOf(layerOf(file))
+
+function importersOf(files) {
+ const importers = {}
+ for (const [from, { staticImports }] of Object.entries(files)) {
+ for (const to of staticImports) {
+ ;(importers[to] ??= new Set()).add(from)
+ }
+ }
+ return importers
+}
+
+// A feature or query folder that a few imports drag onto the eager path is the cheapest lazy-load win.
+function lazyFolders(files, shellRoot, shellReach, total) {
+ const folders = new Set([...shellReach.keys()].filter((f) => rank(f) > rank(shellRoot)).map(groupOf))
+ return [...folders]
+ .map((folder) => {
+ const entries = []
+ for (const from of shellReach.keys()) {
+ if (groupOf(from) === folder) {
+ continue
+ }
+ for (const to of files[from].staticImports) {
+ if (groupOf(to) === folder) {
+ entries.push([from, to])
+ }
+ }
+ }
+ const saved =
+ total -
+ reachableBytes(files, shellRoot, (from, to) => groupOf(to) === folder && groupOf(from) !== folder)
+ return { folder, layer: layerOf([...shellReach.keys()].find((f) => groupOf(f) === folder)), saved, entries }
+ })
+ .filter((o) => o.saved >= MIN_SAVING_BYTES)
+ .sort((a, b) => b.saved / b.entries.length - a.saved / a.entries.length)
+}
+
+// A file that lower layers lean on, and that leans on nothing above the lowest of them, sits in the wrong
+// layer. Moving it down to that layer clears every upward import into it and adds none.
+function misplacedFiles(files, importers) {
+ return Object.keys(files)
+ .map((file) => {
+ const lowerImporters = [...(importers[file] ?? [])].filter((from) => rank(from) < rank(file))
+ const lowest = Math.min(...lowerImporters.map(rank))
+ const blocking = files[file].staticImports.filter((to) => rank(to) > lowest)
+ return { file, layer: layerOf(file), moveTo: LAYERS[lowest], lowerImporters, blocking }
+ })
+ .filter((o) => o.lowerImporters.length >= 2 && o.blocking.length === 0)
+ .sort((a, b) => b.lowerImporters.length - a.lowerImporters.length)
+}
+
+// A small file imported upward that pulls a large closure behind it usually mixes a cheap export with a heavy one.
+function heavyHubs(files, shellRoot, shellReach, total) {
+ const targets = new Set()
+ for (const from of shellReach.keys()) {
+ for (const to of files[from].staticImports) {
+ if (rank(to) > rank(from)) {
+ targets.add(to)
+ }
+ }
+ }
+ return [...targets]
+ .map((file) => {
+ const saved = total - reachableBytes(files, shellRoot, (_, to) => to === file)
+ return { file, layer: layerOf(file), bytes: files[file].bytes, saved }
+ })
+ .filter((o) => o.saved >= MIN_SAVING_BYTES && o.saved >= 4 * o.bytes)
+ .sort((a, b) => b.saved - a.saved)
+}
+
+// The kernel is the bottom layer, so every import out of it is a mistake in the code or in the map.
+function kernelLeaks(files) {
+ const kernelRank = LAYERS.indexOf('kernel')
+ const byTarget = {}
+ for (const [from, { staticImports }] of Object.entries(files)) {
+ if (rank(from) !== kernelRank) {
+ continue
+ }
+ for (const to of staticImports.filter((target) => rank(target) > kernelRank)) {
+ ;(byTarget[to] ??= { file: to, layer: layerOf(to), importers: [] }).importers.push(from)
+ }
+ }
+ return Object.values(byTarget).sort((a, b) => b.importers.length - a.importers.length)
+}
+
+export function findOpportunities({ files, shellRoot, shellReach }) {
+ const total = reachableBytes(files, shellRoot, () => false)
+ const importers = importersOf(files)
+ return {
+ lazyFolders: lazyFolders(files, shellRoot, shellReach, total),
+ misplacedFiles: misplacedFiles(files, importers),
+ heavyHubs: heavyHubs(files, shellRoot, shellReach, total),
+ kernelLeaks: kernelLeaks(files),
+ }
+}
diff --git a/frontend/bin/layers.mjs b/frontend/bin/layers.mjs
new file mode 100644
index 000000000000..7f3dde8cc11b
--- /dev/null
+++ b/frontend/bin/layers.mjs
@@ -0,0 +1,45 @@
+// The frontend's dependency layers, lowest first. A file may statically import only from its own layer
+// or a lower one, so nothing from a higher layer can reach the eager graph of a lower one.
+// A higher layer is reached through a dynamic import() instead (lazyWithRetry, retryImport).
+export const LAYERS = ['kernel', 'shell', 'query', 'features']
+
+// First match wins. A path that no rule names is a feature, so new code stays off the shell's eager
+// path until someone moves it down in a reviewed change.
+const RULES = [
+ ['kernel', /^frontend\/src\/queries\/schema\//],
+ ['kernel', /\/generated\//],
+ ['kernel', /^frontend\/src\/lib\/(utils|lemon-ui|ui|api[a-z-]*|constants|dayjs|hooks|colors)(\/|\.|$)/],
+ ['kernel', /^frontend\/src\/(types|initKea|globals)\.tsx?$/],
+ ['kernel', /^frontend\/src\/(styles|vendor)\//],
+ ['kernel', /^frontend\/@posthog\//],
+ ['kernel', /^(common|packages)\//],
+ ['query', /^frontend\/src\/queries\//],
+ ['shell', /^frontend\/src\/(lib|layout|models|taxonomy)\//],
+ ['shell', /^frontend\/src\/scenes\/[^/]+$/],
+ ['shell', /^frontend\/src\/[^/]+$/],
+]
+
+export function layerOf(file) {
+ return RULES.find(([, pattern]) => pattern.test(file))?.[0] ?? 'features'
+}
+
+export function isUpward(fromFile, toFile) {
+ return LAYERS.indexOf(layerOf(toFile)) > LAYERS.indexOf(layerOf(fromFile))
+}
+
+export const shortName = (file) => file.replace(/^frontend\/src\//, '')
+
+// Folder a report shows a file under: a product, a lib component, or a top-level folder.
+export function groupOf(file) {
+ const parts = shortName(file).split('/')
+ if (parts[0] === 'products') {
+ return parts.slice(0, 2).join('/') + (parts.includes('generated') ? '/generated' : '')
+ }
+ if (parts[0] === 'lib' && parts.length > 3) {
+ return parts.slice(0, 3).join('/')
+ }
+ if (parts.length > 2) {
+ return parts.slice(0, 2).join('/')
+ }
+ return parts.length === 2 ? `${parts[0]}/*` : 'src/*'
+}
diff --git a/frontend/bin/layers.test.ts b/frontend/bin/layers.test.ts
new file mode 100644
index 000000000000..506704bbf520
--- /dev/null
+++ b/frontend/bin/layers.test.ts
@@ -0,0 +1,30 @@
+import { isUpward, layerOf } from './layers.mjs'
+
+describe('layers.mjs', () => {
+ it.each([
+ ['frontend/src/queries/schema/schema-general.ts', 'kernel'],
+ ['products/signals/frontend/generated/api.schemas.ts', 'kernel'],
+ ['frontend/src/lib/utils/css-classes.ts', 'kernel'],
+ ['frontend/src/lib/api.ts', 'kernel'],
+ ['frontend/src/styles/global.scss', 'kernel'],
+ ['frontend/src/queries/nodes/DataTable/DataTable.tsx', 'query'],
+ ['frontend/src/layout/navigation-3000/Navigation.tsx', 'shell'],
+ ['frontend/src/lib/logic/themeLogic.ts', 'shell'],
+ ['frontend/src/lib/components/Command/Command.tsx', 'shell'],
+ ['frontend/src/scenes/sceneLogic.tsx', 'shell'],
+ ['frontend/src/scenes/dashboard/dashboardLogic.tsx', 'features'],
+ ['products/signals/frontend/inbox/inboxTaskKickoffLogic.ts', 'features'],
+ ['frontend/src/a-folder-nobody-has-mapped/thing.ts', 'features'],
+ ])('puts %s in the %s layer', (file, layer) => {
+ expect(layerOf(file)).toEqual(layer)
+ })
+
+ it.each([
+ ['frontend/src/layout/Navigation.tsx', 'frontend/src/scenes/max/maxLogic.tsx', true],
+ ['frontend/src/layout/Navigation.tsx', 'frontend/src/queries/nodes/DataTable/DataTable.tsx', true],
+ ['frontend/src/scenes/max/maxLogic.tsx', 'frontend/src/layout/Navigation.tsx', false],
+ ['frontend/src/layout/Navigation.tsx', 'frontend/src/layout/panel-layout/PanelLayout.tsx', false],
+ ])('%s -> %s is upward: %s', (from, to, upward) => {
+ expect(isUpward(from, to)).toEqual(upward)
+ })
+})
diff --git a/hogli.yaml b/hogli.yaml
index b752fdb5a878..76ae7e5dc7c6 100644
--- a/hogli.yaml
+++ b/hogli.yaml
@@ -898,6 +898,9 @@ quality:
lint:api-ratchet:
click: hogli_commands.api_ratchet:cmd_lint_api_ratchet
description: Block new frontend/src/lib/api.ts path methods that a generated client already covers
+ lint:frontend-layers:
+ cmd: node frontend/bin/check-layers.mjs "$@"
+ description: Block new static imports from a lower frontend layer into a higher one
lint:workflows:
click: hogli_commands.workflow_lint.cli:cmd_lint_workflows
description: Lint .github/workflows/** for repo conventions
diff --git a/tools/hogli-commands/hogli_commands/ci_preflight.py b/tools/hogli-commands/hogli_commands/ci_preflight.py
index c6c15cbaee33..46edf60ff5d4 100644
--- a/tools/hogli-commands/hogli_commands/ci_preflight.py
+++ b/tools/hogli-commands/hogli_commands/ci_preflight.py
@@ -292,6 +292,24 @@ DIFF_CHECKS: list[DiffCheck] = [
fix=["hogli", "lint:api-ratchet", "--prune-baseline", "--write-semgrep"],
requires=("python-env",),
),
+ DiffCheck(
+ key="frontend-layers",
+ label="new static import from a lower frontend layer into a higher one",
+ triggers=[
+ "frontend/src/*",
+ "frontend/@posthog/*",
+ "products/*/frontend/*",
+ "common/*",
+ "packages/*",
+ "frontend/bin/layers.mjs",
+ "frontend/bin/layer-baseline.txt",
+ ],
+ verify=["hogli", "lint:frontend-layers"],
+ # Prune, never update: --update-baseline would grandfather the upward import the
+ # branch just added, which is the one thing the check exists to stop.
+ fix=["hogli", "lint:frontend-layers", "--prune-baseline"],
+ requires=("node",),
+ ),
DiffCheck(
key="workflow-lint",
label="workflow-convention failure in .github/workflows",