Workspace has no 'compare before/after' view — user clicks Auto-Digitize and gets a new stitch layout, but has no way to compare the new result to the previous (e.g., a slider that fades between the two) #269
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#269
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 replaces the stitch objects when re-digitizing. The user can't compare the new result to the previous.
grep -rn 'compareMode' src/components/workspace/returns 0.A user who:
Currently:
The fix is a "Compare" toggle that overlays the old and new with a fade slider.
Where
src/components/workspace/useWorkspace.ts(history is tracked, but the BEFORE-snapshot of just the stitch objects isn't separately tracked for comparison)grep -rn 'compareMode' src/returns 0Suggested fix shape
State: add
previousStitchObjects: StitchObject[] | nullto the workspace state. Set it to the currentstitchObjectsBEFORE applying the new ones from auto-digitize.UI: add a "Compare" toggle to the workspace's top toolbar:
Render: in
canvasRenderer.ts, whencompareModeis on, drawpreviousStitchObjectsfirst (at 30% opacity, in a desaturated color), then the currentstitchObjectson top (at 100%).Slider: a bottom-of-canvas slider that controls the opacity of the previous.
Apply/Reject: two buttons next to the slider.
Severity
Low. The user can re-load the saved design to compare. Power users iterating notice.
Discovered by
Gap analysis (2026-10-02) of workspace comparison affordances.
Related
Shipped fix(#269) at
ebea43con main — workspace Compare before/after view.The re-digitize path now captures the pre-replacement geometry into previousStitchObjects and surfaces a Compare toggle + bottom fade slider + Accept/Reject buttons so the user can decide whether to keep the new layout or restore the old.
22 new tests pin: initialState defaults, commitDigitizedResult capture, SET_COMPARE_MODE gating (no-op without one), opacity clamp, ACCEPT_COMPARE, REJECT_COMPARE, REPLACE_IMAGE/RESET/LOAD_DESIGN reset, deep-clone immutability, CompareToolbar / CompareControls UI, renderCanvas signature compat. Total: 1468/1469 (was 1446/1447).