printhive/test
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
..
fixtures Show 3MF projects plate by plate in their filament colours 2026-09-15 07:49:58 +10:00
ai.test.js Sturdier AI replies: format example, more retries, and errors that show the reply 2026-09-15 20:26:42 +10:00
archives.test.js Browse archives, preview companion files, and view FBX/STEP/3DM/OBJ+MTL 2026-09-15 07:36:47 +10:00
autotag.test.js AI tags and descriptions, search by meaning, and automatic tags 2026-09-15 11:12:58 +10:00
duplicates.test.js Add duplicate finder, trash, notes, and library search/filters 2026-09-14 23:06:09 +10:00
filaments.test.js Count slots, not materials: four colours need four spools 2026-09-17 12:41:40 +10:00
geometry.test.js Stream-parse 3MF files so Bambu projects don't exhaust memory 2026-09-15 07:02:00 +10:00
handoff.test.js Open models in your slicer and drag files out 2026-09-15 09:15:37 +10:00
makerworld.test.js Retry MakerWorld's anti-bot check, and flag imports that got no files 2026-09-16 12:34:04 +10:00
project.test.js Open models in your slicer and drag files out 2026-09-15 09:15:37 +10:00
thumbnail.test.js Make thumbnails on the server in the background 2026-09-15 07:54:26 +10:00