printhive/public
dlawler489 1581f767fa Fill "any colour" slots last, not first
Found on the live library: setting slot 2 of a four-colour bookmark to "any
colour" made it take the one Jade White spool, leaving slot 4 — which asks for
#FFFFFF — with nothing, and the verdict stuck at "needs 3 colours" when it
should have improved to 2.

The assignment sorts candidate pairs by colour distance and scored a colourless
slot 0, a perfect match, so it always claimed a spool ahead of a slot that
needed that exact colour. Colourless slots now sort last and take whatever is
left over.

Fixed in both the server and the browser copy, which mirror each other, and
pinned by a test built from the reported case.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 13:27:58 +10:00
..
app.js Fill "any colour" slots last, not first 2026-09-17 13:27:58 +10:00
favicon.svg Add SVG favicon (hexagon mark) 2026-06-23 13:35:57 +10:00
index.html Show what's printable with the filament you have 2026-09-17 11:46:54 +10:00
styles.css Let a slot ask for any colour 2026-09-17 13:19:47 +10:00
viewer.js Fix model view for archives with long paths; preview inside archive-only models 2026-09-15 08:01:04 +10:00