Skip to content

fix(frontend): load monaco lazily via a CodeEditor facade - #62957

Merged
pauldambra merged 7 commits into
masterfrom
fix/lazy-monaco
Jun 12, 2026
Merged

pauldambra merged 7 commits into
masterfrom
fix/lazy-monaco

Conversation

@pauldambra

@pauldambra pauldambra commented Jun 11, 2026 •

Copy link
Copy Markdown
Member

fable recorded a video for me of this running locally... i think it got bored in the middle cos there's a big gap with no action though

pr-62957-demo.mp4

Problem

monaco-editor (~4 MB of JS) was statically reachable from the authed shell and from every scene that renders queries β€” so it shipped in hot shared chunks and was decoded by every renderer, even though most sessions never open a code editor. Three chains anchored it (traced via the esbuild metafile):

  1. AuthenticatedShell -> GlobalModals -> PreviewingCustomCssModal -> CodeEditor
  2. Query -> HogDebug -> CodeEditor (the universal query renderer, so dashboards, insights, and saved insights all carried it)
  3. the activity describer registry (activityLogLogic) -> hog function activityDescriptions -> monacoEnvironment

Part of the decoded-script / renderer-memory reduction work in the bundle-split investigation.

References #32479

Changes

  • lib/monaco/CodeEditor.tsx is now a thin React.lazy facade over the implementation (moved unchanged to CodeEditorImpl.tsx). All fourteen import sites keep their imports and get laziness for free; monaco is fetched on first editor render, behind the same <Spinner /> the editor already showed while monaco bootstraps.
  • initModel / clearLogicReference move to lib/monaco/modelLogicReference.ts (type-only monaco imports), so the facade can re-export them without re-anchoring the impl. sqlEditorLogic's import path is unchanged.
  • The hog function activity Diff component moves to its own file behind the same lazy pattern β€” the describer registry is imported app-wide, and it was pulling monacoEnvironment + the hog language into every chunk containing ActivityLog.
  • dataWarehouseSettingsSceneLogic and hogFunctionTestLogic switch to import type for monaco β€” they only use monaco types, but the value imports created real runtime edges in the metafile.

Out of scope (left for a follow-up batch): three scene-local static imports of MonacoDiffEditor (SQL editor history modal, audit logs, approvals) β€” ActivityLog and the product scenes already lazy-load it.

Measured on the production build's metafile after this change: monaco core is statically unreachable from AuthenticatedShell, Query, Dashboard, and SavedInsights; monaco ships as self-contained lazy chunks (4.37 MB total, dominated by a 2.5 MB + 1.1 MB pair) fetched only when an editor actually renders.

How did you test this code?

I'm an agent; automated verification only:

  • pnpm --filter=@posthog/frontend typescript:check passes
  • hogli test on activityLogLogic.test.tsx (10/10), hogFunctionConfigurationLogic.test.ts (3/3), DataWarehouseSourceScene.test.ts (4/4), timeSensitiveAuthenticationLogic.test.ts (9/9)
  • oxlint clean on touched directories
  • Production build succeeds; reachability claims above verified by walking static imports in the metafile from each root

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Docs update

πŸ€– Agent context

Autonomy: Human-driven (agent-assisted)

Claude Code session driven by @pauldambra β€” PR 2 of the bundle-split plan from the #32479 memory investigation (PR 1: #62923, removes the fake-lazy GlobalModals require; the two are independent and compose). Considered lazying each of the three chains at their call sites instead, but a facade at CodeEditor.tsx cuts all component chains at once and protects future import sites; the only non-component consumers needed the small helper-module extraction.

πŸ€– Generated with Claude Code

monaco (~4 MB of JS) was statically reachable from the authed shell and
from every scene that renders queries, via three chains: GlobalModals ->
PreviewingCustomCssModal -> CodeEditor, Query -> HogDebug -> CodeEditor,
and the activity describer registry -> hog function activityDescriptions
-> monacoEnvironment.

CodeEditor.tsx becomes a React.lazy facade over CodeEditorImpl, so all
fourteen import sites defer monaco until an editor renders. The
initModel/clearLogicReference helpers move to modelLogicReference.ts so
the facade can re-export them without a static edge to the impl. The hog
function activity Diff component gets the same treatment, and two scene
logics switch to type-only monaco imports.

After this, monaco core is statically unreachable from
AuthenticatedShell, Query, dashboards, and saved insights; it ships as
self-contained lazy chunks fetched on first editor render.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pauldambra pauldambra self-assigned this Jun 11, 2026
@pr-assigner-resolver-posthog
pr-assigner-resolver-posthog Bot requested a review from a team June 11, 2026 13:11
@greptile-apps

greptile-apps Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(frontend): load monaco lazily via a ..." | Re-trigger Greptile

@github-actions

github-actions Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Size Change: +54.3 kB (+0.08%)

Total Size: 72.5 MB

