From 3eca96a01db1c0d5c7b32ea30cadb576be12fc40 Mon Sep 17 00:00:00 2001 From: Alec Perkins Date: Wed, 10 Sep 2025 17:21:03 -0400 Subject: [PATCH 1/2] feat: Fill screen with map A naive approach. Ideally it would use flexbox but that would require more substantial changes. --- meshview/templates/map.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshview/templates/map.html b/meshview/templates/map.html index db3e683..c0320a5 100644 --- a/meshview/templates/map.html +++ b/meshview/templates/map.html @@ -38,7 +38,7 @@ {% endblock %} {% block body %} -
+
Show Routers Only
From a93f8d7212d411af393a8215827aaa7b41766d8c Mon Sep 17 00:00:00 2001 From: Alec Perkins Date: Wed, 10 Sep 2025 17:49:28 -0400 Subject: [PATCH 2/2] feat: Add colors and weighting to graph, condense labels The colors indicate the role, and the edges are weighted by how many traceroutes contributed to that edge. This helps to communicate the quality of the connection. The colors and node size based on role make it easier to see the composition of the graph. This also moves the look-and-feel pieces into the template only, and attempts to centralize the color definitions. --- meshview/templates/nodegraph.html | 98 +++++++++++++++++++++++++++---- meshview/web.py | 26 ++++---- 2 files changed, 96 insertions(+), 28 deletions(-) diff --git a/meshview/templates/nodegraph.html b/meshview/templates/nodegraph.html index bb8e93c..711aaeb 100644 --- a/meshview/templates/nodegraph.html +++ b/meshview/templates/nodegraph.html @@ -62,6 +62,14 @@ border: 1px solid #ccc; box-shadow: 0 2px 4px rgba(0,0,0,0.1); font-size: 14px; + display: flex; + color: #333; +} +.legend-category { + margin-right: 10px; + code { + color: inherit; + } } .legend-box { display: inline-block; @@ -69,6 +77,9 @@ height: 12px; margin-right: 5px; border-radius: 3px; + &.circle { + border-radius: 6px; + } } {% endblock %} @@ -90,29 +101,83 @@
-
Traceroute
-
Neighbor
+
+
Traceroute
+
Neighbor
+
+
+
ROUTER
+
ROUTER_LATE
+
+
+
CLIENT
+
CLIENT_MUTE
+
+
+
Other
+
Unknown
+