Replace combined filament dropdown with separate material + color dropdowns

- app/constants.py: MATERIALS and COLORS standard value lists
- Migration 0008: job_material + job_color columns on print_jobs
- Job creation (both /jobs and /brackets/{id}/jobs) stores these independently
  of the filament inventory
- All job tables updated to display job_material · job_color

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Martin Hohenberg
2026-06-18 22:08:29 +02:00
parent dc73c9a8c1
commit 6868862d77
6 changed files with 79 additions and 24 deletions

9
app/constants.py Normal file
View File

@@ -0,0 +1,9 @@
MATERIALS = ["PLA", "PETG", "ABS", "ASA", "TPU", "Nylon", "PC", "Other"]
COLORS = [
"Black", "White", "Grey", "Silver",
"Red", "Orange", "Yellow",
"Green", "Blue", "Purple", "Pink",
"Brown", "Beige", "Natural",
"Transparent", "Translucent",
]