: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 { combineUrl } from 'kea-router'
import { Link } from 'lib/lemon-ui/Link'
import { DropdownMenuItem } from 'lib/ui/DropdownMenu/DropdownMenu'
import { urls } from 'scenes/urls'
import type { DataModelingNodesRetrieveLookup } from 'products/data_modeling/frontend/generated/api.schemas'
export interface LineageTarget {
id: string
lookup: DataModelingNodesRetrieveLookup
}
export function SeeLineageMenuItem({ target }: { target: LineageTarget }): JSX.Element {
return (
<DropdownMenuItem asChild>
<Link
to={combineUrl(urls.nodeDetail(target.id, 'lineage'), { lookup: target.lookup }).url}
onClick={(e) => e.stopPropagation()}
buttonProps={{ menuItem: true }}
data-attr="sql-editor-sidebar-see-lineage"
>
See lineage
</Link>
</DropdownMenuItem>
)
}