Skip to content

: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.

feat(navigation): describe and link docs for every sidebar entry (#91797)

Rafael Audibertc7c0bbcef2b0
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 18a71f65065f..bc348e0040eb 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -8233,9 +8233,9 @@ snapshots:
scenes-app-settings-user--settings-user-danger-zone--light:
hash: v1.k794b7964.96846d7823357e89a9d91350f6f435373fe287f713250b59ccce2dbd31b6f69c.kl21kygOhH1SlNOJ6VekMMlGUuyNg5Ka7NXFoHcG6M0
scenes-app-settings-user--settings-user-navigation--dark:
- hash: v1.k794b7964.2d771e056c3ebc20c676cdfb0f8c36243ea14de2b3b26169a21a6291a8bea68e.gZiwcbMTy2UahK2xIHaX5rfPk7ZkHFFe8bupdJ6Lknk
+ hash: v1.k794b7964.87ca468f0949495f6fb53cc8b07900f724e8cecdcd38c3791d49c6683a83f379.nPpp4yuzr2RtTIvFvDjlxk835WS_N7K8qVWNNxPCxgQ
scenes-app-settings-user--settings-user-navigation--light:
- hash: v1.k794b7964.f5976853d33d90afdfc9ac22a09dc24c672a223766a99c22761ab894734794a7.prwUzPsNSfVh_U2_cCZ2N-ZMWg9fkhj0-xKRWx0gVRU
+ hash: v1.k794b7964.90007325cf24bd688266d36edca8206e11eb24d6aa98fc0208533ba74adb668b.Vjg6puokORg18-P-bIOttdR-X6L8hXOxoOklyUTlkiY
scenes-app-settings-user--settings-user-notifications--dark:
hash: v1.k794b7964.a09a57f1c0bbcebf82942edebeba7772b2f684ba235bcef3a816aec2beb4cbce.AtQZhdZeeMVvpcmyBhPvprSMZawliTZaIFE5G8M_MVg
scenes-app-settings-user--settings-user-notifications--light:
diff --git a/frontend/src/layout/panel-layout/sidebarCustomization.tsx b/frontend/src/layout/panel-layout/sidebarCustomization.tsx
index 90f7218c228a..fcef426a17db 100644
--- a/frontend/src/layout/panel-layout/sidebarCustomization.tsx
+++ b/frontend/src/layout/panel-layout/sidebarCustomization.tsx
@@ -21,6 +21,8 @@ export interface SidebarCustomizableItem {
label: string
/** Very brief explanation of what the item opens, shown under the label in settings. */
description: string
+ /** Link to this item's page on posthog.com/docs, when it has one. */
+ docsHref?: string
icon: JSX.Element
/** Mirrors the flag gating the item in the navbar, so the toggle is only offered when the item can render at all. */
flag?: string
@@ -30,6 +32,7 @@ export interface SidebarCustomizableSection {
key: SidebarSectionKey
label: string
description: string
+ docsHref?: string
icon: JSX.Element
items: SidebarCustomizableItem[]
}
@@ -52,18 +55,21 @@ export const SIDEBAR_CUSTOMIZABLE_SECTIONS: SidebarCustomizableSection[] = [
key: 'inbox',
label: 'Self-driving',
description: 'Reports and signals that need your attention.',
+ docsHref: 'https://posthog.com/docs/self-driving',
icon: <IconNotification />,
flag: FEATURE_FLAGS.PRODUCT_AUTONOMY,
},
{
label: 'Activity',
description: 'A live stream of events coming into your project.',
+ docsHref: 'https://posthog.com/docs/activity',
icon: <IconClock />,
},
{
key: 'data',
label: 'Data',
description: 'Manage events, actions, properties, and people.',
+ docsHref: 'https://posthog.com/docs/data',
icon: <IconDatabase />,
},
{
diff --git a/frontend/src/layout/panel-layout/sidebarToolMeta.test.ts b/frontend/src/layout/panel-layout/sidebarToolMeta.test.ts
new file mode 100644
index 000000000000..680f2e9da83e
--- /dev/null
+++ b/frontend/src/layout/panel-layout/sidebarToolMeta.test.ts
@@ -0,0 +1,25 @@
+import { SIDEBAR_TOOLS_WITHOUT_DOCS, sidebarToolMeta } from '~/layout/panel-layout/sidebarToolMeta'
+import { getTreeItemsProducts } from '~/products'
+
+describe('sidebarToolMeta', () => {
+ const products = getTreeItemsProducts()
+
+ it.each(products.map((product) => [product.path, product] as const))(
+ '%s explains itself in sidebar settings',
+ (path, product) => {
+ const { description, docsHref } = sidebarToolMeta(product)
+ expect(description).toBeTruthy()
+ if (!SIDEBAR_TOOLS_WITHOUT_DOCS.has(path)) {
+ expect(docsHref).toMatch(/^https:\/\/posthog\.com\/docs\//)
+ }
+ }
+ )
+
+ it('only exempts tools that are still missing a docs page', () => {
+ const stale = [...SIDEBAR_TOOLS_WITHOUT_DOCS].filter((path) => {
+ const product = products.find((candidate) => candidate.path === path)
+ return !product || sidebarToolMeta(product).docsHref
+ })
+ expect(stale).toEqual([])
+ })
+})
diff --git a/frontend/src/layout/panel-layout/sidebarToolMeta.ts b/frontend/src/layout/panel-layout/sidebarToolMeta.ts
new file mode 100644
index 000000000000..ae44dd356c9c
--- /dev/null
+++ b/frontend/src/layout/panel-layout/sidebarToolMeta.ts
@@ -0,0 +1,34 @@
+import { sceneConfigurations } from 'scenes/scenes'
+
+import { FileSystemImport } from '~/queries/schema/schema-general'
+
+/**
+ * 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.
+ */
+export const SIDEBAR_TOOLS_WITHOUT_DOCS = new Set<string>([
+ 'AI gateway',
+ 'Apps',
+ 'Business knowledge',
+ 'Engineering analytics',
+ 'Identity matching',
+ 'Links',
+ 'Live Debugger',
+ 'Product tours',
+ 'Pulse',
+ 'User research',
+ 'Visual review',
+])
+
+export interface SidebarToolMeta {
+ description?: string
+ docsHref?: string
+}
+
+/** Description and docs link for a sidebar tool, both read from the product's 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 }
+}
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index 2d060b63e76f..531ac70e52c0 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -467,6 +467,7 @@ export const productConfiguration: Record<string, any> = {
layout: 'app-container',
description: 'Analyze and understand your AI usage and performance.',
iconType: 'llm_analytics',
+ docsHref: 'https://posthog.com/docs/ai-observability',
},
AIObservabilityTrace: { projectBased: true, name: 'AI observability trace', layout: 'app-container' },
AIObservabilitySession: { projectBased: true, name: 'AI observability session', layout: 'app-container' },
@@ -477,6 +478,7 @@ export const productConfiguration: Record<string, any> = {
description: 'Test and experiment with LLM prompts in a sandbox environment.',
layout: 'app-full-scene-height',
iconType: 'llm_playground',
+ docsHref: 'https://posthog.com/docs/ai-observability/playground',
},
AIObservabilityDatasets: {
projectBased: true,
@@ -484,6 +486,7 @@ export const productConfiguration: Record<string, any> = {
description: 'Manage datasets for testing and evaluation.',
layout: 'app-container',
iconType: 'llm_datasets',
+ docsHref: 'https://posthog.com/docs/ai-evals/datasets',
},
AIObservabilityDataset: { projectBased: true, name: 'Dataset', layout: 'app-container', iconType: 'llm_datasets' },
AIObservabilityEvaluations: {
@@ -493,6 +496,7 @@ export const productConfiguration: Record<string, any> = {
activityScope: 'AIObservability',
layout: 'app-container',
iconType: 'llm_evaluations',
+ docsHref: 'https://posthog.com/docs/ai-evals',
},
AIObservabilityEvaluation: {
projectBased: true,
@@ -515,6 +519,7 @@ export const productConfiguration: Record<string, any> = {
activityScope: 'AIObservability',
layout: 'app-container',
iconType: 'llm_tags',
+ docsHref: 'https://posthog.com/docs/ai-evals/taggers',
},
AIObservabilityTag: {
projectBased: true,
@@ -529,6 +534,7 @@ export const productConfiguration: Record<string, any> = {
description: 'Track and manage your LLM prompts.',
layout: 'app-container',
iconType: 'llm_prompts',
+ docsHref: 'https://posthog.com/docs/prompt-management',
},
AIObservabilityPrompt: { projectBased: true, name: 'Prompt', layout: 'app-container', iconType: 'llm_prompts' },
AIObservabilityClusters: {
@@ -537,6 +543,7 @@ export const productConfiguration: Record<string, any> = {
description: 'Discover patterns and clusters in your AI usage.',
layout: 'app-container',
iconType: 'llm_clusters',
+ docsHref: 'https://posthog.com/docs/ai-observability/clusters',
},
AIObservabilityCluster: {
projectBased: true,
@@ -579,6 +586,7 @@ export const productConfiguration: Record<string, any> = {
iconType: 'conversations',
projectBased: true,
layout: 'app-container',
+ docsHref: 'https://posthog.com/docs/support',
},
SupportTicketDetail: { name: 'Ticket detail', projectBased: true, layout: 'app-container' },
SupportSettings: { name: 'Support settings', projectBased: true, layout: 'app-container' },
@@ -588,6 +596,7 @@ export const productConfiguration: Record<string, any> = {
name: 'Customer analytics',
description: 'Understand how your customers interact with your product ',
iconType: 'cohort',
+ docsHref: 'https://posthog.com/docs/customer-analytics',
},
CustomerAnalyticsConfiguration: { projectBased: true, name: 'Customer analytics configuration' },
CustomerJourneyBuilder: { projectBased: true, name: 'New journey' },
@@ -604,6 +613,7 @@ export const productConfiguration: Record<string, any> = {
layout: 'app-container',
iconType: 'data_warehouse',
description: 'Review and manage governed metrics, certifications, and relationships for your data.',
+ docsHref: 'https://posthog.com/docs/semantic-layer',
},
DataCatalogMetric: { projectBased: true, name: 'Metric' },
DataOps: {
@@ -612,6 +622,7 @@ export const productConfiguration: Record<string, any> = {
activityScope: 'DataWarehouse',
description: "Manage your organization's shared data warehouse.",
iconType: 'data_warehouse',
+ docsHref: 'https://posthog.com/docs/data-warehouse',
},
Models: {
name: 'Models',
@@ -626,6 +637,7 @@ export const productConfiguration: Record<string, any> = {
layout: 'app-raw-no-header',
hideProjectNotice: true,
description: 'Write and execute SQL queries against your data warehouse',
+ docsHref: 'https://posthog.com/docs/sql',
},
Sources: {
projectBased: true,
@@ -644,6 +656,7 @@ export const productConfiguration: Record<string, any> = {
projectBased: true,
description: 'Allow your users to individually enable or disable features that are in public beta.',
iconType: 'early_access_feature',
+ docsHref: 'https://posthog.com/docs/feature-flags/early-access-feature-management',
},
EarlyAccessFeature: { name: 'Early access feature', projectBased: true },
EndpointsScene: {
@@ -653,6 +666,7 @@ export const productConfiguration: Record<string, any> = {
layout: 'app-container',
iconType: 'endpoints',
description: 'Define queries your application will use via the API and monitor their cost and usage.',
+ docsHref: 'https://posthog.com/docs/endpoints',
},
EndpointScene: { projectBased: true, name: 'Endpoint', activityScope: 'Endpoint' },
EngineeringAnalytics: {
@@ -702,6 +716,7 @@ export const productConfiguration: Record<string, any> = {
name: 'Error tracking',
iconType: 'error_tracking',
description: 'Track and analyze your error tracking data to understand and fix issues.',
+ docsHref: 'https://posthog.com/docs/error-tracking',
},
ErrorTrackingIssue: { projectBased: true, name: 'Error tracking issue', layout: 'app-raw' },
ErrorTrackingIssueFingerprints: { projectBased: true, name: 'Error tracking issue fingerprints' },
@@ -713,6 +728,7 @@ export const productConfiguration: Record<string, any> = {
description:
'Experiments help you test changes to your product to see which changes will lead to optimal results. Automatic statistical calculations let you see if the results are valid or due to chance.',
iconType: 'experiment',
+ docsHref: 'https://posthog.com/docs/experiments',
},
FeatureFlagTemplates: { projectBased: true, name: 'Feature flag templates' },
FeatureFlagsStaffTools: { instanceLevel: true, name: 'Flags staff tools' },
@@ -742,7 +758,11 @@ export const productConfiguration: Record<string, any> = {
iconType: 'link',
},
Link: { name: 'Link', projectBased: true, activityScope: 'Link' },
- LiveDebugger: { name: 'Live Debugger', projectBased: true },
+ LiveDebugger: {
+ name: 'Live debugger',
+ projectBased: true,
+ description: 'Set breakpoints in your running code and inspect the state captured when they hit.',
+ },
Logs: {
projectBased: true,
name: 'Logs',
@@ -750,6 +770,7 @@ export const productConfiguration: Record<string, any> = {
layout: 'app-container',
iconType: 'logs',
description: 'Monitor and analyze your logs to understand and fix issues.',
+ docsHref: 'https://posthog.com/docs/logs',
},
LogsAlertDetail: { projectBased: true, name: 'Alert', activityScope: ActivityScope.LOG, layout: 'app-container' },
LogsAlertNotificationDetail: {
@@ -794,6 +815,7 @@ export const productConfiguration: Record<string, any> = {
layout: 'app-container',
description: 'Capture user intent and behaviour patterns to understand what AI users need from your tools.',
iconType: 'mcp_analytics',
+ docsHref: 'https://posthog.com/docs/mcp-analytics',
},
MCPAnalyticsToolDetail: {
projectBased: true,
@@ -808,6 +830,7 @@ export const productConfiguration: Record<string, any> = {
'Route every MCP server your team uses through one gateway: shared credentials, per-tool policies, agent identities, and an audit log.',
layout: 'app-container',
iconType: 'tools',
+ docsHref: 'https://posthog.com/docs/model-context-protocol',
},
McpGatewayServer: { projectBased: true, name: 'MCP server' },
McpGatewayAgent: { projectBased: true, name: 'MCP agent' },
@@ -819,6 +842,7 @@ export const productConfiguration: Record<string, any> = {
activityScope: 'Metrics',
description: 'Monitor and analyze application metrics to understand system performance and health.',
iconType: 'metrics',
+ docsHref: 'https://posthog.com/docs/metrics',
},
TaskTracker: {
name: 'Tasks',
@@ -827,6 +851,7 @@ export const productConfiguration: Record<string, any> = {
description: 'Tasks are work that agents can do for you, like creating a pull request or fixing an issue.',
iconType: 'task',
layout: 'app-full-scene-height',
+ docsHref: 'https://posthog.com/docs/posthog-desktop/tasks',
},
Pulse: {
name: 'Pulse',
@@ -842,6 +867,7 @@ export const productConfiguration: Record<string, any> = {
'Set up AI scanners that automatically analyze new session recordings as they come in. Each result emits a queryable event.',
iconType: 'replay_vision',
layout: 'app-container',
+ docsHref: 'https://posthog.com/docs/replay-vision',
},
ReplayVisionScanner: {
name: 'Replay vision scanner',
@@ -884,11 +910,13 @@ export const productConfiguration: Record<string, any> = {
projectBased: true,
description: 'Automated code reviews of your pull requests, and your review agent settings.',
iconType: 'code_review',
+ docsHref: 'https://posthog.com/docs/posthog-desktop/code-review',
},
Inbox: {
name: 'Inbox',
projectBased: true,
description: 'Actionable reports automatically generated from user session analysis and other signals.',
+ docsHref: 'https://posthog.com/docs/self-driving/inbox',
},
Skills: {
projectBased: true,
@@ -896,6 +924,7 @@ export const productConfiguration: Record<string, any> = {
description: 'Manage versioned agent skills that any MCP-connected agent can discover and use.',
layout: 'app-container',
iconType: 'llm_prompts',
+ docsHref: 'https://posthog.com/docs/skills',
},
Skill: { projectBased: true, name: 'Skill', layout: 'app-container', iconType: 'llm_prompts' },
CommunitySkills: {
@@ -933,6 +962,7 @@ export const productConfiguration: Record<string, any> = {
projectBased: true,
description: 'PostHog toolbar launches PostHog right in your app or website.',
iconType: 'toolbar',
+ docsHref: 'https://posthog.com/docs/toolbar',
},
Tracing: {
name: 'Tracing',
@@ -941,6 +971,7 @@ export const productConfiguration: Record<string, any> = {
activityScope: 'Tracing',
description: 'Monitor and analyze distributed traces to understand service performance and debug issues.',
iconType: 'tracing',
+ docsHref: 'https://posthog.com/docs/distributed-tracing',
},
TracingOperation: {
name: 'Operation',
@@ -981,6 +1012,7 @@ export const productConfiguration: Record<string, any> = {
projectBased: true,
iconType: 'heatmap',
description: 'Heatmaps are a way to visualize user behavior on your website.',
+ docsHref: 'https://posthog.com/docs/toolbar/heatmaps',
},
Heatmap: { name: 'Heatmap', projectBased: true, iconType: 'heatmap' },
HeatmapNew: { name: 'New heatmap', projectBased: true, iconType: 'heatmap' },
@@ -990,6 +1022,7 @@ export const productConfiguration: Record<string, any> = {
iconType: 'workflows',
projectBased: true,
description: 'Automate user communication and internal processes',
+ docsHref: 'https://posthog.com/docs/workflows',
},
Workflow: { name: 'Workflows', iconType: 'workflows', projectBased: true },
WorkflowsLibraryTemplate: { name: 'Workflows', iconType: 'workflows', projectBased: true },
@@ -2281,7 +2314,9 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
},
{
path: 'Live Debugger',
+ displayLabel: 'Live debugger',
intents: [ProductKey.LIVE_DEBUGGER],
+ sceneKey: 'LiveDebugger',
category: ProductItemCategory.UNRELEASED,
type: 'live_debugger',
href: urls.liveDebugger(),
diff --git a/frontend/src/scenes/sceneTypes.ts b/frontend/src/scenes/sceneTypes.ts
index 09cd269c80f5..8b0f085a7522 100644
--- a/frontend/src/scenes/sceneTypes.ts
+++ b/frontend/src/scenes/sceneTypes.ts
@@ -303,6 +303,8 @@ export interface SceneConfig {
name?: string
/** Optional static description of the scene or product. Used both in the UI and by Max AI as context on what the scene is for */
description?: string
+ /** Link to this product's page on posthog.com/docs. Shown next to the product in sidebar settings */
+ docsHref?: string
/** Route should only be accessed when logged out (N.B. should be added to posthog/urls.py too) */
onlyUnauthenticated?: boolean
/** Route **can** be accessed when logged out (i.e. can be accessed when logged in too; should be added to posthog/urls.py too) */
diff --git a/frontend/src/scenes/scenes.ts b/frontend/src/scenes/scenes.ts
index f09b45f3fbda..e836dc263c10 100644
--- a/frontend/src/scenes/scenes.ts
+++ b/frontend/src/scenes/scenes.ts
@@ -73,6 +73,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
description: 'Web scripts allow you to add custom tags and functionality to your website using PostHog.',
activityScope: ActivityScope.HOG_FUNCTION,
iconType: 'data_pipeline',
+ docsHref: 'https://posthog.com/docs/js-snippets',
},
[Scene.BatchExport]: {
projectBased: true,
@@ -135,6 +136,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
activityScope: ActivityScope.DASHBOARD,
description: 'Create and manage your dashboards',
iconType: 'dashboard',
+ docsHref: 'https://posthog.com/docs/product-analytics/dashboards',
},
[Scene.DataManagement]: {
projectBased: true,
@@ -231,6 +233,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
description:
'Use feature flags to safely deploy and roll back new features in an easy-to-manage way. Roll variants out to certain groups, a percentage of users, or everyone all at once.',
activityScope: ActivityScope.FEATURE_FLAG,
+ docsHref: 'https://posthog.com/docs/feature-flags',
},
[Scene.Game368]: { name: '368 Hedgehogs', projectBased: true },
[Scene.Group]: {
@@ -299,6 +302,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
name: 'Notebooks',
description: 'Notebooks are a way to organize your work and share it with others.',
activityScope: ActivityScope.NOTEBOOK,
+ docsHref: 'https://posthog.com/docs/notebooks',
},
[Scene.OAuthAuthorize]: {
name: 'Authorize',
@@ -409,6 +413,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
iconType: 'session_replay',
description:
'Replay recordings of user sessions to understand how users interact with your product or website.',
+ docsHref: 'https://posthog.com/docs/session-replay',
},
[Scene.ReplayKiosk]: {
projectBased: true,
@@ -434,6 +439,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
description:
'Analyze your marketing performance across integrations: spend, impressions, conversions, ROAS, and more metrics.',
iconType: 'marketing_analytics',
+ docsHref: 'https://posthog.com/docs/web-analytics/marketing-analytics',
},
[Scene.MarketingAnalyticsSettings]: {
projectBased: true,
@@ -447,6 +453,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
description: 'Track, analyze, and experiment with user behavior.',
activityScope: ActivityScope.INSIGHT,
iconType: 'product_analytics',
+ docsHref: 'https://posthog.com/docs/product-analytics',
},
[Scene.Health]: {
projectBased: true,
@@ -511,6 +518,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
activityScope: ActivityScope.SURVEY,
description: 'Create surveys to collect feedback from your users',
iconType: 'survey',
+ docsHref: 'https://posthog.com/docs/surveys',
},
[Scene.ProductTours]: {
projectBased: true,
@@ -569,6 +577,7 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
layout: 'app-container',
description: 'Analyze your web analytics data to understand website performance and user behavior.',
iconType: 'web_analytics',
+ docsHref: 'https://posthog.com/docs/web-analytics',
},
[Scene.WebAnalyticsRecap]: {
projectBased: true,
diff --git a/frontend/src/scenes/settings/user/SidebarSettings.tsx b/frontend/src/scenes/settings/user/SidebarSettings.tsx
index 40ba2bdee976..0029d75f663c 100644
--- a/frontend/src/scenes/settings/user/SidebarSettings.tsx
+++ b/frontend/src/scenes/settings/user/SidebarSettings.tsx
@@ -5,7 +5,6 @@ import { LemonLabel, LemonSegmentedButton, LemonSwitch } from '@posthog/lemon-ui
import { Link } from 'lib/lemon-ui/Link'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { getProductAccessDisabledReason } from 'lib/utils/accessControlUtils'
-import { PRODUCT_BRANDING } from 'scenes/welcome/productBranding'
import { customProductsLogic } from '~/layout/panel-layout/ProjectTree/customProductsLogic'
import { getDefaultTreeProducts, iconForType } from '~/layout/panel-layout/ProjectTree/defaultTree'
@@ -15,9 +14,9 @@ import {
SIDEBAR_CUSTOMIZABLE_SECTIONS,
SidebarCustomizableItem,
} from '~/layout/panel-layout/sidebarCustomization'
+import { sidebarToolMeta } from '~/layout/panel-layout/sidebarToolMeta'
import { HomepageConfiguration } from '~/layout/scenes/HomepageConfiguration'
import { uiCustomizationLogic } from '~/layout/uiCustomizationLogic'
-import { productConfiguration } from '~/products'
import { FileSystemImport, SidebarDensity } from '~/queries/schema/schema-general'
export function HomepageSetting(): JSX.Element {
@@ -99,7 +98,14 @@ export function SidebarItemsSetting(): JSX.Element {
className="py-2"
checked={true}
disabledReason={`${item.label} always stays visible`}
- label={<ItemLabel icon={item.icon} label={item.label} description={item.description} />}
+ label={
+ <ItemLabel
+ icon={item.icon}
+ label={item.label}
+ description={item.description}
+ docsHref={item.docsHref}
+ />
+ }
bordered
fullWidth
data-attr={`sidebar-customization-item-${item.label.toLowerCase()}`}
@@ -113,7 +119,14 @@ export function SidebarItemsSetting(): JSX.Element {
checked={isSidebarItemShown(key)}
onChange={(checked) => setSidebarItemShown(key, checked)}
loading={userLoading}
- label={<ItemLabel icon={item.icon} label={item.label} description={item.description} />}
+ label={
+ <ItemLabel
+ icon={item.icon}
+ label={item.label}
+ description={item.description}
+ docsHref={item.docsHref}
+ />
+ }
bordered
fullWidth
data-attr={`sidebar-customization-item-${key}`}
@@ -142,6 +155,7 @@ export function SidebarItemsSetting(): JSX.Element {
icon={section.icon}
label={section.label}
description={section.description}
+ docsHref={section.docsHref}
/>
}
bordered
@@ -212,12 +226,7 @@ export function SidebarMyToolsSetting(): JSX.Element {
<div key={category} className="flex flex-col gap-2">
<LemonLabel>{category}</LemonLabel>
{[...categoryProducts].sort(sortProducts).map((product) => {
- const description: string | undefined = product.sceneKey
- ? productConfiguration[product.sceneKey]?.description
- : undefined
- const docsHref: string | undefined = product.intents?.length
- ? PRODUCT_BRANDING[product.intents[0]]?.docsHref
- : undefined
+ const { description, docsHref } = sidebarToolMeta(product)
return (
<LemonSwitch
key={product.path}
diff --git a/products/ai_observability/manifest.tsx b/products/ai_observability/manifest.tsx
index 1ead1a6e9065..3441eccff9c6 100644
--- a/products/ai_observability/manifest.tsx
+++ b/products/ai_observability/manifest.tsx
@@ -18,6 +18,7 @@ export const manifest: ProductManifest = {
layout: 'app-container',
description: 'Analyze and understand your AI usage and performance.',
iconType: 'llm_analytics',
+ docsHref: 'https://posthog.com/docs/ai-observability',
},
AIObservabilityTrace: {
import: () => import('./frontend/AIObservabilityTraceScene'),
@@ -44,6 +45,7 @@ export const manifest: ProductManifest = {
description: 'Test and experiment with LLM prompts in a sandbox environment.',
layout: 'app-full-scene-height',
iconType: 'llm_playground',
+ docsHref: 'https://posthog.com/docs/ai-observability/playground',
},
AIObservabilityDatasets: {
import: () => import('./frontend/datasets/AIObservabilityDatasetsScene'),
@@ -52,6 +54,7 @@ export const manifest: ProductManifest = {
description: 'Manage datasets for testing and evaluation.',
layout: 'app-container',
iconType: 'llm_datasets',
+ docsHref: 'https://posthog.com/docs/ai-evals/datasets',
},
AIObservabilityDataset: {
import: () => import('./frontend/datasets/AIObservabilityDatasetScene'),
@@ -68,6 +71,7 @@ export const manifest: ProductManifest = {
activityScope: 'AIObservability',
layout: 'app-container',
iconType: 'llm_evaluations',
+ docsHref: 'https://posthog.com/docs/ai-evals',
},
AIObservabilityEvaluation: {
import: () => import('./frontend/evaluations/AIObservabilityEvaluation'),
@@ -93,6 +97,7 @@ export const manifest: ProductManifest = {
activityScope: 'AIObservability',
layout: 'app-container',
iconType: 'llm_tags',
+ docsHref: 'https://posthog.com/docs/ai-evals/taggers',
},
AIObservabilityTag: {
import: () => import('./frontend/tags/AIObservabilityTag'),
@@ -109,6 +114,7 @@ export const manifest: ProductManifest = {
description: 'Track and manage your LLM prompts.',
layout: 'app-container',
iconType: 'llm_prompts',
+ docsHref: 'https://posthog.com/docs/prompt-management',
},
AIObservabilityPrompt: {
import: () => import('./frontend/prompts/LLMPromptScene'),
@@ -124,6 +130,7 @@ export const manifest: ProductManifest = {
description: 'Discover patterns and clusters in your AI usage.',
layout: 'app-container',
iconType: 'llm_clusters',
+ docsHref: 'https://posthog.com/docs/ai-observability/clusters',
},
AIObservabilityCluster: {
import: () => import('./frontend/clusters/AIObservabilityClusterScene'),
diff --git a/products/conversations/manifest.tsx b/products/conversations/manifest.tsx
index f55ca1826ad4..ff0eda3558f6 100644
--- a/products/conversations/manifest.tsx
+++ b/products/conversations/manifest.tsx
@@ -15,6 +15,7 @@ export const manifest: ProductManifest = {
import: () => import('./frontend/scenes/tickets/SupportTicketsScene'),
projectBased: true,
layout: 'app-container',
+ docsHref: 'https://posthog.com/docs/support',
},
SupportTicketDetail: {
name: 'Ticket detail',
diff --git a/products/customer_analytics/manifest.tsx b/products/customer_analytics/manifest.tsx
index da88be1f5945..fdce24db58cd 100644
--- a/products/customer_analytics/manifest.tsx
+++ b/products/customer_analytics/manifest.tsx
@@ -18,6 +18,7 @@ export const manifest: ProductManifest = {
name: 'Customer analytics',
description: 'Understand how your customers interact with your product ',
iconType: 'cohort',
+ docsHref: 'https://posthog.com/docs/customer-analytics',
},
CustomerAnalyticsConfiguration: {
import: () =>
diff --git a/products/data_catalog/manifest.tsx b/products/data_catalog/manifest.tsx
index 71415b968c43..4cf93e08a2b1 100644
--- a/products/data_catalog/manifest.tsx
+++ b/products/data_catalog/manifest.tsx
@@ -13,6 +13,7 @@ export const manifest: ProductManifest = {
layout: 'app-container',
iconType: 'data_warehouse',
description: 'Review and manage governed metrics, certifications, and relationships for your data.',
+ docsHref: 'https://posthog.com/docs/semantic-layer',
},
DataCatalogMetric: {
import: () => import('./frontend/DataCatalogMetricScene'),
diff --git a/products/data_warehouse/manifest.tsx b/products/data_warehouse/manifest.tsx
index a20fae4af287..101c9fbb056e 100644
--- a/products/data_warehouse/manifest.tsx
+++ b/products/data_warehouse/manifest.tsx
@@ -19,6 +19,7 @@ export const manifest: ProductManifest = {
activityScope: 'DataWarehouse',
description: "Manage your organization's shared data warehouse.",
iconType: 'data_warehouse',
+ docsHref: 'https://posthog.com/docs/data-warehouse',
},
Models: {
name: 'Models',
@@ -38,6 +39,7 @@ export const manifest: ProductManifest = {
layout: 'app-raw-no-header',
hideProjectNotice: true,
description: 'Write and execute SQL queries against your data warehouse',
+ docsHref: 'https://posthog.com/docs/sql',
},
Sources: {
import: () => import('./frontend/scenes/SourcesScene/SourcesScene'),
diff --git a/products/early_access_features/manifest.tsx b/products/early_access_features/manifest.tsx
index d71942040d0b..00fa5ab337ff 100644
--- a/products/early_access_features/manifest.tsx
+++ b/products/early_access_features/manifest.tsx
@@ -13,6 +13,7 @@ export const manifest: ProductManifest = {
projectBased: true,
description: 'Allow your users to individually enable or disable features that are in public beta.',
iconType: 'early_access_feature',
+ docsHref: 'https://posthog.com/docs/feature-flags/early-access-feature-management',
},
EarlyAccessFeature: {
name: 'Early access feature',
diff --git a/products/endpoints/manifest.tsx b/products/endpoints/manifest.tsx
index a3c76202dca5..72f61a8b1d1a 100644
--- a/products/endpoints/manifest.tsx
+++ b/products/endpoints/manifest.tsx
@@ -17,6 +17,7 @@ export const manifest: ProductManifest = {
layout: 'app-container',
iconType: 'endpoints',
description: 'Define queries your application will use via the API and monitor their cost and usage.',
+ docsHref: 'https://posthog.com/docs/endpoints',
},
EndpointScene: {
import: () => import('./frontend/EndpointScene'),
diff --git a/products/error_tracking/manifest.tsx b/products/error_tracking/manifest.tsx
index 3d94a9a986b6..5d2e15ce41d1 100644
--- a/products/error_tracking/manifest.tsx
+++ b/products/error_tracking/manifest.tsx
@@ -16,6 +16,7 @@ export const manifest: ProductManifest = {
name: 'Error tracking',
iconType: 'error_tracking',
description: 'Track and analyze your error tracking data to understand and fix issues.',
+ docsHref: 'https://posthog.com/docs/error-tracking',
},
ErrorTrackingIssue: {
import: () => import('./frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene'),
diff --git a/products/experiments/manifest.tsx b/products/experiments/manifest.tsx
index 259e62cc97cf..c433040a0fce 100644
--- a/products/experiments/manifest.tsx
+++ b/products/experiments/manifest.tsx
@@ -15,6 +15,7 @@ export const manifest: ProductManifest = {
description:
'Experiments help you test changes to your product to see which changes will lead to optimal results. Automatic statistical calculations let you see if the results are valid or due to chance.',
iconType: 'experiment',
+ docsHref: 'https://posthog.com/docs/experiments',
},
},
routes: { '/experiments': ['Experiments', 'experiments'] },
diff --git a/products/live_debugger/manifest.tsx b/products/live_debugger/manifest.tsx
index 44418cba8fa8..8a48be87aa45 100644
--- a/products/live_debugger/manifest.tsx
+++ b/products/live_debugger/manifest.tsx
@@ -9,9 +9,10 @@ export const manifest: ProductManifest = {
name: 'Live Debugger',
scenes: {
LiveDebugger: {
- name: 'Live Debugger',
+ name: 'Live debugger',
import: () => import('./frontend/LiveDebugger'),
projectBased: true,
+ description: 'Set breakpoints in your running code and inspect the state captured when they hit.',
},
},
routes: {
@@ -35,7 +36,9 @@ export const manifest: ProductManifest = {
treeItemsProducts: [
{
path: 'Live Debugger',
+ displayLabel: 'Live debugger',
intents: [ProductKey.LIVE_DEBUGGER],
+ sceneKey: 'LiveDebugger',
category: ProductItemCategory.UNRELEASED,
type: 'live_debugger',
href: urls.liveDebugger(),
diff --git a/products/logs/manifest.tsx b/products/logs/manifest.tsx
index 7029347d887d..9aced20244a7 100644
--- a/products/logs/manifest.tsx
+++ b/products/logs/manifest.tsx
@@ -17,6 +17,7 @@ export const manifest: ProductManifest = {
layout: 'app-container',
iconType: 'logs',
description: 'Monitor and analyze your logs to understand and fix issues.',
+ docsHref: 'https://posthog.com/docs/logs',
},
LogsAlertDetail: {
import: () => import('./frontend/scenes/LogsAlertDetailScene/LogsAlertDetailScene'),
diff --git a/products/mcp_analytics/manifest.tsx b/products/mcp_analytics/manifest.tsx
index 58939329e1ae..6b6ee311518e 100644
--- a/products/mcp_analytics/manifest.tsx
+++ b/products/mcp_analytics/manifest.tsx
@@ -24,6 +24,7 @@ export const manifest: ProductManifest = {
layout: 'app-container',
description: 'Capture user intent and behaviour patterns to understand what AI users need from your tools.',
iconType: 'mcp_analytics',
+ docsHref: 'https://posthog.com/docs/mcp-analytics',
},
MCPAnalyticsToolDetail: {
import: () => import('./frontend/MCPAnalyticsToolDetail'),
diff --git a/products/mcp_store/manifest.tsx b/products/mcp_store/manifest.tsx
index 5d12378363dd..69b08d47f64a 100644
--- a/products/mcp_store/manifest.tsx
+++ b/products/mcp_store/manifest.tsx
@@ -15,6 +15,7 @@ export const manifest: ProductManifest = {
'Route every MCP server your team uses through one gateway: shared credentials, per-tool policies, agent identities, and an audit log.',
layout: 'app-container',
iconType: 'tools',
+ docsHref: 'https://posthog.com/docs/model-context-protocol',
},
McpGatewayServer: {
import: () => import('./frontend/gateway/GatewayServerScene'),
diff --git a/products/metrics/manifest.tsx b/products/metrics/manifest.tsx
index 0c86d6d8da5b..02957550b5bf 100644
--- a/products/metrics/manifest.tsx
+++ b/products/metrics/manifest.tsx
@@ -15,6 +15,7 @@ export const manifest: ProductManifest = {
activityScope: 'Metrics',
description: 'Monitor and analyze application metrics to understand system performance and health.',
iconType: 'metrics',
+ docsHref: 'https://posthog.com/docs/metrics',
},
},
routes: {
diff --git a/products/posthog_ai/manifest.tsx b/products/posthog_ai/manifest.tsx
index c0fd8c7934e4..87a344a50887 100644
--- a/products/posthog_ai/manifest.tsx
+++ b/products/posthog_ai/manifest.tsx
@@ -17,6 +17,7 @@ export const manifest: ProductManifest = {
iconType: 'task',
// Master/detail with internally-scrolling columns — the scene fills the viewport height.
layout: 'app-full-scene-height',
+ docsHref: 'https://posthog.com/docs/posthog-desktop/tasks',
},
},
routes: {
diff --git a/products/replay_vision/manifest.tsx b/products/replay_vision/manifest.tsx
index a8b305f9aaa9..b38f9a4cd0a1 100644
--- a/products/replay_vision/manifest.tsx
+++ b/products/replay_vision/manifest.tsx
@@ -15,6 +15,7 @@ export const manifest: ProductManifest = {
'Set up AI scanners that automatically analyze new session recordings as they come in. Each result emits a queryable event.',
iconType: 'replay_vision',
layout: 'app-container',
+ docsHref: 'https://posthog.com/docs/replay-vision',
},
ReplayVisionScanner: {
name: 'Replay vision scanner',
diff --git a/products/review_hog/manifest.tsx b/products/review_hog/manifest.tsx
index 38aba3daef6d..9882cad84b5d 100644
--- a/products/review_hog/manifest.tsx
+++ b/products/review_hog/manifest.tsx
@@ -13,6 +13,7 @@ export const manifest: ProductManifest = {
projectBased: true,
description: 'Automated code reviews of your pull requests, and your review agent settings.',
iconType: 'code_review',
+ docsHref: 'https://posthog.com/docs/posthog-desktop/code-review',
},
},
routes: {
diff --git a/products/signals/manifest.tsx b/products/signals/manifest.tsx
index 175f3e48f277..2d3e12527c9a 100644
--- a/products/signals/manifest.tsx
+++ b/products/signals/manifest.tsx
@@ -31,6 +31,7 @@ export const manifest: ProductManifest = {
import: () => import('./frontend/inbox/InboxScene'),
projectBased: true,
description: 'Actionable reports automatically generated from user session analysis and other signals.',
+ docsHref: 'https://posthog.com/docs/self-driving/inbox',
},
},
routes: {
diff --git a/products/skills/manifest.tsx b/products/skills/manifest.tsx
index 8682e0378e6b..6a48361bd100 100644
--- a/products/skills/manifest.tsx
+++ b/products/skills/manifest.tsx
@@ -16,6 +16,7 @@ export const manifest: ProductManifest = {
description: 'Manage versioned agent skills that any MCP-connected agent can discover and use.',
layout: 'app-container',
iconType: 'llm_prompts',
+ docsHref: 'https://posthog.com/docs/skills',
},
Skill: {
import: () => import('./frontend/LLMSkillScene'),
diff --git a/products/toolbar/manifest.tsx b/products/toolbar/manifest.tsx
index 4eb2e205c1c4..64b7f895dc0c 100644
--- a/products/toolbar/manifest.tsx
+++ b/products/toolbar/manifest.tsx
@@ -12,6 +12,7 @@ export const manifest: ProductManifest = {
projectBased: true,
description: 'PostHog toolbar launches PostHog right in your app or website.',
iconType: 'toolbar',
+ docsHref: 'https://posthog.com/docs/toolbar',
},
},
urls: {
diff --git a/products/tracing/manifest.tsx b/products/tracing/manifest.tsx
index 23f3cf5a4be6..4a19164b2370 100644
--- a/products/tracing/manifest.tsx
+++ b/products/tracing/manifest.tsx
@@ -17,6 +17,7 @@ export const manifest: ProductManifest = {
activityScope: 'Tracing',
description: 'Monitor and analyze distributed traces to understand service performance and debug issues.',
iconType: 'tracing',
+ docsHref: 'https://posthog.com/docs/distributed-tracing',
},
TracingOperation: {
name: 'Operation',
diff --git a/products/web_analytics/manifest.tsx b/products/web_analytics/manifest.tsx
index 2d3b6b9bb515..3296c5a0a12e 100644
--- a/products/web_analytics/manifest.tsx
+++ b/products/web_analytics/manifest.tsx
@@ -29,6 +29,7 @@ export const manifest: ProductManifest = {
projectBased: true,
iconType: 'heatmap',
description: 'Heatmaps are a way to visualize user behavior on your website.',
+ docsHref: 'https://posthog.com/docs/toolbar/heatmaps',
},
Heatmap: {
name: 'Heatmap',
diff --git a/products/workflows/manifest.tsx b/products/workflows/manifest.tsx
index fbc1ff9e5ca5..3ef66bf221c4 100644
--- a/products/workflows/manifest.tsx
+++ b/products/workflows/manifest.tsx
@@ -14,6 +14,7 @@ export const manifest: ProductManifest = {
iconType: 'workflows',
projectBased: true,
description: 'Automate user communication and internal processes',
+ docsHref: 'https://posthog.com/docs/workflows',
},
Workflow: {
import: () => import('./frontend/Workflows/WorkflowScene'),