Editor Selected Nodes X/Y coordinate inputs are read-only (EditorRightPanel.tsx:178-198) — user can't enter numeric values, has to drag on canvas #141
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Finding
The Editor's Selected Nodes section has X and Y coordinate inputs (
src/components/editor/EditorRightPanel.tsx:178-198) that are read-only. The user can see the node's coordinates but cannot edit them numerically — they have to drag the node on the canvas to move it.For precision work (a user with a specific stitch placement in mind, or someone converting from another design tool with exact coordinates), numeric entry is the standard expectation. A read-only input labeled "X" / "Y" is misleading.
Where
src/components/editor/EditorRightPanel.tsx:178-198— both the X and Y inputs have thereadOnlyattribute andonChangeis not wired. The form is purely informational.Suggested fix shape
Remove
readOnlyand add anonChangehandler that callsonUpdateNodePosition(x, y)(or whatever the prop is named) when the user types a new value. The handler should:firstSelectedNodein the editor's stateIf the architecture is set up so only the canvas can update node positions, the input change should call a new prop like
onUpdateNodeCoordinates(nodeId, { x, y })and the implementation inEditor.tsxcalls the existing state setter.Severity
Low. The canvas drag is functional; numeric entry is a power-user feature.
Discovered by
Gap analysis (2026-10-02) of editor right panel input handling.
Related
Shipped in commit
5c6da6fon main.The X and Y inputs in the Editor's 'Selected Nodes' section are now editable. Added a
NodeCoordInputhelper that:onUpdateNodePosition→handleUpdateNodePositionin Editor.tsx, which goes throughpushHistoryso undo works the same way asonUpdateNodeTypeandonNodeDrag.8 new tests added (editable state, no-commit-on-keystroke, commit-on-blur, decimal rounding, unchanged-value skip, non-numeric revert, Enter commit, Escape revert). All 16 tests in
EditorRightPanel.test.tsxpass; tsc + eslint clean.