Allow singleton node creation in landscape Quick Edit#586
Open
Allow singleton node creation in landscape Quick Edit#586
Conversation
Type a name in the From field, leave To empty, click Add to create a standalone node. The datalist autocomplete refreshes immediately so edges can be added to the new node without save/reload. - doAdd(): singleton branch when From filled, To empty - doUndo(): node_add undo type removes the node - Fix hasUnsaved bug: undo now checks pendingOps.length instead of always clearing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Without this, undoing a singleton creation left the node name in the autocomplete datalist even though the node was removed from the DataSet. Found during functional testing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add focusOnNode() that zooms to scale 1.0 with a 150px rightward offset so the selected node lands in the clear area, not under the toolbar/curation panel. Briefly pauses physics during the 600ms animation so it doesn't fight the zoom. Applied to: search box selection (From/To datalist), singleton creation, and duplicate node reveal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixed 150px offset pushed nodes offscreen on narrow viewports (375px iPhone). Now scales: 150px on desktop (>900px), 75px on tablet (600-900px), 0 on phone (<600px). Tested across 5 viewport sizes — node stays on screen at all sizes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hasUnsavedbug where undo always cleared the unsaved flag even when other ops remainedCloses #585
Test plan
🤖 Generated with Claude Code