diff --git a/CLAUDE.md b/CLAUDE.md index fbded5c..746cb43 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -118,5 +118,45 @@ Environment variables (see `.env.example`): - **URL:** http://192.168.0.5:3022/tonym/spoolman2 - **API Token:** 8a04b3cb5dbb54e2d895b707305523c3ad83a945 +- **Upstream:** https://github.com/Donkie/Spoolman (remote: `upstream`) This is a fork with UX improvements. Issues are tracked on the Gitea instance above. + +## UX Improvement Issues + +| # | Title | Status | +|---|-------|--------| +| 1 | Inline Creation Modals | ✅ DONE | +| 2 | Smart Density Defaults | 🔄 NEXT | +| 3 | QR Code Sizing Fixes | Open | +| 4 | Layout Max-Width | Open | +| 5 | Temperature Ranges | Open | +| 6 | Spool Adjustment History | Open | +| 7 | 3dfilamentprofiles Integration | Open | + +### Issue #1 Complete - Inline Creation Modals + +Added ability to create filament/vendor inline without leaving the page: +- `client/src/components/vendorCreateModal.tsx` - Quick vendor creation +- `client/src/components/filamentCreateModal.tsx` - Quick filament creation with nested vendor modal +- Modified spool create to add "Create Filament" in dropdown +- Modified filament create to add "Create Manufacturer" in dropdown +- Uses `dropdownRender` pattern (same as location select) +- Uses `useInvalidate` to refresh lists after creation + +### Issue #2 Next - 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) +- 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) + +Material densities: +``` +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 +PVA: 1.23, ASA: 1.05, PP: 0.9, POM: 1.4, PMMA: 1.18, FPE: 2.16 +```