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:
File diff suppressed because it is too large
Load Diff
@@ -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
0
scripts/docker-compose-reset.sh
Normal file → Executable file
Reference in New Issue
Block a user