Refactor HorizontalTimelineCalendar and Scheduling components for improved functionality

- Updated HorizontalTimelineCalendar to support full 24-hour scheduling with enhanced marker positioning and dragging capabilities.
- Introduced extendLeft and extendRight properties in RepetitionBorder for better visual representation of markers extending beyond their borders.
- Enhanced tooltip functionality for vertical lines in the timeline, providing clearer time information.
- Modified Scheduling component to allow scheduling from midnight to midnight, improving user experience in time selection.
- Adjusted Docker script permissions for better execution control.
This commit is contained in:
salirezav
2026-01-13 14:41:48 -05:00
parent a3f18b2186
commit 0c434e7e7f
3 changed files with 411 additions and 455 deletions

View File

@@ -477,10 +477,11 @@ export function ScheduleExperiment({ user, onBack }: { user: User; onBack: () =>
let newScheduled = { ...prev }
const clampToReasonableHours = (d: Date) => {
// Allow full 24 hours (midnight to midnight)
const min = new Date(d)
min.setHours(5, 0, 0, 0)
min.setHours(0, 0, 0, 0)
const max = new Date(d)
max.setHours(23, 0, 0, 0)
max.setHours(23, 59, 59, 999)
const t = d.getTime()
return new Date(Math.min(Math.max(t, min.getTime()), max.getTime()))
}

0
scripts/docker-compose-reset.sh Normal file → Executable file
View File