Workspace's right panel has no per-object delete button — Delete lives only in the right-click context menu, which is undiscoverable and off the primary editing surface #199
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#199
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
src/components/workspace/RightPanel.tsx's Object List section (the part that renders one card percolorRegionorstitchObject) has no delete affordance. The user can:grep -n 'DELETE_SELECTED\|delete.*selected' src/components/workspace/RightPanel.tsxreturns 0 hits. The right panel's per-object card has no delete button.A new user who:
...has to:
Or, the more discoverable path:
But there's no visual hint that "Delete" does anything. The context menu hint (per #176) is also broken.
The right panel is the primary surface for browsing objects; it should have a per-object delete.
Where
src/components/workspace/RightPanel.tsx(Object List section)grep -n 'DELETE_SELECTED' src/components/workspace/RightPanel.tsxreturns 0src/components/workspace/ContextMenu.tsx:78-80src/components/workspace/useWorkspace.ts:308Suggested fix shape
Add a small "×" button to the right panel's per-object card (visible on hover):
The
DELETE_SELECTEDaction is already in the reducer and deletes the currently selected objects. The right panel's "Object List" card already tracks which object is selected; clicking delete on the card either:DELETE_OBJECTaction that takes an idOption 2 (dedicated action) is more straightforward — the right panel's per-object card can delete without first selecting.
Severity
Medium. The right panel is the primary surface; affordances should be there. Right-click context menus are a power-user pattern, not a discoverability pattern.
Discovered by
Gap analysis (2026-10-02) of workspace object affordances.
Related
Shipped in commit 9d0966b (fix(#199)).
What landed:
DELETE_OBJECT { id }reducer action inuseWorkspace.ts— mirrorsDELETE_SELECTED's compound group cascade (#67) so deleting a grouped member removes the whole group, matching the existing right-click / Del-key affordance. Pushes history so undo/redo round-trip the deletion.ObjectListrow inRightPanel.tsx:opacity-0), fades in on row hover viagroup-hover:opacity-100— mirrors the visual treatment of the existing per-row togglesstopPropagations so the row'sonClick(SELECT) doesn't fire alongside the deletearia-label="Delete <name>"for screen-reader discoverabilityTests:
src/components/workspace/issue-199.test.tsx— 5 cases (button renders per row in bothdigitized→stitchObjectsanddigitizing→colorRegionsbranches; click dispatchesDELETE_OBJECTwith the right id; click does NOT also fireSELECT; aria-label names the object).Verification:
Refs #176 (context-menu keyboard hint), #190 (BottomThreadBar stop pill × button — same pattern, third surface now covered).
Closes #199