Commit Graph

23 Commits

Author SHA1 Message Date
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
259d36d67f Move all database operations into db.ts 2022-09-04 15:28:21 +12:00
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
67a30a2360 Prevent errors when no sets are recorded today 2022-09-03 14:50:54 +12:00
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
9006cc0dea Add script to organize all imports 2022-09-02 12:33:53 +12:00
663d0f7ba4 Show images by default if they exist 2022-09-01 13:06:27 +12:00
756a2089e9 Prevent race condition with database migrations 2022-08-30 23:21:25 +12:00
f6dec0c3b2 Add images to sets 2022-08-28 20:55:12 +12:00
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
2c9242b03f Use react-native-paper snackbar instead of ToastAndroid 2022-08-25 13:01:01 +12:00
bc3a39c4b6 Show list of current workouts when adding set 2022-08-24 15:36:49 +12:00
0dcfc8eadf Show next workout on EditSet page 2022-08-24 12:46:47 +12:00
75b71b5851 Replace usage of react-native-async-storage with sqlite 2022-08-24 12:01:39 +12:00
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
05171434e4 Set default reps to 5 and weight to 1 2022-08-23 15:58:38 +12:00
4c185f0346 Add vibration setting for timers 2022-08-20 16:37:59 +12:00
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
9e80df7865 Add toggle for showing dates in Set list 2022-08-08 15:34:33 +12:00
3377365590 Predict next set earlier 2022-08-06 14:49:30 +12:00
ad907a83c3 Use stack navigation for Best 2022-07-11 13:00:17 +12:00
e72cdc8db7 Make plans use stack navigation 2022-07-11 12:28:30 +12:00
6b8780c62e Add confirm dialog to deleting all data 2022-07-11 11:26:45 +12:00