Commit Graph

385 Commits

Author SHA1 Message Date
d0c0a52ab4 Simplify logic of AlarmService.playSound
This probably won't fix the disabling sound bug.
2023-11-13 14:12:25 +13:00
79e462efc2 Fix app crashing when you change system theme
More specifically, this happens when you restore an
activity (not sure exactly when this happens).
2023-11-13 14:07:45 +13:00
84ff8a110b Improve responsiveness of timer page - 1.180 🚀 2023-11-12 23:37:58 +13:00
92dd65ffee Fix scrolling being broken on some list pages - 1.179 🚀 2023-11-12 22:37:43 +13:00
afed5f1d54 Reduce nesting of code within SettingsPage - 1.178 🚀
The code before needlessly factored out functions in functions
and made it impossible to read and change. Also it wasn't using a
FlatList which is a performance problem.
2023-11-12 19:11:20 +13:00
901cc72fbd Revert my work on surgically updating lists - 1.177 🚀
I tried to maintain the current scroll position
within a list however this caused many issues
to do with outdated data, as well as performance issues.
Now we are going back to just refreshing any list on focus.

Closes #184
2023-11-12 17:03:22 +13:00
706d4d1bbd Add duration setting to alarm vibrations - 1.176 🚀
Closes #179
2023-11-12 12:25:09 +13:00
75263af8b3 Add global progress bar for ongoing timer - 1.175 🚀
Closes #182
2023-11-12 11:54:19 +13:00
1ff6a87155 Update names list after re-ordering - 1.174 🚀
Closes #183
2023-11-12 11:28:30 +13:00
9cbe261938 Fix error creating new plans - 1.173 🚀 2023-11-11 00:15:30 +13:00
813928bdd3 Add permissions checks to SettingsPage - 1.172 🚀
Related to #177
2023-11-10 12:54:35 +13:00
6754e2a8ae Add two, three and six months to graphs - 1.171 🚀 2023-11-09 14:31:24 +13:00
2e96398b38 Enable re-ordering of workouts in EditPlan - 1.170 🚀
Closes #176
2023-11-09 13:01:05 +13:00
8a88c8e7af Make charts smooth and curvy - 1.169 🚀 2023-11-06 23:08:36 +13:00
43ab666540 Make it easier to read old sets on ViewSetList - 1.168 🚀
Now sets alternate background color based on the day
they were entered.
2023-11-06 15:29:23 +13:00
744ed928f0 Fix timer page flashing 00:00 on first navigate 2023-11-04 13:53:19 +13:00
347423698d Fix navigating to view graph from start plan - 1.167 🚀 2023-10-27 17:23:27 +13:00
7ea91eeca9 Add most active hours of the day to insights - 1.166 🚀 2023-10-26 21:36:32 +13:00
2428a51a02 Fix ViewWeightGraph - 1.165 🚀 2023-10-26 20:45:50 +13:00
805f982ccf Add graph button to start plan - 1.164 🚀 2023-10-24 16:24:56 +13:00
80dc5d2b63 Make start plan increment buttons hover - 1.163 🚀 2023-10-21 14:43:38 +13:00
a35aba7b97 Add select button to EditSet - 1.162 🚀
Closes #173
2023-10-21 13:24:14 +13:00
7928cab4c1 Swap to using MaterialCommunityIcons 2023-10-19 18:28:56 +13:00
12dfa923e5 Add delete button to edit set - 1.161 🚀 2023-10-19 17:58:34 +13:00
c88642b2ef Fix home page adding sets - 1.160 🚀 2023-10-18 10:45:40 +13:00
b4f6f12b1a Update bundle 2023-10-14 14:31:59 +13:00
edf54d047e Fix production error with undefined settings - 1.159 🚀 2023-10-14 10:56:46 +13:00
9867dee514 Simplify explanation toast for sound disabling - 1.158 🚀 2023-10-14 10:50:58 +13:00
adbc87f462 Prevent list jitter on graphs - 1.157 🚀
If we always refresh on focus then we will
be making many redundant requests, as well as
causing the list to jump around whenever we
navigate back/forward.
The only downside to this is occasionally the
data may be stale, however the user can just
pull down on the list to refresh.

Closes #165
2023-09-07 16:52:50 +12:00
07cb634883 Use plan title if one is set - 1.156 🚀
Closes #170
2023-09-07 14:51:38 +12:00
c480d3e382 Replace usage of deprecated DeviceEventEmitter - 1.155 🚀 2023-09-04 14:32:40 +12:00
ec72824e3c Check for existence of plans and workouts - 1.154 🚀 2023-08-29 11:58:15 +12:00
4b1bbf2395 Refresh set list on focus if offset is zero - 1.153 🚀 2023-08-29 11:43:10 +12:00
f0d5fc4fa6 Fix infinite scrolling in homepage - 1.152 🚀
Also prevent flickering of "No sets found"
message on first load.

