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
52f8241054
Prevent flickering of empty lists on slow devices
2022-10-13 16:30:02 +13:00
Brandon Presley
636bfa35a4
Remove dates toggle from set item
...
This feature exists in the settings page,
so duplicating it here might be confusing to users.
2022-10-12 14:10:59 +13:00
Brandon Presley
3cbabb723a
Add sessions page
...
Related to #82
2022-10-05 23:38:52 +13:00
Brandon Presley
c1f5f62145
Add format to next page
2022-10-03 00:55:36 +13:00
Brandon Presley
93878f14e4
Fix image on new set prediction
2022-10-02 19:07:52 +13:00
Brandon Presley
ba3ed2a272
Revert "Revert "Add setting for showing date by default""
...
This reverts commit e1b7e80e2f
.
2022-10-02 18:07:43 +13:00
Brandon Presley
b0b804eae1
Use react context for settings
...
Closes #81
2022-10-01 16:01:07 +13:00
Brandon Presley
794504dee0
Use latest image for new sets
...
Previously, it would use the image from the best ranked set.
2022-10-01 15:36:30 +13:00
Brandon Presley
c8cedef8fb
Clear old workouts when predicting new set
...
Closes #73
2022-09-30 17:07:26 +13:00
Brandon Presley
c41b8438d3
Prevent counting hidden sets for prediction
...
Closes #71
2022-09-30 13:00:27 +13:00
Brandon Presley
374cbdf45d
Add set prediction settings
...
Closes #51
2022-09-29 14:44:01 +13:00
Brandon Presley
80553234bd
Revert "Show dates when searching for a set"
...
This reverts commit 7d532298b1
.
Actually prefer this being manual. Otherwise we might mess with
users who don't want the dates to be showing.
2022-09-28 14:07:06 +13:00
Brandon Presley
64d046fe8f
Simplify set prediction by returning early
2022-09-28 14:06:51 +13:00
Brandon Presley
7d532298b1
Show dates when searching for a set
...
When someone is looking for their history of an exercise,
they need when each set was entered as context. Otherwise
it is too hard to figure out which set is from when. Especially
if the sets are all the same or similar.
Closes #63
2022-09-27 17:44:43 +13:00
Brandon Presley
e1b7e80e2f
Revert "Add setting for showing date by default"
...
This reverts commit e8715162a0
.
2022-09-26 19:13:24 +13:00
Brandon Presley
e8715162a0
Add setting for showing date by default
...
Closes #52
2022-09-26 19:02:25 +13:00
Brandon Presley
235b806eeb
Fix counting current progress in a workout
2022-09-25 19:06:16 +13:00
Brandon Presley
1ee95021b9
Reduce logging in SetList
2022-09-25 18:12:42 +13:00
Brandon Presley
063425cd82
Use sql for counting todays sets in predictions
2022-09-25 18:05:15 +13:00
Brandon Presley
71d223f0a1
Add current workout progress to title of set editing
...
Related to #48
Should be thoroughly tested before closing.
2022-09-24 19:09:58 +12:00
Brandon Presley
39fafa353f
Split out some type definitions into their own files
2022-09-24 18:47:31 +12:00
Brandon Presley
f320d16c4b
Fix adding new set with no plan
...
Closes #36
2022-09-22 14:38:33 +12:00
Brandon Presley
0bc644a1ba
Add setting to show/hide unit field
...
Closes #34
2022-09-21 13:51:29 +12:00
Brandon Presley
85dd2b6d17
Move rest timer and sets per session settings to Workouts
...
Closes #32
2022-09-21 11:50:20 +12:00
Brandon Presley
1bd05e1c20
Add padding to bottom of list pages
2022-09-20 16:17:01 +12:00
Brandon Presley
e19b4aa84a
Make several logs one liners in SetList
2022-09-19 14:52:06 +12:00
Brandon Presley
052d000e12
Make padding & margin consistent everywhere.
2022-09-16 21:07:02 +12:00
Brandon Presley
d5c97b45b0
Revert "Show count when adding a new set"
...
This reverts commit 4aa91253a1
.
2022-09-09 15:32:47 +12:00
Brandon Presley
4aa91253a1
Show count when adding a new set
2022-09-08 22:33:32 +12:00
Brandon Presley
e3b3c6ca09
Split out database logic into service files
2022-09-04 16:56:46 +12:00
Brandon Presley
e483187338
Remove all loading logic
...
SQLite is so fast the spinners only mislead the user into thinking
these operations take long. They are practically instant.
2022-09-04 16:30:02 +12:00
Brandon Presley
259d36d67f
Move all database operations into db.ts
2022-09-04 15:28:21 +12:00
Brandon Presley
607f83955d
Replace react context with let statement in db.ts
...
1. I can't easily import context with my editor.
2. It's extra complexity everyone has to understand.
3. I hate the antichrist.
2022-09-04 14:05:25 +12:00
Brandon Presley
67a30a2360
Prevent errors when no sets are recorded today
2022-09-03 14:50:54 +12:00
Brandon Presley
7a7c8b20b9
Prioritize todays workout over the last set
...
When predicting the next set, if one set is from a previous workout,
rather than switching to that workout we should start todays plan
instead.
2022-09-03 14:48:56 +12:00
Brandon Presley
9006cc0dea
Add script to organize all imports
2022-09-02 12:33:53 +12:00
Brandon Presley
663d0f7ba4
Show images by default if they exist
2022-09-01 13:06:27 +12:00
Brandon Presley
756a2089e9
Prevent race condition with database migrations
2022-08-30 23:21:25 +12:00
Brandon Presley
f6dec0c3b2
Add images to sets
2022-08-28 20:55:12 +12:00
Brandon Presley
23d8c91c69
Add workouts page
...
The workouts page can be used to add a new type of workout,
or to edit the name of an already existing one.
Closes #1 .
2022-08-26 15:10:28 +12:00
Brandon Presley
2c9242b03f
Use react-native-paper snackbar instead of ToastAndroid
2022-08-25 13:01:01 +12:00
Brandon Presley
bc3a39c4b6
Show list of current workouts when adding set
2022-08-24 15:36:49 +12:00
Brandon Presley
0dcfc8eadf
Show next workout on EditSet page
2022-08-24 12:46:47 +12:00
Brandon Presley
75b71b5851
Replace usage of react-native-async-storage with sqlite
2022-08-24 12:01:39 +12:00
Brandon Presley
37803ad0d4
Set default set to 10x20kg
...
I want the default set to be the most common set a person might do
as a warm-up. 10x20kg might be a warmup for deadlifts where you
are just lifting the bar. Same goes for squats, romanian deadlifts or
rows.
2022-08-23 16:01:42 +12:00
Brandon Presley
05171434e4
Set default reps to 5 and weight to 1
2022-08-23 15:58:38 +12:00
Brandon Presley
4c185f0346
Add vibration setting for timers
2022-08-20 16:37:59 +12:00
Brandon Presley
6eacddf2d0
Use strftime in sqlite instead of new date
...
The javascript date method was messing up the timezones.
2022-08-18 12:08:03 +12:00
Brandon Presley
9e80df7865
Add toggle for showing dates in Set list
2022-08-08 15:34:33 +12:00