FEATURE: Accurate countdowns and upcoming bookings
Background:
I had implemented a hardcoded countdown for sessions. Now, this is closer to what we need. The countdown for when the session is starting is accurate and displayed intuitively. So, if it's more than 23 hours, it's just in day format. If it's less than 23 hours but longer than 1 hour and 30 minutes, it's just in hours. And if it's less than 1 hour and 30 minutes, it's hours and minutes. Lastly, if it's less than 15 minutes, it's minutes and seconds. The other thing that I changed was the countdown for the session that has started. And I changed upcoming bookings to only show bookings that are within 15 minutes of the present and the future.
FEATURE: Accurate countdowns and upcoming bookings
Background: I had implemented a hardcoded countdown for sessions. Now, this is closer to what we need. The countdown for when the session is starting is accurate and displayed intuitively. So, if it's more than 23 hours, it's just in day format. If it's less than 23 hours but longer than 1 hour and 30 minutes, it's just in hours. And if it's less than 1 hour and 30 minutes, it's hours and minutes. Lastly, if it's less than 15 minutes, it's minutes and seconds. The other thing that I changed was the countdown for the session that has started. And I changed upcoming bookings to only show bookings that are within 15 minutes of the present and the future.
VISUALS
2 days before session starts
15 minutes before session starts
Less than 15 minutes before session starts
Upcoming bookings are only upcoming