Skip to content

Network view: right-click a node to add its upstream/downstream partners#96

Open
Icevyy14 wants to merge 1 commit into
murthylab:mainfrom
Icevyy14:network-node-context-menu
Open

Network view: right-click a node to add its upstream/downstream partners#96
Icevyy14 wants to merge 1 commit into
murthylab:mainfrom
Icevyy14:network-node-context-menu

Conversation

@Icevyy14

Copy link
Copy Markdown

Implements the requested Network-view feature: right-click a neuron node to add its upstream or downstream synaptic partners to the graph.

  • Adds a right-click menu on neuron nodes with Add upstream partners / Add downstream partners. Selecting one appends || {upstream} <root_id> (or {downstream}) to the search query and resubmits, reloading the network with those partners.
  • No backend changes, reuses the existing {upstream} / {downstream} search operators. All changes are in one file: codex/templates/network_graph.html.
  • Scoped to the Network view (no-op where the search box isn't present, e.g. Pathways / Cell Info), only shown on neuron nodes, and the menu is clamped to stay on screen.

Checklist

  • Unit tests pass
  • New logic / functionality tests added
  • Manually tested main workflows (login, search, cell details, stats)
  • Linter applied
  • Integration tests pass (Optional)

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} <root_id>' 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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant