Skip to content

v0.4.0: virtual stitch-out, start page, fabrics, nine languages - #2

Merged
lb2002 merged 6 commits into
mainfrom
feature/simulator-and-usability
Oct 31, 2026
Merged

lb2002 merged 6 commits into
mainfrom
feature/simulator-and-usability

Conversation

@lb2002

@lb2002 lb2002 commented Oct 31, 2026

Copy link
Copy Markdown
Owner

What this adds

Virtual stitch-out. F7 now runs a check instead of the old Doctor: a score out of 100, findings in plain language with Show and Fix buttons, and a preview of how the fabric pulls in. python -m openstitch.analysis design.dst --fabric jersey --formats does the same from the command line. The physics is a model built on rules of thumb, not a replacement for a test stitch-out.

Easier for everyone. Start page with samples and recent files, a window that fits a 1280 px laptop (it needed 2212 px), a light theme, real fabric choice, a Send to machine dialog with USB detection, autosave with crash recovery, nine languages and a Linux download.

Bugs the new tests found

Found by Bug
Parameter test Satin density did almost nothing above about 0.4 mm
Export test VP3 files with an accented thread name such as "Grün" were corrupted
Simulator Split satin exceeded the maximum stitch length by up to 17 %
Fuzz test The density guard could create 13 mm stitches on retraced lines
Fuzz test Hidden travel cut across holes at a ring's start corner
Fuzz test Degenerate column lines threw stitches off the shape
Damaged file test A corrupt project could crash plan building
Code reading The text dialog refused heights under 4 mm, so 2.5 mm lettering could not be entered

Testing

  • 168 tests pass locally on Windows.
  • 34 test designs in 9 machine formats: 306 of 306 read back correctly.
  • Long run: 4,500 random actions on the real window, plus heavy fuzzing and damaged files. The fuzzing found the ring bug above, now fixed; I re-ran the fill fuzz afterwards, not the whole long run.
  • PyInstaller Windows build: starts, and all languages are bundled.

Not verified

  • Nothing has been stitched on a real machine. The fabric model is calibrated to a rule of thumb, not measured.
  • The five new languages are machine translated and need a native speaker's check.
  • The Linux build job has not run yet; it first runs when a version tag is pushed.

lb2002 and others added 5 commits October 30, 2026 23:24
…round-trip, fuzz and monkey tests

Fixes found by it: split satin exceeded max stitch by 17 %, the density guard
could bridge into 13 mm stitches, degenerate columns escaped the shape, and
hostile project values crashed plan building.

Co-Authored-By: Claude <noreply@anthropic.com>
…hes are found

Co-Authored-By: Claude <noreply@anthropic.com>
…atin density finally works

Satin spacing above about 0.4 mm had no effect because the rail resampler split
every skeleton segment on its own. Rails are now spaced evenly by arc length.
The window fits a 1280 px laptop (was 2212 px). Adds light theme, autosave with
crash recovery, recent files, sample designs and system language detection.

Co-Authored-By: Claude <noreply@anthropic.com>
…log preview, 2.5 mm allowed; command line check

Co-Authored-By: Claude <noreply@anthropic.com>
…ng routing fixes

VP3 files with an accented thread name were corrupted, and hidden travel could
cut across holes at a ring's start corner. Adds a crash report, about box and
shortcut list, weekly stress tests and a Linux download.

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 31, 2026 00:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

…every platform

Fabric pull can now be measured instead of estimated: stitch a test bar, measure
it, enter the width. Every pull request builds the packaged app for Windows,
macOS and Linux and runs a self-test inside it. Adds Mac opening instructions.
CI tests use real fonts on Windows.

Co-Authored-By: Claude <noreply@anthropic.com>
@lb2002
lb2002 merged commit cb8d681 into main Oct 31, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants