Workspace canvas: split-view toggle (Image/Stitches/Both) renders identical output when one layer is empty #54
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#54
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?
Bug
In the Workspace canvas (
src/components/workspace/CanvasArea.tsx), the split-view toggle buttons (Image / Stitches / Both) all produce visually identical output when one of the two layers has no data to draw. Toggling between them gives the user no feedback that anything happened.Reproduction
digitizedstate with no actual uploaded image (or withcolorRegions/stitchObjectsempty).Observed
962d1273351db54dfor both, observed 2026-09-01).Root cause
src/components/workspace/canvasRenderer.tslines 99 and 104:When
uploadedImageis null, the image branch silently draws nothing. WhencolorRegions/stitchObjectsare empty, the stitches branch silently draws nothing. The toggle buttons give no visual indication that one of the layers is empty.Expected
When one of the two layers has no data, the corresponding split-view button should be visually disabled (greyed out, non-clickable), and the canvas should show an empty-state placeholder for that layer ("No image uploaded" / "No stitches generated"). Currently the user has no way to distinguish "I toggled correctly" from "the toggle is broken."
Severity
Medium. Affects every Workspace session where the user reaches the post-digitize state without an image, or where the digitize produced empty regions.