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.

1.4 KB
Raw Blame
import { ActivityScope, ProductManifest } from '../../frontend/src/types'

export const manifest: ProductManifest = {
    name: 'Persons',
    activityDescribers: {
        [ActivityScope.PERSON]: () =>
            import('./frontend/activityDescriptions').then((module) => module.personActivityDescriber),
    },
    scenes: {
        Person: {
            projectBased: true,
            name: 'People',
            import: () => import('./frontend/pages/PersonScene'),
            activityScope: ActivityScope.PERSON,
            iconType: 'user',
        },
        Persons: {
            projectBased: true,
            name: 'Persons',
            description: 'A catalog of all the people behind your events',
            import: () => import('./frontend/pages/PersonsScene'),
            activityScope: ActivityScope.PERSON,
            iconType: 'persons',
        },
    },
    routes: {
        '/person/*': ['Person', 'personByDistinctId'],
        '/persons/*': ['Person', 'personByUUID'],
        '/persons': ['Persons', 'persons'],
    },
    urls: {
        personByDistinctId: (id: string, encode: boolean = true): string =>
            encode ? `/person/${encodeURIComponent(id)}` : `/person/${id}`,
        personByUUID: (uuid: string, encode: boolean = true): string =>
            encode ? `/persons/${encodeURIComponent(uuid)}` : `/persons/${uuid}`,
        persons: (): string => '/persons',
    },
    fileSystemTypes: {},
    treeItemsProducts: [],
}