Fix: Rename updated only on graph #11
Reference in New Issue
Block a user
Delete Branch "claude/issue-10"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #10 — when a user renames a graph node via the context menu, the corresponding tree node in the sidebar was not updated.
What changed
TreeStore.tsx: Added arename(nodeId, newName)action that finds the tree node by ID and updates itstitlein the flat map, then rebuilds the tree.NodeRenameModal.tsx: After updating the graph node label, now also callsrenameTreeNode(nodeId, newName)from the tree store to keep both in sync.Why
Tree nodes stored the node name only at creation time. The rename modal only updated
node.labelinGraphModelbut never touchedTreeStore, causing the sidebar tree to display stale names while the graph showed the updated name.Notes
renameis a no-op — it safely returns the existing state.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.