Skip to content

feat(logs): add SQL view and editor to LogsScene#57410

Merged
jonmcwest merged 1 commit into
masterfrom
05-03-feat_logs_add_sql_view_and_editor_to_logsscene
May 5, 2026
Merged

feat(logs): add SQL view and editor to LogsScene#57410
jonmcwest merged 1 commit into
masterfrom
05-03-feat_logs_add_sql_view_and_editor_to_logsscene

Conversation

@jonmcwest
Copy link
Copy Markdown
Contributor

@jonmcwest jonmcwest commented May 3, 2026

Problem

Users working with logs need a way to run custom SQL queries directly against log data without leaving the Logs scene. This provides a more flexible, power-user interface for exploring logs beyond the standard viewer.

Changes

image.png

Adds a new SQL tab to the Logs scene, gated behind the LOGS_SQL_VIEW feature flag. The tab renders an embedded SQL editor pre-populated with SELECT * FROM logs LIMIT 10, giving users a full HogQL editor experience.

  • Added LOGS_SQL_VIEW feature flag constant
  • Added 'sql' as a valid LogsSceneActiveTab
  • Added LogsSqlEditor component that initializes a sqlEditorLogic instance in embedded mode, pre-fills the query against the logs table, and keeps the editor mounted via logsSceneLogic cache to avoid re-initialization on tab switches
  • Wired the SQL tab into LogsSceneTabbedContent behind the feature flag
  • Added keepSqlEditorMounted action and corresponding beforeUnmount cleanup to properly manage the lifecycle of the embedded SQL editor logic
  • Added "Logs" scene to query tagging so queries from this scene are correctly attributed to the logs product

How did you test this code?

Enable the logs-sql-view feature flag and navigate to the Logs scene — a new SQL tab should appear. Clicking it renders the HogQL editor pre-filled with a query against the logs table.

Publish to changelog?

Yes

Docs update

Yes — explain that logs can be queried via SQL using the new SQL tab in the Logs scene.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jonmcwest jonmcwest marked this pull request as ready for review May 3, 2026 18:04
@assign-reviewers-posthog assign-reviewers-posthog Bot requested a review from a team May 3, 2026 18:04
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 3, 2026

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
products/logs/frontend/components/LogsSqlEditor/LogsSqlEditor.tsx:6-19
**SQL editor query state lost on tab switch**

`useState` is local to the component instance, so when the user navigates away from the SQL tab the component unmounts (see `{activeTab === 'sql' && showSqlView && <LogsSqlEditor />}`) and the query resets to `SELECT * FROM logs LIMIT 10` on return. For an SQL editor where users compose longer queries this is a noticeable UX regression. Moving the query into a kea logic (similar to how the rest of the Logs scene state is managed) would preserve it across tab switches.

Reviews (1): Last reviewed commit: "feat(logs): add SQL view and editor to L..." | Re-trigger Greptile

Comment thread products/logs/frontend/components/LogsSqlEditor/LogsSqlEditor.tsx Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

Size Change: +3.02 kB (0%)

Total Size: 141 MB

