26 Commits

Author SHA1 Message Date
Peter Stockings
c88d28b47c Fix issue with newly added workout tags not being rendered 2025-04-20 17:05:32 +10:00
Peter Stockings
51ec18c461 feat: Add dismissible exercise progress graph to workout page
Adds a feature to view exercise progress directly from the workout page.

- Modifies `templates/partials/topset.html`.
- Adds a graph icon next to the exercise name in the topset list.
- Clicking the icon uses HTMX to fetch and display the progress graph for that exercise inline in a new table row.
- Implements a dismiss button using hyperscript to hide the graph after viewing.
2025-04-13 19:20:53 +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
Peter Stockings
2c8019ef7b Bugfix: Attempting to update a set would fail due to including multiple elements for exercise_id, repetition, & weight 2025-01-26 18:47:45 +11:00
Peter Stockings
fd04eb00b1 Clear dark classes on remaining inputs 2024-03-09 16:33:08 +11:00
Peter Stockings
d967920e03 Start to refactor away from using camel case (Not sure why I did this in the first place) 2023-12-09 16:14:10 +11:00
Peter Stockings
304ddcb30d Remove dependency on tailwind elements and switch to using tail.select (Smaller lib, that resolves duplication of selects on back/forward) 2023-12-08 09:26:38 +11:00
Peter Stockings
ec35b78afd Switch to using hyperscript to initialise tailwind elements(select) and graphs(Plotly), this removes script tags and ids 2023-08-17 20:38:22 +10:00
Peter Stockings
c6c9925da0 Attempt to improve initial page load by adding defer attribute to scripts, will attempt to add defer to inline scripts as well soon 2023-08-15 22:31:08 +10:00
Peter Stockings
d3df532570 Revert "Add left to right slide in transition on main content rerender (#container)"
This reverts commit ae460815d7.
2023-08-15 15:34:29 +10:00
Peter Stockings
ae460815d7 Add left to right slide in transition on main content rerender (#container) 2023-08-14 22:57:47 +10:00
Peter Stockings
ffbe8ca7c2 Fix error when redirecting from workout overview to exercise (Person list filter) 2023-08-08 20:53:00 +10:00
Peter Stockings
25718970b6 When redirecting from workout overview(modal) to person list filter view dont refresh page on modal close 2023-08-07 10:29:41 +10:00
Peter Stockings
465bb74b87 Display exercise history when name is clicked on workout overview(modal) using person list filters (Should look into changing workout overview modal to a seperate page so you can access it via a url) 2023-08-06 22:51:24 +10:00
Peter Stockings
fa8a751d4d Add text wrap to exercise name in topset template for workout modal to improve readability on mobile 2023-07-26 10:06:45 +10:00
Peter Stockings
6cc20eebd9 Center topset buttons vertically 2023-07-25 21:39:10 +10:00
Peter Stockings
14a30e7332 Another slight modification to buttons on topsets 2023-07-25 21:19:31 +10:00
Peter Stockings
b23d29d72a In workout modal on mobile view change edit/delete update/cancel buttons to column 2023-07-25 21:11:46 +10:00
Peter Stockings
65c313c89b Edit/Delete & Update/Cancel buttons from text to icons to reduce clutter on screen (Modal needs rework to be usable on mobile) 2023-07-25 17:55:29 +10:00
Peter Stockings
5cc290601d Prompt for confirmation before performing any deletes 2023-03-20 22:52:02 +11:00
Peter Stockings
3e6f291793 Change edit topset exercise select to tailwind elements 2023-03-20 22:44:12 +11:00
Peter Stockings
e0c17fb039 Fix formatting for workout modal 2022-12-04 17:30:14 +11:00
Peter Stockings
947015f2a4 Fix bug where upon editing topset it would change exercise to Squat (1st in list) 2022-12-04 17:22:24 +11:00
Peter Stockings
68be21ab19 Refactorr topset into template partial 2022-11-22 00:18:26 +11:00
Peter Stockings
ba601c8085 Add cursor pointer styling to buttons 2022-11-20 12:55:20 +11:00
Peter Stockings
19e3255ad9 Convert edit topset form to htmx driven 2022-11-20 10:19:59 +11:00