diff --git a/components/home.tsx b/components/home.tsx index a5d1846..189451f 100644 --- a/components/home.tsx +++ b/components/home.tsx @@ -9,9 +9,10 @@ import { StatsBar } from "@/components/stats-bar"; import type { ChatSettings, TurnUsage } from "@/src/core"; /** - * Home — the knowledge graph is the main view (placeholder until the graph - * pipeline lands), with the new-session blob docked below it. Sessions live - * in the toggleable sidebar. + * Home — the knowledge graph is the main view, full-bleed edge to edge + * (owner, graph-view round 1): the canvas owns the whole column, running + * under the header and the new-session dock, both of which float over it + * with no gradient scrims. Sessions live in the toggleable sidebar. */ export function Home() { const router = useRouter(); @@ -48,21 +49,28 @@ export function Home() { }; return ( -
-
- -
- - {/* Graph — the main view (W4: sigma.js render of the derived graph). */} -
+
+ {/* Graph — the main view, full-bleed (owner, graph-view round 1): no + padding on any side; the canvas runs from the sidebar to the right + edge and from the bottom to the top, under everything else. */} +
- {/* New session — same floating blob as the chat composer. */} -
- {/* Matches chat.tsx's DOCK geometry (max-w-[46rem] px-4) so nothing - shifts when a session starts (owner). */} -
+ {/* Header floats over the graph — pointer-events-none except the + toggle, so the canvas stays draggable/hoverable around it. */} +
+
+ +
+
+ + {/* New session — same floating blob as the chat composer, docked + OVER the graph (no gradient: the graph runs clean under it to the + bottom edge). Matches chat.tsx's DOCK geometry (max-w-[46rem] + px-4) so nothing shifts when a session starts (owner). */} +
+
{ diff --git a/package-lock.json b/package-lock.json index d6c41f0..a2771ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,9 @@ "cmdk": "^1.1.1", "d3-force": "^3.0.0", "d3-selection": "^3.0.0", + "d3-shape": "^3.2.0", "d3-zoom": "^3.0.0", + "dagre-d3-es": "7.0.14", "embla-carousel-react": "^8.6.0", "katex": "^0.16.47", "linkedom": "^0.18.13",