Editor's save payload hardcodes fabricType: 'medium', stabilizer: 'cut-away', machineProfile: 'brother-pr1050x' — same problem as hoopSize, no way to override the saved defaults #239
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#239
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) andhandleSaveAsNew(line 905) pass the samedesignSettingsblock with all four fields hardcoded:The user has no way to override:
fabricType(light / medium / heavy / stretch / denim) — affects stitch tensionstabilizer(cut-away / tear-away / wash-away / none) — affects stabilizer recommendationmachineProfile(brother-pr1050x, brother-innovis, janome-mb-7, etc.) — affects the export format compatibilityThe workspace's design settings panel has the form (the right panel shows the form for the current design). The editor's save path doesn't read it.
Where
src/pages/Editor.tsx:832(handleSave),905(handleSaveAsNew)src/components/workspace/RightPanel.tsx(the design settings section)Suggested fix shape
Same as #238: read the values from state (either a
useDesignSettingshook or local state in the editor) instead of hardcoding.The cleanest pattern:
designSettingsto the Editor's state (initialized from the loaded design's settings, or from defaults).The values should be inherited from the workspace when the user came from there (the
LOAD_DESIGN_STORAGE_KEYpayload can include the settings), or from a default when opening a new design.Severity
Medium. Same as #238. The user can't configure the saved design's settings.
Discovered by
Code review (2026-10-02) of editor save flow.
Related
handleSendToWorkspace(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 #252Shipped in
ab05462. The Editor header now has Fabric / Stabilizer / Machine pickers next to the existing Hoop picker, defaults match the prior hard-coded literals so the migration is invisible, and every save / export / workspace-bridge path reads from the new state hooks. Round-trip hydration via tc_workspace_snapshot means a Workspace → Editor trip preserves the user-picked values. Full repo suite: 1228 passing, 1 skipped.Refs #238.
handleSendToWorkspace(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 #252