Commit Graph

35 Commits

Author SHA1 Message Date
Brandon Presley b7f1c2192e Pause converting to typeorm due to odd error
ERROR  TypeError: Cannot read property 'getItem' of undefined

This error is located at:
    in FlatList (created by SetList)
    in RCTView (created by View)
    in View (created by Page)
    in Page (created by SetList)
    in SetList (created by SceneView)
...

I found an open issue on the react-native github which seems
related https://github.com/facebook/react-native/issues/31523
but after following all of their suggestions I still have the
same error. I tried:
- Removing @babel/plugin-proposal-class-properties & @babel/plugin-transform-flow-strip-types
- Adding @babel/plugin-transform-flow-strip-types
2022-10-31 13:20:36 +13:00
Brandon Presley e0da621198 Add undo feature to StartPlan 2022-10-30 15:34:17 +13:00
Brandon Presley 2ae9d2a4c1 Improve performance of StartPlan 2022-10-30 14:46:32 +13:00
Brandon Presley eba33c2599 Revert "Revert "Optimize query in StartPlan""
This reverts commit 129b00dc5d.
2022-10-30 14:27:22 +13:00
Brandon Presley 129b00dc5d Revert "Optimize query in StartPlan"
This reverts commit 97827c68b2.
2022-10-30 13:42:20 +13:00
Brandon Presley e1a90a98fb Fix crashing of plans 2022-10-30 13:15:31 +13:00
Brandon Presley 463852e6a6 Prevent double searching everywhere
Also change variable names. Search should represent the
act of searching, rather than the value being typed by the user.
2022-10-28 18:59:54 +13:00
Brandon Presley ac0af26f77 Add more date format options
Closes #94
2022-10-28 15:49:03 +13:00
Brandon Presley ef7342b788 Fix max sets always being 3 for plans 2022-10-27 10:32:40 +13:00
Brandon Presley 4e6de66f90 Fix query for start plan
If the WHERE IN query is in the first select,
then we will have no results unless the person
has already worked out today.
2022-10-27 10:01:30 +13:00
Brandon Presley 97827c68b2 Optimize query in StartPlan
Closes #98
2022-10-26 18:31:40 +13:00
Brandon Presley b95024abe0 Fix rest timers for newly edited Workouts
Previously if you were to add a new workout, then
add a set for that workout immediately afterwards,
the rest timers would be the default 3:30.
Now, they are the actual value set when creating the
workout.
2022-10-21 18:39:06 +13:00
Brandon Presley 3714db438e Fix max number of sets for plan
Previously we were trying to get the max # of sets
from our query on the number of sets completed for today.
This meant if we hadn't completed any sets today, we would
get no result for that workout.
2022-10-16 16:46:38 +13:00
Brandon Presley f078ede58a Get max sets for each workout in plan
Closes #91
2022-10-16 16:08:38 +13:00
Brandon Presley 3cbabb723a Add sessions page
Related to #82
2022-10-05 23:38:52 +13:00
Brandon Presley 93878f14e4 Fix image on new set prediction 2022-10-02 19:07:52 +13:00
Brandon Presley a5c70050a7 Revert "Revert "Add setting for date format""
This reverts commit 3691c729b4.
2022-10-02 18:04:36 +13:00
Brandon Presley df45938bc3 Add image to set edit page 2022-10-01 15:35:52 +13:00
Brandon Presley c41b8438d3 Prevent counting hidden sets for prediction
Closes #71
2022-09-30 13:00:27 +13:00
Brandon Presley 3691c729b4 Revert "Add setting for date format"
This reverts commit 023041b846.
2022-09-26 19:13:48 +13:00
Brandon Presley 023041b846 Add setting for date format 2022-09-26 18:23:06 +13:00
Brandon Presley 91c0430760 Factor out massive switch 2022-09-26 16:10:13 +13:00
Brandon Presley 063425cd82 Use sql for counting todays sets in predictions 2022-09-25 18:05:15 +13:00
Brandon Presley 32e46c48dd Remove unused code 2022-09-24 15:29:24 +12:00
Brandon Presley fa56d48c25 Remove redundant fetching of workout in EditWorkout 2022-09-24 14:48:52 +12:00
Brandon Presley 462c42cfb7 Fix editing new workout
Closes #39
2022-09-24 14:16:33 +12:00
Brandon Presley 14d71fec8b Remove workouts table in favor of storing steps on sets 2022-09-23 13:52:33 +12:00
Brandon Presley f320d16c4b Fix adding new set with no plan
Closes #36
2022-09-22 14:38:33 +12:00
Brandon Presley 85dd2b6d17 Move rest timer and sets per session settings to Workouts
Closes #32
2022-09-21 11:50:20 +12:00
Brandon Presley cb446be7b0 Add steps to workouts
Closes #15
2022-09-18 18:08:09 +12:00
Brandon Presley 052d000e12 Make padding & margin consistent everywhere. 2022-09-16 21:07:02 +12:00
Brandon Presley 0f9ed2257b Fix showing new workout image in workouts list 2022-09-11 15:06:00 +12:00
Brandon Presley 03e284ed87 Fix editing a workouts image 2022-09-10 19:02:16 +12:00
Brandon Presley 4b35a526b4 Fix error on editing plan 2022-09-04 17:33:05 +12:00
Brandon Presley e3b3c6ca09 Split out database logic into service files 2022-09-04 16:56:46 +12:00