Brandon Presley
57883266b8
Hide rest timers on Workouts when alarms are off
...
Closes #172 .
2023-10-14 10:46:22 +13:00
Brandon Presley
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
Brandon Presley
07cb634883
Use plan title if one is set - 1.156 🚀
...
Closes #170
2023-09-07 14:51:38 +12:00
Brandon Presley
c480d3e382
Replace usage of deprecated DeviceEventEmitter - 1.155 🚀
2023-09-04 14:32:40 +12:00
Brandon Presley
c9773af92d
Add profiles dir to gitignore
2023-09-04 14:15:53 +12:00
Brandon Presley
9ae311b94a
Toggle selecting all for Plans and Workouts
2023-09-04 13:59:35 +12:00
Brandon Presley
ec72824e3c
Check for existence of `plans` and `workouts` - 1.154 🚀
2023-08-29 11:58:15 +12:00
Brandon Presley
0ba7616ea2
Prevent empty graphs flickering
...
If `bests` is always an empty array then our logic
for detecting zero graphs is wrong. Now when we haven't
loaded any data `bests` is undefined instead of []
2023-08-29 11:55:21 +12:00
Brandon Presley
4b1bbf2395
Refresh set list on focus if offset is zero - 1.153 🚀
2023-08-29 11:43:10 +12:00
Brandon Presley
7eabe63198
Fix offset in GraphsList
2023-08-29 11:30:25 +12:00
Brandon Presley
386a9a7bb2
Pass whole updated set instead of just its id
...
Since we already have the whole updated set,
might as well pass it around instead of
re-fetching it.
2023-08-29 11:25:05 +12:00
Brandon Presley
103ae5587d
Add missing keyExtractors
2023-08-29 11:22:15 +12:00
Brandon Presley
da72692616
Add missing keyExtractor to SetList
2023-08-29 11:17:14 +12:00
Brandon Presley
f1e8988e56
Fix multi-edit sets navigation
2023-08-28 18:14:52 +12:00
Brandon Presley
6b524dce34
Revert "Change way we detect set updates"
...
This reverts commit 185ebd1824
.
2023-08-28 18:12:15 +12:00
Brandon Presley
82234a30a8
Reload specific set when edited
2023-08-28 18:11:03 +12:00
Brandon Presley
185ebd1824
Change way we detect set updates
...
Every time we create/update/delete fire a DeviceEventEmitter
event for gym sets. Then we subscribe to the changes in relevant
components.
Also fixed flickering of "No data yet" on graphs page.
2023-08-24 17:30:57 +12:00
Brandon Presley
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
Brandon Presley
de25cead60
Toggle selecting all - 1.151 🚀
2023-08-22 12:09:04 +12:00
Brandon Presley
a9b69638a6
Fix color of progress bar in Timer page
...
React native paper update made the dark theme color into RGBA
instead of hex, so adding the string '80' no longer works.
2023-08-22 12:04:47 +12:00
Brandon Presley
94a5fa4ac7
Remove track color setting from Switch
...
This must have been considered a bug in the
React Native Paper codebase, but this was me fixing
the track color being wrong when system theme and app
theme weren't the same.
2023-08-22 11:53:12 +12:00
Brandon Presley
1367f74280
Fix README reference to old build outputs
...
Also removed the relevant docs section.
2023-08-22 11:47:08 +12:00
Brandon Presley
a294b76a4e
Add rocket ship to release commits 🚀
2023-08-22 11:44:24 +12:00
Brandon Presley
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
Brandon Presley
bd9746bddb
Remove yarn lint from deploy.sh - 1.149
2023-08-22 10:03:09 +12:00
Brandon Presley
dd609a20e5
Fix navigation after adding a set
2023-08-22 10:00:13 +12:00
Brandon Presley
d2cad451fe
Add migration for title
2023-08-22 09:58:48 +12:00
Brandon Presley
2a6ba3b36a
Undo change to plans migration
...
Correct migration files should never be updated.
For more information on how database migrations
work in TypeORM: https://orkhan.gitbook.io/typeorm/docs/migrations
2023-08-22 09:58:00 +12:00
Brandon Presley
0c5562a2f1
Merge branch 'master' of https://gitea.presley.nz/Nuice/Massive into Nuice-master
2023-08-22 09:51:46 +12:00
Brandon Presley
672931746b
Only reset SetList in certain situations
...
This reduces the jitter in the homepage
when you have scrolled down a significant
amount.
Related to #165 . Still need to do other
list pages.
2023-08-22 09:49:56 +12:00
Leon Babic
314b09017b
✨ Add title to Plan
2023-08-21 14:25:29 +02:00
Brandon Presley
8e42e9c3e4
Allow editing of multiple workouts
2023-08-14 16:03:07 +12:00
Brandon Presley
9fbae74a01
Merge branch 'master' into feature/multi-edit-workouts
2023-08-14 15:15:00 +12:00
Brandon Presley
331597e3ee
Add increment/decrement buttons to reps/weight - 1.148
...
Closes #164
2023-08-14 13:32:10 +12:00
Brandon Presley
dc5434991a
Pause adding multi-edit to workouts
...
Got up to the point where i'm find/replacing the
old names with new names, and I got confused
about the purpose of this feature.
2023-08-14 13:14:34 +12:00
Brandon Presley
79cde3a219
Use accurate theme color for switch text
...
Only if no custom color is provided
2023-08-14 10:55:24 +12:00
Brandon Presley
63e1db7349
Rename variable in SettingsPage
2023-08-14 10:50:44 +12:00
Brandon Presley
da17f8899c
Paginate graphs
...
Also factor out LIMIT constant
2023-08-14 10:42:15 +12:00
Brandon Presley
8648cf166e
Remove prettier from project deps
2023-08-13 20:58:36 +12:00
Brandon Presley
af96ec8507
Validate numbers in EditWorkout - 1.147
2023-08-12 15:41:32 +12:00
Brandon Presley
f51284e4ea
Validate and fix numbers in StartPlan
2023-08-12 15:30:47 +12:00
Brandon Presley
f778426aba
Run prettier
...
Something happened with the deno formatter,
I can't remember what! Hahahahahaahahaha
2023-08-12 15:23:02 +12:00
Brandon Presley
44283fc990
Validate reps+weight on EditSet
...
Numbers shouldn't contain dashes, spaces or commas.
2023-08-12 15:22:00 +12:00
Brandon Presley
c97ba1151e
Optimize GraphsList
...
Instead of getting a list of max weights,
then looping in JS to run SQL queries for max
reps, use a subquery.
2023-08-12 15:03:31 +12:00
Brandon Presley
95681c0b3d
Save plan before starting it
...
Also after saving it makes more sense to just
navigate to PlanList instead of calling
navigation.goBack(). This way we can make sure
we have up-to-date data.
The old way would typically lead to us seeing
stale data. E.g.
1. Tap on a plan
2. Tap on edit
3. Change details of the plan
4. Press save
5. See old plan
Now when we save we instead see the original list of plans.
2023-07-31 15:54:32 +12:00
Brandon Presley
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
Brandon Presley
e628d345ca
Reduce escaping of characters
2023-07-23 14:52:22 +12:00
Brandon Presley
85915b9aa0
Retrieve last set when running a plan - 1.145
...
Closes #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
Brandon Presley
9833752bab
Deno fmt
2023-07-20 14:55:19 +12:00
Brandon Presley
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