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.6 KB
Raw Blame
import { ActivityScope, ProductManifest } from '../../frontend/src/types'

export const manifest: ProductManifest = {
    name: 'CrossProjectDashboards',
    activityDescribers: {
        [ActivityScope.CROSS_PROJECT_DASHBOARD]: () =>
            import('./frontend/crossProjectDashboardActivityDescriber').then(
                (module) => module.crossProjectDashboardActivityDescriber
            ),
    },
    scenes: {
        CrossProjectDashboards: {
            name: 'Cross-project dashboards',
            import: () => import('./frontend/CrossProjectDashboardsScene'),
            // Organization-scoped, not project-scoped: a dashboard here holds insights from
            // several projects, so it cannot live under /project/:id.
            organizationBased: true,
            activityScope: 'CrossProjectDashboard',
            description: 'Put insights from several projects on one page.',
        },
        CrossProjectDashboard: {
            name: 'Cross-project dashboard',
            import: () => import('./frontend/CrossProjectDashboardScene'),
            organizationBased: true,
            activityScope: 'CrossProjectDashboard',
        },
    },
    routes: {
        '/cross-project-dashboards': ['CrossProjectDashboards', 'crossProjectDashboards'],
        '/cross-project-dashboards/:id': ['CrossProjectDashboard', 'crossProjectDashboard'],
    },
    redirects: {},
    urls: {
        crossProjectDashboards: (): string => '/cross-project-dashboards',
        crossProjectDashboard: (id: string): string => `/cross-project-dashboards/${id}`,
    },
    fileSystemTypes: {},
    treeItemsNew: [],
    treeItemsProducts: [],
}