9ae311b94a
Toggle selecting all for Plans and Workouts
2023-09-04 13:59:35 +12:00
ec72824e3c
Check for existence of plans
and workouts
- 1.154 🚀
2023-08-29 11:58:15 +12:00
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
4b1bbf2395
Refresh set list on focus if offset is zero - 1.153 🚀
2023-08-29 11:43:10 +12:00
7eabe63198
Fix offset in GraphsList
2023-08-29 11:30:25 +12:00
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
103ae5587d
Add missing keyExtractors
2023-08-29 11:22:15 +12:00
da72692616
Add missing keyExtractor to SetList
2023-08-29 11:17:14 +12:00
f1e8988e56
Fix multi-edit sets navigation
2023-08-28 18:14:52 +12:00
6b524dce34
Revert "Change way we detect set updates"
...
This reverts commit 185ebd1824
.
2023-08-28 18:12:15 +12:00
82234a30a8
Reload specific set when edited
2023-08-28 18:11:03 +12:00
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
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
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
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
1367f74280
Fix README reference to old build outputs
...
Also removed the relevant docs section.
2023-08-22 11:47:08 +12:00
a294b76a4e
Add rocket ship to release commits 🚀
2023-08-22 11:44:24 +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
dd609a20e5
Fix navigation after adding a set
2023-08-22 10:00:13 +12:00
d2cad451fe
Add migration for title
2023-08-22 09:58:48 +12:00
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
0c5562a2f1
Merge branch 'master' of https://gitea.presley.nz/Nuice/Massive into Nuice-master
2023-08-22 09:51:46 +12:00
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
314b09017b
✨ Add title to Plan
2023-08-21 14:25:29 +02:00
8e42e9c3e4
Allow editing of multiple workouts
2023-08-14 16:03:07 +12:00
9fbae74a01
Merge branch 'master' into feature/multi-edit-workouts
2023-08-14 15:15:00 +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
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
79cde3a219
Use accurate theme color for switch text
...
Only if no custom color is provided
2023-08-14 10:55:24 +12:00
63e1db7349
Rename variable in SettingsPage
2023-08-14 10:50:44 +12:00
da17f8899c
Paginate graphs
...
Also factor out LIMIT constant
2023-08-14 10:42:15 +12:00
8648cf166e
Remove prettier from project deps
2023-08-13 20:58:36 +12:00
af96ec8507
Validate numbers in EditWorkout - 1.147
2023-08-12 15:41:32 +12:00
f51284e4ea
Validate and fix numbers in StartPlan
2023-08-12 15:30:47 +12:00
f778426aba
Run prettier
...
Something happened with the deno formatter,
I can't remember what! Hahahahahaahahaha
2023-08-12 15:23:02 +12:00
44283fc990
Validate reps+weight on EditSet
...
Numbers shouldn't contain dashes, spaces or commas.
2023-08-12 15:22:00 +12:00
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
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
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
e628d345ca
Reduce escaping of characters
2023-07-23 14:52:22 +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
9833752bab
Deno fmt
2023-07-20 14:55:19 +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
82da62f699
Remove unused variable from ListMenu
2023-07-17 18:39:09 +12:00
36d3de401b
Fix a few instances of react/no-unstable-nested-components
2023-07-17 18:38:28 +12:00
040d588b5a
Ignore mock-providers.tsx
2023-07-17 16:46:23 +12:00
47d4532169
Fix .eslintrc.js
2023-07-17 16:45:21 +12:00