diff --git a/CLAUDE.md b/CLAUDE.md index 0ea81bf..d9e7437 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -131,7 +131,7 @@ This is a fork with UX improvements. Issues are tracked on the Gitea instance ab | 3 | QR Code Sizing Fixes | ✅ DONE | | 4 | Layout Max-Width | ✅ DONE | | 5 | Temperature Ranges | ✅ DONE | -| 6 | Spool Adjustment History | 🔄 NEXT | +| 6 | Spool Adjustment History | ✅ DONE | | 7 | 3dfilamentprofiles Integration | Open | ### Issue #1 Complete - Inline Creation Modals @@ -198,13 +198,18 @@ Files: - `client/src/pages/filaments/create.tsx` - Form updates - `client/src/pages/printing/spoolQrCodePrintingDialog.tsx` - Template tags -### Issue #6 Next - Spool Adjustment History +### Issue #6 Complete - Spool Adjustment History -Track history of all spool weight adjustments with timestamps and comments. +Track history of all spool weight/length adjustments with timestamps and comments. -Plan: -- 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 +Backend: +- `spoolman/database/models.py` - Added `SpoolAdjustment` model with relationship to Spool +- `migrations/versions/2025_01_15_0300-*.py` - Migration for spool_adjustment table +- `spoolman/api/v1/models.py` - Added `SpoolAdjustment` Pydantic model +- `spoolman/api/v1/spool.py` - Added comment field to use/measure endpoints, GET /spool/{id}/adjustments endpoint +- `spoolman/database/spool.py` - Updated use_weight, use_length, measure functions to record adjustments + +Frontend: +- `client/src/pages/spools/model.tsx` - Added `ISpoolAdjustment` interface +- `client/src/pages/spools/show.tsx` - Collapsible adjustment history table +- `client/public/locales/en/common.json` - Translation keys for history table