Commit Graph

64 Commits

Author SHA1 Message Date
6238b47e6a Fix plan not activating on radio button press
If you touched the radio button instead of the workout
item itself, it wouldn't toggle.
2022-10-16 16:57:23 +13:00
77db34b310 Add toggle for hiding maximum set count
Closes #90
2022-10-16 16:54:20 +13:00
3714db438e Fix max number of sets for plan
Previously we were trying to get the max # of sets
from our query on the number of sets completed for today.
This meant if we hadn't completed any sets today, we would
get no result for that workout.
2022-10-16 16:46:38 +13:00
f078ede58a Get max sets for each workout in plan
Closes #91
2022-10-16 16:08:38 +13:00
2fd9635e40 Add new record notification to plan 2022-10-16 14:38:01 +13:00
6d29ac09be Remove auto focus on reps for starting a plan
Doesn't feel right to open the reps immediately on
a page with so much content. The keyboard hides some of the
stuff on the bottom. Also I find myself opening a plan up just
to see what's on that day rather than editing right away.
2022-10-15 11:14:02 +13:00
46f0875497 Create useSnackbar custom hook 2022-10-14 17:27:19 +13:00
8461f86e88 Wrap color context with useColor custom hook
I find it easier to import hooks by useX instead of
useContext(X). Like how the navigation library is just
useNavigation
2022-10-14 17:24:02 +13:00
2782d34a05 Use custom theme color for radio buttons 2022-10-14 17:06:23 +13:00
b6665ed4b5 Use radio button for workouts on a plan 2022-10-14 16:55:12 +13:00
ca09613d9b Include set image when adding a set from plan
If a user has set an image for a workout, then adding
a set should include it's image.
2022-10-12 17:17:47 +13:00
3b0391310b Visually select first workout in plan by default 2022-10-12 17:17:28 +13:00
5901722f22 Use flat list instead of chips for workouts 2022-10-12 14:51:30 +13:00
e0b84af9e7 Move sessions page functionality onto Plan page
The sessions page mostly copied the exact same features as Plans,
which would confuse the user.
2022-10-12 14:07:48 +13:00