fix: State-Dateien synchronisiert – T023 abgeschlossen, T024 als nächster Task

This commit is contained in:
Agent Zero
2026-05-31 20:38:11 +00:00
parent 7f7da15965
commit 788ad07146
3 changed files with 48 additions and 35 deletions
+28 -20
View File
@@ -4,33 +4,41 @@
- Phase 0: Project Setup (T001-T003)
- Phase 1: Auth System (T004-T008)
- Phase 2: Contacts & Tags (T009-T011)
- Phase 3: Equipment Catalog (T012-T014)
- Phase 4: Crew Management (T015-T017)
- Phase 5: Vehicle Fleet (T018-T020)
## Next Phase: 3 Equipment Catalog
## Current Phase: 6 Projects
### Completed in Phase 6
- **T021**: DB-Modelle Project-Hierarchie ✅
- **T022**: Project CRUD API ✅
- **T023**: Project List & Detail UI ✅
### Priority Tasks
1. **T012**: Create database models for Equipment catalog and StockLocation
- Equipment model: name, category, brand, serial_number, barcode, qr_code, status, purchase_price, current_value, weight_kg, dimensions, power_watt, notes, custom_fields
- StockLocation model: name, address, is_default
- EquipmentGroup (Bundle) with M2M items
- Relationships to Account, Contact (supplier?)
1. **T024**: Project function group and function editor UI
- Inside project detail, allow CRUD of function groups and functions
- Drag-and-drop reordering
- Time period inheritance from group
- Amount, rate fields
- Type: crew, equipment, transport
- **Estimated**: 14h | **Depends on**: T023 ✅
2. **T025**: Create database models for ProjectEquipment and ProjectCrew
- Models: ProjectEquipmentGroup, ProjectEquipment (quantity, price, discount)
- ProjectCrew (with function link, crew_id, period)
- Alembic migration
- **Depends on**: T021
2. **T013**: Implement Equipment catalog API
- CRUD endpoints: GET/POST /api/v1/equipment, GET/PUT/DELETE /api/v1/equipment/{id}
- Search, filter by category/status/location, pagination
- Auto-generate barcode/QR code
- Batch import/export CSV
- Permission: equipment:read, equipment:write, equipment:delete
3. **T014**: Equipment catalog UI
- Equipment list page with grid/table toggle
- Search/filter by category, status, location
- Detail page with image, edit form
- Barcode/QR code display and print label
3. **T026**: Implement project equipment group and items API
4. **T027**: Project equipment management UI
5. **T028**: Implement crew assignment API
6. **T029**: Crew assignment UI in project
7. **T030**: Implement vehicle assignment API and UI
## Implementation Notes
- Use existing patterns from contacts module: models → schemas → router → frontend pages
- Use existing patterns from contacts/equipment modules: models → schemas → router → frontend pages
- All endpoints must use tenant isolation (account_id filter)
- All endpoints must use RBAC permissions via require_permission dependency
- Frontend uses existing API client, Zustand for auth, React state for data
- AppLayout sidebar already has Equipment link (placeholder)
- FunctionGroupEditor.tsx already exists as initial component (from T023)