: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(ci): split productScenes out of products.tsx to tame jest related-tests fan-out (#69964)
Paul D'Ambra9930aa49642f
diff --git a/frontend/build-products.mjs b/frontend/build-products.mjsindex 223146c8a99b..cac63f2d38fa 100644--- a/frontend/build-products.mjs+++ b/frontend/build-products.mjs@@ -26,6 +26,7 @@ function buildProductManifests() {const allSourceFiles = [...sourceFiles, enumFile]const outputTsx = path.join(__dirname, 'src/products.tsx')+ const outputScenesTsx = path.join(__dirname, 'src/productScenes.tsx')const outputJson = path.join(__dirname, 'src/products.json')const cacheDir = path.join(__dirname, '.cache')const cacheFile = path.join(cacheDir, 'products.hash')@@ -48,6 +49,7 @@ function buildProductManifests() {if (fse.readFileSync(cacheFile, 'utf8') === digest &&fse.existsSync(outputTsx) &&+ fse.existsSync(outputScenesTsx) &&fse.existsSync(outputJson)) {return@@ -323,7 +325,11 @@ function buildProductManifests() {const serializedTreeItemsGames = makeArrExpr(treeItemsGames)const serializedTreeItemsMetadata = makeArrExpr(treeItemsMetadata)- // 6. Assemble `products.tsx`, write, format, move to src/+ // 6. Assemble `products.tsx` + `productScenes.tsx`, write, format, move to src/+ // The scene lazy-import map lives in its own module: products.tsx is (transitively) imported+ // by scenes/urls.ts and therefore by nearly every module in the app, and jest's+ // --findRelatedTests counts dynamic import() as a dependency edge — keeping the scene map+ // here would make any change to any product scene "related" to almost the entire test suite.const autogenDisclaimer = '/** This const is auto-generated, as is the whole file */'const productsTsx = `/* eslint @typescript-eslint/explicit-module-boundary-types: 0 */@@ -331,9 +337,6 @@ function buildProductManifests() {${importLines}- ${autogenDisclaimer}- export const productScenes: Record<string, () => Promise<any>> = ${serializedProductScenes}-${autogenDisclaimer}export const productRoutes: Record<string, [string, string]> = ${serializedProductRoutes}@@ -362,6 +365,19 @@ function buildProductManifests() {export const getTreeItemsMetadata = (): FileSystemImport[] => ${serializedTreeItemsMetadata}`+ const scenesTsx = `+ /* eslint @typescript-eslint/explicit-module-boundary-types: 0 */+ // Generated by build-products.mjs – DO NOT EDIT BY HAND.+ //+ // Kept separate from products.tsx on purpose: this map's dynamic imports reach every+ // product scene, and products.tsx is imported app-wide via scenes/urls.ts. In one module,+ // jest's --findRelatedTests would mark ~the whole test suite as related to any scene change.+ // Import this only from scene-mounting code (scenes/appScenes.ts).++ ${autogenDisclaimer}+ export const productScenes: Record<string, () => Promise<any>> = ${serializedProductScenes}+ `+const tsxTmpDir = path.join(__dirname, 'tmp')fse.mkdirSync(tsxTmpDir, { recursive: true })const tsxTmpFile = path.join(tsxTmpDir, 'products.tsx')@@ -369,6 +385,11 @@ function buildProductManifests() {ps.execFileSync('oxfmt', [tsxTmpFile])fse.renameSync(tsxTmpFile, outputTsx)+ const scenesTmpFile = path.join(tsxTmpDir, 'productScenes.tsx')+ fse.writeFileSync(scenesTmpFile, scenesTsx)+ ps.execFileSync('oxfmt', [scenesTmpFile])+ fse.renameSync(scenesTmpFile, outputScenesTsx)+// 8. Assemble `products.json`, write, format, move to src/// A much simplified version of `products.tsx` to simplify consumption from Python// without any of the AST/TSX code generation logicdiff --git a/frontend/src/productScenes.tsx b/frontend/src/productScenes.tsxnew file mode 100644index 000000000000..f628a14aee78--- /dev/null+++ b/frontend/src/productScenes.tsx@@ -0,0 +1,134 @@+/* eslint @typescript-eslint/explicit-module-boundary-types: 0 */+// Generated by build-products.mjs – DO NOT EDIT BY HAND.+//+// Kept separate from products.tsx on purpose: this map's dynamic imports reach every+// product scene, and products.tsx is imported app-wide via scenes/urls.ts. In one module,+// jest's --findRelatedTests would mark ~the whole test suite as related to any scene change.+// Import this only from scene-mounting code (scenes/appScenes.ts).++/** This const is auto-generated, as is the whole file */+export const productScenes: Record<string, () => Promise<any>> = {+ Actions: () => import('../../products/actions/frontend/pages/Actions'),+ Action: () => import('../../products/actions/frontend/pages/Action'),+ NewAction: () => import('../../products/actions/frontend/pages/Action'),+ AIGateway: () => import('../../products/ai_gateway/frontend/AIGatewayScene'),+ AIObservability: () => import('../../products/ai_observability/frontend/AIObservabilityScene'),+ AIObservabilityTrace: () => import('../../products/ai_observability/frontend/AIObservabilityTraceScene'),+ AIObservabilitySession: () => import('../../products/ai_observability/frontend/AIObservabilitySessionScene'),+ AIObservabilityUsers: () => import('../../products/ai_observability/frontend/AIObservabilityUsers'),+ AIObservabilityPlayground: () =>+ import('../../products/ai_observability/frontend/playground/AIObservabilityPlaygroundScene'),+ AIObservabilityDatasets: () =>+ import('../../products/ai_observability/frontend/datasets/AIObservabilityDatasetsScene'),+ AIObservabilityDataset: () =>+ import('../../products/ai_observability/frontend/datasets/AIObservabilityDatasetScene'),+ AIObservabilityEvaluations: () =>+ import('../../products/ai_observability/frontend/evaluations/AIObservabilityEvaluationsScene'),+ AIObservabilityEvaluation: () =>+ import('../../products/ai_observability/frontend/evaluations/AIObservabilityEvaluation'),+ AIObservabilityEvaluationTemplates: () =>+ import('../../products/ai_observability/frontend/evaluations/EvaluationTemplates'),+ AIObservabilityTags: () => import('../../products/ai_observability/frontend/tags/AIObservabilityTagsScene'),+ AIObservabilityTag: () => import('../../products/ai_observability/frontend/tags/AIObservabilityTag'),+ AIObservabilityPrompts: () => import('../../products/ai_observability/frontend/prompts/LLMPromptsScene'),+ AIObservabilityPrompt: () => import('../../products/ai_observability/frontend/prompts/LLMPromptScene'),+ AIObservabilityClusters: () =>+ import('../../products/ai_observability/frontend/clusters/AIObservabilityClustersScene'),+ AIObservabilityCluster: () =>+ import('../../products/ai_observability/frontend/clusters/AIObservabilityClusterScene'),+ BusinessKnowledge: () => import('../../products/business_knowledge/frontend/scenes/BusinessKnowledgeScene'),+ Transformations: () => import('../../frontend/src/scenes/data-pipelines/TransformationsScene'),+ EventFiltering: () => import('../../frontend/src/scenes/data-pipelines/event-filtering/EventFilterScene'),+ SupportTickets: () => import('../../products/conversations/frontend/scenes/tickets/SupportTicketsScene'),+ SupportTicketDetail: () => import('../../products/conversations/frontend/scenes/ticket/SupportTicketScene'),+ SupportSettings: () => import('../../products/conversations/frontend/scenes/settings/SupportSettingsScene'),+ CustomerAnalytics: () => import('../../products/customer_analytics/frontend/CustomerAnalyticsScene'),+ CustomerAnalyticsConfiguration: () =>+ import('../../products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/CustomerAnalyticsConfigurationScene'),+ CustomerJourneyBuilder: () =>+ import('../../products/customer_analytics/frontend/scenes/CustomerJourneyBuilderScene/CustomerJourneyBuilderScene'),+ CustomerJourneyTemplates: () =>+ import('../../products/customer_analytics/frontend/scenes/CustomerJourneyTemplatesScene/CustomerJourneyTemplatesScene'),+ DataOps: () => import('../../products/data_warehouse/DataWarehouseScene'),+ Models: () => import('../../frontend/src/scenes/models/ModelsScene'),+ NodeDetail: () => import('../../frontend/src/scenes/models/NodeDetailScene'),+ Sources: () => import('../../products/data_warehouse/frontend/scenes/SourcesScene/SourcesScene'),+ DataWarehouseSource: () => import('../../products/data_warehouse/frontend/scenes/SourceScene/SourceScene'),+ DataWarehouseSourceNew: () => import('../../products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene'),+ DataWarehouseSourceConnect: () =>+ import('../../products/data_warehouse/frontend/scenes/SourceConnectScene/SourceConnectScene'),+ DataWarehouseSourceSchema: () => import('../../products/data_warehouse/frontend/scenes/SchemaScene/SchemaScene'),+ EarlyAccessFeatures: () => import('../../products/early_access_features/frontend/EarlyAccessFeatures'),+ EarlyAccessFeature: () => import('../../products/early_access_features/frontend/EarlyAccessFeature'),+ EndpointsScene: () => import('../../products/endpoints/frontend/EndpointsScene'),+ EndpointScene: () => import('../../products/endpoints/frontend/EndpointScene'),+ EngineeringAnalytics: () =>+ import('../../products/engineering_analytics/frontend/scenes/EngineeringAnalyticsScene'),+ EngineeringAnalyticsPullRequest: () =>+ import('../../products/engineering_analytics/frontend/scenes/PullRequestDetailScene'),+ EngineeringAnalyticsWorkflowRun: () =>+ import('../../products/engineering_analytics/frontend/scenes/WorkflowRunDetailScene'),+ EngineeringAnalyticsWorkflowRuns: () =>+ import('../../products/engineering_analytics/frontend/scenes/WorkflowRunsScene'),+ EngineeringAnalyticsAuthor: () =>+ import('../../products/engineering_analytics/frontend/scenes/EngineeringAnalyticsAuthorScene'),+ ErrorTracking: () => import('../../products/error_tracking/frontend/scenes/ErrorTrackingScene/ErrorTrackingScene'),+ ErrorTrackingIssue: () =>+ import('../../products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene'),+ ErrorTrackingIssueFingerprints: () =>+ import('../../products/error_tracking/frontend/scenes/ErrorTrackingFingerprintsScene/ErrorTrackingIssueFingerprintsScene'),+ FeatureFlagTemplates: () => import('../../products/feature_flags/frontend/FeatureFlagTemplatesScene'),+ FeatureFlagsStaffTools: () => import('../../products/feature_flags/frontend/staff/FeatureFlagsStaffToolsScene'),+ Game368Hedgehogs: () => import('../../products/games/368Hedgehogs/368Hedgehogs'),+ FlappyHog: () => import('../../products/games/FlappyHog/FlappyHog'),+ IdentityMatching: () => import('../../products/growth/frontend/IdentityMatchingScene'),+ LegalDocuments: () => import('../../products/legal_documents/frontend/scenes/LegalDocumentsScene'),+ LegalDocumentNew: () => import('../../products/legal_documents/frontend/scenes/LegalDocumentNewScene'),+ Links: () => import('../../products/links/frontend/LinksScene'),+ Link: () => import('../../products/links/frontend/LinkScene'),+ LiveDebugger: () => import('../../products/live_debugger/frontend/LiveDebugger'),+ Logs: () => import('../../products/logs/frontend/LogsScene'),+ LogsAlertDetail: () => import('../../products/logs/frontend/scenes/LogsAlertDetailScene/LogsAlertDetailScene'),+ LogsAlertNotificationDetail: () =>+ import('../../products/logs/frontend/scenes/LogsAlertNotificationDetailScene/LogsAlertNotificationDetailScene'),+ LogsSamplingNew: () => import('../../products/logs/frontend/scenes/LogsSamplingNewScene/LogsSamplingNewScene'),+ LogsSamplingDetail: () =>+ import('../../products/logs/frontend/scenes/LogsSamplingDetailScene/LogsSamplingDetailScene'),+ ManagedMigration: () => import('../../products/managed_migrations/frontend/ManagedMigration'),+ ManagedMigrationNew: () => import('../../products/managed_migrations/frontend/ManagedMigration'),+ MCPAnalytics: () => import('../../products/mcp_analytics/frontend/MCPAnalyticsScene'),+ MCPAnalyticsToolDetail: () => import('../../products/mcp_analytics/frontend/MCPAnalyticsToolDetail'),+ Metrics: () => import('../../products/metrics/frontend/MetricsScene'),+ TaskTracker: () => import('../../products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker'),+ ReplayVision: () => import('../../products/replay_vision/frontend/replay_scanners/ReplayScannersScene'),+ ReplayVisionScanner: () => import('../../products/replay_vision/frontend/replay_scanners/ReplayScanner'),+ ReplayVisionScannerEditor: () => import('../../products/replay_vision/frontend/replay_scanners/ScannerEditorScene'),+ ReplayVisionObservation: () => import('../../products/replay_vision/frontend/observations/ReplayObservation'),+ ReplayVisionAction: () => import('../../products/replay_vision/frontend/replay_scanners/VisionActionScene'),+ ReplayVisionActionEditor: () => import('../../products/replay_vision/frontend/replay_scanners/ActionEditorScene'),+ ReplayVisionActionRun: () => import('../../products/replay_vision/frontend/replay_scanners/VisionActionRunScene'),+ RevenueAnalytics: () => import('../../products/revenue_analytics/frontend/RevenueAnalyticsScene'),+ SessionGroupSummariesTable: () => import('../../products/session_summaries/frontend/SessionGroupSummariesTable'),+ SessionGroupSummary: () => import('../../products/session_summaries/frontend/SessionGroupSummaryScene'),+ Skills: () => import('../../products/skills/frontend/LLMSkillsScene'),+ Skill: () => import('../../products/skills/frontend/LLMSkillScene'),+ Subscriptions: () => import('../../products/subscriptions/frontend/scenes/SubscriptionsScene'),+ Subscription: () => import('../../products/subscriptions/frontend/scenes/SubscriptionScene'),+ SlackTaskContext: () => import('../../products/tasks/frontend/SlackTaskContextScene'),+ Tracing: () => import('../../products/tracing/frontend/TracingScene'),+ TracingOperation: () => import('../../products/tracing/frontend/TracingOperationScene'),+ UserInterviews: () => import('../../products/user_interviews/frontend/UserInterviews'),+ UserInterview: () => import('../../products/user_interviews/frontend/UserInterview'),+ UserInterviewResponse: () => import('../../products/user_interviews/frontend/UserInterviewResponse'),+ VisualReviewIndex: () => import('../../products/visual_review/frontend/scenes/VisualReviewIndexScene'),+ VisualReviewRuns: () => import('../../products/visual_review/frontend/scenes/VisualReviewRunsScene'),+ VisualReviewRun: () => import('../../products/visual_review/frontend/scenes/VisualReviewRunScene'),+ VisualReviewSettings: () => import('../../products/visual_review/frontend/scenes/VisualReviewSettingsScene'),+ VisualReviewSnapshotHistory: () =>+ import('../../products/visual_review/frontend/scenes/VisualReviewSnapshotHistoryScene'),+ VisualReviewSnapshotOverview: () =>+ import('../../products/visual_review/frontend/scenes/VisualReviewSnapshotOverviewScene'),+ Workflows: () => import('../../products/workflows/frontend/WorkflowsScene'),+ Workflow: () => import('../../products/workflows/frontend/Workflows/WorkflowScene'),+ WorkflowsLibraryTemplate: () => import('../../products/workflows/frontend/TemplateLibrary/MessageTemplate'),+}diff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex 9e348f77fd8b..bc8f02e6ac14 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -51,133 +51,6 @@ import {UniversalFiltersGroup,} from './types'-/** This const is auto-generated, as is the whole file */-export const productScenes: Record<string, () => Promise<any>> = {- Actions: () => import('../../products/actions/frontend/pages/Actions'),- Action: () => import('../../products/actions/frontend/pages/Action'),- NewAction: () => import('../../products/actions/frontend/pages/Action'),- AIGateway: () => import('../../products/ai_gateway/frontend/AIGatewayScene'),- AIObservability: () => import('../../products/ai_observability/frontend/AIObservabilityScene'),- AIObservabilityTrace: () => import('../../products/ai_observability/frontend/AIObservabilityTraceScene'),- AIObservabilitySession: () => import('../../products/ai_observability/frontend/AIObservabilitySessionScene'),- AIObservabilityUsers: () => import('../../products/ai_observability/frontend/AIObservabilityUsers'),- AIObservabilityPlayground: () =>- import('../../products/ai_observability/frontend/playground/AIObservabilityPlaygroundScene'),- AIObservabilityDatasets: () =>- import('../../products/ai_observability/frontend/datasets/AIObservabilityDatasetsScene'),- AIObservabilityDataset: () =>- import('../../products/ai_observability/frontend/datasets/AIObservabilityDatasetScene'),- AIObservabilityEvaluations: () =>- import('../../products/ai_observability/frontend/evaluations/AIObservabilityEvaluationsScene'),- AIObservabilityEvaluation: () =>- import('../../products/ai_observability/frontend/evaluations/AIObservabilityEvaluation'),- AIObservabilityEvaluationTemplates: () =>- import('../../products/ai_observability/frontend/evaluations/EvaluationTemplates'),- AIObservabilityTags: () => import('../../products/ai_observability/frontend/tags/AIObservabilityTagsScene'),- AIObservabilityTag: () => import('../../products/ai_observability/frontend/tags/AIObservabilityTag'),- AIObservabilityPrompts: () => import('../../products/ai_observability/frontend/prompts/LLMPromptsScene'),- AIObservabilityPrompt: () => import('../../products/ai_observability/frontend/prompts/LLMPromptScene'),- AIObservabilityClusters: () =>- import('../../products/ai_observability/frontend/clusters/AIObservabilityClustersScene'),- AIObservabilityCluster: () =>- import('../../products/ai_observability/frontend/clusters/AIObservabilityClusterScene'),- BusinessKnowledge: () => import('../../products/business_knowledge/frontend/scenes/BusinessKnowledgeScene'),- Transformations: () => import('../../frontend/src/scenes/data-pipelines/TransformationsScene'),- EventFiltering: () => import('../../frontend/src/scenes/data-pipelines/event-filtering/EventFilterScene'),- SupportTickets: () => import('../../products/conversations/frontend/scenes/tickets/SupportTicketsScene'),- SupportTicketDetail: () => import('../../products/conversations/frontend/scenes/ticket/SupportTicketScene'),- SupportSettings: () => import('../../products/conversations/frontend/scenes/settings/SupportSettingsScene'),- CustomerAnalytics: () => import('../../products/customer_analytics/frontend/CustomerAnalyticsScene'),- CustomerAnalyticsConfiguration: () =>- import('../../products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/CustomerAnalyticsConfigurationScene'),- CustomerJourneyBuilder: () =>- import('../../products/customer_analytics/frontend/scenes/CustomerJourneyBuilderScene/CustomerJourneyBuilderScene'),- CustomerJourneyTemplates: () =>- import('../../products/customer_analytics/frontend/scenes/CustomerJourneyTemplatesScene/CustomerJourneyTemplatesScene'),- DataOps: () => import('../../products/data_warehouse/DataWarehouseScene'),- Models: () => import('../../frontend/src/scenes/models/ModelsScene'),- NodeDetail: () => import('../../frontend/src/scenes/models/NodeDetailScene'),- Sources: () => import('../../products/data_warehouse/frontend/scenes/SourcesScene/SourcesScene'),- DataWarehouseSource: () => import('../../products/data_warehouse/frontend/scenes/SourceScene/SourceScene'),- DataWarehouseSourceNew: () => import('../../products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene'),- DataWarehouseSourceConnect: () =>- import('../../products/data_warehouse/frontend/scenes/SourceConnectScene/SourceConnectScene'),- DataWarehouseSourceSchema: () => import('../../products/data_warehouse/frontend/scenes/SchemaScene/SchemaScene'),- EarlyAccessFeatures: () => import('../../products/early_access_features/frontend/EarlyAccessFeatures'),- EarlyAccessFeature: () => import('../../products/early_access_features/frontend/EarlyAccessFeature'),- EndpointsScene: () => import('../../products/endpoints/frontend/EndpointsScene'),- EndpointScene: () => import('../../products/endpoints/frontend/EndpointScene'),- EngineeringAnalytics: () =>- import('../../products/engineering_analytics/frontend/scenes/EngineeringAnalyticsScene'),- EngineeringAnalyticsPullRequest: () =>- import('../../products/engineering_analytics/frontend/scenes/PullRequestDetailScene'),- EngineeringAnalyticsWorkflowRun: () =>- import('../../products/engineering_analytics/frontend/scenes/WorkflowRunDetailScene'),- EngineeringAnalyticsWorkflowRuns: () =>- import('../../products/engineering_analytics/frontend/scenes/WorkflowRunsScene'),- EngineeringAnalyticsAuthor: () =>- import('../../products/engineering_analytics/frontend/scenes/EngineeringAnalyticsAuthorScene'),- ErrorTracking: () => import('../../products/error_tracking/frontend/scenes/ErrorTrackingScene/ErrorTrackingScene'),- ErrorTrackingIssue: () =>- import('../../products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene'),- ErrorTrackingIssueFingerprints: () =>- import('../../products/error_tracking/frontend/scenes/ErrorTrackingFingerprintsScene/ErrorTrackingIssueFingerprintsScene'),- FeatureFlagTemplates: () => import('../../products/feature_flags/frontend/FeatureFlagTemplatesScene'),- FeatureFlagsStaffTools: () => import('../../products/feature_flags/frontend/staff/FeatureFlagsStaffToolsScene'),- Game368Hedgehogs: () => import('../../products/games/368Hedgehogs/368Hedgehogs'),- FlappyHog: () => import('../../products/games/FlappyHog/FlappyHog'),- IdentityMatching: () => import('../../products/growth/frontend/IdentityMatchingScene'),- LegalDocuments: () => import('../../products/legal_documents/frontend/scenes/LegalDocumentsScene'),- LegalDocumentNew: () => import('../../products/legal_documents/frontend/scenes/LegalDocumentNewScene'),- Links: () => import('../../products/links/frontend/LinksScene'),- Link: () => import('../../products/links/frontend/LinkScene'),- LiveDebugger: () => import('../../products/live_debugger/frontend/LiveDebugger'),- Logs: () => import('../../products/logs/frontend/LogsScene'),- LogsAlertDetail: () => import('../../products/logs/frontend/scenes/LogsAlertDetailScene/LogsAlertDetailScene'),- LogsAlertNotificationDetail: () =>- import('../../products/logs/frontend/scenes/LogsAlertNotificationDetailScene/LogsAlertNotificationDetailScene'),- LogsSamplingNew: () => import('../../products/logs/frontend/scenes/LogsSamplingNewScene/LogsSamplingNewScene'),- LogsSamplingDetail: () =>- import('../../products/logs/frontend/scenes/LogsSamplingDetailScene/LogsSamplingDetailScene'),- ManagedMigration: () => import('../../products/managed_migrations/frontend/ManagedMigration'),- ManagedMigrationNew: () => import('../../products/managed_migrations/frontend/ManagedMigration'),- MCPAnalytics: () => import('../../products/mcp_analytics/frontend/MCPAnalyticsScene'),- MCPAnalyticsToolDetail: () => import('../../products/mcp_analytics/frontend/MCPAnalyticsToolDetail'),- Metrics: () => import('../../products/metrics/frontend/MetricsScene'),- TaskTracker: () => import('../../products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker'),- ReplayVision: () => import('../../products/replay_vision/frontend/replay_scanners/ReplayScannersScene'),- ReplayVisionScanner: () => import('../../products/replay_vision/frontend/replay_scanners/ReplayScanner'),- ReplayVisionScannerEditor: () => import('../../products/replay_vision/frontend/replay_scanners/ScannerEditorScene'),- ReplayVisionObservation: () => import('../../products/replay_vision/frontend/observations/ReplayObservation'),- ReplayVisionAction: () => import('../../products/replay_vision/frontend/replay_scanners/VisionActionScene'),- ReplayVisionActionEditor: () => import('../../products/replay_vision/frontend/replay_scanners/ActionEditorScene'),- ReplayVisionActionRun: () => import('../../products/replay_vision/frontend/replay_scanners/VisionActionRunScene'),- RevenueAnalytics: () => import('../../products/revenue_analytics/frontend/RevenueAnalyticsScene'),- SessionGroupSummariesTable: () => import('../../products/session_summaries/frontend/SessionGroupSummariesTable'),- SessionGroupSummary: () => import('../../products/session_summaries/frontend/SessionGroupSummaryScene'),- Skills: () => import('../../products/skills/frontend/LLMSkillsScene'),- Skill: () => import('../../products/skills/frontend/LLMSkillScene'),- Subscriptions: () => import('../../products/subscriptions/frontend/scenes/SubscriptionsScene'),- Subscription: () => import('../../products/subscriptions/frontend/scenes/SubscriptionScene'),- SlackTaskContext: () => import('../../products/tasks/frontend/SlackTaskContextScene'),- Tracing: () => import('../../products/tracing/frontend/TracingScene'),- TracingOperation: () => import('../../products/tracing/frontend/TracingOperationScene'),- UserInterviews: () => import('../../products/user_interviews/frontend/UserInterviews'),- UserInterview: () => import('../../products/user_interviews/frontend/UserInterview'),- UserInterviewResponse: () => import('../../products/user_interviews/frontend/UserInterviewResponse'),- VisualReviewIndex: () => import('../../products/visual_review/frontend/scenes/VisualReviewIndexScene'),- VisualReviewRuns: () => import('../../products/visual_review/frontend/scenes/VisualReviewRunsScene'),- VisualReviewRun: () => import('../../products/visual_review/frontend/scenes/VisualReviewRunScene'),- VisualReviewSettings: () => import('../../products/visual_review/frontend/scenes/VisualReviewSettingsScene'),- VisualReviewSnapshotHistory: () =>- import('../../products/visual_review/frontend/scenes/VisualReviewSnapshotHistoryScene'),- VisualReviewSnapshotOverview: () =>- import('../../products/visual_review/frontend/scenes/VisualReviewSnapshotOverviewScene'),- Workflows: () => import('../../products/workflows/frontend/WorkflowsScene'),- Workflow: () => import('../../products/workflows/frontend/Workflows/WorkflowScene'),- WorkflowsLibraryTemplate: () => import('../../products/workflows/frontend/TemplateLibrary/MessageTemplate'),-}-/** This const is auto-generated, as is the whole file */export const productRoutes: Record<string, [string, string]> = {'/data-management/actions': ['Actions', 'actions'],diff --git a/frontend/src/scenes/appScenes.ts b/frontend/src/scenes/appScenes.tsindex e63a364ab25f..9f1c2b032304 100644--- a/frontend/src/scenes/appScenes.ts+++ b/frontend/src/scenes/appScenes.ts@@ -1,7 +1,7 @@import { preloadedScenes } from 'scenes/scenes'import { Scene } from 'scenes/sceneTypes'-import { productScenes } from '~/products'+import { productScenes } from '~/productScenes'export const appScenes: Record<Scene | string, () => any> = {...productScenes,diff --git a/package.json b/package.jsonindex ed14cb587021..b30be979a6f1 100644--- a/package.json+++ b/package.json@@ -91,7 +91,7 @@"frontend/public/services/*.{png,jpg,jpeg,gif}": "node frontend/bin/check-service-icon-size.mjs","products/**/manifest.tsx": ["bin/hogli format:js",- "sh -c 'pnpm build:products && git add frontend/src/products.tsx frontend/src/products.json'"+ "sh -c 'pnpm build:products && git add frontend/src/products.tsx frontend/src/productScenes.tsx frontend/src/products.json'"],"!(**/.sqlx/**)*.{json,yaml,yml}": "bin/hogli format:yaml","*.{css,scss}": "bin/hogli format:css",