Refactor calendar event handling and validation #31

Merged
kofi1990 merged 2 commits from 20260120-fixes into development 2026-01-20 08:04:39 +01:00
kofi1990 commented 2026-01-20 08:04:05 +01:00 (Migrated from github.com)
  • Updated DFEventDialog and EventDialog components to correctly calculate end dates for events, ensuring exclusivity by adding one day to the end date.
  • Removed redundant toast notifications in useDFCalendarLogic, as they are now handled by the mutation callbacks.
  • Enhanced KilometerFormDialog with new vehicle selection UI using Command components and added warnings for mileage and tire depth.
  • Updated API validation schemas to use a base schema for partial updates, improving flexibility in event updates.
  • Adjusted test setups to ensure proper mocking and validation of calendar events, including timezone handling and event creation scenarios.
- Updated DFEventDialog and EventDialog components to correctly calculate end dates for events, ensuring exclusivity by adding one day to the end date. - Removed redundant toast notifications in useDFCalendarLogic, as they are now handled by the mutation callbacks. - Enhanced KilometerFormDialog with new vehicle selection UI using Command components and added warnings for mileage and tire depth. - Updated API validation schemas to use a base schema for partial updates, improving flexibility in event updates. - Adjusted test setups to ensure proper mocking and validation of calendar events, including timezone handling and event creation scenarios.
Sign in to join this conversation.
No description provided.