Commit Graph

9 Commits

Author SHA1 Message Date
Peter Stockings
d7c9f71d22 Add activity logs table 2026-01-31 14:53:01 +11:00
Peter Stockings
9e20976591 Add 'Machine vs Free Weight' & 'Compound vs Isolation' breakdowns for workouts 2026-01-31 13:11:21 +11:00
Peter Stockings
d03581bff4 feat: assign tags to exercises and show muscle distribution of workout 2026-01-30 23:53:04 +11:00
Peter Stockings
78f4a53c49 Fix error when attempting to update set due to missing exercise id param in template 2026-01-30 22:54:50 +11:00
Peter Stockings
e156dd30cc Add badges to sets showing stats ie weight/rep increase or how many weeks stalled 2026-01-30 22:42:06 +11:00
Peter Stockings
036d852aab Add authentication for update/delete endpoints 2026-01-29 18:41:24 +11:00
Peter Stockings
e7d125d57b Move workout tag logic into tags blueprint 2025-04-21 20:13:30 +10:00
Peter Stockings
3da0dc3b3d Fix for regression where selecting exercise for a new set on an exercise that hasnt had an set recorded wouldnt diplay the name 2025-04-13 18:04:11 +10:00
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