Workspace's Color Simplification Preview is shown but has no 'apply to design' button — user previews the simplified colors and either accepts or dismisses, but no way to apply the preview to the actual stitch objects #266
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#266
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/ColorSimplificationPreview.tsx(per the snippet I saw earlier inSettingsModal.tsx:7) renders a preview of simplified colors. The user sees what the design would look like with fewer colors.grep -n 'applyColors\|APPLY_COLOR_SIMPLIFICATION' src/components/workspace/returns 0. The preview is read-only.A user with 12 colors in a design wants to:
Currently:
The fix is an "Apply to design" button on the preview that updates the stitch objects.
Where
src/components/workspace/ColorSimplificationPreview.tsxsrc/components/workspace/SettingsModal.tsx:93-103(renders the section)grep -rn 'APPLY_COLOR_SIMPLIFICATION' src/returns 0colorId(per the type)Suggested fix shape
Add an "Apply" button at the bottom of the Color Simplification Preview:
onApply:stitchObject.colorIdto the simplified color.colorRegion.colorIdto the simplified color.The simplification algorithm (k-means or median cut) is already in the preview's logic; the apply step reuses it.
Severity
Low. The user can manually reduce colors one at a time. The "apply" is a polish improvement.
Discovered by
Gap analysis (2026-10-02) of color simplification affordances.
Related
Shipped fix(#266) at
b0ff49aon main.What changed
The Color Simplification Preview in the Settings modal is now actionable. The shipped pre-facts had two gaps:
imageSrc={null}andcolorSensitivity={50}inSettingsModal.tsx, so it was detached from any state — a static demo widget, not a "preview-then-decide" surface.After #266:
src/components/workspace/colorSimplification.ts— versionedtc_color_sensitivity_v1storage key,useColorSimplificationhook (mirrors thepathDefaults.ts/#198shape, including cross-tab sync via thestorageevent),loadColorSensitivity/saveColorSensitivitygetters, sanitization on every read/write.ColorSimplificationSection.tsxnow renders:color-simplification-apply) that commits the slider's value to the storage keyColorSimplificationPreview.tsx(the full dialog) also exposes an "Apply to design" button (apply-color-simplification) so the user can commit directly from the dialog without returning to the section. Both surfaces observe each other because they read the same storage key.issue-266.test.tsx— 17 new tests pin the new affordance. Full suite: 1426/1426 pass, lint clean.The Settings modal remains self-contained (no Workspace-state contract change). Persistence is localStorage; the next page load (or cross-tab
storageevent) picks up the committed value.Fixed in commit. Closing.