Editor's Path Properties section's 'stitch type' dropdown is set per-path but not visually previewed — user picking 'satin' vs 'fill' sees no preview of what each type looks like, just the names #297
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#297
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/editor/EditorRightPanel.tsx's Path Properties section has a stitch type dropdown with 5 options (satin, fill, running, cross-stitch, zigzag — per #198). The user picks a type, but no preview of what the type looks like is shown.grep -rn 'stitchType.*preview\|previewStitch' src/components/editor/returns 0.A user with a path:
The fix is a visual preview for each type in the dropdown (matching the help page's pattern previews).
Where
src/components/editor/EditorRightPanel.tsxgrep -rn 'previewStitch' src/components/editor/returns 0src/pages/Help.tsx:80-100(the patterns)Suggested fix shape
Component: extract the pattern components from Help.tsx (SatinPattern, FillPattern, etc.) and reuse them in the dropdown.
UI: each option in the dropdown is a row with a 32x32 preview and the name:
Hover preview: when the user hovers an option (without selecting), the canvas shows a preview of what the path would look like with that stitch type. This is a "live preview" affordance.
Settings: a "Show preview in stitch type dropdown" toggle for users who prefer the compact list.
Severity
Low. The user can read the help page. Power users with many stitch types notice.
Discovered by
Gap analysis (2026-10-02) of editor path properties.
Related
Shipped in
6bdef23on origin/main.A 40x28 SVG thumbnail now sits to the right of the stitch-type dropdown in the editor, reusing the help-page pattern SVG components (SatinPattern/FillPattern/RunningPattern/CrossStitchPattern/ZigzagPattern from src/components/help/StitchPatterns.tsx). The thumbnail swaps live as the user changes the dropdown value, so the dropdown becomes self-documenting — pick satin, see the satin pattern; pick fill, see the tatami fill; etc.
Hidden when the selection disagrees on stitch type (Mixed state), since there is no single pattern to show. data-testid gives downstream tests a stable handle per stitch type.
Files touched:
Tests: 211/211 in EditorRightPanel.test.tsx pass. TypeScript clean, ESLint clean.