Commit Graph

33 Commits

Author SHA1 Message Date
Peter Stockings
3e110a7d4f Create endpoint that returns graphs of an overview of users workouts (Needs to be refactored) 2023-10-21 18:35:03 +11:00
Peter Stockings
dc13b05420 Rename some templates and convert remaining js to hyperscript 2023-10-20 20:04:07 +11:00
Peter Stockings
996e47d2b4 Remove js used to open/close workout list accordion for each user, also animate icon on open/close 2023-10-20 19:54:14 +11:00
Peter Stockings
c7974190ce Redirect to new workout page using <a> rather then js onlick handler (Not sure why I did this in the first place) 2023-10-20 19:45:00 +11:00
Peter Stockings
f340d1d3a9 Switch to using render_partial instead of include 2023-10-20 19:40:43 +11:00
Peter Stockings
b60f1a2445 Change sparkline to show duration of workouts daily displayed most recent on the left 2023-10-19 20:57:49 +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
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
8386789a2a Change icon to a bike 2023-10-13 15:57:15 +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
Peter Stockings
70cbb9af2b If a workout was tracked with a hear rate monitor heart rate graph will be selected by default, and average bpm will be rendered as well 2023-05-08 20:15:40 +10:00
Peter Stockings
5f1a5e6a4a Fix sparklines overflowing on mobile and move location to below users name 2023-05-01 22:58:30 +10:00
Peter Stockings
02a2c9552c Add duration sparkline on user workouts accordion 2023-03-30 21:00:16 +11:00
Peter Stockings
5baa91df82 Fix redirect to new workout page 2023-03-30 20:42:14 +11:00
Peter Stockings
114b501adf Set bike per workout and more style changes 2023-03-30 11:32:37 +11:00
Peter Stockings
7c655e9a2c Change select elements to tailwind element and add padding to workout list 2023-03-29 21:51:34 +11:00
Peter Stockings
a155613005 Improve users and workouts overview page WIP 2023-03-29 21:39:46 +11:00
Peter Stockings
9b43de849e Fix issue where updating graph list for a workout would update all workouts 2023-03-16 23:13:32 +11:00
Peter Stockings
699390c28a Add ability to choose graphs to render, speed by default 2023-03-16 23:09:37 +11:00
Peter Stockings
3c5661e7b2 Graph speed, distance, calories, & power (crashes locally, possible revert, will attempt to combine graphs) 2023-03-16 22:06:58 +11:00
Peter Stockings
65a6ac8287 Display total distance for workouts 2023-03-14 19:36:11 +11:00
Peter Stockings
ea010602b2 Display total calories for each workout 2023-03-14 19:26:33 +11:00
Peter Stockings
1532ac05c5 Remove unused attributes from workout list dom 2023-03-11 22:55:25 +11:00
Peter Stockings
dd6b5b95da Center workout graph image 2023-03-11 22:29:35 +11:00
Peter Stockings
f402839020 Add more details to user/workout delete confirmation 2023-03-11 17:31:51 +11:00
Peter Stockings
eb8c8c2532 Only fetch workout graphs when accordion is opened to reduce self dos'ing 2023-03-11 16:56:01 +11:00
Peter Stockings
3ccae605cf Add confirmation before deleting workout 2023-03-10 22:30:41 +11:00
Peter Stockings
de47debc3f Show uncollapse first workout accordion 2023-03-10 22:11:46 +11:00
Peter Stockings
11d350082d Minor changes 2023-03-10 21:54:46 +11:00