Skip to content

fix(ui): show calculated end time in RoutineBuilder saved routines list#750

Open
shabnam311 wants to merge 1 commit into
aryandas2911:mainfrom
shabnam311:fix/routine-end-time-display
Open

fix(ui): show calculated end time in RoutineBuilder saved routines list#750
shabnam311 wants to merge 1 commit into
aryandas2911:mainfrom
shabnam311:fix/routine-end-time-display

Conversation

@shabnam311
Copy link
Copy Markdown
Contributor

📝 Summary

Fixes #746

The saved routines sidebar in RoutineBuilder.jsx was only displaying the start time for each task (e.g. 08:00 – Morning Run). The duration field was already being returned by the API but was never used in the UI, leaving users with incomplete scheduling information.

Changes Made

  • Calculated endMins = startTime + duration for each task in the saved routines list
  • Formatted end time hours and minutes with zero-padding to match the existing start time format
  • Updated the rendered list item to display the full time range: 08:00–09:00 – Morning Run

Files Changed

  • frontend/src/pages/RoutineBuilder.jsx

Type

  • Bug fix

Checklist

  • Code runs locally
  • Followed project structure
  • No console errors
  • Properly tested changes
  • Linked the issue

Calculated and rendered the end time (startTime + duration) for each task in the saved routines sidebar, which previously only showed the start time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Routine sidebar displays only start time — end time not calculated or shown

1 participant