-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
Description
📝 Description
The "Today Plan" section on the Dashboard behaves incorrectly in two scenarios:
- Rest Days / No Workout: If there is no workout scheduled for today, it often displays the next upcoming workout (e.g., tomorrow's) instead of showing a "Rest Day" or empty state.
- Multiple Workouts: If a user has multiple workouts planned for the same day (e.g., a morning run and evening gym session), the component fails to display all of them, likely showing only one.
👣 Steps to Reproduce
Scenario A (Rest Day Bug):
- Ensure "Today" has no planned workouts in the calendar.
- Ensure "Tomorrow" (or a future date) does have a planned workout.
- Navigate to
/dashboard. - Observe the "Today Plan" section displaying the future workout as if it were for today.
Scenario B (Multiple Workouts):
- Schedule two distinct workouts for "Today".
- Navigate to
/dashboard. - Observe that only one workout is visible in the "Today Plan" section.
😯 Expected Behavior
- Rest Days: The component should clearly indicate "Rest Day" or "No workouts planned" if the current day has no sessions.
- Multiple Workouts: The component should support displaying a list or carousel of all workouts scheduled for the current day.
🐛 Actual Behavior
- Future workouts bleed into "Today" when today is empty.
- Only a single workout is rendered even when multiple exist.
💻 Environment
- Component: Dashboard "Today Plan" widget
- Area: Frontend logic (likely date filtering or query issue)
Reactions are currently unavailable