printhive/public
dlawler489 8814e79669 Count slots, not materials: four colours need four spools
Reported from the library: a four-colour AMS bookmark showed as "printable now"
against a single spool of Jade White. The matching collapsed the project's four
slots into the set of materials it used — {PLA} — and then asked only whether a
PLA spool existed. A sixteen-colour model would have passed the same way.

Ignoring colour is right: printing a bookmark in red instead of white still
prints. Ignoring slot count is not: four slots need four spools loaded. Matching
now counts slots per material and reports the shortfall — "needs 3 more PLA",
and on the model page "Needs 4 × PLA. You have 1 of 4 PLA."

The tests carried the same mistake, asserting that one spool satisfied a
multi-slot project, so they are rewritten around the reported case.

Also documents the feature in the README, which had no entry for it at all.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 12:41:40 +10:00
..
app.js Count slots, not materials: four colours need four spools 2026-09-17 12:41:40 +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 Show what's printable with the filament you have 2026-09-17 11:46:54 +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