From 388669d0c6ac832dbed5851a6f656772ce17362f Mon Sep 17 00:00:00 2001 From: tonym Date: Wed, 14 Jan 2026 20:05:32 -0600 Subject: [PATCH] docs: Update CLAUDE.md with Issue #5 completion - 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 --- CLAUDE.md | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index c831dc7..0ea81bf 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -130,8 +130,8 @@ This is a fork with UX improvements. Issues are tracked on the Gitea instance ab | 2 | Smart Density Defaults | ✅ DONE | | 3 | QR Code Sizing Fixes | ✅ DONE | | 4 | Layout Max-Width | ✅ DONE | -| 5 | Temperature Ranges | 🔄 NEXT | -| 6 | Spool Adjustment History | Open | +| 5 | Temperature Ranges | ✅ DONE | +| 6 | Spool Adjustment History | 🔄 NEXT | | 7 | 3dfilamentprofiles Integration | Open | ### Issue #1 Complete - Inline Creation Modals @@ -182,12 +182,29 @@ Changes: - Added 800px max-width for forms via CSS override in `overrides.css` - 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: -- Convert single temp values to min/max ranges for better label printing -- Add new database columns: `settings_extruder_temp_min/max`, `settings_bed_temp_min/max` -- Create Alembic migration to handle data migration -- Update API models and endpoints -- Update frontend forms to use range inputs -- Update label template to show ranges like "190-210°C" +- New table `SpoolAdjustment` with: spool_id, timestamp, type, value, comment +- Relationship to Spool model with cascade delete +- API endpoint to list adjustment history +- Optional comment field in use/adjust endpoints +- Frontend: History section in spool show page