: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 { useValues } from 'kea'
import { NotFound } from 'lib/components/NotFound'
import { FEATURE_FLAGS } from 'lib/constants'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { SceneExport } from 'scenes/sceneTypes'
import { SceneContent } from '~/layout/scenes/components/SceneContent'
import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
import { CrossProjectDashboardsList } from './CrossProjectDashboardsList'
import { crossProjectDashboardsListLogic } from './crossProjectDashboardsListLogic'
import { NewCrossProjectDashboardButton } from './NewCrossProjectDashboardButton'
export const scene: SceneExport = {
component: CrossProjectDashboardsScene,
logic: crossProjectDashboardsListLogic,
}
export function CrossProjectDashboardsScene(): JSX.Element {
const { featureFlags } = useValues(featureFlagLogic)
if (!featureFlags[FEATURE_FLAGS.CROSS_PROJECT_DASHBOARDS]) {
return <NotFound object="page" />
}
return (
<SceneContent>
<SceneTitleSection
name="Cross-project dashboards"
description="Put insights from several projects on one page. Each tile shows one project."
resourceType={{ type: 'dashboard' }}
actions={<NewCrossProjectDashboardButton />}
/>
<CrossProjectDashboardsList />
</SceneContent>
)
}