Editor has no way to add a Path Defaults section's defaults to a path that already exists — user changes the default stitch type in Settings, but existing paths keep their old type, no 'apply defaults to all' button #249
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#249
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/components/workspace/pathDefaults.ts:24definesDEFAULT_PATH_DEFAULTS(defaultStitchType: 'satin',defaultDensity: 0.4). TheusePathDefaults()hook (line 118) reads/writes this from localStorage. The editor'shandleFinishPathreads it to determine the new path's stitch type and density.But existing paths keep whatever stitch type they were created with. If the user:
grep -n 'applyDefaults\|setAllToDefaults' src/returns 0. No bulk apply.Where
src/components/workspace/pathDefaults.ts:118src/pages/Editor.tsx(reads defaults for new paths)src/pages/Editor.tsx(per-path, single path)grep -n 'applyDefaults' src/returns 0Suggested fix shape
Add a "Apply Defaults" button in the editor's Path List header (or in the Settings modal's PathDefaultsSection):
onApplyDefaultsiterates all paths and setsstitchTypeanddensityto the current defaults. The user sees a toast: "Applied defaults to 8 paths." A confirmation modal (with undo) for designs with many paths.The undoable variant: dispatch a single
pushHistory(paths)before the bulk update, so a single Cmd+Z reverts all 8 changes.Severity
Low. The user can change paths one at a time. Power users with many paths notice the friction.
Discovered by
Gap analysis (2026-10-02) of editor path defaults.
Related
Shipped #249 — 'Apply Defaults to All Paths' affordance in the editor.
Adds a single 'Apply Defaults to All Paths' button to the editor's right-panel Path Properties section. Stamps the Settings modal's pathDefaults (defaultStitchType + defaultDensity) onto every existing path in one setPaths + one pushHistory dispatch — a single Ctrl+Z reverts the whole bulk stamp.
Distinct from the existing per-row apply-to-all buttons (#212), which broadcast the SELECTED path's value: this reads the user's persisted Settings preferences so a Settings tweak can be retroactively applied to existing paths without manual fan-out.
Commit:
8b28ebaon origin/mainFiles: src/pages/Editor.tsx, src/components/editor/EditorRightPanel.tsx, src/components/editor/issue-249.test.tsx
Tests: 7 new tests (visibility gates, label content, aria-label, atomicity). Full suite 2194/2194 (1 skipped). tsc + lint + build clean.
Behavior notes: