Commit Graph

565 Commits

Author SHA1 Message Date
Brandon Presley 3be82e0b36 Default unit on volume labels to kg
Closes #100
2022-10-26 18:04:33 +13:00
Brandon Presley b19033b814 Add index to sets.created
Most queries will be filtering on created date
(showing todays sets, todays plans) so this
should speed up our queries.
2022-10-26 13:25:13 +13:00
Brandon Presley c9125575cc Set versionCode=36069 2022-10-23 19:15:56 +13:00
Brandon Presley 80b1a1ef56 Fix single views for new custom headers 2022-10-23 19:13:58 +13:00
Brandon Presley 36e6637ba2 Revert "Revert "Add custom app bar""
This reverts commit e84dd7bdea.
2022-10-23 12:35:58 +13:00
Brandon Presley 48bb4a34cf Set versionCode=36068 2022-10-23 12:33:54 +13:00
Brandon Presley e84dd7bdea Revert "Add custom app bar"
This reverts commit a664b65ce2.
2022-10-23 12:32:44 +13:00
Brandon Presley 2d9e561908 Set versionCode=36067 2022-10-23 12:28:37 +13:00
Brandon Presley a664b65ce2 Add custom app bar
The header bar provided by react-navigation was jumping on first
load, whereas this custom one doesn't.
2022-10-23 12:24:39 +13:00
Brandon Presley 149872ea7e Set versionCode=36066 2022-10-21 18:41:04 +13:00
Brandon Presley b95024abe0 Fix rest timers for newly edited Workouts
Previously if you were to add a new workout, then
add a set for that workout immediately afterwards,
the rest timers would be the default 3:30.
Now, they are the actual value set when creating the
workout.
2022-10-21 18:39:06 +13:00
Brandon Presley 4ba86be8af Set versionCode=36065 2022-10-19 20:01:16 +13:00
Brandon Presley 3cb6e8757b Make timer alarm have a stop button 2022-10-19 19:59:22 +13:00
Brandon Presley 88d751f13b Set versionCode=36064 2022-10-18 21:45:16 +13:00
Brandon Presley c73937396e Fix defaults for freshly installed app
Closes #95
2022-10-18 21:43:46 +13:00
Brandon Presley d21e7986e3 Add full screen android intent for alarm 2022-10-18 21:38:06 +13:00
Brandon Presley dc84fa5f6c Set versionCode=36063 2022-10-17 19:59:17 +13:00
Brandon Presley d723bd9745 Make date color grey
Closes #93
2022-10-17 19:57:18 +13:00
Brandon Presley db4f6fb482 Update phone screenshots 2022-10-16 17:34:55 +13:00
Brandon Presley ae947d5405 Wait for data before displaying workouts on plans
Closes #92
2022-10-16 17:20:13 +13:00
Brandon Presley c05a76ed1a Set versionCode=36062 2022-10-16 17:09:46 +13:00
Brandon Presley 5d5f586f7f Use theme colors for chart axes labels
Closes #89
2022-10-16 17:08:18 +13:00
Brandon Presley d23d489ec0 Set versionCode=36061 2022-10-16 16:59:55 +13:00
Brandon Presley 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
Brandon Presley 77db34b310 Add toggle for hiding maximum set count
Closes #90
2022-10-16 16:54:20 +13:00
Brandon Presley 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
Brandon Presley f078ede58a Get max sets for each workout in plan
Closes #91
2022-10-16 16:08:38 +13:00
Brandon Presley 7bd2254719 Set versionCode=36060 2022-10-16 14:39:18 +13:00
Brandon Presley 2fd9635e40 Add new record notification to plan 2022-10-16 14:38:01 +13:00
Brandon Presley 4d35d617e8 Change wording on new record notification 2022-10-16 14:37:31 +13:00
Brandon Presley b8c98babe6 Reword best weight and volume metrics
Previously we didn't have a period selector,
so the description was "Best weight per day"
and "Best volume per day". Now that the user
can also select the period (daily, monthly, yearly)
it doesn't make sense to label them as "per day".
2022-10-16 14:36:08 +13:00
Brandon Presley b89209b852 Update phone screenshots 2022-10-16 14:07:15 +13:00
Brandon Presley 3012b69e00 Add one rep max calculator for best graphs
I tried out a bunch of formulas as well as
having them as options, and I ended up liking
the Brzycki formula the most.
https://en.wikipedia.org/wiki/One-repetition_maximum#Brzycki
All of them produced similar trends (for me) and the one using
exponents wouldn't work with the SQLite version on android
(can't use POWER function). Also having all the options looked
kind of cluttered. If people ask for it I'll add the other ones
later.
2022-10-16 13:39:59 +13:00
Brandon Presley 0b041f9643 Stop timer if notification is dismissed
Closes #86
2022-10-16 13:08:37 +13:00
Brandon Presley 81deba0dbc Set versionCode=36059 2022-10-15 11:16:21 +13:00
Brandon Presley 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
Brandon Presley d97cdbfe99 Add plan start screenshot 2022-10-14 18:25:30 +13:00
Brandon Presley e3758e44e7 Delete accidental empty database massive.db 2022-10-14 18:23:56 +13:00
Brandon Presley cd424eba6e Set versionCode=36058 2022-10-14 18:22:08 +13:00
Brandon Presley bca65c90e6 Show dates in set edit screen 2022-10-14 18:20:30 +13:00
Brandon Presley 1d0dd70a49 Set versionCode=36057 2022-10-14 18:13:58 +13:00
Brandon Presley 9bd8fa9353 Replace height percent setting with flex: 1
This way reacts better to changing the screen sizes.
I think there was one bug where the fab wouldn't be
precisely at the bottom of the page depending on the
flat list length.
2022-10-14 18:12:21 +13:00
Brandon Presley 46f0875497 Create useSnackbar custom hook 2022-10-14 17:27:19 +13:00
Brandon Presley 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
Brandon Presley d80135d4ed Set versionCode=36056 2022-10-14 17:08:01 +13:00
Brandon Presley 2782d34a05 Use custom theme color for radio buttons 2022-10-14 17:06:23 +13:00
Brandon Presley c4e26e2560 Set versionCode=36055 2022-10-14 17:00:08 +13:00
Brandon Presley 861b5df9f4 Remove extra padding from workouts rest timers
Typically rest timers don't have double digit minutes.
This doesn't prevent that, but will save space 99% of the time,
and in the odd situation where a rest duration is >9 minutes
will be slightly uneven.
2022-10-14 16:57:08 +13:00
Brandon Presley b6665ed4b5 Use radio button for workouts on a plan 2022-10-14 16:55:12 +13:00
Brandon Presley 90f09e3a31 Reduce redundancy of workouts
Repeating the word sets and rest looks a bit
funny. This way leaves a bit to the imagination,
but looks simpler. If a user doesn't understand what
the description is talking about they will probably
just tap the item to read it.
2022-10-14 16:49:34 +13:00