📦 View Changed
Filename Size Change
frontend/dist/LogsScene 16.7 kB +1.02 kB (+6.5%) 🔍
frontend/dist/toolbar 11.1 MB +1 kB (+0.01%)
frontend/dist/toolbar.js 11.1 MB +1 kB (+0.01%)
ℹ️ View Unchanged
Filename Size Change
frontend/dist/368Hedgehogs 5.41 kB 0 B
frontend/dist/abap 14.2 kB 0 B
frontend/dist/AccountConnected 2.89 kB 0 B
frontend/dist/Action 24 kB 0 B
frontend/dist/Actions 1.16 kB 0 B
frontend/dist/AdvancedActivityLogsScene 37.1 kB 0 B
frontend/dist/AgenticAuthorize 5.6 kB 0 B
frontend/dist/apex 3.99 kB 0 B
frontend/dist/ApprovalDetail 16.4 kB 0 B
frontend/dist/array.full.es5.js 345 kB 0 B
frontend/dist/array.full.js 437 kB 0 B
frontend/dist/array.js 189 kB 0 B
frontend/dist/AsyncMigrations 13.3 kB 0 B
frontend/dist/AuthorizationStatus 867 B 0 B
frontend/dist/azcli 885 B 0 B
frontend/dist/bat 1.88 kB 0 B
frontend/dist/BatchExportScene 60.6 kB 0 B
frontend/dist/bicep 2.59 kB 0 B
frontend/dist/Billing 629 B 0 B
frontend/dist/BillingSection 20.9 kB 0 B
frontend/dist/BoxPlot 5.18 kB 0 B
frontend/dist/browserAll-0QZMN1W2 37.4 kB 0 B
frontend/dist/ButtonPrimitives 698 B 0 B
frontend/dist/CalendarHeatMap 4.93 kB 0 B
frontend/dist/cameligo 2.23 kB 0 B
frontend/dist/changeRequestsLogic 680 B 0 B
frontend/dist/CLIAuthorize 11.5 kB 0 B
frontend/dist/CLILive 4.16 kB 0 B
frontend/dist/clojure 9.68 kB 0 B
frontend/dist/coffee 3.63 kB 0 B
frontend/dist/Cohort 24.9 kB 0 B
frontend/dist/CohortCalculationHistory 6.37 kB 0 B
frontend/dist/Cohorts 9.53 kB 0 B
frontend/dist/ConfirmOrganization 4.66 kB 0 B
frontend/dist/conversations.js 67.3 kB 0 B
frontend/dist/Coupons 861 B 0 B
frontend/dist/cpp 5.33 kB 0 B
frontend/dist/Create 975 B +179 B (+22.49%) 🚨
frontend/dist/crisp-chat-integration.js 1.97 kB 0 B
frontend/dist/csharp 4.56 kB 0 B
frontend/dist/csp 1.45 kB 0 B
frontend/dist/css 4.54 kB 0 B
frontend/dist/cssMode 4.2 kB 0 B
frontend/dist/CustomCssScene 3.7 kB 0 B
frontend/dist/CustomerAnalyticsConfigurationScene 2.21 kB 0 B
frontend/dist/CustomerAnalyticsScene 26.7 kB 0 B
frontend/dist/CustomerJourneyBuilderScene 1.97 kB 0 B
frontend/dist/CustomerJourneyTemplatesScene 7.65 kB 0 B
frontend/dist/customizations.full.js 18 kB 0 B
frontend/dist/CyclotronJobInputAssignee 1.47 kB 0 B
frontend/dist/CyclotronJobInputBusinessHours 2.85 kB 0 B
frontend/dist/CyclotronJobInputTicketTags 852 B 0 B
frontend/dist/cypher 3.42 kB 0 B
frontend/dist/dart 4.29 kB 0 B
frontend/dist/Dashboard 1.31 kB 0 B
frontend/dist/Dashboards 22.2 kB 0 B
frontend/dist/DashboardTemplateCopyScene 5.85 kB 0 B
frontend/dist/DataManagementScene 782 B 0 B
frontend/dist/DataPipelinesNewScene 2.45 kB 0 B
frontend/dist/DataWarehouseScene 1.38 kB -55 B (-3.83%)
frontend/dist/Deactivated 1.27 kB 0 B
frontend/dist/dead-clicks-autocapture.js 13.2 kB 0 B
frontend/dist/DeadLetterQueue 5.53 kB 0 B
frontend/dist/DebugScene 20.1 kB 0 B
frontend/dist/decompressionWorker 2.85 kB 0 B
frontend/dist/decompressionWorker.js 2.85 kB 0 B
frontend/dist/DefinitionEdit 8.7 kB 0 B
frontend/dist/DefinitionView 24.2 kB 0 B
frontend/dist/DestinationsScene 2.82 kB 0 B
frontend/dist/dist 643 B 0 B
frontend/dist/dockerfile 1.91 kB 0 B
frontend/dist/EarlyAccessFeature 889 B 0 B
frontend/dist/EarlyAccessFeatures 2.99 kB 0 B
frontend/dist/ecl 5.38 kB 0 B
frontend/dist/EditorScene 1.28 kB 0 B
frontend/dist/elixir 10.3 kB 0 B
frontend/dist/elk.bundled 1.44 MB 0 B
frontend/dist/EmailMFAVerify 3.16 kB 0 B
frontend/dist/EndpointScene 39.1 kB 0 B
frontend/dist/EndpointsScene 21.5 kB 0 B
frontend/dist/ErrorTrackingIssueFingerprintsScene 7.13 kB 0 B
frontend/dist/ErrorTrackingIssueScene 99.2 kB 0 B
frontend/dist/ErrorTrackingScene 25 kB 0 B
frontend/dist/EvaluationTemplates 711 B 0 B
frontend/dist/EventsScene 2.71 kB 0 B
frontend/dist/exception-autocapture.js 11.8 kB 0 B
frontend/dist/Experiment 195 kB 0 B
frontend/dist/Experiments 18.5 kB -711 B (-3.7%)
frontend/dist/exporter 23.1 MB +264 B (0%)
frontend/dist/exporter.js 23.1 MB +264 B (0%)
frontend/dist/ExportsScene 4.13 kB 0 B
frontend/dist/FeatureFlag 131 kB 0 B
frontend/dist/FeatureFlags 742 B 0 B
frontend/dist/FeatureFlagTemplatesScene 7.18 kB 0 B
frontend/dist/FlappyHog 5.92 kB 0 B
frontend/dist/flow9 1.85 kB 0 B
frontend/dist/freemarker2 16.7 kB 0 B
frontend/dist/fsharp 3.02 kB 0 B
frontend/dist/go 2.69 kB 0 B
frontend/dist/graphql 2.3 kB 0 B
frontend/dist/Group 14.8 kB 0 B
frontend/dist/Groups 4.05 kB 0 B
frontend/dist/GroupsNew 7.49 kB 0 B
frontend/dist/handlebars 7.38 kB 0 B
frontend/dist/hcl 3.63 kB 0 B
frontend/dist/HealthCategoryDetailScene 7.38 kB 0 B
frontend/dist/HealthScene 10.7 kB 0 B
frontend/dist/HeatmapNewScene 4.76 kB 0 B
frontend/dist/HeatmapRecordingScene 4.14 kB 0 B
frontend/dist/HeatmapScene 6.77 kB 0 B
frontend/dist/HeatmapsScene 4.02 kB 0 B
frontend/dist/hls 394 kB 0 B
frontend/dist/HogFunctionScene 59.4 kB 0 B
frontend/dist/HogRepl 7.51 kB 0 B
frontend/dist/html 5.62 kB 0 B
frontend/dist/htmlMode 4.65 kB 0 B
frontend/dist/image-blob-reduce.esm 49.5 kB 0 B
frontend/dist/InboxScene 59.9 kB 0 B
frontend/dist/index 245 kB 0 B
frontend/dist/index.js 245 kB 0 B
frontend/dist/ini 1.14 kB 0 B
frontend/dist/InsightQuickStart 5.57 kB 0 B
frontend/dist/InsightScene 28.9 kB 0 B
frontend/dist/IntegrationsRedirect 874 B 0 B
frontend/dist/intercom-integration.js 2.03 kB 0 B
frontend/dist/InviteSignup 15.1 kB 0 B
frontend/dist/java 3.26 kB 0 B
frontend/dist/javascript 1.02 kB 0 B
frontend/dist/jsonMode 13.9 kB 0 B
frontend/dist/julia 7.26 kB 0 B
frontend/dist/kotlin 3.44 kB 0 B
frontend/dist/lazy 159 kB 0 B
frontend/dist/LegacyPluginScene 20.8 kB 0 B
frontend/dist/LegalDocumentNewScene 59.5 kB 0 B
frontend/dist/LegalDocumentsScene 4.78 kB 0 B
frontend/dist/LemonTextAreaMarkdown 638 B 0 B
frontend/dist/less 3.93 kB 0 B
frontend/dist/lexon 2.47 kB 0 B
frontend/dist/lib 2.25 kB 0 B
frontend/dist/Link 604 B 0 B
frontend/dist/LinkScene 25 kB 0 B
frontend/dist/LinksScene 4.34 kB 0 B
frontend/dist/liquid 4.57 kB 0 B
frontend/dist/LiveDebugger 19.3 kB 0 B
frontend/dist/LiveEventsTable 5.37 kB 0 B
frontend/dist/LLMAnalyticsClusterScene 19 kB 0 B
frontend/dist/LLMAnalyticsClustersScene 51.9 kB 0 B
frontend/dist/LLMAnalyticsDatasetScene 19.8 kB 0 B
frontend/dist/LLMAnalyticsDatasetsScene 3.42 kB 0 B
frontend/dist/LLMAnalyticsEvaluation 59.5 kB 0 B
frontend/dist/LLMAnalyticsEvaluationsScene 30 kB 0 B
frontend/dist/LLMAnalyticsPlaygroundScene 37.5 kB 0 B
frontend/dist/LLMAnalyticsScene 118 kB 0 B
frontend/dist/LLMAnalyticsSessionScene 13.5 kB 0 B
frontend/dist/LLMAnalyticsTraceScene 129 kB 0 B
frontend/dist/LLMAnalyticsUsers 662 B 0 B
frontend/dist/LLMASessionFeedbackDisplay 4.98 kB 0 B
frontend/dist/LLMPromptScene 17.7 kB 0 B
frontend/dist/LLMPromptsScene 4.62 kB 0 B
frontend/dist/LLMSkillScene 725 B 0 B
frontend/dist/LLMSkillsScene 742 B 0 B
frontend/dist/Login 8.76 kB 0 B
frontend/dist/Login2FA 4.39 kB 0 B
frontend/dist/logs.js 38.5 kB 0 B
frontend/dist/LogsAlertDetailScene 17.1 kB 0 B
frontend/dist/LogsSamplingDetailScene 4.38 kB 0 B
frontend/dist/LogsSamplingNewScene 1.9 kB 0 B
frontend/dist/lua 2.16 kB 0 B
frontend/dist/m3 2.85 kB 0 B
frontend/dist/main 819 kB 0 B
frontend/dist/ManagedMigration 14.3 kB 0 B
frontend/dist/markdown 3.83 kB 0 B
frontend/dist/MarketingAnalyticsScene 40.1 kB 0 B
frontend/dist/MaterializedColumns 10.3 kB 0 B
frontend/dist/Max 937 B 0 B
frontend/dist/mdx 5.43 kB 0 B
frontend/dist/memlens.lib.bundle 27.9 kB 0 B
frontend/dist/MessageTemplate 16.4 kB 0 B
frontend/dist/MetricsScene 974 B 0 B
frontend/dist/mips 2.62 kB 0 B
frontend/dist/ModelsScene 14.5 kB 0 B
frontend/dist/MonacoDiffEditor 471 B 0 B
frontend/dist/monacoEditorWorker 288 kB 0 B
frontend/dist/monacoEditorWorker.js 288 kB 0 B
frontend/dist/monacoJsonWorker 419 kB 0 B
frontend/dist/monacoJsonWorker.js 419 kB 0 B
frontend/dist/monacoTsWorker 7.02 MB 0 B
frontend/dist/monacoTsWorker.js 7.02 MB 0 B
frontend/dist/MoveToPostHogCloud 4.6 kB 0 B
frontend/dist/msdax 4.95 kB 0 B
frontend/dist/mysql 11.3 kB 0 B
frontend/dist/NavTabChat 4.82 kB 0 B
frontend/dist/NewSourceScene 946 B 0 B
frontend/dist/NewTabScene 783 B 0 B
frontend/dist/NodeDetailScene 16.8 kB 0 B
frontend/dist/NotebookCanvasScene 3.51 kB 0 B
frontend/dist/NotebookPanel 5.48 kB 0 B
frontend/dist/NotebookScene 8.52 kB 0 B
frontend/dist/NotebooksScene 7.74 kB 0 B
frontend/dist/OAuthAuthorize 709 B 0 B
frontend/dist/objective-c 2.44 kB 0 B
frontend/dist/Onboarding 770 kB 0 B
frontend/dist/OnboardingCouponRedemption 1.34 kB 0 B
frontend/dist/pascal 3.03 kB 0 B
frontend/dist/pascaligo 2.04 kB 0 B
frontend/dist/passkeyLogic 620 B 0 B
frontend/dist/PasswordReset 4.5 kB 0 B
frontend/dist/PasswordResetComplete 3.13 kB 0 B
frontend/dist/PendingDeletion 2.35 kB 0 B
frontend/dist/perl 8.29 kB 0 B
frontend/dist/PersonScene 18.1 kB 0 B
frontend/dist/PersonsScene 4.84 kB 0 B
frontend/dist/pgsql 13.5 kB 0 B
frontend/dist/php 8.06 kB 0 B
frontend/dist/PipelineStatusScene 9.24 kB 0 B
frontend/dist/pla 1.72 kB 0 B
frontend/dist/posthog 145 kB 0 B
frontend/dist/postiats 7.9 kB 0 B
frontend/dist/powerquery 17 kB 0 B
frontend/dist/powershell 3.31 kB 0 B
frontend/dist/PreflightCheck 5.71 kB 0 B
frontend/dist/product-tours.js 115 kB 0 B
frontend/dist/ProductTour 274 kB 0 B
frontend/dist/ProductTours 4.82 kB 0 B
frontend/dist/ProjectHomepage 24.9 kB 0 B
frontend/dist/protobuf 9.09 kB 0 B
frontend/dist/pug 4.86 kB 0 B
frontend/dist/python 4.8 kB 0 B
frontend/dist/qsharp 3.23 kB 0 B
frontend/dist/QueryPerformance 8.35 kB 0 B
frontend/dist/r 3.16 kB 0 B
frontend/dist/razor 9.38 kB 0 B
frontend/dist/react-json-view 121 kB 0 B
frontend/dist/recorder-v2.js 112 kB 0 B
frontend/dist/recorder.js 112 kB 0 B
frontend/dist/redis 3.59 kB 0 B
frontend/dist/redshift 11.8 kB 0 B
frontend/dist/RegionMap 29.6 kB 0 B
frontend/dist/render-query 22.8 MB 0 B
frontend/dist/render-query.js 22.8 MB +264 B (0%)
frontend/dist/ResourceTransfer 9.32 kB 0 B
frontend/dist/restructuredtext 3.94 kB 0 B
frontend/dist/RevenueAnalyticsScene 25.8 kB 0 B
frontend/dist/ruby 8.54 kB 0 B
frontend/dist/rust 4.2 kB 0 B
frontend/dist/SavedInsights 800 B 0 B
frontend/dist/sb 1.86 kB 0 B
frontend/dist/scala 7.36 kB 0 B
frontend/dist/schema 698 kB 0 B
frontend/dist/SchemaScene 21.1 kB 0 B
frontend/dist/scheme 1.8 kB 0 B
frontend/dist/scss 6.45 kB 0 B
frontend/dist/SdkDoctorScene 9.56 kB 0 B
frontend/dist/SessionAttributionExplorerScene 6.77 kB 0 B
frontend/dist/SessionGroupSummariesTable 4.77 kB 0 B
frontend/dist/SessionGroupSummaryScene 17.1 kB 0 B
frontend/dist/SessionProfileScene 15.2 kB 0 B
frontend/dist/SessionRecordingDetail 1.9 kB 0 B
frontend/dist/SessionRecordingFilePlaybackScene 4.61 kB 0 B
frontend/dist/SessionRecordings 878 B 0 B
frontend/dist/SessionRecordingsKiosk 8.98 kB 0 B
frontend/dist/SessionRecordingsPlaylistScene 4.29 kB 0 B
frontend/dist/SessionRecordingsSettingsScene 2.04 kB 0 B
frontend/dist/SessionsScene 4.12 kB 0 B
frontend/dist/SettingsScene 3.12 kB 0 B
frontend/dist/sharedChunkAnchors 235 kB 0 B
frontend/dist/sharedChunkAnchors.js 235 kB 0 B
frontend/dist/SharedMetric 5.08 kB 0 B
frontend/dist/SharedMetrics 685 B 0 B
frontend/dist/shell 3.11 kB 0 B
frontend/dist/SignupContainer 28.3 kB 0 B
frontend/dist/Site 1.33 kB 0 B
frontend/dist/solidity 18.6 kB 0 B
frontend/dist/sophia 2.8 kB 0 B
frontend/dist/SourceScene 860 B 0 B
frontend/dist/SourcesScene 6.1 kB 0 B
frontend/dist/sparql 2.59 kB 0 B
frontend/dist/sql 10.3 kB 0 B
frontend/dist/SqlVariableEditScene 7.39 kB 0 B
frontend/dist/st 7.44 kB 0 B
frontend/dist/StartupProgram 21.3 kB 0 B
frontend/dist/StripeConfirmInstall 3.67 kB 0 B
frontend/dist/SubscriptionScene 13.5 kB 0 B
frontend/dist/SubscriptionsScene 5.08 kB 0 B
frontend/dist/SupportSettingsScene 1.57 kB 0 B
frontend/dist/SupportTicketScene 26.3 kB 0 B
frontend/dist/SupportTicketsScene 869 B 0 B
frontend/dist/Survey 984 B 0 B
frontend/dist/SurveyFormBuilder 1.68 kB 0 B
frontend/dist/Surveys 18.4 kB 0 B
frontend/dist/surveys.js 94.7 kB 0 B
frontend/dist/SurveyWizard 72.3 kB 0 B
frontend/dist/swift 5.3 kB 0 B
frontend/dist/SystemStatus 17 kB 0 B
frontend/dist/systemverilog 7.65 kB 0 B
frontend/dist/TaskDetailScene 22.5 kB 0 B
frontend/dist/TaskTracker 14.3 kB 0 B
frontend/dist/tcl 3.61 kB 0 B
frontend/dist/TextCardMarkdownEditor 11.1 kB 0 B
frontend/dist/ToolbarLaunch 2.61 kB 0 B
frontend/dist/tracing-headers.js 1.74 kB 0 B
frontend/dist/TracingScene 31.6 kB 0 B
frontend/dist/TransformationsScene 2.06 kB 0 B
frontend/dist/TrendsBarChart 5.71 kB 0 B
frontend/dist/TrendsLineChart 6.4 kB 0 B
frontend/dist/tsMode 24 kB 0 B
frontend/dist/twig 6.01 kB 0 B
frontend/dist/TwoFactorReset 4.16 kB 0 B
frontend/dist/typescript 274 B 0 B
frontend/dist/typespec 2.86 kB 0 B
frontend/dist/Unsubscribe 1.8 kB 0 B
frontend/dist/UserInterview 4.68 kB 0 B
frontend/dist/UserInterviews 2.16 kB 0 B
frontend/dist/vb 5.83 kB 0 B
frontend/dist/VercelConnect 5.13 kB 0 B
frontend/dist/VercelLinkError 2.4 kB 0 B
frontend/dist/VerifyEmail 4.92 kB 0 B
frontend/dist/vimMode 211 kB 0 B
frontend/dist/VisualReviewIndexScene 2.35 kB 0 B
frontend/dist/VisualReviewRunScene 42.5 kB 0 B
frontend/dist/VisualReviewRunsScene 7.11 kB 0 B
frontend/dist/VisualReviewSettingsScene 10.9 kB 0 B
frontend/dist/VisualReviewSnapshotHistoryScene 8.23 kB 0 B
frontend/dist/VisualReviewSnapshotOverviewScene 17.4 kB 0 B
frontend/dist/web-vitals.js 6.39 kB 0 B
frontend/dist/WebAnalyticsScene 5.91 kB 0 B
frontend/dist/WebGLRenderer-DYjOwNoG 60.4 kB 0 B
frontend/dist/WebGPURenderer-B_wkl_Ja 36.3 kB 0 B
frontend/dist/WebScriptsScene 2.68 kB 0 B
frontend/dist/webworkerAll-puPV1rBA 397 B 0 B
frontend/dist/wgsl 7.38 kB 0 B
frontend/dist/Wizard 4.59 kB 0 B
frontend/dist/WorkflowScene 109 kB 0 B
frontend/dist/WorkflowsScene 58.5 kB 0 B
frontend/dist/WorldMap 4.91 kB 0 B
frontend/dist/xml 3.02 kB 0 B
frontend/dist/yaml 4.64 kB 0 B

