Right panel: Auto-Digitize Settings section is closed by default in image-uploaded state — controls invisible until clicked #57
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#57
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 right panel, after uploading an image (entering
image-uploadedstate), the Auto-Digitize Settings section header is visible but the section body is collapsed. The Stitch Preference buttons, Color Sensitivity slider, Min Stitch Length slider, Underlay toggle, Auto Thread Match toggle, and Run Auto-Digitize button are all hidden. The user sees only the bare header and assumes the settings are missing from the UI.Reproduction
image-uploadedstate.Observed
Root cause
src/components/workspace/RightPanel.tsxlines 34–40:The
openSections.autoinitial value is computed fromappState, butuseStateonly runs the initializer once when the component mounts. The Workspace panel mounts when the page loads (inemptystate), at which pointauto: appState === 'image-uploaded'evaluates tofalse. When the user later uploads an image andappStatetransitions to'image-uploaded', theopenSectionsstate is not re-initialized —autostaysfalseuntil the user manually clicks the header.Design Settings has the same initialization logic but appears open because in the typical flow the user sees the empty-state first, then uploads, but Design Settings also was closed at mount and only opens because the user clicks it. (Design Settings DOES open by default in
emptystate because of the OR clause:design: appState === 'empty' || appState === 'image-uploaded'.)Auto-Digitize Settings has no equivalent default-open clause for the empty state.
Expected
When
appStatetransitions to'image-uploaded', the Auto-Digitize Settings section should auto-open so the user immediately sees the controls they need to run auto-digitize. Two reasonable fixes:useEffectthat watchesappStateand re-syncs the defaults, OR move the default computation out ofuseStateso it always reflects current state.autoinitial value toappState === 'image-uploaded' || appState === 'empty', and add a similar default-open behavior for any other section that should be visible on first interaction.Severity
Medium. The user has to discover that Auto-Digitize Settings is a clickable accordion; until they do, they cannot configure and run auto-digitize. Same UX bug class as Mark/Kimi_Agent_Brother_10_Digitizing_App#56 (Stitch Parameters accordion never expands) — both produce the symptom "header is visible but nothing happens" but with different root causes.
Related