From c7902f50400f0040f6c45fdc400bf2904d8bbf10 Mon Sep 17 00:00:00 2001 From: icevyy14 Date: Tue, 14 Jul 2026 16:50:11 -0400 Subject: [PATCH] Network view: right-click a node to add its upstream/downstream partners Adds a right-click context menu on neuron nodes in the connectivity network graph with 'Add upstream partners' / 'Add downstream partners'. Selecting an option appends '|| {upstream|downstream} ' to the search query and resubmits the form, reloading the network with those partners included. Self-contained: all changes are in templates/network_graph.html. The menu is scoped to the Network view (shown only when the parent search box exists) and to neuron nodes (numeric ids), and is clamped to stay on screen. Co-Authored-By: Claude Opus 4.8 --- codex/templates/network_graph.html | 126 +++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) diff --git a/codex/templates/network_graph.html b/codex/templates/network_graph.html index ea74ce32..2119c589 100644 --- a/codex/templates/network_graph.html +++ b/codex/templates/network_graph.html @@ -96,6 +96,37 @@ margin: 0px; } + /* Right-click "add partners" context menu (Network view). */ + .ctx-menu { + position: absolute; + z-index: 10; + display: none; + min-width: 210px; + background-color: #ffffff; + border: 1px solid #b0b0b0; + border-radius: 4px; + box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25); + font-family: sans-serif; + font-size: 13px; + overflow: hidden; + } + .ctx-menu-header { + padding: 6px 10px; + background-color: #f0f0f0; + color: #555555; + font-size: 11px; + border-bottom: 1px solid #e0e0e0; + white-space: nowrap; + } + .ctx-menu-item { + padding: 8px 12px; + cursor: pointer; + white-space: nowrap; + } + .ctx-menu-item:hover { + background-color: #e8f0fe; + } + @@ -114,6 +145,17 @@
+ +
+
Neuron
+
+   Add upstream partners +
+
+   Add downstream partners +
+
+ \ No newline at end of file