Commit Graph
26 Commits
Author SHA1 Message Date
Peter Stockings 7aa7f9b8dc Partial refactor of tags functionality
Still need to move tags db logic to BP and move workout tag logic to BP as well
2025-04-19 21:10:34 +10:00
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 f70438e4e4 Refactor dashboard 2025-01-27 14:46:20 +11:00
Peter Stockings d2c03cb81b Move person graphs down below title 2025-01-27 13:13:59 +11:00
Peter Stockings 0ed0c20e93 Add person graphs endpoint for workouts per week & PRs per week, consumed via dashboard, person overview and notes 2025-01-27 01:00:50 +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 ed1b91f9b7 Fix flicker caused by custom js select component being loaded 2024-04-11 18:12:51 +10:00
Peter Stockings fd04eb00b1 Clear dark classes on remaining inputs 2024-03-09 16:33:08 +11:00
Peter Stockings 2285e870fb Added graphs to show workouts & PR's per week on dashboard. However there is no tooltip on hover and I duplicated the svg spark line template (May combine the two) 2023-12-11 17:29:10 +11:00
Peter Stockings d0afd92126 Render svg graphs in initial response rather then requesting each graph individually. Initial load file size of dashboard will be larger, unsure if I will rollback this change 2023-12-09 23:10:13 +11:00
Peter Stockings f9b3854544 On dashboard display list of sets in descending order (start_date) with E1RM 2023-12-09 20:19:24 +11:00
Peter Stockings fd6ca240ee Refactor tag crud operations 2023-12-09 17:19:49 +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 cc31cb098d Add padding below the exercise progress graphs on dashboard view 2023-12-09 15:05:13 +11:00
Peter Stockings 69e502ca01 Completely remove dependency on plotly, undecided as to whether I should refactor dashboard/people views so they render graphs statically rather then using htmx to fetch on load, probably a smarter move but too lazy atm 2023-12-09 14:54:44 +11:00
Peter Stockings db8ae218fc Make dashboard form a bit more responsive 2023-12-08 20:06:39 +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 dc88375d8c Remove wrappers for calendar, dashboard, & person 2023-07-16 09:54:26 +10:00
Peter Stockings 3fd7a63d5e Add tags to dashboard 2023-03-31 22:06:53 +11:00
Peter Stockings 0b820eb66e Add options to configure filter options for dashboard(people, exercise, start/end date) 2023-03-21 00:11:13 +11:00
Peter Stockings 56ceb87867 Fix for filter not working after selecting a single exercise 2022-11-23 22:48:03 +11:00
Peter Stockings 41bfce9513 Make dashboard, person, settings page htmx driven 2022-11-23 22:39:57 +11:00