Brandon Presley
5e37490c2d
Add react-hook-form for settings page
...
This seems to have improved performance.
Related to #135 .
2022-12-30 15:47:12 +13:00
Brandon Presley
7f1513f0a5
Set versionCode=36129
2022-12-30 13:37:42 +13:00
Brandon Presley
14edb66e28
Add common date formats
...
Add yyyy-MM-d and yyyy.MM.d formats
Closes #139
2022-12-30 13:35:11 +13:00
Brandon Presley
3ed2d4f0cd
Never pass falsy value to date format
...
Closes #141
After adding TypeORM I had to remove the strict checking in TypeScript.
This leads to null errors such as this. Kind of annoying, but I think
the large reduction in code from adding TypeORM is worth it. We
shall see...
2022-12-30 13:30:13 +13:00
Brandon Presley
e430873771
Remove commented code from jestSetup
2022-12-30 12:35:19 +13:00
Brandon Presley
a9266ba77b
Set versionCode=36128
2022-12-29 20:11:34 +13:00
Brandon Presley
051df31925
Fix inactive track color on mismatched themes
...
Before if your system theme was dark and your app
theme was set to light, the track colors were wrong.
2022-12-29 19:30:26 +13:00
Brandon Presley
a3138c48b5
Combine several state operations in SettingsPage
2022-12-29 18:20:40 +13:00
Brandon Presley
2b302bab73
Move theme line of SettingsPage
...
Because I am schizophrenic.
2022-12-29 17:28:31 +13:00
Brandon Presley
7bf802ea45
Set versionCode=36127
2022-12-29 16:43:16 +13:00
Brandon Presley
5115055280
Reword MassiveX as AppX
2022-12-29 13:57:19 +13:00
Brandon Presley
41ed9464c9
Use single settings object for state
...
Since all this state was being set at the same time,
on load, it makes more sense to have it as a single state.
Also they are all connected to the same table so it makes more
sense this way.
Also, I removed the use focus effect in favor of just a
use effect which runs on mount. The things being refreshed here
weren't very important to be updated frequently, and focus effect
has a cost on performance.
2022-12-29 13:52:38 +13:00
Brandon Presley
596b695c5b
Remove unlabelled log from StartPlan
2022-12-28 15:00:00 +13:00
Brandon Presley
c664a9603c
Add missing toasts to some settings
...
- Date format
- Dark color
- Light color
2022-12-28 14:59:39 +13:00
Brandon Presley
186b7e0fe9
Remove ios check from SettingsPage
...
These things are pointless unless I
can get the app deployed to the iOS store.
2022-12-28 14:59:19 +13:00
Brandon Presley
d6e7d6158c
Make sure alarms aren't on with app being optimized
...
If battery optimizations are on for the app,
alarms will have several unpredictable bugs.
For example, sometimes sounds won't play,
sometimes re focuisng the app won't work.
2022-12-28 14:56:29 +13:00
Brandon Presley
2c6a773548
Change alarm sound toast
...
Closes #137
2022-12-28 14:15:02 +13:00
Brandon Presley
b33a829816
Set versionCode=36126
2022-12-27 00:39:22 +13:00
Brandon Presley
85ea20640d
Fix migrations on android 10
...
Closes #136
2022-12-27 00:29:45 +13:00
Tiffany Barclay
2176acd924
Clean up timer page styling
...
Closes #110
2022-12-25 01:05:48 +13:00
Tiffany Barclay
7e81424f60
Merge branch 'master' of gitea.presley.nz:brandon.presley/Massive
2022-12-25 00:44:26 +13:00
Tiffany Barclay
736cee5ccd
Remove react-native-picker
2022-12-25 00:41:25 +13:00
Brandon Presley
a9b86fb555
Set versionCode=36125
2022-12-24 20:10:26 +13:00
Brandon Presley
60cc619e39
Move button filter to memoized call
...
This reduces re-renders
2022-12-24 19:58:55 +13:00
Brandon Presley
48432188c3
Simplify Switch.tsx
2022-12-24 19:55:38 +13:00
Brandon Presley
27b7e91e91
Factor out buttons in SettingsPage
2022-12-24 13:36:11 +13:00
Brandon Presley
fc6f5e3b53
Add missing key prop to SettingsPage
2022-12-24 13:18:03 +13:00
Brandon Presley
8625ca2189
Set versionCode=36124
2022-12-24 13:13:55 +13:00
Brandon Presley
250335800f
Move clear button after select all
2022-12-24 13:10:40 +13:00
Brandon Presley
d89721c718
Set versionCode=36123
2022-12-23 18:35:11 +13:00
Brandon Presley
930ebdc9ca
Move clear after select all
2022-12-23 18:32:46 +13:00
Brandon Presley
777eddf943
Remove usage of FlatList in Settings page
...
Doing so looks like it improved the performance
of the switches.
Related to #135 .
2022-12-22 19:18:44 +13:00
Brandon Presley
e5d9f5fa92
Add select all button
...
Very useful final addition to the multi edit/delete function.
Typically a user will search for certain criteria, and then select
them all to be removed/edited. For example, if yesterdays sets were all
10x150kg deadlifts, but you review your form video and decide the form
sucked, you would want to mass edit them to lower the weight/reps (or
maybe delete them). This way you won't have these invalid entries
ruining all your progress graphs (showing false progress).
2022-12-22 17:10:14 +13:00
Brandon Presley
fb19685bb5
Change delete menu title if selected
...
Closes #133
2022-12-22 16:18:27 +13:00
Brandon Presley
f9e357ff80
Factor out list menu
2022-12-21 13:02:53 +13:00
Brandon Presley
75f2a8269a
Set versionCode=36122
2022-12-18 18:28:04 +13:00
Brandon Presley
f714941c88
Fix deleting a second time
...
Previously we didn't clear the id list.
This meant if you deleted multiple sets
multiple times, it would break.
2022-12-18 18:25:30 +13:00
Brandon Presley
faeb5ee1e0
Set versionCode=36121
2022-12-18 14:24:20 +13:00
Brandon Presley
fa19434e77
Refactor DrawerMenu
...
Closes #132
2022-12-18 13:23:10 +13:00
Brandon Presley
888ae576b0
Reduce state in SetList
...
The `set` state here was just a copy of the first element
of `sets`.
2022-12-18 12:48:20 +13:00
Brandon Presley
f02249e254
Set versionCode=36120
2022-12-17 16:50:00 +13:00
Brandon Presley
a7099a205c
Move edit in drawer menu to be first
2022-12-17 16:45:23 +13:00
Brandon Presley
1273b6a6d8
Reduce state in StartPlan
...
Fixes several issues related to old data.
2022-12-17 16:44:11 +13:00
Brandon Presley
86566fb54d
Allow tapping copy with multiple selected
...
If multiple are selected, copy will duplicate the
last item that was selected.
2022-12-17 14:06:10 +13:00
Brandon Presley
c1b63815a2
Set versionCode=36119
2022-12-15 16:44:49 +13:00
Brandon Presley
a1440b680f
Fix ripple color for dark theme
2022-12-15 16:43:00 +13:00
Brandon Presley
fcd1a4146e
Set versionCode=36118
2022-12-14 18:57:05 +13:00
Brandon Presley
7483a504ee
Fix typescript errors
2022-12-14 18:54:20 +13:00
Brandon Presley
8122694c10
Clear selected when editing/copying
2022-12-14 14:02:11 +13:00
Brandon Presley
71d4ad805c
Add button to clear multi selection
2022-12-14 13:02:18 +13:00