Editor's stitch type dropdown doesn't surface which types are appropriate for the path's geometry — user picking 'fill' for a 2-node line gets no warning (fill is meaningless for a line) #354
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#354
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
The stitch type dropdown shows all 5 types regardless of the path's geometry. A user with a 2-node line:
The fix is to disable or warn about inappropriate types.
Where
src/components/editor/EditorRightPanel.tsxgrep -rn 'recommendedStitchType' src/components/editor/returns 0path.nodes.length,path.isClosedSuggested fix shape
Severity
Low. The user can pick any type. Power users notice the guidance gap.
Discovered by
Gap analysis (2026-10-02) of editor path properties.
Related
Fixed by commit
668f1d8(origin/main).Surfaces geometry-aware guidance in two surfaces in the Path Properties Stitch Type row:
Rules:
Advisory text (e.g. fill on a 2-node line -> 'fill is unusual for a 2-node line. Consider running.'; fill on an open 3+-node polyline -> 'fill needs a closed path to enclose an area.') plus a fallback 'is unusual for this path's geometry' message.
16 tests in src/components/editor/issue-354.test.tsx pin the helper contract and the dropdown / advisory markup. Pure helpers exported as recommendedStitchTypes + stitchTypeAdvisory for direct unit tests. Typecheck + lint clean; pre-existing test failures (issues #329/#331/#333/#334 - closed-path findTightCurves crash) unchanged.