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.3 KB
Raw Blame
/**
 * Product manifest for annotations.
 *
 * Defines scenes, routes, URLs, and navigation for this product.
 */
import { ActivityScope, AnnotationType, ProductManifest } from '../../frontend/src/types'

export const manifest: ProductManifest = {
    name: 'Annotations',
    activityDescribers: {
        [ActivityScope.ANNOTATION]: () =>
            import('./frontend/activityDescriptions').then((module) => module.annotationActivityDescriber),
    },
    scenes: {
        Annotations: {
            name: 'Annotations',
            import: () => import('./frontend/pages/Annotations'),
            projectBased: true,
            description:
                'Annotations allow you to mark when certain changes happened so you can easily see how they impacted your metrics.',
            iconType: 'annotation',
        },
    },
    routes: {
        '/data-management/annotations': ['Annotations', 'annotations'],
        '/data-management/annotations/:id': ['Annotations', 'annotation'],
    },
    redirects: {},
    urls: {
        annotations: (): string => '/data-management/annotations',
        annotation: (id: AnnotationType['id'] | ':id'): string => `/data-management/annotations/${id}`,
    },
    fileSystemTypes: {},
    treeItemsNew: [],
    treeItemsProducts: [],
}