From 34eb14f8485cb55a9d261eb2741575e0e3700a7f Mon Sep 17 00:00:00 2001 From: zefiroff Date: Tue, 9 Jun 2026 19:06:54 +0400 Subject: [PATCH] terminal: put Orchestra (left) and Agent flow graph (right) side by side MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xl 2-col row (0.85fr / 1.15fr), stacks below xl. Orchestra takes a gridClass prop → dense 3×2 layout when side-by-side (avoids 6-col squish in the half column on wide viewports). Agent flow SVG min-width lowered to fit the column. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/components/viz/AgentWorkflow.tsx | 2 +- src/components/viz/Orchestra.tsx | 5 ++++- src/pages/Terminal.tsx | 10 +++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/viz/AgentWorkflow.tsx b/src/components/viz/AgentWorkflow.tsx index cf34482..14b1cf5 100644 --- a/src/components/viz/AgentWorkflow.tsx +++ b/src/components/viz/AgentWorkflow.tsx @@ -252,7 +252,7 @@ export function AgentWorkflow({ preserveAspectRatio="xMidYMid meet" role="group" aria-label="Agent workflow graph" - style={{ display: 'block', width: '100%', minWidth: 760, height: 'auto' }} + style={{ display: 'block', width: '100%', minWidth: 600, height: 'auto' }} > {/* edges */} diff --git a/src/components/viz/Orchestra.tsx b/src/components/viz/Orchestra.tsx index bcb6c67..7949bf6 100644 --- a/src/components/viz/Orchestra.tsx +++ b/src/components/viz/Orchestra.tsx @@ -144,6 +144,7 @@ export function Orchestra({ onHover, onInspect, loading, + gridClass = 'grid-cols-2 sm:grid-cols-3 lg:grid-cols-6', }: { votes: Vote[] decision: Direction @@ -152,6 +153,8 @@ export function Orchestra({ onHover?: (a: string | null) => void onInspect?: (s: string | null) => void loading?: boolean + /** Tailwind grid-cols classes for the layer columns — override when placed side-by-side. */ + gridClass?: string }) { const decCol = dirColor(decision) @@ -164,7 +167,7 @@ export function Orchestra({ -
+
{STATIC.map((layer) => (
diff --git a/src/pages/Terminal.tsx b/src/pages/Terminal.tsx index 4cfb1e4..e4dd282 100644 --- a/src/pages/Terminal.tsx +++ b/src/pages/Terminal.tsx @@ -494,11 +494,11 @@ export function Terminal() { loading={loading} /> - {/* ── orchestra · the full agent pipeline ── */} - - - {/* ── agent flow · the pipeline as an interactive workflow graph ── */} - + {/* ── pipeline row · Orchestra (left) ‖ Agent flow graph (right) ── */} +
+ + +
{/* ── workspace ── */}