From 7bb027e172993f4ae11d372f2f4099cc8adbebd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Tejero=20Cantero?= Date: Wed, 15 Jul 2026 17:25:17 +0200 Subject: [PATCH] :sparkles: Add G6 graph view to debug graph console MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit POC per work/g6/plan.md. New /dbg/actions/graph-data exports the in-memory Ladybug session as plain JSON (per-table node queries + multi-table IsChildOf match, row cap 100k with truncation flag). Console page renders it with AntV G6 v5 (jsDelivr CDN, antv-dagre BT layout, color+glyph per node table, validated palette) and refetches debounced on live :file-change messages. Signed-off-by: Álvaro Tejero Cantero --- .../app/templates/graph-console.tmpl | 133 ++++++++++++++++++ backend/src/app/graph/debug.clj | 49 +++++++ backend/src/app/http/debug.clj | 14 ++ 3 files changed, 196 insertions(+) diff --git a/backend/resources/app/templates/graph-console.tmpl b/backend/resources/app/templates/graph-console.tmpl index 52c4d1b5c8..60fbbd5f1f 100644 --- a/backend/resources/app/templates/graph-console.tmpl +++ b/backend/resources/app/templates/graph-console.tmpl @@ -88,6 +88,19 @@ Graph Console +
+ Graph view + + Renders the in-memory Ladybug graph with AntV G6 (CDN). Node color + and glyph encode the node table; edges are IsChildOf + (arrow points to parent). Redraws automatically after live changes. + +
+
+
+
+
Cypher query
@@ -137,6 +150,7 @@ Graph Console {% if session %} +