Editor has no right-click context menu — workspace has 7-item context menu (Select All, Duplicate, Delete, Group, Ungroup, Bring to Front, Send to Back) but editor has nothing #191
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#191
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 workspace's canvas (
src/components/workspace/CanvasArea.tsx:246-365) wires ahandleContextMenuthat opens a 7-item context menu via<ContextMenu />(persrc/components/workspace/ContextMenu.tsx):Ctrl+A)Ctrl+D)Del)Ctrl+G)Ctrl+Shift+G, only when a group member is selected)The editor's canvas (
src/components/editor/EditorCanvas.tsx) has noonContextMenuhandler.grep -n 'ContextMenu\|onContextMenu' src/components/editor/returns 0 hits.A user editing a path in the Editor can't right-click for a quick "Duplicate this path" or "Delete this node" — they have to find the buttons in the right panel or use keyboard shortcuts.
grep -n 'handleDuplicate\|onDuplicate' src/components/editor/returns 0 hits too — there's no duplicate path action at all (see also #187). The right-click affordance for path operations is missing.Where
src/components/workspace/ContextMenu.tsx(full 7-item menu)src/components/workspace/CanvasArea.tsx:365(onContextMenu={handleContextMenu})src/components/editor/EditorCanvas.tsx(no onContextMenu handler)ls src/components/editor/shows no ContextMenu componentSuggested fix shape
Create
src/components/editor/EditorContextMenu.tsxwith editor-appropriate items:Wire
onContextMenuon the editor canvas. The handler opens the menu with the appropriate items based on:Plumb the actions through the existing
onAddNodeToSelection,onDeleteSelectedNodes,onDuplicateSelectedPath(the latter is a new prop needed for #187).Severity
Medium. Power users with multi-path designs feel the friction; new users don't notice.
Discovered by
Gap analysis (2026-10-02) of editor right-click affordances.
Related
Fixed in
cf9d558.Added EditorContextMenu mirroring the workspace's pattern. Hit-aware items:
Right-click anywhere on the editor canvas opens it; pointerdown elsewhere or Escape closes it.
Plumbing through Editor.tsx added handleDeleteNode and handleTogglePathVisibilitySingle. 143 editor tests pass (12 new for #191, 11 for the menu + 6 canvas integration). tsc -b clean, eslint clean.
Note: Forgejo Actions on this repo are currently all
cancelledsince 2026-10-03 - pre-existing CI infra issue. Localvitest runis the operative gate; all 880 tests pass.RightClickMenucomponent exists but is not used anywhere —DesignCard'sonContextMenuonly callse.preventDefault(), so the menu never opens, the user has no right-click affordance on designs #242