: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
import { combineUrl } from 'kea-router'
import { ActivityScope, ProductManifest } from '../../frontend/src/types'
import type { InboxTabKey } from './frontend/inbox/types'
export const manifest: ProductManifest = {
name: 'Signals',
activityDescribers: {
[ActivityScope.SIGNAL_SCOUT_CONFIG]: () =>
import('./frontend/activityDescriber').then((module) => module.signalScoutConfigActivityDescriber),
},
urls: {
// Tab-first routing: /inbox, /inbox/<tab>, /inbox/<tab>/<reportId>.
inbox: (tab?: InboxTabKey | ':tab'): string => `/inbox${tab ? `/${tab}` : ''}`,
inboxReport: (tab: InboxTabKey | ':tab', reportId: string | ':reportId'): string => `/inbox/${tab}/${reportId}`,
// Triage mode: the Needs-a-decision queue one report at a time, full-width over the list.
inboxTriage: (): string => '/inbox/reports/triage',
// Scout detail surface, full-width over the inbox list (the fleet section lives in the Configuration tab).
// An optional finding id deep-links straight to one emitted finding (best-effort: only resolves while
// that finding is still in the scout's recent runs window).
inboxScout: (skillName: string | ':skillName', findingId?: string | ':findingId'): string => {
const segment = findingId
? `/${findingId === ':findingId' ? findingId : encodeURIComponent(findingId)}`
: ''
return `/inbox/scouts/${skillName}${segment}`
},
// Scout fleet memory (scratchpad) browse/search surface, reached from the fleet-memory callout.
inboxScratchpad: (): string => '/inbox/scouts/scratchpad',
// Cross-fleet findings browse/search surface, reached from the scout-findings callout.
inboxFindings: (): string => '/inbox/scouts/findings',
// Project-wide list of scout and signal-pipeline runs, reached from the roster footer.
inboxRuns: (): string => '/inbox/scouts/runs',
inboxScoutTrials: (): string => '/inbox/scout-trials',
},
scenes: {
ScoutTrials: {
name: 'Scout trials',
import: () => import('./frontend/inbox/ScoutTrialsScene'),
projectBased: true,
},
Inbox: {
name: 'Self-driving inbox',
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: {
'/inbox': ['Inbox', 'inbox'],
'/inbox/scout-trials': ['ScoutTrials', 'scoutTrials'],
'/inbox/:tab': ['Inbox', 'inbox'],
// Static panel routes, registered before `:skillName` / `:reportId` so they aren't read as ids.
'/inbox/scouts/scratchpad': ['Inbox', 'inbox'],
'/inbox/scouts/findings': ['Inbox', 'inbox'],
'/inbox/scouts/runs': ['Inbox', 'inbox'],
'/inbox/reports/triage': ['Inbox', 'inbox'],
// Registered before the generic report route: both are two-segment `/inbox/x/y` shapes.
'/inbox/scouts/:skillName': ['Inbox', 'inbox'],
// Deep-link to a single scout finding: the bare scout route plus a trailing `/<finding>` segment.
'/inbox/scouts/:skillName/:findingId': ['Inbox', 'inbox'],
'/inbox/:tab/:reportId': ['Inbox', 'inbox'],
},
redirects: {
'/scout-trials': (_params, searchParams, hashParams) =>
combineUrl('/inbox/scout-trials', searchParams, hashParams).url,
},
fileSystemTypes: {},
treeItemsNew: [],
treeItemsProducts: [],
treeItemsMetadata: [],
}