From ca58ac6a4d3b4f4fa30c5757a8bc8e97ca79e01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Tejero=20Cantero?= Date: Fri, 17 Jul 2026 00:25:03 +0200 Subject: [PATCH] :lipstick: Console control-bar and session-panel rework MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Left column narrowed 440->330 px (uuid input flexes). Control bar reordered: layout first, then animate and fade (narrow inputs), then the fold set; "fold containers" renamed "foldable containers" (on = foldable, not folded). Load becomes Reload once a session exists (same operation as the removed Full-reload button — load-session! on the current id; tooltip explains the fallback role) with Unload beside it. Session panel: revisions on one line ("ingested at N · graph now M", hover explains the difference), duplicate uuid after the file name dropped. Tried and rejected: fishbone (no positions on graph data) and compact-box (G6 tree layouts walk parent->child, IsChildOf points child->parent). Signed-off-by: Álvaro Tejero Cantero --- .../app/templates/graph-console.tmpl | 41 +++++++++++-------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/backend/resources/app/templates/graph-console.tmpl b/backend/resources/app/templates/graph-console.tmpl index 1a56c12181..f8029ea019 100644 --- a/backend/resources/app/templates/graph-console.tmpl +++ b/backend/resources/app/templates/graph-console.tmpl @@ -18,7 +18,7 @@ Graph Console

← Back to debug

-
+
Load graph from Penpot @@ -29,13 +29,16 @@ Graph Console
Loading…
- - {% if session %} + + {% else %} + {% endif %}
@@ -50,9 +53,11 @@ Graph Console

File: {{session.name}} ({{session.file-id}})
- Loaded at revision: {{session.revn}}
- Graph revision: {% if session.graph-revn %}{{session.graph-revn}}{% else %}{{session.revn}}{% endif %}
+ target="_blank">{{session.name}}
+ + Revisions: ingested at {{session.revn}} · graph now + {% if session.graph-revn %}{{session.graph-revn}}{% else %}{{session.revn}}{% endif %} +
Graph size:
Schema: {{session.schema-version}}

@@ -60,9 +65,6 @@ Graph Console Feed: connecting…

-
- -
@@ -138,9 +140,8 @@ Graph Console style="flex: 1 1 auto; min-width: 0;">
Graph view - @@ -592,6 +594,11 @@ Graph Console "d3-force": { type: "d3-force", collide: { radius: 26 } }, "combo-combined": { type: "combo-combined" } }; + // Tried and rejected 2026-07-17: fishbone (renders nothing on graph + // data — it is a category layout) and compact-box (degenerates into an + // overlapped chain: G6 tree layouts traverse parent→child while our + // IsChildOf edges point child→parent; revisit with a reversed-edge feed + // if a compact tree view is wanted). const DEFAULT_LAYOUT = "tree"; // Always-on labels are the residual overlap driver on ring/stress // layouts (their collision handling ignores label extents), so these