πŸ“¦ View Changed
Filename Size Change
frontend/dist-report/exporter/src/lib/monaco/CodeEditorImpl 25.9 kB +25.9 kB (new file) πŸ†•
frontend/dist-report/exporter/src/scenes/hog-functions/misc/Diff 1.25 kB +1.25 kB (new file) πŸ†•
frontend/dist-report/posthog-app/src/lib/monaco/CodeEditorImpl 25.9 kB +25.9 kB (new file) πŸ†•
frontend/dist-report/posthog-app/src/scenes/hog-functions/misc/Diff 1.29 kB +1.29 kB (new file) πŸ†•
ℹ️ View Unchanged
Filename Size Change
frontend/dist-report/decompression-worker/src/scenes/session-recordings/player/snapshot-processing/decompressionWorker 2.85 kB 0 B
frontend/dist-report/exporter/_chunks/chunk 6.7 MB -132 B (0%)
frontend/dist-report/exporter/_parent/products/actions/frontend/pages/Action 24 kB -102 B (-0.42%)
frontend/dist-report/exporter/_parent/products/actions/frontend/pages/Actions 1.81 kB -102 B (-5.32%) βœ…
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/AIObservabilityScene 117 kB -102 B (-0.09%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/AIObservabilitySessionScene 19.6 kB -102 B (-0.52%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/AIObservabilityTraceScene 129 kB -102 B (-0.08%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/AIObservabilityUsers 1.44 kB -102 B (-6.62%) βœ…
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/clusters/AIObservabilityClusterScene 21.5 kB -102 B (-0.47%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/clusters/AIObservabilityClustersScene 54.2 kB -102 B (-0.19%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/datasets/AIObservabilityDatasetScene 20.6 kB -102 B (-0.49%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/datasets/AIObservabilityDatasetsScene 4.03 kB -102 B (-2.47%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation 59.5 kB -102 B (-0.17%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/evaluations/AIObservabilityEvaluationsScene 28.4 kB -102 B (-0.36%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/evaluations/EvaluationTemplates 569 B 0 B
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/LLMASessionFeedbackDisplay 4.71 kB 0 B
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/playground/AIObservabilityPlaygroundScene 37.6 kB -102 B (-0.27%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/prompts/LLMPromptScene 29.7 kB -102 B (-0.34%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/prompts/LLMPromptsScene 5.13 kB -102 B (-1.95%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/tags/AIObservabilityTag 28.3 kB -102 B (-0.36%)
frontend/dist-report/exporter/_parent/products/ai_observability/frontend/tags/AIObservabilityTagsScene 8.01 kB -102 B (-1.26%)
frontend/dist-report/exporter/_parent/products/business_knowledge/frontend/scenes/BusinessKnowledgeScene 21 kB -102 B (-0.48%)
frontend/dist-report/exporter/_parent/products/conversations/frontend/components/Assignee/CyclotronJobInputAssignee 1.27 kB 0 B
frontend/dist-report/exporter/_parent/products/conversations/frontend/components/SlaBusinessHours/CyclotronJobInputBusinessHours 2.59 kB 0 B
frontend/dist-report/exporter/_parent/products/conversations/frontend/components/TicketTags/CyclotronJobInputTicketTags 681 B 0 B
frontend/dist-report/exporter/_parent/products/conversations/frontend/scenes/settings/SupportSettingsScene 2.38 kB -102 B (-4.11%)
frontend/dist-report/exporter/_parent/products/conversations/frontend/scenes/ticket/SupportTicketScene 33.9 kB -102 B (-0.3%)
frontend/dist-report/exporter/_parent/products/conversations/frontend/scenes/tickets/SupportTicketsScene 1.65 kB -102 B (-5.84%) βœ…
frontend/dist-report/exporter/_parent/products/customer_analytics/frontend/CustomerAnalyticsScene 80.3 kB -102 B (-0.13%)
frontend/dist-report/exporter/_parent/products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/CustomerAnalyticsConfigurationScene 3.14 kB -102 B (-3.15%)
frontend/dist-report/exporter/_parent/products/customer_analytics/frontend/scenes/CustomerJourneyBuilderScene/CustomerJourneyBuilderScene 2.58 kB -102 B (-3.8%)
frontend/dist-report/exporter/_parent/products/customer_analytics/frontend/scenes/CustomerJourneyTemplatesScene/CustomerJourneyTemplatesScene 8.06 kB -102 B (-1.25%)
frontend/dist-report/exporter/_parent/products/data_warehouse/DataWarehouseScene 46 kB -102 B (-0.22%)
frontend/dist-report/exporter/_parent/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene 1.72 kB -102 B (-5.59%) βœ…
frontend/dist-report/exporter/_parent/products/data_warehouse/frontend/scenes/SchemaScene/SchemaScene 26.6 kB -102 B (-0.38%)
frontend/dist-report/exporter/_parent/products/data_warehouse/frontend/scenes/SourceScene/SourceScene 1.67 kB -102 B (-5.77%) βœ…
frontend/dist-report/exporter/_parent/products/data_warehouse/frontend/scenes/SourcesScene/SourcesScene 6.47 kB -102 B (-1.55%)
frontend/dist-report/exporter/_parent/products/early_access_features/frontend/EarlyAccessFeature 1.6 kB -102 B (-6%) βœ…
frontend/dist-report/exporter/_parent/products/early_access_features/frontend/EarlyAccessFeatures 3.65 kB -102 B (-2.72%)
frontend/dist-report/exporter/_parent/products/endpoints/frontend/EndpointScene 43.7 kB +136 B (+0.31%)
frontend/dist-report/exporter/_parent/products/endpoints/frontend/EndpointsScene 23.7 kB -102 B (-0.43%)
frontend/dist-report/exporter/_parent/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintsScene/ErrorTrackingIssueFingerprintsScene 7.54 kB -102 B (-1.33%)
frontend/dist-report/exporter/_parent/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene 96.6 kB -102 B (-0.11%)
frontend/dist-report/exporter/_parent/products/error_tracking/frontend/scenes/ErrorTrackingScene/ErrorTrackingScene 35.1 kB -102 B (-0.29%)
frontend/dist-report/exporter/_parent/products/feature_flags/frontend/FeatureFlagTemplatesScene 6.8 kB 0 B
frontend/dist-report/exporter/_parent/products/games/368Hedgehogs/368Hedgehogs 5.13 kB 0 B
frontend/dist-report/exporter/_parent/products/games/FlappyHog/FlappyHog 5.6 kB 0 B
frontend/dist-report/exporter/_parent/products/legal_documents/frontend/scenes/LegalDocumentNewScene 60.5 kB -102 B (-0.17%)
frontend/dist-report/exporter/_parent/products/legal_documents/frontend/scenes/LegalDocumentsScene 6.68 kB -102 B (-1.5%)
frontend/dist-report/exporter/_parent/products/links/frontend/LinkScene 25.4 kB -102 B (-0.4%)
frontend/dist-report/exporter/_parent/products/links/frontend/LinksScene 4.76 kB -102 B (-2.1%)
frontend/dist-report/exporter/_parent/products/live_debugger/frontend/LiveDebugger 19.5 kB -102 B (-0.52%)
frontend/dist-report/exporter/_parent/products/logs/frontend/LogsScene 18.9 kB +136 B (+0.73%)
frontend/dist-report/exporter/_parent/products/logs/frontend/scenes/LogsAlertDetailScene/LogsAlertDetailScene 17.8 kB -102 B (-0.57%)
frontend/dist-report/exporter/_parent/products/logs/frontend/scenes/LogsAlertNotificationDetailScene/LogsAlertNotificationDetailScene 8.81 kB -102 B (-1.14%)
frontend/dist-report/exporter/_parent/products/logs/frontend/scenes/LogsSamplingDetailScene/LogsSamplingDetailScene 5.62 kB -102 B (-1.78%)
frontend/dist-report/exporter/_parent/products/logs/frontend/scenes/LogsSamplingNewScene/LogsSamplingNewScene 2.67 kB -102 B (-3.67%)
frontend/dist-report/exporter/_parent/products/managed_migrations/frontend/ManagedMigration 15.2 kB -102 B (-0.67%)
frontend/dist-report/exporter/_parent/products/mcp_analytics/frontend/MCPAnalyticsScene 78.3 kB -102 B (-0.13%)
frontend/dist-report/exporter/_parent/products/mcp_analytics/frontend/MCPAnalyticsToolDetail 18.9 kB -102 B (-0.54%)
frontend/dist-report/exporter/_parent/products/metrics/frontend/MetricsScene 15.9 kB +136 B (+0.86%)
frontend/dist-report/exporter/_parent/products/product_analytics/frontend/insights/stickiness/StickinessBarChart/StickinessBarChart 3.64 kB -102 B (-2.73%)
frontend/dist-report/exporter/_parent/products/product_analytics/frontend/insights/stickiness/StickinessLineChart/StickinessLineChart 3.52 kB -102 B (-2.82%)
frontend/dist-report/exporter/_parent/products/product_analytics/frontend/insights/trends/TrendsBarChart/TrendsBarChart 9.16 kB -102 B (-1.1%)
frontend/dist-report/exporter/_parent/products/product_analytics/frontend/insights/trends/TrendsLifecycleChart/TrendsLifecycleChart 5.34 kB -102 B (-1.87%)
frontend/dist-report/exporter/_parent/products/product_analytics/frontend/insights/trends/TrendsLineChart/TrendsLineChart 4.98 kB -102 B (-2.01%)
frontend/dist-report/exporter/_parent/products/product_analytics/frontend/insights/trends/TrendsPieChart/TrendsPieChart 4.73 kB -102 B (-2.11%)
frontend/dist-report/exporter/_parent/products/replay_vision/frontend/observations/ReplayObservation 14.4 kB -102 B (-0.71%)
frontend/dist-report/exporter/_parent/products/replay_vision/frontend/replay_scanners/ReplayScanner 21.6 kB -102 B (-0.47%)
frontend/dist-report/exporter/_parent/products/replay_vision/frontend/replay_scanners/ReplayScannersScene 18.6 kB -102 B (-0.55%)
frontend/dist-report/exporter/_parent/products/replay_vision/frontend/replay_scanners/ScannerEditorScene 25.7 kB -102 B (-0.39%)
frontend/dist-report/exporter/_parent/products/revenue_analytics/frontend/revenueAnalyticsLogic 1.63 kB -102 B (-5.9%) βœ…
frontend/dist-report/exporter/_parent/products/revenue_analytics/frontend/RevenueAnalyticsScene 25.9 kB -102 B (-0.39%)
frontend/dist-report/exporter/_parent/products/session_summaries/frontend/SessionGroupSummariesTable 5.36 kB -102 B (-1.87%)
frontend/dist-report/exporter/_parent/products/session_summaries/frontend/SessionGroupSummaryScene 19.4 kB -102 B (-0.52%)
frontend/dist-report/exporter/_parent/products/skills/frontend/LLMSkillScene 1.47 kB -102 B (-6.5%) βœ…
frontend/dist-report/exporter/_parent/products/skills/frontend/LLMSkillsScene 1.48 kB -102 B (-6.45%) βœ…
frontend/dist-report/exporter/_parent/products/tasks/frontend/SlackTaskContextScene 9.29 kB -102 B (-1.09%)
frontend/dist-report/exporter/_parent/products/tasks/frontend/TaskDetailScene 25 kB -102 B (-0.41%)
frontend/dist-report/exporter/_parent/products/tasks/frontend/TaskTracker 14.5 kB -102 B (-0.7%)
frontend/dist-report/exporter/_parent/products/tracing/frontend/TracingScene 78.3 kB -102 B (-0.13%)
frontend/dist-report/exporter/_parent/products/user_interviews/frontend/UserInterview 10.7 kB 0 B
frontend/dist-report/exporter/_parent/products/user_interviews/frontend/UserInterviewResponse 8.04 kB -102 B (-1.25%)
frontend/dist-report/exporter/_parent/products/user_interviews/frontend/UserInterviews 6.45 kB -102 B (-1.56%)
frontend/dist-report/exporter/_parent/products/visual_review/frontend/scenes/VisualReviewIndexScene 3 kB -102 B (-3.28%)
frontend/dist-report/exporter/_parent/products/visual_review/frontend/scenes/VisualReviewRunScene 45.8 kB -102 B (-0.22%)
frontend/dist-report/exporter/_parent/products/visual_review/frontend/scenes/VisualReviewRunsScene 7.65 kB -102 B (-1.32%)
frontend/dist-report/exporter/_parent/products/visual_review/frontend/scenes/VisualReviewSettingsScene 11.5 kB -102 B (-0.88%)
frontend/dist-report/exporter/_parent/products/visual_review/frontend/scenes/VisualReviewSnapshotHistoryScene 14.2 kB -102 B (-0.71%)
frontend/dist-report/exporter/_parent/products/visual_review/frontend/scenes/VisualReviewSnapshotOverviewScene 19.8 kB -102 B (-0.51%)
frontend/dist-report/exporter/_parent/products/workflows/frontend/TemplateLibrary/MessageTemplate 16.8 kB -102 B (-0.6%)
frontend/dist-report/exporter/_parent/products/workflows/frontend/Workflows/WorkflowScene 109 kB +102 B (+0.09%)
frontend/dist-report/exporter/_parent/products/workflows/frontend/WorkflowsScene 58.8 kB -102 B (-0.17%)
frontend/dist-report/exporter/src/exporter/exporter 42.7 kB 0 B
frontend/dist-report/exporter/src/exporter/scenes/ExporterDashboardScene 2.52 kB -102 B (-3.88%)
frontend/dist-report/exporter/src/exporter/scenes/ExporterHeatmapScene 20.3 kB -102 B (-0.5%)
frontend/dist-report/exporter/src/exporter/scenes/ExporterInsightScene 3.43 kB -102 B (-2.89%)
frontend/dist-report/exporter/src/exporter/scenes/ExporterInterviewScene 310 kB 0 B
frontend/dist-report/exporter/src/exporter/scenes/ExporterNotebookScene 2.71 MB +141 B (+0.01%)
frontend/dist-report/exporter/src/exporter/scenes/ExporterRecordingScene 1.69 kB -102 B (-5.71%) βœ…
frontend/dist-report/exporter/src/exporterSharedChunkAnchors 1.23 kB 0 B
frontend/dist-report/exporter/src/lib/components/Cards/TextCard/TextCardMarkdownEditor 10.5 kB 0 B
frontend/dist-report/exporter/src/lib/components/MonacoDiffEditor 533 B +34 B (+6.81%) πŸ”
frontend/dist-report/exporter/src/lib/lemon-ui/LemonMarkdown/MermaidDiagram 1.89 kB 0 B
frontend/dist-report/exporter/src/lib/lemon-ui/LemonTextArea/LemonTextAreaMarkdown 688 B 0 B
frontend/dist-report/exporter/src/lib/lemon-ui/Link/Link 347 B 0 B
frontend/dist-report/exporter/src/lib/monaco/CodeEditorInline 513 B -170 B (-24.89%) πŸŽ‰
frontend/dist-report/exporter/src/lib/monaco/vimMode 211 kB 0 B
frontend/dist-report/exporter/src/lib/ui/Button/ButtonPrimitives 411 B 0 B
frontend/dist-report/exporter/src/queries/nodes/WebVitals/WebVitals 7.76 kB -102 B (-1.3%)
frontend/dist-report/exporter/src/queries/nodes/WebVitals/WebVitalsPathBreakdown 4.58 kB -102 B (-2.18%)
frontend/dist-report/exporter/src/queries/Query/Query 1.38 kB -102 B (-6.9%) βœ…
frontend/dist-report/exporter/src/queries/schema 899 kB 0 B
frontend/dist-report/exporter/src/scenes/approvals/changeRequestsLogic 520 B 0 B
frontend/dist-report/exporter/src/scenes/authentication/shared/passkeyLogic 500 B 0 B
frontend/dist-report/exporter/src/scenes/data-pipelines/event-filtering/EventFilterScene 22.3 kB -102 B (-0.45%)
frontend/dist-report/exporter/src/scenes/data-pipelines/TransformationsScene 6.66 kB -102 B (-1.51%)
frontend/dist-report/exporter/src/scenes/insights/views/BoxPlot/BoxPlot 5.72 kB -102 B (-1.75%)
frontend/dist-report/exporter/src/scenes/insights/views/CalendarHeatMap/CalendarHeatMap 9.02 kB -102 B (-1.12%)
frontend/dist-report/exporter/src/scenes/insights/views/RegionMap/RegionMap 30 kB -102 B (-0.34%)
frontend/dist-report/exporter/src/scenes/insights/views/WorldMap/WorldMap 1.04 MB -102 B (-0.01%)
frontend/dist-report/exporter/src/scenes/models/ModelsScene 19 kB -102 B (-0.53%)
frontend/dist-report/exporter/src/scenes/models/NodeDetailScene 17.1 kB +136 B (+0.8%)
frontend/dist-report/monaco-editor-worker/src/lib/monaco/workers/monacoEditorWorker 288 kB 0 B
frontend/dist-report/monaco-json-worker/src/lib/monaco/workers/monacoJsonWorker 419 kB 0 B
frontend/dist-report/monaco-typescript-worker/src/lib/monaco/workers/monacoTsWorker 7.02 MB 0 B
frontend/dist-report/posthog-app/_chunks/chunk 6.64 MB -132 B (0%)
frontend/dist-report/posthog-app/_parent/products/actions/frontend/pages/Action 24.8 kB -102 B (-0.41%)
frontend/dist-report/posthog-app/_parent/products/actions/frontend/pages/Actions 2.53 kB -102 B (-3.88%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/AIObservabilityScene 118 kB -102 B (-0.09%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/AIObservabilitySessionScene 20.2 kB -102 B (-0.5%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/AIObservabilityTraceScene 130 kB -102 B (-0.08%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/AIObservabilityUsers 2.12 kB -102 B (-4.59%) βœ…
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/clusters/AIObservabilityClusterScene 22.2 kB -102 B (-0.46%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/clusters/AIObservabilityClustersScene 54.9 kB -102 B (-0.19%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/datasets/AIObservabilityDatasetScene 21.3 kB -102 B (-0.48%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/datasets/AIObservabilityDatasetsScene 4.71 kB -102 B (-2.12%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation 60.2 kB -102 B (-0.17%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/evaluations/AIObservabilityEvaluationsScene 29.1 kB -102 B (-0.35%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/evaluations/EvaluationTemplates 569 B 0 B
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/LLMASessionFeedbackDisplay 4.71 kB 0 B
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/playground/AIObservabilityPlaygroundScene 38.3 kB -102 B (-0.27%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/prompts/LLMPromptScene 29.8 kB -102 B (-0.34%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/prompts/LLMPromptsScene 5.82 kB -102 B (-1.72%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/tags/AIObservabilityTag 28.9 kB -102 B (-0.35%)
frontend/dist-report/posthog-app/_parent/products/ai_observability/frontend/tags/AIObservabilityTagsScene 8.69 kB -102 B (-1.16%)
frontend/dist-report/posthog-app/_parent/products/business_knowledge/frontend/scenes/BusinessKnowledgeScene 21.7 kB -102 B (-0.47%)
frontend/dist-report/posthog-app/_parent/products/conversations/frontend/components/Assignee/CyclotronJobInputAssignee 1.27 kB 0 B
frontend/dist-report/posthog-app/_parent/products/conversations/frontend/components/SlaBusinessHours/CyclotronJobInputBusinessHours 2.6 kB 0 B
frontend/dist-report/posthog-app/_parent/products/conversations/frontend/components/TicketTags/CyclotronJobInputTicketTags 681 B 0 B
frontend/dist-report/posthog-app/_parent/products/conversations/frontend/scenes/settings/SupportSettingsScene 3.13 kB -102 B (-3.16%)
frontend/dist-report/posthog-app/_parent/products/conversations/frontend/scenes/ticket/SupportTicketScene 27 kB -102 B (-0.38%)
frontend/dist-report/posthog-app/_parent/products/conversations/frontend/scenes/tickets/SupportTicketsScene 2.33 kB -102 B (-4.2%)
frontend/dist-report/posthog-app/_parent/products/customer_analytics/frontend/CustomerAnalyticsScene 79.8 kB -102 B (-0.13%)
frontend/dist-report/posthog-app/_parent/products/customer_analytics/frontend/scenes/CustomerAnalyticsConfigurationScene/CustomerAnalyticsConfigurationScene 3.89 kB -102 B (-2.56%)
frontend/dist-report/posthog-app/_parent/products/customer_analytics/frontend/scenes/CustomerJourneyBuilderScene/CustomerJourneyBuilderScene 3.27 kB -102 B (-3.03%)
frontend/dist-report/posthog-app/_parent/products/customer_analytics/frontend/scenes/CustomerJourneyTemplatesScene/CustomerJourneyTemplatesScene 8.74 kB -102 B (-1.15%)
frontend/dist-report/posthog-app/_parent/products/data_warehouse/DataWarehouseScene 3.03 kB -102 B (-3.26%)
frontend/dist-report/posthog-app/_parent/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene 2.47 kB -102 B (-3.97%)
frontend/dist-report/posthog-app/_parent/products/data_warehouse/frontend/scenes/SchemaScene/SchemaScene 27.3 kB -102 B (-0.37%)
frontend/dist-report/posthog-app/_parent/products/data_warehouse/frontend/scenes/SourceScene/SourceScene 2.38 kB -102 B (-4.11%)
frontend/dist-report/posthog-app/_parent/products/data_warehouse/frontend/scenes/SourcesScene/SourcesScene 7.15 kB -102 B (-1.41%)
frontend/dist-report/posthog-app/_parent/products/early_access_features/frontend/EarlyAccessFeature 2.41 kB -102 B (-4.06%)
frontend/dist-report/posthog-app/_parent/products/early_access_features/frontend/EarlyAccessFeatures 4.33 kB -102 B (-2.3%)
frontend/dist-report/posthog-app/_parent/products/endpoints/frontend/EndpointScene 44.4 kB +136 B (+0.31%)
frontend/dist-report/posthog-app/_parent/products/endpoints/frontend/EndpointsScene 22.4 kB -102 B (-0.45%)
frontend/dist-report/posthog-app/_parent/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintsScene/ErrorTrackingIssueFingerprintsScene 8.22 kB -102 B (-1.23%)
frontend/dist-report/posthog-app/_parent/products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene 96.4 kB -102 B (-0.11%)
frontend/dist-report/posthog-app/_parent/products/error_tracking/frontend/scenes/ErrorTrackingScene/ErrorTrackingScene 35.8 kB -102 B (-0.28%)
frontend/dist-report/posthog-app/_parent/products/feature_flags/frontend/FeatureFlagTemplatesScene 6.81 kB 0 B
frontend/dist-report/posthog-app/_parent/products/games/368Hedgehogs/368Hedgehogs 5.14 kB 0 B
frontend/dist-report/posthog-app/_parent/products/games/FlappyHog/FlappyHog 5.6 kB 0 B
frontend/dist-report/posthog-app/_parent/products/legal_documents/frontend/scenes/LegalDocumentNewScene 61.2 kB -102 B (-0.17%)
frontend/dist-report/posthog-app/_parent/products/legal_documents/frontend/scenes/LegalDocumentsScene 7.36 kB -102 B (-1.37%)
frontend/dist-report/posthog-app/_parent/products/links/frontend/LinkScene 26.1 kB -102 B (-0.39%)
frontend/dist-report/posthog-app/_parent/products/links/frontend/LinksScene 5.44 kB -102 B (-1.84%)
frontend/dist-report/posthog-app/_parent/products/live_debugger/frontend/LiveDebugger 20.2 kB -102 B (-0.5%)
frontend/dist-report/posthog-app/_parent/products/logs/frontend/LogsScene 18.6 kB +136 B (+0.73%)
frontend/dist-report/posthog-app/_parent/products/logs/frontend/scenes/LogsAlertDetailScene/LogsAlertDetailScene 18.5 kB -102 B (-0.55%)
frontend/dist-report/posthog-app/_parent/products/logs/frontend/scenes/LogsAlertNotificationDetailScene/LogsAlertNotificationDetailScene 9.5 kB -102 B (-1.06%)
frontend/dist-report/posthog-app/_parent/products/logs/frontend/scenes/LogsSamplingDetailScene/LogsSamplingDetailScene 6.3 kB -102 B (-1.59%)
frontend/dist-report/posthog-app/_parent/products/logs/frontend/scenes/LogsSamplingNewScene/LogsSamplingNewScene 3.36 kB -102 B (-2.95%)
frontend/dist-report/posthog-app/_parent/products/managed_migrations/frontend/ManagedMigration 15.9 kB -102 B (-0.64%)
frontend/dist-report/posthog-app/_parent/products/mcp_analytics/frontend/MCPAnalyticsScene 79 kB -102 B (-0.13%)
frontend/dist-report/posthog-app/_parent/products/mcp_analytics/frontend/MCPAnalyticsToolDetail 19.6 kB -102 B (-0.52%)
frontend/dist-report/posthog-app/_parent/products/metrics/frontend/MetricsScene 16.6 kB +136 B (+0.83%)
frontend/dist-report/posthog-app/_parent/products/product_analytics/frontend/insights/stickiness/StickinessBarChart/StickinessBarChart 4.32 kB -102 B (-2.31%)
frontend/dist-report/posthog-app/_parent/products/product_analytics/frontend/insights/stickiness/StickinessLineChart/StickinessLineChart 4.2 kB -102 B (-2.37%)
frontend/dist-report/posthog-app/_parent/products/product_analytics/frontend/insights/trends/TrendsBarChart/TrendsBarChart 9.84 kB -102 B (-1.03%)
frontend/dist-report/posthog-app/_parent/products/product_analytics/frontend/insights/trends/TrendsLifecycleChart/TrendsLifecycleChart 6.02 kB -102 B (-1.67%)
frontend/dist-report/posthog-app/_parent/products/product_analytics/frontend/insights/trends/TrendsLineChart/TrendsLineChart 5.66 kB -102 B (-1.77%)
frontend/dist-report/posthog-app/_parent/products/product_analytics/frontend/insights/trends/TrendsPieChart/TrendsPieChart 5.41 kB -102 B (-1.85%)
frontend/dist-report/posthog-app/_parent/products/replay_vision/frontend/observations/ReplayObservation 15 kB -102 B (-0.67%)
frontend/dist-report/posthog-app/_parent/products/replay_vision/frontend/replay_scanners/ReplayScanner 22.3 kB -102 B (-0.46%)
frontend/dist-report/posthog-app/_parent/products/replay_vision/frontend/replay_scanners/ReplayScannersScene 19.2 kB -102 B (-0.53%)
frontend/dist-report/posthog-app/_parent/products/replay_vision/frontend/replay_scanners/ScannerEditorScene 26.4 kB -102 B (-0.38%)
frontend/dist-report/posthog-app/_parent/products/revenue_analytics/frontend/revenueAnalyticsLogic 2.31 kB -102 B (-4.24%)
frontend/dist-report/posthog-app/_parent/products/revenue_analytics/frontend/RevenueAnalyticsScene 26.6 kB -102 B (-0.38%)
frontend/dist-report/posthog-app/_parent/products/session_summaries/frontend/SessionGroupSummariesTable 6.04 kB -102 B (-1.66%)
frontend/dist-report/posthog-app/_parent/products/session_summaries/frontend/SessionGroupSummaryScene 20 kB -102 B (-0.51%)
frontend/dist-report/posthog-app/_parent/products/skills/frontend/LLMSkillScene 2.15 kB -102 B (-4.54%) βœ…
frontend/dist-report/posthog-app/_parent/products/skills/frontend/LLMSkillsScene 2.16 kB -102 B (-4.51%) βœ…
frontend/dist-report/posthog-app/_parent/products/tasks/frontend/SlackTaskContextScene 9.98 kB -102 B (-1.01%)
frontend/dist-report/posthog-app/_parent/products/tasks/frontend/TaskDetailScene 25.8 kB -102 B (-0.39%)
frontend/dist-report/posthog-app/_parent/products/tasks/frontend/TaskTracker 15.2 kB -102 B (-0.67%)
frontend/dist-report/posthog-app/_parent/products/tracing/frontend/TracingScene 79 kB -102 B (-0.13%)
frontend/dist-report/posthog-app/_parent/products/user_interviews/frontend/UserInterview 10.8 kB 0 B
frontend/dist-report/posthog-app/_parent/products/user_interviews/frontend/UserInterviewResponse 8.72 kB -102 B (-1.16%)
frontend/dist-report/posthog-app/_parent/products/user_interviews/frontend/UserInterviews 7.13 kB -102 B (-1.41%)
frontend/dist-report/posthog-app/_parent/products/visual_review/frontend/scenes/VisualReviewIndexScene 3.69 kB -102 B (-2.69%)
frontend/dist-report/posthog-app/_parent/products/visual_review/frontend/scenes/VisualReviewRunScene 46.5 kB -102 B (-0.22%)
frontend/dist-report/posthog-app/_parent/products/visual_review/frontend/scenes/VisualReviewRunsScene 8.33 kB -102 B (-1.21%)
frontend/dist-report/posthog-app/_parent/products/visual_review/frontend/scenes/VisualReviewSettingsScene 12.2 kB -102 B (-0.83%)
frontend/dist-report/posthog-app/_parent/products/visual_review/frontend/scenes/VisualReviewSnapshotHistoryScene 14.9 kB -102 B (-0.68%)
frontend/dist-report/posthog-app/_parent/products/visual_review/frontend/scenes/VisualReviewSnapshotOverviewScene 20.4 kB -102 B (-0.5%)
frontend/dist-report/posthog-app/_parent/products/workflows/frontend/TemplateLibrary/MessageTemplate 17.5 kB -102 B (-0.58%)
frontend/dist-report/posthog-app/_parent/products/workflows/frontend/Workflows/WorkflowScene 103 kB +102 B (+0.1%)
frontend/dist-report/posthog-app/_parent/products/workflows/frontend/WorkflowsScene 59.6 kB -102 B (-0.17%)
frontend/dist-report/posthog-app/src/index 61.3 kB 0 B
frontend/dist-report/posthog-app/src/layout/panel-layout/ai-first/tabs/NavTabChat 8.25 kB -102 B (-1.22%)
frontend/dist-report/posthog-app/src/lib/components/AppShortcuts/utils/DebugCHQueriesImpl 19 kB 0 B
frontend/dist-report/posthog-app/src/lib/components/Cards/TextCard/TextCardMarkdownEditor 10.5 kB 0 B
frontend/dist-report/posthog-app/src/lib/components/MonacoDiffEditor 533 B +34 B (+6.81%) πŸ”
frontend/dist-report/posthog-app/src/lib/lemon-ui/LemonMarkdown/MermaidDiagram 1.89 kB 0 B
frontend/dist-report/posthog-app/src/lib/lemon-ui/LemonTextArea/LemonTextAreaMarkdown 688 B 0 B
frontend/dist-report/posthog-app/src/lib/lemon-ui/Link/Link 347 B 0 B
frontend/dist-report/posthog-app/src/lib/monaco/CodeEditorInline 513 B -204 B (-28.45%) πŸŽ‰
frontend/dist-report/posthog-app/src/lib/monaco/vimMode 211 kB 0 B
frontend/dist-report/posthog-app/src/lib/ui/Button/ButtonPrimitives 414 B 0 B
frontend/dist-report/posthog-app/src/queries/nodes/WebVitals/WebVitals 8.44 kB -102 B (-1.19%)
frontend/dist-report/posthog-app/src/queries/nodes/WebVitals/WebVitalsPathBreakdown 5.26 kB -102 B (-1.9%)
frontend/dist-report/posthog-app/src/queries/Query/Query 2.06 kB -102 B (-4.73%) βœ…
frontend/dist-report/posthog-app/src/queries/schema 899 kB 0 B
frontend/dist-report/posthog-app/src/scenes/activity/explore/EventsScene 4.21 kB -102 B (-2.37%)
frontend/dist-report/posthog-app/src/scenes/activity/explore/SessionsScene 5.55 kB -102 B (-1.8%)
frontend/dist-report/posthog-app/src/scenes/activity/live/LiveEventsTable 6.59 kB -102 B (-1.52%)
frontend/dist-report/posthog-app/src/scenes/agentic/AgenticAuthorize 5.41 kB 0 B
frontend/dist-report/posthog-app/src/scenes/approvals/ApprovalDetail 17.8 kB +136 B (+0.77%)
frontend/dist-report/posthog-app/src/scenes/approvals/changeRequestsLogic 520 B 0 B
frontend/dist-report/posthog-app/src/scenes/audit-logs/AdvancedActivityLogsScene 43.1 kB +136 B (+0.32%)
frontend/dist-report/posthog-app/src/scenes/AuthenticatedShell 211 kB -102 B (-0.05%)
frontend/dist-report/posthog-app/src/scenes/authentication/account/AccountConnected 2.93 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/account/AgenticAccountMismatch 2.32 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/account/credential-review/CredentialReview 4.9 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/cli/CLIAuthorize 11.2 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/cli/CLILive 3.95 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/email-mfa-verify/EmailMFAVerify 2.94 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/invite-signup/InviteSignup 1.2 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/login-2fa/Login2FA 4.64 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/login/Login 1.21 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/password-reset/PasswordReset 4.36 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/password-reset/PasswordResetComplete 2.92 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/shared/passkeyLogic 500 B 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/signup/SignupContainer 1.18 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/two-factor-reset/TwoFactorReset 3.94 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/vercel/VercelConnect 4.92 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/vercel/VercelLinkError 2.2 kB 0 B
frontend/dist-report/posthog-app/src/scenes/authentication/verify-email/VerifyEmail 4.68 kB 0 B
frontend/dist-report/posthog-app/src/scenes/billing/AuthorizationStatus 662 B 0 B
frontend/dist-report/posthog-app/src/scenes/billing/Billing 615 B 0 B
frontend/dist-report/posthog-app/src/scenes/billing/BillingSection 21.9 kB -102 B (-0.46%)
frontend/dist-report/posthog-app/src/scenes/cohorts/Cohort 28.6 kB -102 B (-0.36%)
frontend/dist-report/posthog-app/src/scenes/cohorts/CohortCalculationHistory 7.73 kB -102 B (-1.3%)
frontend/dist-report/posthog-app/src/scenes/cohorts/Cohorts 10.6 kB -102 B (-0.96%)
frontend/dist-report/posthog-app/src/scenes/coupons/Coupons 793 B 0 B
frontend/dist-report/posthog-app/src/scenes/dashboard/Dashboard 2.93 kB -102 B (-3.36%)
frontend/dist-report/posthog-app/src/scenes/dashboard/dashboards/Dashboards 20.3 kB -102 B (-0.5%)
frontend/dist-report/posthog-app/src/scenes/dashboard/dashboards/templates/DashboardTemplateCopyScene 7.19 kB -102 B (-1.4%)
frontend/dist-report/posthog-app/src/scenes/data-management/DataManagementScene 2.23 kB -102 B (-4.37%)
frontend/dist-report/posthog-app/src/scenes/data-management/definition/DefinitionEdit 18.8 kB -102 B (-0.54%)
frontend/dist-report/posthog-app/src/scenes/data-management/definition/DefinitionView 27 kB -102 B (-0.38%)
frontend/dist-report/posthog-app/src/scenes/data-management/MaterializedColumns/MaterializedColumns 13 kB -102 B (-0.78%)
frontend/dist-report/posthog-app/src/scenes/data-management/variables/SqlVariableEditScene 8.66 kB -102 B (-1.16%)
frontend/dist-report/posthog-app/src/scenes/data-pipelines/batch-exports/BatchExportScene 66.5 kB -102 B (-0.15%)
frontend/dist-report/posthog-app/src/scenes/data-pipelines/DataPipelinesNewScene 3.87 kB -102 B (-2.57%)
frontend/dist-report/posthog-app/src/scenes/data-pipelines/DestinationsScene 4.21 kB -102 B (-2.37%)
frontend/dist-report/posthog-app/src/scenes/data-pipelines/event-filtering/EventFilterScene 23 kB -102 B (-0.44%)
frontend/dist-report/posthog-app/src/scenes/data-pipelines/legacy-plugins/LegacyPluginScene 21.8 kB -102 B (-0.47%)
frontend/dist-report/posthog-app/src/scenes/data-pipelines/TransformationsScene 3.42 kB -102 B (-2.9%)
frontend/dist-report/posthog-app/src/scenes/data-pipelines/WebScriptsScene 4.07 kB -102 B (-2.45%)
frontend/dist-report/posthog-app/src/scenes/data-warehouse/DataWarehouseScene 3.01 kB -102 B (-3.28%)
frontend/dist-report/posthog-app/src/scenes/data-warehouse/editor/EditorScene 2.91 kB +136 B (+4.9%) πŸ”
frontend/dist-report/posthog-app/src/scenes/debug/DebugScene 21 kB -102 B (-0.48%)
frontend/dist-report/posthog-app/src/scenes/debug/hog/HogRepl 8.88 kB -102 B (-1.14%)
frontend/dist-report/posthog-app/src/scenes/experiments/Experiment 211 kB -102 B (-0.05%)
frontend/dist-report/posthog-app/src/scenes/experiments/Experiments 22.2 kB -102 B (-0.46%)
frontend/dist-report/posthog-app/src/scenes/experiments/SharedMetrics/SharedMetric 7.46 kB -102 B (-1.35%)
frontend/dist-report/posthog-app/src/scenes/experiments/SharedMetrics/SharedMetrics 2.15 kB -102 B (-4.54%) βœ…
frontend/dist-report/posthog-app/src/scenes/exports/ExportsScene 5.5 kB -102 B (-1.82%)
frontend/dist-report/posthog-app/src/scenes/feature-flags/FeatureFlag 110 kB -102 B (-0.09%)
frontend/dist-report/posthog-app/src/scenes/feature-flags/FeatureFlags 2.34 kB -102 B (-4.18%)
frontend/dist-report/posthog-app/src/scenes/groups/Group 16.3 kB +136 B (+0.84%)
frontend/dist-report/posthog-app/src/scenes/groups/Groups 5.18 kB -102 B (-1.93%)
frontend/dist-report/posthog-app/src/scenes/groups/GroupsNew 8.78 kB -102 B (-1.15%)
frontend/dist-report/posthog-app/src/scenes/health-alerts/HealthAlertsScene 5.3 kB -102 B (-1.89%)
frontend/dist-report/posthog-app/src/scenes/health/categoryDetail/HealthCategoryDetailScene 8.73 kB -102 B (-1.15%)
frontend/dist-report/posthog-app/src/scenes/health/HealthScene 12.6 kB -102 B (-0.8%)
frontend/dist-report/posthog-app/src/scenes/health/pipelineStatus/PipelineStatusScene 12.5 kB -102 B (-0.81%)
frontend/dist-report/posthog-app/src/scenes/heatmaps/scenes/heatmap/HeatmapNewScene 6.43 kB -102 B (-1.56%)
frontend/dist-report/posthog-app/src/scenes/heatmaps/scenes/heatmap/HeatmapRecordingScene 5.42 kB -102 B (-1.85%)
frontend/dist-report/posthog-app/src/scenes/heatmaps/scenes/heatmap/HeatmapScene 7.99 kB -102 B (-1.26%)
frontend/dist-report/posthog-app/src/scenes/heatmaps/scenes/heatmaps/HeatmapsScene 5.32 kB -102 B (-1.88%)
frontend/dist-report/posthog-app/src/scenes/hog-functions/HogFunctionScene 56 kB +102 B (+0.18%)
frontend/dist-report/posthog-app/src/scenes/inbox/InboxScene 64 kB -102 B (-0.16%)
frontend/dist-report/posthog-app/src/scenes/insights/InsightQuickStart/InsightQuickStart 6.92 kB -102 B (-1.45%)
frontend/dist-report/posthog-app/src/scenes/insights/InsightScene 35.6 kB -102 B (-0.29%)
frontend/dist-report/posthog-app/src/scenes/insights/views/BoxPlot/BoxPlot 6.41 kB -102 B (-1.57%)
frontend/dist-report/posthog-app/src/scenes/insights/views/CalendarHeatMap/CalendarHeatMap 9.7 kB -102 B (-1.04%)
frontend/dist-report/posthog-app/src/scenes/insights/views/RegionMap/RegionMap 30.7 kB -102 B (-0.33%)
frontend/dist-report/posthog-app/src/scenes/insights/views/WorldMap/WorldMap 6.08 kB -102 B (-1.65%)
frontend/dist-report/posthog-app/src/scenes/instance/AsyncMigrations/AsyncMigrations 14.4 kB -102 B (-0.7%)
frontend/dist-report/posthog-app/src/scenes/instance/DeadLetterQueue/DeadLetterQueue 6.84 kB -102 B (-1.47%)
frontend/dist-report/posthog-app/src/scenes/instance/QueryPerformance/QueryPerformance 10.1 kB -102 B (-1%)
frontend/dist-report/posthog-app/src/scenes/instance/SystemStatus/SystemStatus 18.2 kB -102 B (-0.56%)
frontend/dist-report/posthog-app/src/scenes/IntegrationsRedirect/IntegrationsRedirect 752 B 0 B
frontend/dist-report/posthog-app/src/scenes/marketing-analytics/MarketingAnalyticsScene 42.3 kB -102 B (-0.24%)
frontend/dist-report/posthog-app/src/scenes/max/Max 2.28 kB -102 B (-4.28%)
frontend/dist-report/posthog-app/src/scenes/models/ModelsScene 19.7 kB -102 B (-0.51%)
frontend/dist-report/posthog-app/src/scenes/models/NodeDetailScene 17.8 kB +136 B (+0.77%)
frontend/dist-report/posthog-app/src/scenes/moveToPostHogCloud/MoveToPostHogCloud 4.4 kB 0 B
frontend/dist-report/posthog-app/src/scenes/new-tab/NewTabScene 3.06 kB -102 B (-3.22%)
frontend/dist-report/posthog-app/src/scenes/notebooks/NotebookCanvasScene 5.22 kB +136 B (+2.68%)
frontend/dist-report/posthog-app/src/scenes/notebooks/NotebookPanel/NotebookPanel 7.16 kB +136 B (+1.94%)
frontend/dist-report/posthog-app/src/scenes/notebooks/NotebookScene 10.3 kB +136 B (+1.33%)
frontend/dist-report/posthog-app/src/scenes/notebooks/NotebooksScene 8.86 kB -102 B (-1.14%)
frontend/dist-report/posthog-app/src/scenes/oauth/OAuthAuthorize 708 B 0 B
frontend/dist-report/posthog-app/src/scenes/onboarding/coupon/OnboardingCouponRedemption 1.23 kB 0 B
frontend/dist-report/posthog-app/src/scenes/onboarding/Onboarding 789 kB -102 B (-0.01%)
frontend/dist-report/posthog-app/src/scenes/onboarding/sdks/SdkHealthScene 9.27 kB -102 B (-1.09%)
frontend/dist-report/posthog-app/src/scenes/organization/ConfirmOrganization/ConfirmOrganization 4.4 kB 0 B
frontend/dist-report/posthog-app/src/scenes/organization/Create/Create 602 B 0 B
frontend/dist-report/posthog-app/src/scenes/organization/Deactivated 1.06 kB 0 B
frontend/dist-report/posthog-app/src/scenes/organization/PendingDeletion 2.1 kB 0 B
frontend/dist-report/posthog-app/src/scenes/persons/PersonScene 21.2 kB +136 B (+0.65%)
frontend/dist-report/posthog-app/src/scenes/persons/PersonsScene 6.92 kB -102 B (-1.45%)
frontend/dist-report/posthog-app/src/scenes/PreflightCheck/PreflightCheck 5.46 kB 0 B
frontend/dist-report/posthog-app/src/scenes/product-tours/ProductTour 268 kB -102 B (-0.04%)
frontend/dist-report/posthog-app/src/scenes/product-tours/ProductTours 6.14 kB -102 B (-1.64%)
frontend/dist-report/posthog-app/src/scenes/project-homepage/ProjectHomepage 19.9 kB -102 B (-0.51%)
frontend/dist-report/posthog-app/src/scenes/project/Create/Create 795 B 0 B
frontend/dist-report/posthog-app/src/scenes/project/PendingDeletion 2.43 kB 0 B
frontend/dist-report/posthog-app/src/scenes/resource-transfer/ResourceTransfer 10.7 kB -102 B (-0.95%)
frontend/dist-report/posthog-app/src/scenes/saved-insights/SavedInsights 2.25 kB -102 B (-4.34%)
frontend/dist-report/posthog-app/src/scenes/session-recordings/detail/SessionRecordingDetail 3.28 kB -102 B (-3.02%)
frontend/dist-report/posthog-app/src/scenes/session-recordings/file-playback/SessionRecordingFilePlaybackScene 5.88 kB -102 B (-1.7%)
frontend/dist-report/posthog-app/src/scenes/session-recordings/kiosk/SessionRecordingsKiosk 11.4 kB -102 B (-0.89%)
frontend/dist-report/posthog-app/src/scenes/session-recordings/player/snapshot-processing/DecompressionWorkerManager 323 B 0 B
frontend/dist-report/posthog-app/src/scenes/session-recordings/playlist/SessionRecordingsPlaylistScene 6.34 kB -102 B (-1.58%)
frontend/dist-report/posthog-app/src/scenes/session-recordings/SessionRecordings 2.27 kB -102 B (-4.3%)
frontend/dist-report/posthog-app/src/scenes/session-recordings/settings/SessionRecordingsSettingsScene 3.44 kB -102 B (-2.88%)
frontend/dist-report/posthog-app/src/scenes/sessions/SessionProfileScene 16.4 kB -102 B (-0.62%)
frontend/dist-report/posthog-app/src/scenes/settings/SettingsScene 5.18 kB -102 B (-1.93%)
frontend/dist-report/posthog-app/src/scenes/sites/Site 1.47 kB 0 B
frontend/dist-report/posthog-app/src/scenes/startups/StartupProgram 21 kB 0 B
frontend/dist-report/posthog-app/src/scenes/StripeConfirmInstall/StripeConfirmInstall 3.5 kB 0 B
frontend/dist-report/posthog-app/src/scenes/subscriptions/SubscriptionScene 17.7 kB -102 B (-0.57%)
frontend/dist-report/posthog-app/src/scenes/subscriptions/SubscriptionsScene 6.78 kB -102 B (-1.48%)
frontend/dist-report/posthog-app/src/scenes/surveys/forms/SurveyFormBuilder 3.09 kB -102 B (-3.2%)
frontend/dist-report/posthog-app/src/scenes/surveys/Survey 2.62 kB -102 B (-3.75%)
frontend/dist-report/posthog-app/src/scenes/surveys/Surveys 27.3 kB -102 B (-0.37%)
frontend/dist-report/posthog-app/src/scenes/surveys/wizard/SurveyWizard 73 kB -102 B (-0.14%)
frontend/dist-report/posthog-app/src/scenes/themes/CustomCssScene 5.07 kB -102 B (-1.97%)
frontend/dist-report/posthog-app/src/scenes/toolbar-launch/ToolbarLaunch 3.96 kB -102 B (-2.51%)
frontend/dist-report/posthog-app/src/scenes/Unsubscribe/Unsubscribe 1.61 kB 0 B
frontend/dist-report/posthog-app/src/scenes/web-analytics/SessionAttributionExplorer/SessionAttributionExplorerScene 7.99 kB -102 B (-1.26%)
frontend/dist-report/posthog-app/src/scenes/web-analytics/WebAnalyticsScene 15.9 kB -102 B (-0.64%)
frontend/dist-report/posthog-app/src/scenes/wizard/Wizard 4.34 kB 0 B
frontend/dist-report/posthog-app/src/sharedChunkAnchors 1.29 kB 0 B
frontend/dist-report/render-query/src/render-query/render-query 27.4 MB +969 B (0%)
frontend/dist-report/toolbar/src/toolbar/toolbar 10.4 MB 0 B

compressed-size-action

CodeEditor lazy-loads monaco, so the hogql-query-editor container is
visible before the editor mounts; clicking too early focuses nothing
and the inserted query is silently lost.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@pauldambra pauldambra left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

πŸ€– Automated comment by QA Swarm β€” not written by a human

QA Swarm review complete. See inline comments.

Comment thread frontend/src/lib/monaco/CodeEditor.tsx Resolved
Comment thread frontend/src/lib/monaco/CodeEditor.tsx Resolved
@pauldambra

Copy link
Copy Markdown
Member Author

Note

πŸ€– Automated comment by QA Swarm β€” not written by a human

Multi-perspective review: qa-team (specialists + generalists), paul-reviewer, xp-reviewer, security-audit

Verdict: πŸ’¬ APPROVE WITH NITS

Clean, faithful facade refactor β€” the 565-line implementation move is verbatim (two reviewers independently diffed it), the leak-hardening teardown logic is untouched, and the modelLogicReference.ts extraction is the load-bearing detail that keeps monaco out of sqlEditorLogic's static graph. The one finding worth acting on is the absence of any automated guard against re-coupling.

Key findings

🟑 MEDIUM

  • CodeEditor.tsx β€” nothing enforces the win: a future direct import of CodeEditorImpl or a value import of monaco-editor on a hot path silently re-couples ~4 MB and no lint/test catches it. Suggest a no-restricted-imports rule (or dependency assertion) plus the before/after chunk numbers in the PR description. (convergent: qa-team + paul)

🟒 LOW

  • CodeEditor.tsx β€” Suspense fallback is a bare unsized <Spinner />; the old editor always sat in an h-full w-full box, so consumers relying on the editor to establish height get a reflow on first load. (convergent: paul + xp + qa-team)
  • activityDescriptions.tsx β€” same for the activity Diff (fixed 300px editor behind an unsized spinner; dropdown resizes on first open).
  • sqlInsight.ts β€” playwright now waits on monaco's internal .monaco-editor class; a data-attr flipped on mount would make tests wait on our contract instead. (paul)

βšͺ NIT

  • modelLogicReference.ts β€” initModel/clearLogicReference are a matched pair behind unrelated names; clearModelLogic would mirror. (xp)

Convergence

  • The missing re-coupling guard (qa-team/performance + paul) β€” highest-confidence actionable finding.
  • The unsized Suspense fallback (paul + xp + qa-team/frontend) β€” three reviewers independently.
  • Both paul and xp noted the facade/Diff pattern duplication and independently concluded it's fine as-is (two copies; extract a helper only if a third appears).

Reviewer summaries

Reviewer Assessment
πŸ” qa-team Faithful 1:1 move preserving the leak-cleanup logic; APPROVE WITH NITS β€” lock the win in with an import guard.
πŸ‘€ paul "stamp it" β€” clean facade, right move for the renderer-memory work; main ask is observability so the split doesn't silently revert.
πŸ“ xp Tidy, low-risk; implementation moved verbatim, import type switches correct; flagged the fallback layout jump, would ship it.
πŸ›‘ security-audit Zero findings β€” static import literals, no new HTML sinks, read-only diff rendering, no auth/data-flow surface.

Automated by QA Swarm β€” not a human review

Wrap the Suspense fallbacks in sized containers so the editor slot doesn't
collapse to spinner size and reflow on chunk load.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pauldambra pauldambra added the stamphog Request AI approval label Jun 11, 2026

@stamphog stamphog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR is a substantial cross-team refactor touching @PostHog/team-data-stack and @PostHog/team-workflows code, with no human reviews from either owning team on the current head β€” only automated bot comments. Get a human review from one of the owning teams before re-requesting.

@stamphog stamphog Bot removed the stamphog Request AI approval label Jun 11, 2026
…contract

no-restricted-imports now rejects value imports of monaco-editor and any
direct import of CodeEditorImpl, so a future static import can't silently
re-couple ~4 MB into a hot chunk; the modules that intentionally own
monaco (lib/monaco, MonacoDiffEditor, the SQL editor logic, hog function
test UI) keep the base restrictions via an override.

CodeEditor's container now exposes data-editor-ready once monaco has
mounted, and the playwright waits target that contract instead of
monaco's internal .monaco-editor class name.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pauldambra pauldambra added the stamphog Request AI approval label Jun 11, 2026

@stamphog stamphog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a substantial cross-team refactor touching @PostHog/team-data-stack and @PostHog/team-workflows code, and no human review from either owning team exists on the current head β€” only automated bot comments. Get a human review from a member of one of the owning teams before re-requesting.

@stamphog stamphog Bot removed the stamphog Request AI approval label Jun 11, 2026
The diff-mode branch rendered MonacoDiffEditor bare, so consumers
waiting on the editor-ready contract would time out whenever
originalValue put the editor into diff mode (e.g. the SQL editor's
draft/view comparison pane).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pauldambra pauldambra added the stamphog Request AI approval label Jun 11, 2026

@stamphog stamphog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a substantial cross-team refactor (1310 lines, two owning teams) with no human reviews from @PostHog/team-data-stack or @PostHog/team-workflows on the current head β€” only automated bot comments. Get a human review from a member of one of those teams before re-requesting.

@stamphog stamphog Bot removed the stamphog Request AI approval label Jun 11, 2026
@pauldambra

Copy link
Copy Markdown
Member Author

Note

πŸ€– Automated comment by PR Shepherd β€” driven by @pauldambra

Why the bundle size check shows no reduction (+0.08%): that's expected, for two reasons.

  1. This PR conserves total bytes by design β€” monaco still ships, it just moves into lazy chunks fetched on first editor render. The compressed-size check measures total dist output, which can't show a change in when bytes are downloaded and decoded.
  2. The check excludes _chunks/chunk*.js (shared chunks, because their hashes churn every build) β€” and the monaco relocation happens almost entirely inside those shared chunks, so even the redistribution is invisible to it.

The intended effect is measured in the PR description instead: monaco core is statically unreachable from AuthenticatedShell, Query, Dashboard, and SavedInsights (verified by walking static imports in the esbuild metafile), and ships as ~4.37 MB of self-contained lazy chunks. At runtime the network panel shows no monaco chunks on app load β€” they appear on first editor render. The +54.6 kB is the facade/Suspense overhead plus chunk-boundary shuffling.

@github-actions

github-actions Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

πŸ•ΈοΈ Eager graph

How much code each root forces the browser to download and decode through static imports β€” the regression class total bundle size can't see.

Root Eager closure Ξ” vs base Budget
entry (logged-out pages, app bootstrap)
src/index.tsx
14.59 MiB Β· 749 files no change β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘ 90.0% of 16.21 MiB
authenticated shell (every logged-in page)
src/scenes/AuthenticatedShell.tsx
45.79 MiB Β· 7,197 files 🟒 -9.71 MiB (-17.5%) β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘ 75.0% of 61.04 MiB

βœ… node_modules/monaco-editor/ stays out of src/index.tsx

Largest files eagerly reachable from src/index.tsx
Size File
878.2 KiB src/styles/global.scss
609.0 KiB public/hedgehog/burning-money-hog.png
541.9 KiB public/hedgehog/waving-hog.png
448.2 KiB public/hedgehog/stop-sign-hog.png
362.0 KiB public/hedgehog/phone-pair-hogs.png
354.8 KiB ../node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js
335.6 KiB public/hedgehog/desk-hog.png
323.2 KiB public/hedgehog/3-bears-hogs.png
297.4 KiB src/taxonomy/core-filter-definitions-by-group.json
286.4 KiB src/lib/api.ts
Largest files eagerly reachable from src/scenes/AuthenticatedShell.tsx
Size File
878.2 KiB src/styles/global.scss
760.0 KiB src/queries/validators.js
609.0 KiB public/hedgehog/burning-money-hog.png
541.9 KiB public/hedgehog/waving-hog.png
448.2 KiB public/hedgehog/stop-sign-hog.png
398.7 KiB ../node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chart.js
362.0 KiB public/hedgehog/phone-pair-hogs.png
354.8 KiB ../node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js
335.6 KiB public/hedgehog/desk-hog.png
323.2 KiB public/hedgehog/3-bears-hogs.png

Posted automatically by check-eager-graph Β· sizes are input-source bytes from the esbuild metafile Β· part of #32479

@pauldambra

Copy link
Copy Markdown
Member Author

Note

πŸ€– Automated comment by PR Shepherd β€” driven by @pauldambra

The eager graph check (merged in #63099) just posted its first measurement on this branch: the authenticated-shell eager closure is 45.79 MiB / 7,197 files, versus 55.51 MiB / 8,325 files on the master it was calibrated against β€” a 9.72 MiB (17.5%) reduction in the JavaScript every logged-in page must download and decode, from making monaco lazy. Once this merges, the shell budget gets ratcheted down and monaco-editor joins its forbidden list to lock the win in.

@mariusandra

Copy link
Copy Markdown
Collaborator

the one thing that I could think of as an improvement: page loads, no monaco... we then slyly load it in the background so that when you open any scene that needs this editor, it's already there

@pauldambra
pauldambra merged commit 2d3c8b9 into master Jun 12, 2026
177 checks passed
@pauldambra
pauldambra deleted the fix/lazy-monaco branch June 12, 2026 09:24

Copy link
Copy Markdown
Member Author

there are a few other similar changes on the go... i'll point a robot at that when it has more examples πŸ‘

@deployment-status-posthog

deployment-status-posthog Bot commented Jun 12, 2026 •

Copy link
Copy Markdown

Deploy status

Environment Status Deployed At Workflow
dev βœ… Deployed 2026-06-12 11:35 UTC Run
prod-us βœ… Deployed 2026-06-12 11:47 UTC Run
prod-eu βœ… Deployed 2026-06-12 11:51 UTC Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants