mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
Add a shared ColorEditor component (single/multi toggle, per-color pickers + hex fields, add/remove colors, illustrated coaxial vs longitudinal cards that preview the actual colors) and wire it into both the add-spool create form and the library filament inspector, which also gains its first color picker. Colors and multi_color_direction round-trip through the API via a new colorFieldsToApi helper that keys single- vs multi-color by count and nulls out the other fields, so switching between them stays consistent. Make color type filterable in the library toolbar (Single / Coextruded / Longitudinal) backed by a new additive filament.multi_color_direction query param on the spool and spool/group endpoints; the Single option sends an empty value to match single-color (NULL) filaments. Also tidy a few inspector field labels to reuse the canonical filament.fields.* / vendor.fields.* message keys. Claude-Session: https://claude.ai/code/session_01VQQtwPBPiMCoZCpBbbqS64