docs: Update CLAUDE.md with Issue #6 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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-14 20:19:27 -06:00
parent d804329b77
commit 6d0ecec068

View File

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