: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 { createPostHogWidgetNode } from 'scenes/notebooks/Nodes/NodeWrapper'
import { getNotebookWidgetDefaultView } from 'scenes/notebooks/notebookWidgetCatalog'
import { urls } from 'scenes/urls'
import {
DASHBOARD_NOTEBOOK_WIDGET_VIEWS,
DashboardDetail,
DashboardNotebookWidgetAttributes,
} from 'products/dashboards/frontend/dashboardNotebookWidgetViews'
import { NotebookNodeType } from '../types'
export const NotebookNodeDashboard = createPostHogWidgetNode<DashboardNotebookWidgetAttributes>({
nodeType: NotebookNodeType.Dashboard,
titlePlaceholder: 'Dashboard',
editableTitle: false,
Component: DashboardDetail,
heightEstimate: 640,
minHeight: 240,
href: (attributes) => urls.dashboard(attributes.id),
resizeable: true,
expandable: false,
attributes: {
id: {},
view: {},
},
defaultView: getNotebookWidgetDefaultView('Dashboard'),
views: DASHBOARD_NOTEBOOK_WIDGET_VIEWS,
serializedText: () => 'Dashboard',
})