From eeee83d445f04f947b6b24e088a80348a401796b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Tejero=20Cantero?= Date: Wed, 15 Jul 2026 21:19:04 +0200 Subject: [PATCH] :sparkles: Fold containers as collapsible combos in graph view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Non-empty containers (Page, Frame, Group, Boolean, SVGRaw) render as nested G6 rect combos holding their own node plus direct children; Document stays a plain node. Double-click folds/expands (collapse-expand behavior); collapsed combos show a member count and re-route child edges. Fold state is read back from getComboData and re-marked on every refetch, so it survives live redraws. Layout gains sortByCombo to keep same-rank nodes grouped by box. Signed-off-by: Álvaro Tejero Cantero --- .../app/templates/graph-console.tmpl | 94 +++++++++++++++---- 1 file changed, 78 insertions(+), 16 deletions(-) diff --git a/backend/resources/app/templates/graph-console.tmpl b/backend/resources/app/templates/graph-console.tmpl index 8819c01310..f9ca96ad19 100644 --- a/backend/resources/app/templates/graph-console.tmpl +++ b/backend/resources/app/templates/graph-console.tmpl @@ -155,7 +155,9 @@ Graph Console 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. + (arrow points to parent). Containers render as foldable boxes: + double-click a box to collapse or expand it. Redraws automatically + after live changes (fold state survives redraws).