diff --git a/CLAUDE.md b/CLAUDE.md index 746cb43..f86b371 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -127,8 +127,8 @@ This is a fork with UX improvements. Issues are tracked on the Gitea instance ab | # | Title | Status | |---|-------|--------| | 1 | Inline Creation Modals | ✅ DONE | -| 2 | Smart Density Defaults | 🔄 NEXT | -| 3 | QR Code Sizing Fixes | Open | +| 2 | Smart Density Defaults | ✅ DONE | +| 3 | QR Code Sizing Fixes | 🔄 NEXT | | 4 | Layout Max-Width | Open | | 5 | Temperature Ranges | Open | | 6 | Spool Adjustment History | Open | @@ -144,19 +144,28 @@ Added ability to create filament/vendor inline without leaving the page: - Uses `dropdownRender` pattern (same as location select) - Uses `useInvalidate` to refresh lists after creation -### Issue #2 Next - Smart Density Defaults +### Issue #2 Complete - Smart Density Defaults -Plan: Auto-fill density based on material type -- Create `client/src/utils/materialDefaults.ts` with density lookup table -- Convert material field to AutoComplete (dropdown + free text) +Auto-fill density based on material type: +- `client/src/utils/materialDefaults.ts` - Density lookup table with fuzzy matching +- Material field converted to AutoComplete (dropdown suggestions + free text) - Fuzzy matching: "PLA Silk" → PLA (1.24 g/cm³) -- Default diameter: 1.75mm, default density: 1.24 (PLA) -- Apply to FilamentCreateModal too -- Do NOT auto-fill on edit page (preserve user customizations) +- New filaments default to 1.75mm diameter and 1.24 g/cm³ (PLA) +- Applied to both full create page and FilamentCreateModal +- Edit page not affected (preserves user customizations) -Material densities: +Material densities in lookup: ``` PLA: 1.24, ABS: 1.04, PETG: 1.27, NYLON: 1.52, TPU: 1.21 -PC: 1.3, Wood: 1.28, CF: 1.3, PC/ABS: 1.19, HIPS: 1.03 +PC: 1.3, WOOD: 1.28, CF: 1.3, PC/ABS: 1.19, HIPS: 1.03 PVA: 1.23, ASA: 1.05, PP: 0.9, POM: 1.4, PMMA: 1.18, FPE: 2.16 ``` + +### Issue #3 Next - QR Code Sizing Fixes + +See upstream issue: https://github.com/Donkie/Spoolman/issues/671 + +Plan: +- Remove fixed 50% width constraint on QR code +- Add configurable QR padding setting +- Allow explicit QR code size control