Refactor calendar event handling and validation #31
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.
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: dkofler/DFTool#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "20260120-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?