: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(navigation): describe all configurable starred apps (#106445)
Marius Andra4206073e4240
diff --git a/AGENTS.md b/AGENTS.mdindex 2e24d8832f48..77b272bc120b 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -36,7 +36,7 @@## Commits and Pull Requests- Use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) for all commit messages and PR titles.-- When a change touches user-facing behavior, an API, a config/setting, or a documented workflow, update a relevant existing doc under `docs/` **in the same PR**. If none exists, make no docs change.+- When a change touches user-facing behavior, an API, a config/setting, or a documented workflow, update an existing doc under `docs/` **whose scope covers that behavior** in the same PR. If none exists, make no docs change and put PR-specific context in the PR description. `project-structure.md` is a high-level directory map; feature behavior, UI controls, command usage, and worktree notes do not belong there.- A new `docs/**` file requires a person to request that specific document in the current conversation. Existing related docs, PR checklists, and general docs requirements do not authorize one. Put PR-specific context in the PR description.### Commit typesdiff --git a/docs/published/handbook/engineering/project-structure.md b/docs/published/handbook/engineering/project-structure.mdindex 6b591b40bed8..58a19f45e452 100644--- a/docs/published/handbook/engineering/project-structure.md+++ b/docs/published/handbook/engineering/project-structure.md@@ -47,11 +47,6 @@ The PostHog web application, built with React and TypeScript. Uses [Kea](https:/- `src/queries` – Query builder and data visualization components- `src/toolbar` – Code for the [PostHog Toolbar](https://posthog.com/docs/user-guides/toolbar)-The Apps sidebar lives in `src/layout/panel-layout/navbar`.-App rows show a direct star toggle when starring is their only action; rows with other actions keep starring in their menu.-The Starred section's menu opens **Configure starred**, a flat app picker that saves star changes immediately.-Drag starred items in the sidebar to change their order.-### `posthog`The Django backend application. Key subdirectories:diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex b3c38443a0c3..9db9dc59e197 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -3753,9 +3753,9 @@ snapshots:layout-apps-and-files--collapsed--light:hash: v1.k794b7964.4e69eef40e28d9b063759264639ee685ce796c07a623bd78aabb7cc51a6eea59.EquaH8oP-2UUsgXNQGDkK-ZZWpWsFWL2U-K1tVlOOpMlayout-apps-and-files--configure-starred--dark:- hash: v1.k794b7964.7ea1d5fd5998bc820a913b3801645a209ef66477fdcd28f34817d937230f5b96.UuvcGy8e7la7mc78dmyQfLOHhofIl9MrVemK7CKqAiI+ hash: v1.k794b7964.197e8b7d21de6bf648e423849276256b897f1c43b5578180da6c207094e2e4d0.CWse8jMS1-xZVZZscUcyPqqiujsKn_m7yWZgYH2gbY0layout-apps-and-files--configure-starred--light:- hash: v1.k794b7964.84678e0d51162ed7bb843801328d8b6fe4b9a786133f9b144174e8f6210bda25.6gJKA-yzGIJ1K2L348ofwyKsZ_KrhnxReY8jY8_SVXQ+ hash: v1.k794b7964.e4e9b887e700c2e0c7c7a5e1e3a44900b6ed18810a623fc02e0353ad0b69742a.AxSAfKYfleVQexMIuk2yH1XceCBBAh2wzntfRcr5jFklayout-apps-and-files--dark--dark:hash: v1.k794b7964.bc8ed5f9038a33b7fb58ab8aeaca459fc01760b9d4a6fb39cf7314d2923f1e07.TYALwAUfZ0I99Cd_fVwcYUPeQLkhkqtrYn2exs2ilw0layout-apps-and-files--dark--light:@@ -11449,9 +11449,9 @@ snapshots:scenes-app-settings-user--settings-user-danger-zone--light:hash: v1.k794b7964.a18b0b851dcc99fc9c512c6809bcd9408d2d7710a1af1232600a330dfff18ac7.1Eo9vX2Xbpx00k_YhM-UEEsRXSEThzmS94cEEjcsfBsscenes-app-settings-user--settings-user-navigation--dark:- hash: v1.k794b7964.be7b42abbc3d00a54e970ce44072021a3fb7a6f5759028feb9bcc64c8e02f582.Fn6ZEKFeJako1hyFn_FaIxIjydwXOLIloZ1UaCyONnM+ hash: v1.k794b7964.c678fbe79cd06ec5d805bf89a26e0ee37b05431eb516ff8559af567ae3c66ca4.brOG9fmWbDonWDlGYqqxZF7Lb7pr9vqko9rDN3vqc0oscenes-app-settings-user--settings-user-navigation--light:- hash: v1.k794b7964.a4061da91e7c33e6b70809f56174bcdf6367de383cdf7f4bd44ce933ac4ef789.CL6GK2S3yJDBY8GcRukzMatIbh7G5prl8YxdZYxf3c0+ hash: v1.k794b7964.f472a9611f74c5cc61bde2b328bf70f507c3e7ab810f7fff84d5a7ad073add91.GUKjxOkcQwzja8QiApxYwXyyHFHtaXO6fZboZ7PvFQ0scenes-app-settings-user--settings-user-notifications--dark:hash: v1.k794b7964.2204e0a2e6d5fadb35dbbe13c68b9af2fe4052473a34e9562299bddfb7687eb1.xG738ieu2EfqR-FhuyuG916gXJawaPw_aCHVcVvWGbcscenes-app-settings-user--settings-user-notifications--light:diff --git a/frontend/src/layout/panel-layout/navbar/tabs/NavAppTooltip.tsx b/frontend/src/layout/panel-layout/navbar/tabs/NavAppTooltip.tsxindex 355df0754bea..586b741c8576 100644--- a/frontend/src/layout/panel-layout/navbar/tabs/NavAppTooltip.tsx+++ b/frontend/src/layout/panel-layout/navbar/tabs/NavAppTooltip.tsx@@ -3,65 +3,6 @@ import { FileSystemImport } from '~/queries/schema/schema-general'import { sidebarToolMeta } from '../../sidebarToolMeta'import { appsItemName } from './appsCatalog'-const descriptions: Record<string, string> = {- Home: 'Pick up where you left off with the insights, dashboards, and activity that matter to your project.',- Activity:- 'Explore the events people send to your project. Inspect their properties to understand exactly what happened.',- 'SQL editor':- 'Ask questions that need more than a chart builder. Query your events and warehouse tables together, then turn the results into a table or visualization.',- 'Product analytics':- 'Find out how people discover, use, and return to your product. Explore trends, conversion funnels, retention, and the paths people take.',- Dashboards:- 'Bring related insights together in one place. Follow your key metrics over time and share the same view of progress with your team.',- 'Session replay':- 'Watch how people actually experience your product. Follow their clicks and navigation to understand the behavior behind a metric or bug report.',- 'Feature flags':- 'Choose who sees a feature without another deployment. Roll changes out gradually, target a specific group, or turn a feature off when something goes wrong.',- Experiments:- 'Compare product changes with a controlled test. Measure their effect on the metrics you care about before deciding what to ship.',- 'Web analytics':- 'Understand who visits your website, where they come from, and which pages lead to conversions. Start with traffic, then explore what drives it.',- 'Error tracking':- 'Turn exceptions into issues you can investigate. See who was affected and connect errors with the context you need to find the cause.',- Surveys:- 'Ask people about their experience while it is still fresh. Collect feedback in your product and use it to explain what your analytics cannot.',- Heatmaps:- 'See where people click and how far they scroll. Spot overlooked calls to action and places where a page loses attention.',- Notebooks:- 'Keep an investigation together with notes, insights, and recordings. Give your team the evidence and context behind your conclusions.',- 'LLM analytics':- 'Follow your AI application from prompts to responses. Inspect traces, latency, token usage, and cost to understand quality and performance.',- Persons:- 'Explore the people behind your events, including their properties and activity. Connect an individual experience with the patterns in your analytics.',- Cohorts:- 'Group people by what they do and who they are. Reuse those audiences in analysis, feature targeting, and experiments.',- 'SQL variables':- 'Define reusable values for SQL queries so you can change a shared parameter without editing every query.',- 'Core events':- 'Choose the events that signal meaningful use of your product. Give your team a shared starting point for understanding customer activity.',- 'Revenue definitions':- 'Tell PostHog which events represent revenue and where to find their amounts and currencies. Use consistent revenue measures across your analyses.',- 'Property groups':- 'Organize related properties into reusable groups. Make a large tracking schema easier to navigate and understand.',- 'Event definitions':- 'Explore the events captured in your project and document what they mean. Help your team choose the right events for an analysis.',- 'Property definitions':- 'Explore the properties attached to your events and people. Document their meaning so everyone interprets the same data consistently.',- 'Managed viewsets':- 'Set up collections of warehouse views built for a particular kind of analysis. Reuse prepared data models instead of starting each query from scratch.',- 'Event ingestion warnings':- 'Find problems encountered while processing your events. Inspect the warnings to identify tracking issues and improve the data you analyze.',- Annotations:- 'Add context to changes in your metrics. Mark releases, campaigns, and other milestones so your team can connect a chart with what happened.',- Sources:- 'Bring data from your other tools into PostHog. Combine it with product events to answer questions that span your business.',- Destinations:- 'Send events from PostHog to the tools that need them. Connect product activity with the rest of your workflows.',- Transformations:- 'Reshape incoming events before they reach your analyses. Keep event names and properties consistent across your tracking.',- Models: 'Turn SQL queries into reusable views and materialized views. Build on shared data models instead of repeating the same preparation in every analysis.',-}-const examples: Record<string, string> = {Home: 'Return to a dashboard you were investigating yesterday.',Activity: 'Check which properties arrive with a signup event.',@@ -139,17 +80,14 @@ const examples: Record<string, string> = {}export function NavAppTooltip({ item }: { item: FileSystemImport }): JSX.Element {- const description = descriptions[item.path] ?? sidebarToolMeta(item).description+ const { description } = sidebarToolMeta(item)const example = examples[item.path]const isGroup = item.iconType === 'group' || item.iconType?.startsWith('group_') || item.type?.startsWith('group_')return (<div className="w-72 max-w-full p-1 text-left whitespace-normal"><div className="text-sm font-semibold mb-2">{appsItemName(item)}</div><div className="text-xs leading-relaxed">- {description ??- (isGroup- ? 'Explore the organizations, accounts, or other groups behind your events. Understand usage at the group level.'- : `Explore ${appsItemName(item).toLowerCase()} in your project.`)}+ {description ?? `Explore ${appsItemName(item).toLowerCase()} in your project.`}</div>{(example || isGroup) && (<div className="mt-3 border-t border-current/20 pt-2">diff --git a/frontend/src/layout/panel-layout/sidebarToolMeta.ts b/frontend/src/layout/panel-layout/sidebarToolMeta.tsindex 080e52648ba5..0c7520a900fd 100644--- a/frontend/src/layout/panel-layout/sidebarToolMeta.ts+++ b/frontend/src/layout/panel-layout/sidebarToolMeta.ts@@ -2,6 +2,65 @@ import { sceneConfigurations } from 'scenes/scenes'import { FileSystemImport } from '~/queries/schema/schema-general'+const descriptions: Record<string, string> = {+ Home: 'Pick up where you left off with the insights, dashboards, and activity that matter to your project.',+ Activity:+ 'Explore the events people send to your project. Inspect their properties to understand exactly what happened.',+ 'SQL editor':+ 'Ask questions that need more than a chart builder. Query your events and warehouse tables together, then turn the results into a table or visualization.',+ 'Product analytics':+ 'Find out how people discover, use, and return to your product. Explore trends, conversion funnels, retention, and the paths people take.',+ Dashboards:+ 'Bring related insights together in one place. Follow your key metrics over time and share the same view of progress with your team.',+ 'Session replay':+ 'Watch how people actually experience your product. Follow their clicks and navigation to understand the behavior behind a metric or bug report.',+ 'Feature flags':+ 'Choose who sees a feature without another deployment. Roll changes out gradually, target a specific group, or turn a feature off when something goes wrong.',+ Experiments:+ 'Compare product changes with a controlled test. Measure their effect on the metrics you care about before deciding what to ship.',+ 'Web analytics':+ 'Understand who visits your website, where they come from, and which pages lead to conversions. Start with traffic, then explore what drives it.',+ 'Error tracking':+ 'Turn exceptions into issues you can investigate. See who was affected and connect errors with the context you need to find the cause.',+ Surveys:+ 'Ask people about their experience while it is still fresh. Collect feedback in your product and use it to explain what your analytics cannot.',+ Heatmaps:+ 'See where people click and how far they scroll. Spot overlooked calls to action and places where a page loses attention.',+ Notebooks:+ 'Keep an investigation together with notes, insights, and recordings. Give your team the evidence and context behind your conclusions.',+ 'LLM analytics':+ 'Follow your AI application from prompts to responses. Inspect traces, latency, token usage, and cost to understand quality and performance.',+ Persons:+ 'Explore the people behind your events, including their properties and activity. Connect an individual experience with the patterns in your analytics.',+ Cohorts:+ 'Group people by what they do and who they are. Reuse those audiences in analysis, feature targeting, and experiments.',+ 'SQL variables':+ 'Define reusable values for SQL queries so you can change a shared parameter without editing every query.',+ 'Core events':+ 'Choose the events that signal meaningful use of your product. Give your team a shared starting point for understanding customer activity.',+ 'Revenue definitions':+ 'Tell PostHog which events represent revenue and where to find their amounts and currencies. Use consistent revenue measures across your analyses.',+ 'Property groups':+ 'Organize related properties into reusable groups. Make a large tracking schema easier to navigate and understand.',+ 'Event definitions':+ 'Explore the events captured in your project and document what they mean. Help your team choose the right events for an analysis.',+ 'Property definitions':+ 'Explore the properties attached to your events and people. Document their meaning so everyone interprets the same data consistently.',+ 'Managed viewsets':+ 'Set up collections of warehouse views built for a particular kind of analysis. Reuse prepared data models instead of starting each query from scratch.',+ 'Event ingestion warnings':+ 'Find problems encountered while processing your events. Inspect the warnings to identify tracking issues and improve the data you analyze.',+ Annotations:+ 'Add context to changes in your metrics. Mark releases, campaigns, and other milestones so your team can connect a chart with what happened.',+ Sources:+ 'Bring data from your other tools into PostHog. Combine it with product events to answer questions that span your business.',+ Destinations:+ 'Send events from PostHog to the tools that need them. Connect product activity with the rest of your workflows.',+ Transformations:+ 'Reshape incoming events before they reach your analyses. Keep event names and properties consistent across your tracking.',+ Models: 'Turn SQL queries into reusable views and materialized views. Build on shared data models instead of repeating the same preparation in every analysis.',+}+/*** Tree items whose product has no page on posthog.com/docs yet, so they show no docs link.* Every other sidebar tool must have one — `sidebarToolMeta.test.ts` fails when a new tool has neither.@@ -27,10 +86,18 @@ export interface SidebarToolMeta {docsHref?: string}-/** Description and docs link for a sidebar tool, both read from the product's scene config. */+/** Shared descriptions for app tooltips and sidebar settings, with docs from the scene config. */export function sidebarToolMeta(product: FileSystemImport): SidebarToolMeta {// Most tree items name their scene explicitly; the rest are generated with a single-scene list.const sceneKey = product.sceneKey ?? (product.sceneKeys?.length === 1 ? product.sceneKeys[0] : undefined)const sceneConfig = sceneKey ? sceneConfigurations[sceneKey] : undefined- return { description: sceneConfig?.description, docsHref: sceneConfig?.docsHref }+ const isGroup =+ product.iconType === 'group' || product.iconType?.startsWith('group_') || product.type?.startsWith('group_')+ return {+ // Group paths come from configurable group type names, which can match a built-in app name.+ description: isGroup+ ? 'Explore the organizations, accounts, or other groups behind your events. Understand usage at the group level.'+ : (descriptions[product.path] ?? sceneConfig?.description),+ docsHref: sceneConfig?.docsHref,+ }}