Skip to content

Resolve VSN-1938

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

feat(VSN-1938): Complete API integration for route sheets

  • Create routeSheetService API service with all required endpoints
  • Replace mock data with real API calls to backend
  • Integrate management of three route sheet types (current, submitted, pending)
  • Auto-load full details before navigating to details screen
  • Integrate calendar in view screen with submission logic
  • Fix total kilometrage calculation (single count per day)
  • Fix route sheet deduplication to prevent duplicates
  • Add plannedDaysDates support for pending sheets
  • Improve layout with bottom padding to prevent menu overlap
  • Complete lifecycle management (create, edit, submit) via API

feat(fuel-cards): Backend API Integration and UX Improvements

  • Replaced mock data with the actual backend API
  • Created the fuelCardService API with all endpoints
  • Adapted TypeScript types to map API <-> UI (string/number IDs)
  • Supported "Off-card" receipts without an assigned card
  • Fixed the display of null dates (01/01/1970 -> "—")
  • Fixed the infinite query loop in the details screen
  • Added loading statuses with a centered purple logo
  • Improved empty statuses with purple logos
  • Moved the add receipt button to the header
  • Supported nullable fields (cap, expiryDate, issueDate, assignedDriverName)
  • Supported photo uploads for receipts
  • Fixed date formatting (DD/MM/YYYY for the API)

feat(geolocation): implement finished trips history with date filtering

  • Add fetchFinishedTrips function to retrieve only finished trips from API
  • Implement history screen displaying finished trips with proper date formatting
  • Add view-only mode for trip visualization without navigation options
  • Optimize performance by loading circuit details only on trip click
  • Implement date range filtering with inclusive end date
  • Add loading screen with primary color indicator
  • Remove status filter from history (only finished trips displayed)
  • Enhance filter UI: full-width clear button with left-aligned content
  • Fix date display in trip cards to show actual trip date instead of current date
  • Add date field to Trip type for proper date handling
  • Update FilterHeader to support conditional status filter display
  • Improve date filtering logic to include end date in results

Rapports de requête de fusion