Skip to content

Allow overriding the automatic screw bin size - #20

Merged
jaak0b merged 1 commit into
masterfrom
screw-size-override
Oct 15, 2026
Merged

jaak0b merged 1 commit into
masterfrom
screw-size-override

Conversation

@jaak0b

@jaak0b jaak0b commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Closes #17.

The screw entry tab now has Width and Depth fields for the bin size. They show the size computed from the screw until you edit one; the Auto button returns to the computed size. The override applies to every screw in a comma-separated list and to insert-only mode (width only), and editing a queued screw restores its stored size.

When the chosen width is too narrow for the screw to lie flat across the top opening at the stacking lip, a non-blocking hint says the screw will sit tilted. The fit test is the new engine function screwLiesFlat in screwListImport.ts, which shares the overall-length calculation with screwBinWidthUnits but leaves out the handling clearance. An M3x30 socket head cap screw therefore fits a 1 unit bin without a hint, while an M3x40 shows it.

Tests: 8 new screwLiesFlat cases (issue case, boundary at the 36.3 mm opening, overall vs nominal length, lengthless fasteners). npm run build and npm test pass (1429 tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jaak0b
jaak0b merged commit 9120dcd into master Oct 15, 2026
1 check passed
@jaak0b
jaak0b deleted the screw-size-override branch October 15, 2026 22:30
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.

Allow overriding label size

1 participant