From 6a345b7219c69678e78857934392ddbc224c4566 Mon Sep 17 00:00:00 2001 From: Adrian Llopart <67589468+AdrianLlopart@users.noreply.github.com> Date: Wed, 8 Jul 2026 09:50:25 +0200 Subject: [PATCH 1/2] Apply suggested fix to src/components/ArchitectureDiagram.jsx from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/components/ArchitectureDiagram.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/ArchitectureDiagram.jsx b/src/components/ArchitectureDiagram.jsx index a9fec67..70befd3 100644 --- a/src/components/ArchitectureDiagram.jsx +++ b/src/components/ArchitectureDiagram.jsx @@ -46,8 +46,13 @@ function edgePath(e) { const [ax, ay] = a.bottom; // reasoner sits directly above obs with skills between — bow left around the skills box if (e.from === "reasoner") { - const bow = byId.skills.x - 33; - return `M ${byId.reasoner.x + 55} ${ay} C ${bow} ${ay + 86} ${bow} ${top - 36} ${o.x + 25} ${top}`; + const REASONER_START_X_INSET = 55; + const SKILLS_BOW_LEFT_OFFSET = 33; + const BOW_CTRL1_Y_OFFSET = 86; + const BOW_CTRL2_Y_OFFSET = 36; + const OBS_ENTRY_X_INSET = 25; + const bow = byId.skills.x - SKILLS_BOW_LEFT_OFFSET; + return `M ${byId.reasoner.x + REASONER_START_X_INSET} ${ay} C ${bow} ${ay + BOW_CTRL1_Y_OFFSET} ${bow} ${top - BOW_CTRL2_Y_OFFSET} ${o.x + OBS_ENTRY_X_INSET} ${top}`; } // safety taps in from the right, curving down past obs's right edge if (e.from === "safety") return `M ${ax} ${ay} C ${ax} ${ay + 118} ${o.x + o.w + 12} ${top - 16} ${o.x + o.w - 25} ${top}`; From 4df80eac1b678328609e7f34bfb3b6cdbe203db5 Mon Sep 17 00:00:00 2001 From: Adrian Llopart <67589468+AdrianLlopart@users.noreply.github.com> Date: Wed, 8 Jul 2026 09:50:25 +0200 Subject: [PATCH 2/2] Apply suggested fix to src/components/ArchitectureDiagram.jsx from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/components/ArchitectureDiagram.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ArchitectureDiagram.jsx b/src/components/ArchitectureDiagram.jsx index 70befd3..e2f47c0 100644 --- a/src/components/ArchitectureDiagram.jsx +++ b/src/components/ArchitectureDiagram.jsx @@ -6,6 +6,7 @@ import "./ArchitectureDiagram.css"; const VW = 1120; const VH = 648; +const CROSS_ROUTE_OFFSET = 210; const byId = Object.fromEntries(NODES.map((n) => [n.id, n])); const anchors = (n) => ({ @@ -37,7 +38,7 @@ function edgePath(e) { if (e.route === "cross") { const [ax, ay] = a.right; const [bx, by] = b.left; - return `M ${ax} ${ay} C ${ax + 210} ${ay} ${bx - 210} ${by} ${bx} ${by}`; + return `M ${ax} ${ay} C ${ax + CROSS_ROUTE_OFFSET} ${ay} ${bx - CROSS_ROUTE_OFFSET} ${by} ${bx} ${by}`; } // node → observability card if (e.route === "tap") {