Commit Graph

662 Commits

Author SHA1 Message Date
Brandon Presley fcce1ad9ef Add native events to communicate the running timer
Closes #99
2022-11-03 20:04:15 +13:00
Brandon Presley 4a95ed050c Fix adding new set on fresh installs 2022-11-03 19:21:19 +13:00
Brandon Presley f52b1437f2 Fix edit set crashing on fresh installs 2022-11-03 19:09:50 +13:00
Brandon Presley 6f57b235d6 Merge branch 'master' into alarm-module 2022-11-03 19:01:09 +13:00
Brandon Presley aa2d146527 Fix color detection for MassiveFab 2022-11-02 16:38:42 +13:00
Brandon Presley a8fac1db69 Simplify adding from SetList 2022-11-02 15:46:45 +13:00
Brandon Presley e48e125499 Dont send git push to background in deploy.sh
If it fails we don't want to continue the script.
2022-11-02 15:41:48 +13:00
Brandon Presley 1d0d7c2fff Set versionCode=36082 2022-11-02 15:41:28 +13:00
Brandon Presley 2e5edb741e Fix linting issue in StartPlan 2022-11-02 15:40:25 +13:00
Brandon Presley 4873fcb653 Ran prettier 2022-11-02 15:39:17 +13:00
Brandon Presley 8835a3efd3 Prevent double initializing typeorm
App is re-mounted when the system theme is changed,
but the connection to the sqlite database stays active.
This means the previous code would fail to initialize
and then be a blank screen.
Closes #107
2022-11-02 15:37:32 +13:00
Brandon Presley 187a0fbc68 Only initialize typeorm if uninitialized 2022-11-02 15:22:57 +13:00
Brandon Presley 2aaaac1929 Fix sets added by plan not showing image 2022-11-02 14:41:30 +13:00
Brandon Presley 7b568d3b04 Format time based on setting when editing a set 2022-11-02 14:41:14 +13:00
Brandon Presley 156f1fc33f Fix button color on snackbars 2022-11-02 13:39:51 +13:00
Brandon Presley 1f513f2a03 Update phone screenshots 2022-11-02 13:39:45 +13:00
Brandon Presley f91d529f39 Add copy feature for plans
Long tap an existing plan, then press copy.
This will bring up a new plan to add with all
the same workouts/days as the one you have
copied.
2022-11-02 13:02:08 +13:00
Brandon Presley ffbefe7a4f Add feature to edit last set from plan
If you are working through a plan, and accidentally
save an incorrect set (e.g. 100 reps instead of 10),
now you can long tap the item, and press edit. This
is slightly easier than swapping back over to the
home page to edit the set. Also since I reused the
same EditSet component this wasn't very much work.
2022-11-02 12:58:57 +13:00
Brandon Presley 0f6102f433 Make sure undo doesn't delete old items 2022-11-02 12:51:15 +13:00
Brandon Presley 3bf2193d46 Remove needless double negation in StartPlan
We used to store the numbers as sqlite presented
the booleans, but now TypeOrm automatically converts
it into bools for us so we don't need to.
2022-11-02 12:43:01 +13:00
Brandon Presley 2a868cc9ee Add --nobuild option to install.sh 2022-11-02 12:42:50 +13:00
Brandon Presley 2dfbb7224f Remove parallel logic to deploy.sh
Didn't work anyway. Don't mind waiting a bit for deploys.
2022-11-02 12:42:32 +13:00
Brandon Presley ffc0662171 Set versionCode=36081 2022-11-02 12:38:00 +13:00
Brandon Presley 0ed3b9817c Add lighter purple color option 2022-11-02 12:36:48 +13:00
Brandon Presley 2c029b5f6a Removed tests 2022-11-02 12:35:52 +13:00
Brandon Presley 18eaa9fc14 Adjust spacing of SettingsPage 2022-11-02 12:28:11 +13:00
Brandon Presley 202d34d785 Remove hard coded colors in MassiveFab 2022-11-02 12:26:46 +13:00
Brandon Presley 07a3d240ea Set versionCode=36080 2022-11-01 20:12:48 +13:00
Brandon Presley 7a97b11e79 Remove React import from SetList 2022-11-01 20:01:04 +13:00
Brandon Presley 306f13214a Remove --quiet from lint script 2022-11-01 20:00:51 +13:00
Brandon Presley 58b2990ab2 Ran lint fix on migrations 2022-11-01 20:00:24 +13:00
Brandon Presley 0a2e0086b3 Add import React to App.tsx
Paper seemed to complain about it for some reason.
I thought one of the parts of using Hermes meant
I didn't need to import React?
2022-11-01 19:59:48 +13:00
Brandon Presley 83852b3216 Apply eslint rules to js files 2022-11-01 19:59:33 +13:00
Brandon Presley 6a4d167e08 Fix error editing a workout 2022-11-01 19:25:05 +13:00
Brandon Presley e9c2ee743e Make purple the default primary color 2022-11-01 19:22:34 +13:00
Brandon Presley 949b435853 Split up state for SettingsPage
This improved performance when visually
toggling an option
2022-11-01 18:58:09 +13:00
Brandon Presley 6ac84d1d32 Fix mock-providers.tsx 2022-11-01 18:30:23 +13:00
Brandon Presley 6d49cbcc80 Remove redundant code from Routes.tsx 2022-11-01 16:55:36 +13:00
Brandon Presley af9dcd0b13 Pass missing settings to SetItem from SetList 2022-11-01 16:54:14 +13:00
Brandon Presley 31f1528c35 Replace settings context with theme context
The settings context was having a big performance
impact on the app. We only truly need the theme + color
to be a global context.
2022-11-01 16:50:03 +13:00
Brandon Presley 8d7fe149f5 Remove unused code 2022-11-01 16:11:39 +13:00
Brandon Presley 139d75493e Memoize action in App.tsx 2022-11-01 16:08:02 +13:00
Brandon Presley fadab1f30b Fix colors of pickers in SettingsPage 2022-11-01 16:06:25 +13:00
Brandon Presley 49b5eb48c6 Refactor MassiveSnack
Instead of using a context for the whole app
use DeviceEventEmitter with root state.
This will probably improve performance,
since I think the react context was
re-rendering the entire DOM tree.
2022-11-01 15:55:37 +13:00
Brandon Presley ace327ecad Remove vestiges of react-native-sqlite-storage 2022-11-01 12:30:31 +13:00
Brandon Presley f56f0063c4 Turn off some eslint rules 2022-11-01 12:30:06 +13:00
Brandon Presley 3c4bba3f85 Fix infinite refreshing on first load of StartPlan 2022-11-01 12:29:54 +13:00
Brandon Presley 1a53fa324b Remove redundant Color context
Settings already stores the color set by the user.
2022-10-31 21:32:33 +13:00
Brandon Presley 13ca9cef3e Reword "maximum" as "target" for sets
There isn't any restriction involved in the sets
for each workout, it's more like a guide.
2022-10-31 21:00:53 +13:00
Brandon Presley bdb27894f7 Optimize root context 2022-10-31 21:00:10 +13:00