docs: Update CLAUDE.md with Issue #5 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 #5 (Temperature Ranges) as complete
- Add Issue #6 (Spool Adjustment History) as next up
- Document implementation details for Issue #5

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-14 20:05:32 -06:00
parent 3451996a8f
commit 388669d0c6

View File

@@ -130,8 +130,8 @@ This is a fork with UX improvements. Issues are tracked on the Gitea instance ab
| 2 | Smart Density Defaults | ✅ DONE | | 2 | Smart Density Defaults | ✅ DONE |
| 3 | QR Code Sizing Fixes | ✅ DONE | | 3 | QR Code Sizing Fixes | ✅ DONE |
| 4 | Layout Max-Width | ✅ DONE | | 4 | Layout Max-Width | ✅ DONE |
| 5 | Temperature Ranges | 🔄 NEXT | | 5 | Temperature Ranges | ✅ DONE |
| 6 | Spool Adjustment History | Open | | 6 | Spool Adjustment History | 🔄 NEXT |
| 7 | 3dfilamentprofiles Integration | Open | | 7 | 3dfilamentprofiles Integration | Open |
### Issue #1 Complete - Inline Creation Modals ### Issue #1 Complete - Inline Creation Modals
@@ -182,12 +182,29 @@ Changes:
- Added 800px max-width for forms via CSS override in `overrides.css` - Added 800px max-width for forms via CSS override in `overrides.css`
- Content is centered on wide screens - Content is centered on wide screens
### Issue #5 Next - Temperature Ranges ### Issue #5 Complete - Temperature Ranges
Store extruder and bed temperatures as min/max ranges:
- Added 4 new DB columns: `settings_extruder_temp_min/max`, `settings_bed_temp_min/max`
- Old single-value columns kept for backward compatibility (deprecated)
- Alembic migration copies existing values to both min and max
- Frontend uses Space.Compact with min/max input pairs
- Label template shows ranges: "ET: 190-220 °C"
Files:
- `spoolman/database/models.py` - New columns
- `migrations/versions/2025_01_15_0200-*.py` - Migration
- `spoolman/api/v1/models.py`, `filament.py` - API changes
- `client/src/pages/filaments/create.tsx` - Form updates
- `client/src/pages/printing/spoolQrCodePrintingDialog.tsx` - Template tags
### Issue #6 Next - Spool Adjustment History
Track history of all spool weight adjustments with timestamps and comments.
Plan: Plan:
- Convert single temp values to min/max ranges for better label printing - New table `SpoolAdjustment` with: spool_id, timestamp, type, value, comment
- Add new database columns: `settings_extruder_temp_min/max`, `settings_bed_temp_min/max` - Relationship to Spool model with cascade delete
- Create Alembic migration to handle data migration - API endpoint to list adjustment history
- Update API models and endpoints - Optional comment field in use/adjust endpoints
- Update frontend forms to use range inputs - Frontend: History section in spool show page
- Update label template to show ranges like "190-210°C"