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.5 KB
Raw Blame
import * as chartPng from '@posthog/brand/hoggies/png/chart'
import { IconDashboard } from '@posthog/icons'

import { pngHoggie } from 'lib/brand/hoggies'
import type { SceneProductEmptyState } from 'lib/components/ProductEmptyState/types'

import { ProductKey } from '~/queries/schema/schema-general'

import { DashboardsPreview } from './DashboardsPreview'
import { DashboardsPrimaryAction } from './DashboardsPrimaryAction'
import { dashboardsSetupLogic } from './dashboardsSetupLogic'

const HedgehogChart = pngHoggie(chartPng)

export const dashboardsEmptyState: SceneProductEmptyState = {
    statusLogic: dashboardsSetupLogic,
    config: {
        productKey: ProductKey.DASHBOARDS,
        productName: 'Dashboards',
        icon: <IconDashboard />,
        accentColor: 'var(--color-product-dashboards-light)',
        accentColorDark: 'var(--color-product-dashboards-dark)',
        hedgehog: HedgehogChart,
        text: {
            'needs-setup': {
                headline: 'Put the numbers you check every day on one page',
                lead: 'A dashboard collects insights, replays, and anything else you track into a single view your whole team can open. Start from a template built for a common job, like product health or web traffic, or start blank and add tiles as you go.',
            },
        },
        PrimaryAction: DashboardsPrimaryAction,
        skippable: false,
        docsUrl: 'https://posthog.com/docs/product-analytics/dashboards',
        previewLabel: 'Your dashboard, once created',
        Preview: DashboardsPreview,
    },
}