Editor's 'Path Length' display shows total path length in mm but not the 'stitch count estimate' — user wanting to know how many stitches a path will produce has to compute from density #357
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#357
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
grep -rn 'stitchCount.*estimate\|estimateStitches' src/components/editor/EditorRightPanel.tsxreturns 0. The right panel shows the path's length but not the estimated stitch count.A user with a path:
The fix is to show the estimated stitch count.
Where
src/components/editor/EditorRightPanel.tsxgrep -rn 'stitchCount' src/components/editor/returns 0Suggested fix shape
Update on density change: as the user moves the density slider, the estimate updates.
Use cases:
Severity
Low. The user can compute. Power users with production workflows notice.
Discovered by
Gap analysis (2026-10-02) of editor path properties.
Related
Shipped as commit
f59da93on main. The Path Info block now has a working Stitches row that reflects the path's actual density (= stitch spacing in mm, post-#317).Fix
estimateStitchCount(length_mm, spacing_mm) = round(length / spacing)next toestimatePathLength/polygonAreaMm2/perimeterMm.Math.round(length * 2.5)— a hard-coded multiplier that ignored density. A 100 mm path at 2.5 mm/stitch reported 250 (the bogus value), not 40 (the real count). It now readsestimateStitchCount(length, spacing)and updates live as the user moves the density slider.data-testid="path-info-stitch-count-<id>"so the row is greppable alongside the otherpath-info-*hooks.titleattribute on the value explaining the formula so a user hovering the number knows it's the per-path breakdown (and the design total lives in the bottom thread bar).Verification
src/components/editor/issue-357.test.tsx:EditorRightPanel.test.tsx(215) plus the path-statistics-related issues (#353/#354/#356) still pass.tsc -bclean;eslintclean on the touched files.The 20 pre-existing test failures in
issue-329/331/333/334(snap-settings toggle tests) are unrelated baseline noise onmain— verified bygit stash+ re-run. Closing.