The infinite scrolling issue was a side-effect
of me messing with our memoization. Some places
didn't specify their deps properly.
2023-08-22 12:27:27 +12:00
de25cead60 Toggle selecting all - 1.151 🚀 2023-08-22 12:09:04 +12:00
24fd687856 Add custom event for settings being updated - 1.150
When we used navigation params to decide whether
or not to update the SetList, we broke reacting to
settings changes. This is because we used to update settings
whenever the user navigated to the page.
2023-08-22 11:43:35 +12:00
bd9746bddb Remove yarn lint from deploy.sh - 1.149 2023-08-22 10:03:09 +12:00
331597e3ee Add increment/decrement buttons to reps/weight - 1.148
Closes brandon.presley/Massive#164
2023-08-14 13:32:10 +12:00
af96ec8507 Validate numbers in EditWorkout - 1.147 2023-08-12 15:41:32 +12:00
158dd61668 Prevent sets dissapearing after updating - 1.146
Previously we would always update the created
field by making a new Date object, even if
the user didn't pick a new date. On some
devices this might slightly change the time
of the day, meaning it jumps somewhere else
on the home page.
2023-07-27 13:31:50 +12:00
85915b9aa0 Retrieve last set when running a plan - 1.145
Closes brandon.presley/Massive#162

We should just keep it simple and get the most recent set instead of
trying to figure out what the best kind of maximum would be.
2023-07-23 13:59:11 +12:00
556347e632 Include date picker for new sets - 1.144
Not sure why I had this hidden,
probably made sense in the earlier
versions of this app.
2023-07-17 18:52:38 +12:00
9dc188e6ec Remove duplicated permission in AndroidManifest
Also add something to remove the "advertising ID"
or whatever the hell that means. (Thanks google?)
2023-07-17 18:43:15 +12:00
514efc6467 Upgrade react-native to 0.72.1
This unfortunately has broken the unit tests.
Will have to worry about fixing them later.
Everything seems to be working other
than that.
2023-07-07 13:17:19 +12:00
0beb1397a6 Hide play button from new plans - 1.143
It doesn't make sense to start a plan
that hasn't been created yet.
2023-07-04 11:20:07 +12:00
a5b6673e9a Don't auto-focus weight when editing a set - 1.142
I find myself opening up a set often to
just read the fields rather than changing
anything.
It makes sense to auto-focus the name for
a brand new set, since it's required and
typically what you first fill out.
2023-06-29 16:31:15 +12:00
6a7bd632e5 Add delete database button - 1.141
Semi-related to brandon.presley/Massive#160
If a user manages to import a database that ultimately
breaks the app elsewhere, deleting the database is a nice
tool to try and fix things.
2023-06-29 15:34:14 +12:00
23ed95dcdb Reduce debug logging in ViewBest - 1.140 2023-06-24 13:06:35 +12:00
8f1f9f6e7d Ran bundle update 2023-06-22 10:26:01 +12:00
bdd5e23f32 Change date formats to be day/month instead of month/day - 1.139
Also added the ISO one yyyy-mm-dd, time.
Closes #157.
2023-06-18 11:36:35 +12:00
9c9a5fdd63 Trim search queries - 1.138
Closes #156
2023-06-13 14:18:49 +12:00
90db607190 Easily swap between edit/start for plans - 1.137 2023-03-28 12:20:32 +13:00
db5cc566ea Remove double permissions request and fix import - 1.136 2023-03-27 14:45:28 +13:00
76e5aeacfd Choose directory when backing up automatically - 1.135
Related to #146.
2023-03-27 14:34:17 +13:00
d1342c0efa Update fastlane 2023-03-24 19:32:26 +13:00
288ae1ae0c Disable timers if rest time is set to zero - 1.134 2023-03-24 19:16:35 +13:00
0e7920bde9 Show a toast when EACCESS from backing up - 1.133
I don't like having a bunch of backups saying
massive (x).db. Also this masks the issue of permissions,
which is easily fixed by deleting/moving the old massive.db.
2023-03-24 17:51:16 +13:00
d2a1c432bb Handle EACCESS in BackupModule 2023-03-24 17:43:28 +13:00
5dd569ef72 Upgrade to react-native 0.70.2 - 1.132 2023-03-21 17:09:24 +13:00
79a48b1e47 Run automatic backups after database imports - 1.131 2023-03-09 18:48:32 +13:00
13b340f5be Add setting to automatically backup - 1.130
Every day at 6am (also immediately when toggled)
we will copy the massive.db file to the Download
directory.
2023-03-09 17:16:08 +13:00
4db820f10a Remove DownloadModule
This was no longer in use
2023-03-07 18:23:38 +13:00
7b401388b5 Get last now excludes todays sets - 1.129
Otherwise the minute you enter something it
becomes the last set. Much more useful to be
showing yesterdays working set instead.
2023-03-06 18:32:32 +13:00
c9b1ab1f9d Change default reps/weight for starting a plan - 1.128
Previously we used the globally best reps+weight
set by default. More commonly we build up to our
last best working set. People can still check out
their best sets on the best page.