compressed-size-action

@jonmcwest jonmcwest added the stamphog Request AI review from stamphog label May 3, 2026 — with Graphite App
Copy link
Copy Markdown

@stamphog stamphog Bot left a comment

Choose a reason for hiding this comment

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

The new LogsSqlEditor uses useState for query state in a component that unmounts on tab switch, causing the SQL query to reset every time the user navigates away. An unresolved bot comment flags this as a valid UX concern. Additionally, the project's coding conventions (AGENTS.md) explicitly say to avoid React hooks and use kea logic instead when a kea logic file exists — which it does here (logsSceneLogic). The concern is unaddressed in the current diff.

@stamphog stamphog Bot removed the stamphog Request AI review from stamphog label May 3, 2026
@jonmcwest jonmcwest force-pushed the 05-03-feat_logs_add_sql_view_and_editor_to_logsscene branch 2 times, most recently from b4f5f68 to 6d25b38 Compare May 5, 2026 09:49
@jonmcwest jonmcwest added the stamphog Request AI review from stamphog label May 5, 2026
github-actions[bot]
github-actions Bot previously approved these changes May 5, 2026
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

The bot reviews flagged a useState concern from an older commit, but the current code uses kea logic throughout and correctly preserves SQL editor state across tab switches via the keepSqlEditorMounted/cache pattern in logsSceneLogic. The feature is behind a flag and the author is on the owning team — no showstoppers.

