Commit Graph

98 Commits

Author SHA1 Message Date
Brandon Presley 8162724328 Dont run timers once a plan is finished 2024-02-18 00:49:56 +13:00
Brandon Presley a9367cd53b Select first item in plan 2024-02-18 00:36:00 +13:00
Brandon Presley 6ea65bcd16 Auto select last worked on exercise in plans 2024-02-09 14:24:59 +13:00
Brandon Presley 9c3d6772a9 Ensure reps are always positive - 2.15 🚀 2024-02-09 12:48:12 +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 608bb3e97a Add settings for default fields on Exercise - 2.1 🚀
Closes #188
2023-11-15 14:05:25 +13:00
Brandon Presley 0592a9d695 Fix wrong text color on primary buttons - 1.187 🚀 2023-11-15 13:07:58 +13:00
Brandon Presley ba24649a52 Organize imports 2023-11-15 11:21:49 +13:00
Brandon Presley b68587f514 Add auto converter - 1.186 🚀
Closes #193
2023-11-15 11:03:23 +13:00
Brandon Presley c507370398 Change style of primary buttons
According to React Native Paper docs, the purpose
of the "contained" mode of button is for the primary
action.

https://callstack.github.io/react-native-paper/docs/components/Button/#mode
2023-11-15 10:51:54 +13:00
Brandon Presley 976bb7c189 Add activity indicator for StartPlan 2023-11-14 14:56:58 +13:00
Brandon Presley 315279e28d Replace all unit text boxes with dropdowns - 1.183 🚀 2023-11-13 18:35:30 +13:00
Brandon Presley 7f4c0a5f10 Replace unit text input with a drop down 2023-11-13 16:07:45 +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 8988e584ae Rename workout -> exercise
A workout would typically refer to a list of
exercises.
2023-11-09 18:52:50 +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 805f982ccf Add graph button to start plan - 1.164 🚀 2023-10-24 16:24:56 +13:00
Brandon Presley 80dc5d2b63 Make start plan increment buttons hover - 1.163 🚀 2023-10-21 14:43:38 +13:00
Brandon Presley 7928cab4c1 Swap to using MaterialCommunityIcons 2023-10-19 18:28:56 +13:00
Brandon Presley a3b376badb Use events for gym set CRUD 2023-10-18 19:06:13 +13: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 103ae5587d Add missing keyExtractors 2023-08-29 11:22:15 +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 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 331597e3ee Add increment/decrement buttons to reps/weight - 1.148
Closes #164
2023-08-14 13:32:10 +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 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 3e41c3bbd8 Use outlined buttons instead of contained ones
I like them better! Ahahahahahahahahah
Bwahahahahahahahahahahahahahahahahahah
2023-07-17 16:24:09 +12:00
Brandon Presley 89606b9d21 Fix type errors related to upgrade 2023-07-15 14:38:46 +12:00
Brandon Presley 4303fe2cc4 Use deno fmt instead of prettier 2023-06-27 15:16:59 +12:00
Brandon Presley 90db607190 Easily swap between edit/start for plans - 1.137 2023-03-28 12:20:32 +13:00
Brandon Presley 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
Brandon Presley 42912040ff Simplify getNow 2023-01-04 13:24:49 +13:00
Brandon Presley a2721e9f12 Use sqlite in Android code for alarm settings
Closes #129
2023-01-02 18:54:35 +13:00
Brandon Presley 5d9df37778 Organize imports 2023-01-01 15:20:56 +13:00
Brandon Presley 46dd50adfb Pause adding unit tests 2022-12-30 13:25:47 +13:00
Brandon Presley 5115055280 Reword MassiveX as AppX 2022-12-29 13:57:19 +13:00
Brandon Presley 596b695c5b Remove unlabelled log from StartPlan 2022-12-28 15:00:00 +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 533b21a907 Remove csv import/export
This is replaced with the backup/restore feature in Settings page.

- Not sure anybody is using this besides me for testing purposes
- Backing up the entire SQLite database is faster than CSV conversion
- This prevents missing data and will work nicely with future plan
  changes

Closes #128
2022-12-08 14:51:34 +13:00
Brandon Presley e9b02d5eb1 Remove toast from StartPlan 2022-12-04 19:36:27 +13:00
Brandon Presley d8eeac66ab Fix starting plan without selecting an item 2022-12-03 22:29:45 +13:00
Brandon Presley b14d20f1f4 Prevent animation when navigating to plan
Closes #124.
2022-12-03 22:13:35 +13:00
Brandon Presley 76017be226 Remove unused variable from StartPlan 2022-12-01 14:18:37 +13:00
Brandon Presley 521fa0e9d3 Remove margins from buttons
These were for my ios testing, which I might
add back in later.
2022-11-30 18:14:34 +13:00