Commit Graph

137 Commits

Author SHA1 Message Date
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
c18beba563 Add 90s timeout to gunicorn to attempt to avoid startup loop error(Matplotlib is building the font cache -> Worker timeout) 2023-09-14 18:30:06 +10:00
Peter Stockings
f251240dc8 Check if weekly workouts is zero before calculating duratio by week to avoid division by zero error 2023-09-14 18:20:12 +10:00
Peter Stockings
60a7ec3d15 Attempt to parse date string as ISO 2023-07-31 13:22:39 +10:00
Peter Stockings
38867a234a Minor refactor to workout submission handling of hear rate readings 2023-07-31 13:09:56 +10:00
Peter Stockings
6628d8a40f Js date is being sent as a string and therefore when attempting to calculate duration an error is thrown 2023-07-31 13:07:17 +10:00
Peter Stockings
c826b9180a Fix for error introduced in last commit where submitting workout attempts to access misnamed properties 2023-07-31 12:55:37 +10:00
Peter Stockings
27d3fbf681 When a new workout is created, calculate and persist distance, calories, average, min, max rpm|bpm etc (Need to test this) 2023-07-29 20:39:34 +10:00
Peter Stockings
2e37b1e22a Read distance, calories, max_rpm, min_rpm, average_rpm etc from workout rather then recalculating on each render, still need to modify add workout endpoint to calculate properties and set on workout 2023-07-29 20:24:41 +10:00
Peter Stockings
a4004c6e00 Minor refactor 2023-07-13 16:10:19 +10:00
Peter Stockings
6954882a62 Dont redirect to home page after successfully comitting workout 2023-07-13 16:07:52 +10:00
Peter Stockings
a0e66280f5 Update graph on new heart rate reading(Most likely will cause performance issues, need to monitor) 2023-05-13 23:12:32 +10: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
786b068874 Delete workout associated heart rate readings 2023-05-08 19:55:09 +10:00
Peter Stockings
01078d6b08 Live plot cadence and heart rate when both devices are connected and display heart rate graph in workout view 2023-05-07 21:36:48 +10:00
Peter Stockings
43e5f66cc1 Add ability to connect to hear rate sensor and post data back to server on workout complete, currently not rendering graphing data 2023-05-07 18:15:31 +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
9b9b899177 Fix errors due to package urls changing on cdn 2023-04-15 20:15:20 +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
7021ee14cf Fix issue where screen would eventually turn off if you switched apps and then came back 2023-03-25 20:25:22 +11:00
Peter Stockings
b06c6281b4 Attempt to keep screen unlocked 2023-03-22 17:47:31 +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
c3bf6c7ee3 Display calories & distance as integers for each workout 2023-03-15 13:33:42 +11:00
Peter Stockings
db655431e8 Fix issue where duration on new workout page incorrectly formats seconds 2023-03-15 13:30:52 +11:00
Peter Stockings
fc26a89793 Minor cleanup 2023-03-14 20:16:59 +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
e75c45b419 Update watts -> power 2023-03-14 14:08:22 +11:00
Peter Stockings
faf9b82137 Add options to choose type of bike, and also persist distance, power, calories, speed to db 2023-03-14 10:19:37 +11:00
Peter Stockings
f1c89e967a Fix error thrown during calorie tracking 2023-03-12 11:07:42 +11:00
Peter Stockings
d7fd30a3c8 Add sql script to generate tables 2023-03-11 22:55:43 +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
879a83fd9e Minor style changes 2023-03-11 22:17:38 +11:00
Peter Stockings
2a3c5f6eb1 push distance, watts, calories, & speed to api (not yet persisting it) 2023-03-11 22:17:21 +11:00
Peter Stockings
dd76d01e3d Using rpm->speed/power functions display distance, calories, speed and power (Not yet sending to backend,, need to confirm this is working first) 2023-03-11 21:51:33 +11:00
Peter Stockings
a0210ec9a5 Add rpm -> speed/power for 6 air bikes (Including Assault Air Bike) 2023-03-11 21:50:18 +11:00
Peter Stockings
aa869a3acc Add top padding to navbar title 2023-03-11 17:37:27 +11:00
Peter Stockings
f402839020 Add more details to user/workout delete confirmation 2023-03-11 17:31:51 +11:00
Peter Stockings
0625b1e3bf Remove unused graph file and packages 2023-03-11 17:24:12 +11:00
Peter Stockings
762af9caef Move add user form from navbar to under user list and add icon to navbar 2023-03-11 17:21:56 +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