10 Commits

Author SHA1 Message Date
Peter Stockings
eaeb4ab2c8 feat: Refactor workout functionality into blueprint
- Moved workout-related routes (create/delete/edit workouts, topsets, tags, start dates, show workout) from `app.py` into a new blueprint at `routes/workout.py`.
- Integrated workout view model logic from `features/workout.py` directly into `routes/workout.py` helper function `_get_workout_view_model`.
- Removed `features/workout.py` and the corresponding class instantiation in `db.py`.
- Registered the new `workout_bp` blueprint in `app.py`.
- Removed the original workout route definitions from `app.py`.
- Updated `url_for` calls in relevant templates (`workout.html`, `person_overview.html`, `partials/workout_tags.html`, `partials/topset.html`, `partials/start_date.html`, `partials/new_set_form.html`, `notes.html`, `calendar.html`) to reference the new blueprint endpoints (e.g., `workout.create_workout`).
- Updated `templates/changelog/changelog.html` to document this refactoring.
2025-03-31 22:38:48 +11:00
Peter Stockings
910437010d Add margin top to workout start date input 2024-04-11 18:42:14 +10:00
Peter Stockings
32a81df82a Add fade in transition to work out start date, tags, & note 2024-04-11 18:40:21 +10:00
Peter Stockings
fd04eb00b1 Clear dark classes on remaining inputs 2024-03-09 16:33:08 +11:00
Peter Stockings
81882e1969 Fix issue arising from last commits refactor where multiple calls to edit workout start date/note would create multiple instances of the dom 2023-07-12 19:50:51 +10:00
Peter Stockings
c457002d1e Add editable notes to workouts 2023-07-12 19:35:55 +10:00
Peter Stockings
27ababda27 Remove update button on edit start workout date form 2022-12-04 21:34:33 +11:00
Peter Stockings
e0c17fb039 Fix formatting for workout modal 2022-12-04 17:30:14 +11:00
Peter Stockings
cd5f0fcf58 Refactor start_date as date rather then string 2022-11-27 13:22:37 +11:00
Peter Stockings
ff430dc956 Refactor workout start date component into template partial 2022-11-22 00:28:43 +11:00