Skip to content

integrate inspection planning with backend API

yassine sabir a demandé de fusionner feature/VSN-2442 vers develop

Inspection planning – backend integration

New: inspectionPlanningStore.ts – Zustand store that calls /api/inspections/planning for:

  • GET – list planning items (paginated)
  • POST – create planning item
  • PATCH /{uuid}/status – update status
  • DELETE /{uuid} – delete planning item

Updated: view.tsx – planning screen now:

  • Loads planning items from the API on mount and when the week changes
  • Creates inspections via POST with validation (vehicle, responsible, date, time)
  • Updates status inline via PATCH
  • Deletes items via DELETE
  • Shows success/error snackbars for all actions
Modification effectuée par yassine sabir

Rapports de requête de fusion