Commit Graph

22 Commits

Author SHA1 Message Date
Peter Stockings
57753fc2fc Persists list of rendered user graphs in db, graph is removed list on click 2023-10-24 21:29:52 +11:00
Peter Stockings
b128ede9d0 Change default user graphs from hardcoded to loaded from user object as array,TODO: perhaps store loaded graphs for each user 2023-10-24 20:31:56 +11:00
Peter Stockings
bf1ea4d32d Add duration in minutes option to user overview graph, this section needs a refactor - too many layers of abstraction thanks to chatgpt 2023-10-23 22:05:48 +11:00
Peter Stockings
e96001edf4 Add default graph showing average rpm/bpm over week, and remove default selected attribute 'workout_count' 2023-10-22 14:29:21 +11:00
Peter Stockings
32643a0ba8 Change user overview graph form so it updates on newly added Add button click, which now adds images in a list. Clicking on generated graph images in list removes them from dom 2023-10-21 22:15:41 +11:00
Peter Stockings
a111292dbc Remove search filter on attributes & periods dropdowns for user overview graph form 2023-10-21 21:51:11 +11:00
Peter Stockings
2f16d926e1 Add title to user overview graphs 2023-10-21 21:20:59 +11:00
Peter Stockings
07ad592895 Add form to create user overview graphs 2023-10-21 19:20:49 +11:00
Peter Stockings
f340d1d3a9 Switch to using render_partial instead of include 2023-10-20 19:40:43 +11:00
Peter Stockings
8fe110d159 Minor style update to workout list accordion, removed background and padding 2023-10-19 20:38:23 +11:00
Peter Stockings
dcff73d85e Fix bug where clicking on a workout will always show the same workout in accordion 2023-10-16 14:22:23 +11:00
Peter Stockings
fecd4a08d1 Minor styling changes for calendar 2023-10-13 22:48:06 +11:00
Peter Stockings
797fc19a75 When a day with a workout is selected a workout overview is rendered 2023-10-13 22:15:37 +11:00
Peter Stockings
9b0d37fa6a Minor refactor to calendar template 2023-10-13 20:57:41 +11:00
Peter Stockings
f17bfb7408 Minor stlying change 2023-10-13 20:22:50 +11:00
Peter Stockings
6add399c3c Format workout stats better 2023-10-13 20:18:02 +11:00
Peter Stockings
339b8722fc Hide button to load more workouts when all workouts have been fetched 2023-10-13 19:17:40 +11:00
Peter Stockings
9b43d7a8f4 Revert logic for lazy loading workout list, instead just load it all when requested 2023-10-13 19:05:58 +11:00
Peter Stockings
b23e6064d7 By default only load 5 most recent workouts for list, but on click of button at bottom load them all 2023-10-13 18:52:47 +11:00
Peter Stockings
cd03256245 Allow user to browse next/prev month on calendar 2023-10-13 17:27:06 +11:00
Peter Stockings
c7598f970d Show workouts on monthly calendar, not yet interactive (Will make it so you can change month and select workout to view on click) 2023-10-13 16:56:23 +11:00
Peter Stockings
861d83f828 Change look of users list of workouts, added month calendar (static for now), & and added in hyperscript (will switch to using this for client side stuff) 2023-10-13 15:56:56 +11:00