feat(T02): vehicle management + mobile.de push + vehicle UI
- Vehicle model: 25+ fields, 5 vehicle types, soft-delete - Vehicle CRUD: 7 API endpoints with JWT auth, filter/sort/paginate - mobile.de: push/update/delete listings, field mapping, retry logic - MobileDeListing model for sync status tracking - Frontend: VehicleList, VehicleForm, VehicleDetail, MobileDeStatus - 73 backend tests (82% coverage), 16 frontend tests
This commit is contained in:
@@ -45,3 +45,26 @@
|
||||
- Backend: 50/50 passed, 88% total coverage
|
||||
- Frontend: 12/12 passed, Next.js build success
|
||||
- test_report.md erstellt
|
||||
|
||||
## T02 – Vehicle Management + mobile.de Push + Vehicle UI (2026-07-14)
|
||||
|
||||
### Backend
|
||||
- models/vehicle.py: Vehicle + MobileDeListing models with UUID PK, soft-delete, all fields per spec
|
||||
- schemas/vehicle.py: VehicleCreate/Update/Response/ListResponse, MobileDeStatusResponse, MobileDePushResponse with auto-compute power_hp
|
||||
- utils/mobilede_mapping.py: map_fields() converts Vehicle to mobile.de Ad format
|
||||
- services/vehicle_service.py: CRUD with pagination, filtering, sorting, soft-delete
|
||||
- services/mobilede_service.py: push/update/delete listing, get status, retry (max 3)
|
||||
- routers/vehicles.py: 7 endpoints (list, create, detail, update, delete, mobile-de push, mobile-de status)
|
||||
- config.py: Added MOBILE_DE_API_KEY, MOBILE_DE_SELLER_ID
|
||||
- main.py: Registered vehicles router
|
||||
|
||||
### Frontend
|
||||
- lib/vehicles.ts: Full API client with typed interfaces
|
||||
- components/vehicles/: VehicleList, VehicleForm, VehicleDetail, MobileDeStatus
|
||||
- app/[locale]/fahrzeuge/: list page, neu (create) page, [id] detail page
|
||||
- tests/vehicles.test.tsx: 16 tests
|
||||
|
||||
### Test Results
|
||||
- Backend: 73/73 pytest passed, 82% total coverage
|
||||
- Frontend: 16/16 vitest passed
|
||||
- test_report.md updated
|
||||
|
||||
Reference in New Issue
Block a user