@jonmcwest jonmcwest force-pushed the 05-03-feat_logs_add_sql_view_and_editor_to_logsscene branch from 6d25b38 to 5d2c557 Compare May 5, 2026 10:17
@github-actions github-actions Bot dismissed their stale review May 5, 2026 10:18

New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.

@jonmcwest jonmcwest force-pushed the 05-03-feat_logs_add_sql_view_and_editor_to_logsscene branch from 5d2c557 to 762ebf9 Compare May 5, 2026 10:19
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

The useState concern from older-commit bot reviews is not present in the current code — state is managed through kea's sqlEditorLogic, and the keepSqlEditorMounted cache pattern in logsSceneLogic correctly preserves query state across tab switches. The feature is entirely behind a feature flag, no API contracts or data models are changed, and the author is on the owning team.

@jonmcwest jonmcwest merged commit edb6c14 into master May 5, 2026
235 checks passed
Copy link
Copy Markdown
Contributor Author

Merge activity

@jonmcwest jonmcwest deleted the 05-03-feat_logs_add_sql_view_and_editor_to_logsscene branch May 5, 2026 11:07
@deployment-status-posthog
Copy link
Copy Markdown

deployment-status-posthog Bot commented May 5, 2026

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-05-05 11:41 UTC Run
prod-us ✅ Deployed 2026-05-05 11:54 UTC Run
prod-eu ✅ Deployed 2026-05-05 11:58 UTC Run

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

Labels

stamphog Request AI review from stamphog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant