: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 { FEATURE_FLAGS } from 'lib/constants'
import { urls } from 'scenes/urls'
import { ProductManifest } from '~/types'
import type { ModelsSceneTab } from './frontend/modelsSceneLogic'
import type { NodeDetailSceneTab } from './frontend/nodeDetail/nodeDetailSceneLogic'
export const manifest: ProductManifest = {
name: 'Data modeling',
scenes: {
Models: {
name: 'Models',
import: () => import('./frontend/ModelsScene'),
projectBased: true,
description: 'Create and manage views and materialized views for transforming and organizing your data.',
iconType: 'data_modeling',
},
NodeDetail: {
name: 'Model detail',
import: () => import('./frontend/nodeDetail/NodeDetailScene'),
projectBased: true,
},
},
routes: {
'/models': ['Models', 'models'],
'/models/:id': ['NodeDetail', 'nodeDetail'],
'/models/:id/:tab': ['NodeDetail', 'nodeDetail'],
},
urls: {
models: (tab?: ModelsSceneTab): string => (tab && tab !== 'overview' ? `/models?tab=${tab}` : '/models'),
nodeDetail: (id: string, tab?: NodeDetailSceneTab): string => `/models/${id}${tab ? `/${tab}` : ''}`,
},
treeItemsMetadata: [
{
path: 'Models',
category: 'Data',
type: 'sql',
iconType: 'data_modeling',
iconColor: ['var(--color-product-models-light)', 'var(--color-product-models-dark)'],
href: urls.models(),
searchKeywords: ['materialized views', 'materialization', 'data modeling', 'sql views', 'saved queries'],
searchTabs: [
{
name: 'Usage',
href: urls.models('usage'),
flag: FEATURE_FLAGS.DATA_MODELING_USAGE,
searchKeywords: ['bytes read', 'cpu'],
},
{ name: 'Lineage', href: urls.models('lineage'), searchKeywords: ['dag', 'dependencies'] },
{
name: 'Data quality',
href: urls.models('data-quality'),
searchKeywords: ['data tests', 'checks', 'freshness'],
},
],
sceneKey: 'Models',
sceneKeys: ['Models'],
},
],
}