Closes #153
2023-03-02 19:11:24 +13:00
00d4edcfc3 Request FOREGROUND_SERVICE permission - 1.127
Related to #142
2023-02-24 19:30:48 +13:00
8dd8f786ef Round graphs to 2dp - 1.126
Closes #152
2023-02-22 19:44:23 +13:00
a84cab6bbf Optimize batteries after importing database - 1.125
Closes #151
2023-02-14 16:50:14 +13:00
f4db61aeec Fix unit tests - 1.124 2023-02-14 16:41:30 +13:00
a03731c6ff Prevent empty flicker on best view - 1.122 - 1.123
Closes #148
2023-02-13 10:43:03 +13:00
1a75d8897d Skip deploy checks for -n flag - 1.119 2023-02-04 14:16:31 -07:00
de2aa67e6e Version 1.118 2023-01-26 20:04:53 -07:00
28ec021258 Fix copying sets - 1.117
Related to #143
2023-01-17 10:22:21 -07:00
04ef72e48b Fix unit tests - 1.116 2023-01-08 18:10:24 +13:00
e7f85a9954 Add date/time picker to EditSet - 1.115 2023-01-08 18:02:17 +13:00
6438a9c48a Use the same colors as switch for timer page - 1.114 2023-01-08 14:00:27 +13:00
73d9b1c617 Remove duplicate git push from deploy.sh - 1.113
We already do a git push at the end.
2023-01-05 16:43:56 +13:00
7bee8ae732 Try amending last commit for deployment script - 1.112
By including the version name in the last commit,
if that commit references an issue users now know
what version number to expect the fix in.
2023-01-05 16:40:10 +13:00
069f770c96 Set versionCode=36137 2023-01-04 13:47:22 +13:00
cffc458338 Start alarms as a foreground service
Related to #142.
Can't be sure this fixed anything because I can't replicate the error
on my emulators running android 13. I need to install android 13
on a real device and try replicate + see if this fixes it.
2023-01-03 17:04:51 +13:00
05237fc293 Set versionCode=36136 2023-01-03 15:15:33 +13:00
705052f1b4 Set versionCode=36135 2023-01-03 11:33:43 +13:00
67689f4af8 Set versionCode=36134 2023-01-02 18:56:53 +13:00
a2721e9f12 Use sqlite in Android code for alarm settings
Closes #129
2023-01-02 18:54:35 +13:00
9287c31e70 Update fastlane 2023-01-01 13:47:04 +13:00
5612df5d8c Set versionCode=36133 2023-01-01 13:46:26 +13:00
d71ad8c170 Set versionCode=36132 2023-01-01 13:18:13 +13:00
0be8f03133 Set versionCode=36131 2022-12-30 20:40:15 +13:00
e51aad21f3 Set versionCode=36130 2022-12-30 20:31:34 +13:00
7f1513f0a5 Set versionCode=36129 2022-12-30 13:37:42 +13:00
a9266ba77b Set versionCode=36128 2022-12-29 20:11:34 +13:00
7bf802ea45 Set versionCode=36127 2022-12-29 16:43:16 +13:00
b33a829816 Set versionCode=36126 2022-12-27 00:39:22 +13:00
a9b86fb555 Set versionCode=36125 2022-12-24 20:10:26 +13:00
8625ca2189 Set versionCode=36124 2022-12-24 13:13:55 +13:00
d89721c718 Set versionCode=36123 2022-12-23 18:35:11 +13:00
75f2a8269a Set versionCode=36122 2022-12-18 18:28:04 +13:00
faeb5ee1e0 Set versionCode=36121 2022-12-18 14:24:20 +13:00
f02249e254 Set versionCode=36120 2022-12-17 16:50:00 +13:00
c1b63815a2 Set versionCode=36119 2022-12-15 16:44:49 +13:00
fcd1a4146e Set versionCode=36118 2022-12-14 18:57:05 +13:00