From aaafe76d8f89d039f4da8e7f064e2d0faedd2fe3 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Thu, 9 Jul 2026 11:06:47 -0500 Subject: [PATCH] feat(graph): color-code endpoint method and transport in the viewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to the interactive viewer. Route nodes were arrow 'tag' shapes that read as disruptive and edges were thick. Calm them down: routes are now rounded rectangles with thinner edges. Encode two axes visually on each endpoint — fill colour = HTTP method (GET/POST/PUT/PATCH/DELETE), border style = transport (solid HTTP, dashed SSE, double WS) — with a legend that explains node types, edge kinds, transports and methods. Signed-off-by: Diego Resendez --- src/graph-viz.ts | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/src/graph-viz.ts b/src/graph-viz.ts index a10809b..ee252d4 100644 --- a/src/graph-viz.ts +++ b/src/graph-viz.ts @@ -104,12 +104,15 @@ export function graphHtml(view: GraphView): string { #legend .route { background:var(--tea); border-color:var(--tea); } #legend .ln { width:16px; height:0; border-top:3px solid; border-radius:0; } #legend .need { border-color:var(--need); } #legend .feed { border-color:var(--feed); } + #legend .tp { background:transparent; border-color:var(--dim); } + #legend .tp-http { border-style:solid; } #legend .tp-sse { border-style:dashed; } + #legend .tp-ws { border-style:double; border-width:3px; } #info { position:absolute; left:14px; bottom:14px; z-index:2; max-width:340px; padding:10px 12px; background:var(--panel); border:1px solid var(--line); border-radius:8px; white-space:pre-wrap; display:none; } #info .t { color:var(--tea); font-weight:700; } #info .k { color:var(--dim); }
🍵 green-tea · click a route for its slice · click a provider/step for its blast radius · drag to rearrange · click canvas to reset -
providerstependpointneedsfeeds endpoint
+
providerstepneedsfeeds endpointHTTPSSEWS