docs: Update CLAUDE.md with Issue #2 completion
Some checks failed
CI / style (push) Has been cancelled
CI / build-client (push) Has been cancelled
CI / build-amd64 (push) Has been cancelled
CI / build-tester (push) Has been cancelled
CI / test (cockroachdb) (push) Has been cancelled
CI / test (mariadb) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / test (sqlite) (push) Has been cancelled
CI / build-arm64 (push) Has been cancelled
CI / build-armv7 (push) Has been cancelled
CI / publish-images (push) Has been cancelled
CI / publish-release (push) Has been cancelled

- Mark Issue #2 (Smart Density Defaults) as complete
- Add Issue #3 (QR Code Sizing) as next up
- Document implementation details for Issue #2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-14 19:55:04 -06:00
parent 478806dcc8
commit cbb2940193

View File

@@ -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