: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
fix(data-modeling): expand the model lineage canvas (#104941)
posthog[bot]7883f0a0d82a
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 2f93194eed44..2cb92908a9a8 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -6863,9 +6863,9 @@ snapshots:products-data-modeling-node-detail-scene--paginated-columns--light:hash: v1.k794b7964.b119e3e790d76d28ef0b53b7a7116717a4c2660347e23054a47922696c799548.YmPMhBqGr7MBKRXPb815ZXpqZp1V17KRg4PPq33hd5Iproducts-data-modeling-node-detail-scene--post-hog-table--dark:- hash: v1.k794b7964.a96ef756e2d01161b01e5db98cde06709b23518e7ee914f7eeb0dd21ca5810a8.s0IoMkvwZvyD1_FEELxAyTJkizH93blLZECbndIJoQM+ hash: v1.k794b7964.9558a1129188f1a84a39c294c3c28f7ce4565bad14986d3ff2e8798a73a53e6d.3708GN6B7dH8DqEwtxysyJHgp9LLdUqe54fpdPQhw1sproducts-data-modeling-node-detail-scene--post-hog-table--light:- hash: v1.k794b7964.96c90c4c447779f126aee9c2b3a80e2f5d749287d53d52af9bbc8813d00ab4e6.YjG3VOPfzSkY44how_J4F5gmmP8Xjhpy_WNyugIgIFA+ hash: v1.k794b7964.5ca2ea3457e8b8f7a37cc7b29b771904aeba50ea260f3cf668e8354da9c1f904.Psfcg6zMrSrCAsb2L_B62Bgj5huWUqHeYAcs6shJSEMproducts-data-modeling-node-detail-scene--suspended-with-run-history--dark:hash: v1.k794b7964.8777021fae0861f86ccd00ee197d14fcacf12d0ae1ba8a8fe7b38f20591cbc41.r_GyHK2h2ozRGIYXoZ3N4CAlJMClpccnfeC5TEgiDOoproducts-data-modeling-node-detail-scene--suspended-with-run-history--light:@@ -6875,9 +6875,9 @@ snapshots:products-data-modeling-node-detail-scene--view--light:hash: v1.k794b7964.36643c2fa6800cf361c623fca665343f8b4a2708afd3cd46ed9abb19cfd1db5f.mqGLSD5Sce2yBSvIXIS7PajSjOdXlLIoEjGEK4iwYEcproducts-data-modeling-node-detail-scene--warehouse-table--dark:- hash: v1.k794b7964.9b4ada16fe4040658293f332d2ef1ac787d442024a46910f31977b5e91b78f18.ZwMWNZ12_XSUiYLnaWKGHTLnba40UqTfSVUtQdGwOwI+ hash: v1.k794b7964.1cd6cfb29f1510ee23c7bd3c54e8fd139f64e2c62796c85f2159f104562f56ab.8NkVqssgmL3BJGQBcZdXzZ_iGrYklaxHo_JUtIkinWQproducts-data-modeling-node-detail-scene--warehouse-table--light:- hash: v1.k794b7964.b9eef66cedae5f0ef73ad8a064065a18727ead6de094c06e3ba0721cde6cfef9.M311KjIy20zre5wD_R9dqQyQ_J8_GsyPkmmcm-JL77w+ hash: v1.k794b7964.254f0dedf4549ed79a68ceffee8b9b282b640b7dde34ecff7bdc162d6491cf57.aMoarvIJfKXR52h0_DhZNgWn6qXQULONaWXR1h43G50products-data-modeling-views-list--actions--dark:hash: v1.k794b7964.eceb80b180d692b6f616365ea7269d24bb6f084128cbfafc661cf6159dc281ec.FagEpfMfYMDwAJaH7ctNLBVSS-sThFgcTnQ8Ghwk8wIproducts-data-modeling-views-list--actions--light:diff --git a/products/data_modeling/frontend/lineage/LineageGraph.tsx b/products/data_modeling/frontend/lineage/LineageGraph.tsxindex a30ae34222ca..498736b37457 100644--- a/products/data_modeling/frontend/lineage/LineageGraph.tsx+++ b/products/data_modeling/frontend/lineage/LineageGraph.tsx@@ -326,7 +326,8 @@ function LineageGraphContent(props: LineageGraphProps): JSX.Element {><Background variant={BackgroundVariant.Dots} gap={20} size={1} />{props.showControls && (- <Controls showInteractive={false} position="bottom-left">+ // The button runs its own fitView, so it needs the caller's options to respect the same zoom cap+ <Controls showInteractive={false} position="bottom-left" fitViewOptions={props.fitViewOptions}>{props.nodesDraggable && props.onResetNodePositions && (<ControlButtonaria-label="Reset layout"diff --git a/products/data_modeling/frontend/nodeDetail/NodeDetailLineage.tsx b/products/data_modeling/frontend/nodeDetail/NodeDetailLineage.tsxindex f6aecad4f1df..7ac28c482366 100644--- a/products/data_modeling/frontend/nodeDetail/NodeDetailLineage.tsx+++ b/products/data_modeling/frontend/nodeDetail/NodeDetailLineage.tsx@@ -19,6 +19,9 @@ function nodeLineageUrl(node: DataModelingNode): string {return lineageNodeUrl(node, 'lineage')}+// Without a cap, a two-node graph scales up to fill the panel and the cards look oversized+const LINEAGE_FIT_VIEW_OPTIONS = { maxZoom: 1 }+export function NodeDetailLineage({ id }: { id: string }): JSX.Element {const nodesDraggable = useFeatureFlag('DATA_MODELING_LINEAGE_NODE_DRAGGING')const {@@ -85,7 +88,7 @@ export function NodeDetailLineage({ id }: { id: string }): JSX.Element {return (<>- <div className="flex-1 min-h-[400px] max-h-[70vh] w-full border rounded bg-bg-light overflow-hidden">+ <div className="h-[calc(100vh-20rem)] min-h-[400px] w-full border rounded bg-bg-light overflow-hidden"><LineageGraphnodes={nodes}edges={lineageGraph?.edges ?? []}@@ -95,6 +98,7 @@ export function NodeDetailLineage({ id }: { id: string }): JSX.Element {loadingCenter={lineageGraphLoading && node ? { name: node.name, type: node.type } : undefined}variant="full"interactive+ fitViewOptions={LINEAGE_FIT_VIEW_OPTIONS}nodesDraggable={nodesDraggable}nodePositions={nodesDraggable ? lineageNodePositions : undefined}nodeOpenUrl={nodesDraggable ? nodeLineageUrl : undefined}