: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(insights): label sidebar SQL entry as "New SQL" (#63195)
Vasco de Krijger48190cf56957
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex cc589dbd8660..40d20727b967 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -1459,6 +1459,7 @@ export const getTreeItemsNew = (): FileSystemImport[] => [path: `Insight/SQL`,type: 'insight',href: urls.sqlEditor({ query: (examples.HogQLForDataVisualization as HogQLQuery).query }),+ displayLabel: 'New SQL',iconType: 'insight/hog',iconColor: ['var(--color-insight-sql-light)'] as FileSystemIconColor,visualOrder: INSIGHT_VISUAL_ORDER.sql,diff --git a/products/product_analytics/manifest.tsx b/products/product_analytics/manifest.tsxindex 6fc20445fe85..c71f06cbf604 100644--- a/products/product_analytics/manifest.tsx+++ b/products/product_analytics/manifest.tsx@@ -165,6 +165,9 @@ export const manifest: ProductManifest = {path: `Insight/SQL`,type: 'insight',href: urls.sqlEditor({ query: (examples.HogQLForDataVisualization as HogQLQuery).query }),+ // The sibling insight items get a "New " prefix automatically because their hrefs include "new";+ // the SQL editor href doesn't, so set the label explicitly to stay consistent.+ displayLabel: 'New SQL',iconType: 'insight/hog',iconColor: ['var(--color-insight-sql-light)'] as FileSystemIconColor,visualOrder: INSIGHT_VISUAL_ORDER.sql,