Editor hard-codes hoopSize: '4x4' when saving a design — user designing a 5x7 or 4x4 design has no control over the saved hoop size, the saved design always says '4x4' #238
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#238
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/pages/Editor.tsx'shandleSave(line 832),handleSaveAsNew(line 905), and a third save path all passhoopSize: '4x4'literally:grep -n 'hoopSize' src/pages/Editor.tsxshows 6 matches. Of those, 3 are indesignSettingspayloads and all are'4x4'. The other 3 are unrelated (constants).The user designing a 5×7 design and saving it has no way to set the saved hoop size. The saved design row in the Gallery will display "4×4" (per
DesignCard.tsx:251/:583rendering the hoop size).Where
src/pages/Editor.tsx:832(handleSave),905(handleSaveAsNew), and a third'4x4'is in 3 placessrc/components/gallery/DesignCard.tsxSuggested fix shape
Three options, in order of correctness:
The default hoop-size could be auto-detected from the path bounding box (largest hoop that fits the design).
Auto-detect the hoop from the bounding box: on save, compute
boundingBox(paths), find the smallest hoop that contains it, and use that ashoopSize. The user sees no setting; the system picks the right one.Use the workspace's currently-selected hoop (the user might have the workspace on a 5x7 and click "Edit" — the editor should inherit the hoop from the source).
The most useful is a combination: auto-detect by default, user can override in the editor's settings.
The
hoopSizeand otherdesignSettingsfields (fabricType, stabilizer, machineProfile) are all hard-coded — same problem, same fix. The Settings modal already has the design settings form (per #125's open issue about "optional defaults sections"); this would tie into that.Severity
Medium. The user can't save designs for non-4x4 hoops. Power users with 5x7+ hoops notice immediately.
Discovered by
Code review (2026-10-02) of editor save flow.
Related
fabricType: 'medium',stabilizer: 'cut-away',machineProfile: 'brother-pr1050x'— same problem as hoopSize, no way to override the saved defaults #239handleSendToWorkspace(per #207) also hardcodeshoopSize: '4x4',fabricType: 'medium', etc. — same bug as #238/#239 in a separate code path, the user's settings are not preserved when sending the design to the Workspace #252fabricType: 'medium',stabilizer: 'cut-away',machineProfile: 'brother-pr1050x'— same problem as hoopSize, no way to override the saved defaults #239