From 2aa257bf58323c10711331947e3b84cb596fe315 Mon Sep 17 00:00:00 2001 From: Daniel Kronovet Date: Thu, 19 Mar 2026 08:01:29 -0400 Subject: [PATCH] Make in-edges green on node hover in graph When hovering over a graph node, in-edges (edges pointing TO that node) now render in green with a green arrowhead, making incoming preferences visually distinct from outgoing ones. Co-Authored-By: Claude Haiku 4.5 --- client/src/pages/Graph.tsx | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/client/src/pages/Graph.tsx b/client/src/pages/Graph.tsx index 1d0be5a..a65dcc8 100644 --- a/client/src/pages/Graph.tsx +++ b/client/src/pages/Graph.tsx @@ -179,6 +179,17 @@ export default function Graph() { > + + + 0 ? selectedNodes.has(s.id) && selectedNodes.has(t.id) : true; + const isInEdge = hoveredNode != null && t.id === hoveredNode; const opacity = connected ? edgeOpacity(e.weight, maxEdgeWeight) : 0.03; + const strokeColor = isInEdge ? '#4ade80' : '#ff1a3d'; + const marker = !connected + ? 'url(#arrowhead-dim)' + : isInEdge + ? 'url(#arrowhead-green)' + : 'url(#arrowhead)'; return ( );