I've updated the drag and drop logic to prioritize shifting appointments into earlier available slots rather than just pushing them down. Here's what changed:
Smart Slot Finding: The algorithm:
Efficient Scheduling: This approach ensures:
Now when you insert an appointment, instead of just pushing everything down one slot, the system intelligently finds the earliest available slots for the displaced appointments, keeping the overall schedule as early and compact as possible.
I've made the interface much more compact so you can see the entire day at once:
Now you should be able to see the entire day (6am to 9pm) without scrolling, making it much easier to get a complete overview of each technician's schedule at a glance.