sam-kakengi / trackrunner

A Django and React project for tracking runs
2 stars 0 forks source link

Task/run 33 modal start run #15

Closed sam-kakengi closed 1 week ago

sam-kakengi commented 1 week ago

Using AI to generate a summary of what I've done! Take a look.

Note: Need to eventually work on managing how refreshing will work with the paused duration, but it works with the dummy timer. Buttons are still not fully adjusting to them though.

Key Changes

  1. Improved Run Start Logic

    • Added error handling and validation for the API response when starting a run.
    • Implemented fetching of route details to ensure the correct route name is displayed.
  2. Enhanced Run End Functionality

    • Introduced a new endRun function that updates the run details via a PATCH request.
    • Added cleanup of local storage items related to runs upon ending a run.
  3. Paused Run Management

    • Implemented state management for paused runs, including duration tracking.
  4. Modal Management

    • Added state management for end run and pre-end run modals.
  5. Context API Expansion

    • Extended the ActiveRunContext to include new functions and state variables.

Technical Details

Dimwiddle commented 1 week ago

@sam-kakengi Noticed that the active run dashboard is not matching the design. Can you make the adjustments with the colours etc?

Figma design here

Actual

image

Expected

image
sam-kakengi commented 1 week ago

Will do 👍🏽

Dimwiddle commented 1 week ago

@sam-kakengi Just some feedback on the pre-modal. These changes would be good just for consistency with the other modals.

image