From 66f425fddd2ba6dfcae30816bd7a69ecde1966b7 Mon Sep 17 00:00:00 2001 From: Santiago Fontanarrosa Date: Sat, 24 Oct 2026 11:13:20 -0300 Subject: [PATCH] fix(web): scroll Overview platform records independently of the graph The Overview tab put RunSummaryPanel and PlatformRecordsPanel in one shrink-0 block with no height cap. As checkpoints accumulated, that block grew without bound and collapsed the flex-1 workflow graph. Mirror the Stages sidebar scroll fix: keep the summary pinned, and let platform records scroll inside a max-height so the graph stays visible. Co-authored-by: Cursor --- .../app/routes/run-overview.test.tsx | 21 +++++++++++++++++++ apps/fabro-web/app/routes/run-overview.tsx | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/apps/fabro-web/app/routes/run-overview.test.tsx b/apps/fabro-web/app/routes/run-overview.test.tsx index fdcc427f2..2000cce87 100644 --- a/apps/fabro-web/app/routes/run-overview.test.tsx +++ b/apps/fabro-web/app/routes/run-overview.test.tsx @@ -142,4 +142,25 @@ describe("RunOverview", () => { const other = renderAt("/runs/run-b"); expect(graphTransform(other)).toBe(initial); }); + + test("bounds platform records height so the graph keeps a flex share", () => { + currentGraphData = ""; + + const renderer = render(); + const scroll = renderer.root.findAll( + (n) => + typeof n.props?.className === "string" && + n.props.className.includes("max-h-[min(40vh,16rem)]") && + n.props.className.includes("overflow-y-auto"), + ); + expect(scroll).toHaveLength(1); + + const graph = renderer.root.findAll( + (n) => + typeof n.props?.className === "string" && + n.props.className.includes("graph-svg") && + n.props.className.includes("flex-1"), + ); + expect(graph).toHaveLength(1); + }); }); diff --git a/apps/fabro-web/app/routes/run-overview.tsx b/apps/fabro-web/app/routes/run-overview.tsx index 087af2a8a..fc1bdee91 100644 --- a/apps/fabro-web/app/routes/run-overview.tsx +++ b/apps/fabro-web/app/routes/run-overview.tsx @@ -154,8 +154,11 @@ export default function RunOverview() {
-
+
+
+ {/* Cap + scroll so a long checkpoint list cannot starve the graph. */} +
{graphSvg === undefined && graphQuery.isLoading ? (