Brandon Presley
c2accf7202
Show delete button when sets are selected
2024-02-21 17:56:37 +13:00
Brandon Presley
9b881c3d58
Change logging
...
1. Remove a few needless logs
2. Label where the logs are coming from
2024-02-07 17:31:13 +13:00
Brandon Presley
1b164aaaf1
Remove loading indicator where load times are fast
...
If the load time is too fast (on a mid-tier device),
then for most people they will see a flicker of a
loading spinner (which looks like a bug). These indicators
would only marginally improve the experience of people with
the slowest devices, but for most people this will just look
like a bug.
I left the indicators in the InsightsPage since those queries
actually do take >=300ms on a mid-tier device.
2023-11-15 15:53:32 +13:00
Brandon Presley
ba24649a52
Organize imports
2023-11-15 11:21:49 +13:00
Brandon Presley
70a318a0a4
Add activity indicator for SetList
2023-11-15 11:19:22 +13:00
Brandon Presley
d8eba22914
Rename Home -> History
...
Although it is very common to have a Home page,
I would rather have every pages name describe
generally what it is.
2023-11-13 18:29:07 +13:00
Brandon Presley
1ac78de724
Fix some database drift
2023-11-13 18:13:23 +13:00
Brandon Presley
49646c3107
Reduce default limit back to 15
...
The feeling of scrolling was nice but a page size of 50
makes the main page a bit slower which isn't worth it.
2023-11-13 17:11:00 +13:00
Brandon Presley
054ae4557d
Make page size bigger (15->50) and fetch next page earlier
...
This project is a little bit slow to get the pages,
so it makes sense to fetch things earlier and to
get them in bigger chunks.
2023-11-12 22:51:42 +13:00
Brandon Presley
92dd65ffee
Fix scrolling being broken on some list pages - 1.179 🚀
2023-11-12 22:37:43 +13:00
Brandon Presley
ef63fcf470
Organize all imports
2023-11-12 17:05:37 +13:00
Brandon Presley
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
Brandon Presley
9cd205686f
Remove redundant code from SetList
2023-10-28 16:12:37 +13:00
Brandon Presley
e8ee4a253e
Migrate from Drawer -> Stacks to Stack -> Drawer
...
This simplifies our codebase greatly by
only having a single stack navigator and
a single drawer navigator. Previously we had
a stack navigator for every main page on the drawer.
2023-10-28 15:59:25 +13:00
Brandon Presley
a3b376badb
Use events for gym set CRUD
2023-10-18 19:06:13 +13:00
Brandon Presley
c88642b2ef
Fix home page adding sets - 1.160 🚀
2023-10-18 10:45:40 +13:00
Brandon Presley
4cca538d74
Fix listing workouts from plan page
2023-10-18 10:17:50 +13:00
Brandon Presley
22f5f3c9ee
Only show loading on pull-down for SetList
2023-10-18 09:56:09 +13:00
Brandon Presley
c480d3e382
Replace usage of deprecated DeviceEventEmitter - 1.155 🚀
2023-09-04 14:32:40 +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
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
da72692616
Add missing keyExtractor to SetList
2023-08-29 11:17:14 +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
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
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
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
da17f8899c
Paginate graphs
...
Also factor out LIMIT constant
2023-08-14 10:42:15 +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
4303fe2cc4
Use deno fmt instead of prettier
2023-06-27 15:16:59 +12:00
Brandon Presley
9c9a5fdd63
Trim search queries - 1.138
...
Closes #156
2023-06-13 14:18:49 +12:00
Brandon Presley
42912040ff
Simplify getNow
2023-01-04 13:24:49 +13:00
Brandon Presley
c7952738b5
Add selected title for plans + sets
...
Inspired by the stock Files app in Android.
2023-01-03 17:21:51 +13:00
Brandon Presley
27ff4861d9
Reduce logs in SetList
2023-01-01 14:18:27 +13:00
Brandon Presley
46dd50adfb
Pause adding unit tests
2022-12-30 13:25:47 +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
f9e357ff80
Factor out list menu
2022-12-21 13:02:53 +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
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
71d4ad805c
Add button to clear multi selection
2022-12-14 13:02:18 +13:00
Brandon Presley
2e347deb53
Add ability to edit/delete multiple sets/plans
2022-12-13 22:54:37 +13:00
Brandon Presley
c3b14e901d
Remove eslint ignore from SetList
2022-12-12 17:26:58 +13:00
Brandon Presley
1b9d35d71e
Reduce logging of SetList
2022-11-21 18:07:02 +13:00
Brandon Presley
f9449a9860
Fix default new sets
2022-11-04 16:02:06 +13:00
Brandon Presley
ba61e79808
Fix error loading set for adding
2022-11-04 15:51:58 +13:00
Brandon Presley
1110ccb741
Fix deleting first record bug
2022-11-03 21:58:10 +13:00
Brandon Presley
98c7fac75d
Fix adding new set on fresh installs
2022-11-03 19:21:59 +13:00