Commit Graph

31 Commits

Author SHA1 Message Date
Peter Stockings
6095e76f10 Here is a conventional commit message summarizing the refactoring work:
```
feat: Refactor calendar feature into blueprint

- Moved calendar logic from `features/calendar.py` and `app.py` into a new blueprint at `routes/calendar.py`.
- Removed the `Calendar` class and refactored logic into helper functions within the blueprint module for better organization and readability.
- Eliminated the `pandas` dependency for date range generation, using standard `datetime` operations instead.
- Resolved circular import issues between `db.py`, `extensions.py`, and `routes/calendar.py` by adjusting import locations.
- Corrected `url_for` calls in templates (`calendar.html`, `partials/people_link.html`) to reference the new blueprint endpoint (`calendar.get_calendar`).
- Fixed an `AttributeError` related to HTMX request checking in the calendar route.
- Corrected `AttributeError` related to `.date()` calls on `datetime.date` objects in view processing functions.
- Updated `templates/changelog/changelog.html` to document the refactoring and associated fixes.
```
2025-03-30 22:20:48 +11:00
Peter Stockings
5ed737ee94 Refactor stats endpoint so supports filtering people and make dashboard page utilise it 2025-01-27 00:07:27 +11:00
Peter Stockings
527395d704 Make stats refresh, and add filter support to stats endpoint 2025-01-26 23:01:39 +11:00
Peter Stockings
285175c29d Update previous page link for workout navbar 2024-11-10 18:09:22 +11:00
Peter Stockings
30ba59381c Add confirmation prior to deleting workout 2024-11-05 16:52:41 +11:00
Peter Stockings
8bb33f23fc Add mobile padding for navbar on workout page 2024-11-05 15:02:27 +11:00
Peter Stockings
1f0742bbc0 Add breadcrumb navigation to workout page 2024-11-04 22:51:27 +11:00
Peter Stockings
b5493e627c Fix tags, may have increased load on database while only using one query to fetch workout, topsets, and all tags 2024-11-04 22:33:08 +11:00
Peter Stockings
10326ccd7a Switch from using workout modal and change to workout page, still need to cleanup modal logic and templates. Need to fix workout tag functionality 2024-11-04 22:02:06 +11:00
Peter Stockings
7d43965289 Add ability to edit exercise name from new dropdown, still WIP as I need to handle exercise selection and make it a component 2024-11-04 12:07:47 +11:00
Peter Stockings
e756607dc8 Add WIP of exercise live search, just testing speed in prod site 2024-11-03 09:45:48 +11:00
Peter Stockings
817a6016e2 Create seperate page view for workout (WIP) 2024-11-02 23:09:26 +11:00
Peter Stockings
14e5195d37 Remove workout page 2022-12-04 21:25:08 +11:00
Peter Stockings
339781355d Make workout and person pages htmx driven 2022-11-24 21:19:16 +11:00
Peter Stockings
ff430dc956 Refactor workout start date component into template partial 2022-11-22 00:28:43 +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
Peter Stockings
a0c2eb856a Fix error where your unable to add a topset to a empty workout 2022-11-20 00:39:00 +11:00
Peter Stockings
08f45e41de Convert add/delete topset forms to htmx driven 2022-11-20 00:27:22 +11:00
Peter Stockings
3672951091 Convert workout start date form into htmx driven 2022-11-19 23:46:47 +11:00
Peter Stockings
21750f3562 Refactor stats into generic function 2022-11-19 13:32:44 +11:00
Peter Stockings
bb867d89b0 Improve styling on start date input for workouts 2022-11-17 22:09:41 +11:00
Peter Stockings
65f8ec9658 Add ability to update workout date 2022-11-17 22:03:36 +11:00
Peter Stockings
c16922be36 Migrate data and improve ui 2022-07-23 18:59:21 +10:00
Peter Stockings
2a8b72a881 Fix spelling of Exercise table/column 2022-07-20 21:27:11 +10:00
Peter Stockings
ee8245bb4c Refactor route validations to decorators 2022-07-20 21:15:50 +10:00
Peter Stockings
6e1f164ba9 Add api documentation with flasger 2022-07-19 22:04:46 +10:00
Peter Stockings
07f19b38c6 Add basic workout tracking functionality, create/edit/delete workouts and there topsets 2022-07-18 21:30:12 +10:00
Peter Stockings
83841d6369 Add page/route to display selected topset from a workout for a person 2022-07-16 16:47:28 +10:00
Peter Stockings
50231f5462 Add route to display selected workout for a person 2022-07-16 16:36:20 +10:00