2aaaac1929
Fix sets added by plan not showing image
2022-11-02 14:41:30 +13:00
7b568d3b04
Format time based on setting when editing a set
2022-11-02 14:41:14 +13:00
156f1fc33f
Fix button color on snackbars
2022-11-02 13:39:51 +13:00
1f513f2a03
Update phone screenshots
2022-11-02 13:39:45 +13:00
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
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
0f6102f433
Make sure undo doesn't delete old items
2022-11-02 12:51:15 +13:00
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
2a868cc9ee
Add --nobuild option to install.sh
2022-11-02 12:42:50 +13:00
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
ffc0662171
Set versionCode=36081
2022-11-02 12:38:00 +13:00
0ed3b9817c
Add lighter purple color option
2022-11-02 12:36:48 +13:00
2c029b5f6a
Removed tests
2022-11-02 12:35:52 +13:00
18eaa9fc14
Adjust spacing of SettingsPage
2022-11-02 12:28:11 +13:00
202d34d785
Remove hard coded colors in MassiveFab
2022-11-02 12:26:46 +13:00
07a3d240ea
Set versionCode=36080
2022-11-01 20:12:48 +13:00
7a97b11e79
Remove React import from SetList
2022-11-01 20:01:04 +13:00
306f13214a
Remove --quiet from lint script
2022-11-01 20:00:51 +13:00
58b2990ab2
Ran lint fix on migrations
2022-11-01 20:00:24 +13:00
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
83852b3216
Apply eslint rules to js files
2022-11-01 19:59:33 +13:00
6a4d167e08
Fix error editing a workout
2022-11-01 19:25:05 +13:00
e9c2ee743e
Make purple the default primary color
2022-11-01 19:22:34 +13:00
949b435853
Split up state for SettingsPage
...
This improved performance when visually
toggling an option
2022-11-01 18:58:09 +13:00
6ac84d1d32
Fix mock-providers.tsx
2022-11-01 18:30:23 +13:00
6d49cbcc80
Remove redundant code from Routes.tsx
2022-11-01 16:55:36 +13:00
af9dcd0b13
Pass missing settings to SetItem from SetList
2022-11-01 16:54:14 +13:00
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
8d7fe149f5
Remove unused code
2022-11-01 16:11:39 +13:00
139d75493e
Memoize action in App.tsx
2022-11-01 16:08:02 +13:00
fadab1f30b
Fix colors of pickers in SettingsPage
2022-11-01 16:06:25 +13:00
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
ace327ecad
Remove vestiges of react-native-sqlite-storage
2022-11-01 12:30:31 +13:00
f56f0063c4
Turn off some eslint rules
2022-11-01 12:30:06 +13:00
3c4bba3f85
Fix infinite refreshing on first load of StartPlan
2022-11-01 12:29:54 +13:00
1a53fa324b
Remove redundant Color context
...
Settings already stores the color set by the user.
2022-10-31 21:32:33 +13:00
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
bdb27894f7
Optimize root context
2022-10-31 21:00:10 +13:00
b782d66bf2
Fix adding new set from homepage
2022-10-31 20:59:40 +13:00
09ee09f509
Ran prettier on __tests__
2022-10-31 20:58:51 +13:00
bd6b20fb4e
Add migration to drop old migrations table
2022-10-31 18:16:19 +13:00
eafad1f47e
Simplify migrations in App.tsx
2022-10-31 18:16:11 +13:00
bc7aca03e8
Remove semicolons from line endings
2022-10-31 17:22:08 +13:00
1bc145f60c
Allow failure of migrations
...
Since we are swapping from the old system to this system
sometimes the columns will be already existing.
These errors failing are OK since we haven't changed
any column types before.
2022-10-31 17:21:28 +13:00
e7321b6d8e
Add typeorm migrations
2022-10-31 17:05:31 +13:00
b7f1c2192e
Pause converting to typeorm due to odd error
...
ERROR TypeError: Cannot read property 'getItem' of undefined
This error is located at:
in FlatList (created by SetList)
in RCTView (created by View)
in View (created by Page)
in Page (created by SetList)
in SetList (created by SceneView)
...
I found an open issue on the react-native github which seems
related https://github.com/facebook/react-native/issues/31523
but after following all of their suggestions I still have the
same error. I tried:
- Removing @babel/plugin-proposal-class-properties & @babel/plugin-transform-flow-strip-types
- Adding @babel/plugin-transform-flow-strip-types
2022-10-31 13:20:36 +13:00
111ee4201f
Set versionCode=36079
2022-10-30 15:44:19 +13:00
294c6ee639
Send yarn lint & test to background
2022-10-30 15:43:27 +13:00
8ad6189dfc
Fix colors on header bar for light theme
2022-10-30 15:42:43 +13:00
9752aa9dd1
Set versionCode=36078
2022-10-30 15:35:31 +13:00