From 9f9f96e86fdbbcd3b856a8ef3c48cae048316f9b Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Mon, 30 Mar 2026 21:38:18 +1100 Subject: [PATCH] Update graph ui --- links/templates/links/knowledge_graph.html | 644 ++++++++++++++------- 1 file changed, 447 insertions(+), 197 deletions(-) diff --git a/links/templates/links/knowledge_graph.html b/links/templates/links/knowledge_graph.html index a7a08b1..da0e6c9 100644 --- a/links/templates/links/knowledge_graph.html +++ b/links/templates/links/knowledge_graph.html @@ -4,17 +4,86 @@ {% block extra_css %} {% endblock %} {% block content %} -
+
- +
- - - - - {% if snapshot %} - {% with built_at=snapshot.completed_at|default:snapshot.created_at %} + {% if snapshot %}{% with built_at=snapshot.completed_at|default:snapshot.created_at %} - {% trans "Last built" %}: {{ built_at|timesince }} {% trans "ago" %} + {{ built_at|timesince }} {% trans "ago" %} - {% endwith %} - {% endif %} + {% endwith %}{% endif %} +
- + +
+ + +
+ + + + +

+

{% trans "Computing force-directed layout…" %}

+
+ + +
+ + + + +
+ + +
- - +
- -
- - +

{% trans "Node Details" %}

@@ -125,40 +248,29 @@
- -
+

{% trans "No knowledge graph yet." %}

- +
+ class="absolute inset-0 flex items-center justify-center p-6 z-10">
- -
@@ -206,8 +316,6 @@ {% trans "Building Knowledge Graph" %}
- -
@@ -218,16 +326,12 @@ :style="'width:' + (progress.pct || 0) + '%'">
- -
⏱ {% trans "Elapsed" %}: {% trans "Est. remaining" %}:
- -
-
- +

{% trans "Build Knowledge Graph" %}

-
-
@@ -294,7 +394,7 @@ {% endblock %} {% block extra_js %} - + @@ -302,10 +402,13 @@