Commit Graph

41 Commits

Author SHA1 Message Date
Brandon Presley bdb27894f7 Optimize root context 2022-10-31 21:00:10 +13:00
Brandon Presley bc7aca03e8 Remove semicolons from line endings 2022-10-31 17:22:08 +13:00
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 e6dcd4a47e Use hermes engine
https://reactnative.dev/docs/hermes
2022-10-28 18:36:47 +13:00
Brandon Presley 80b1a1ef56 Fix single views for new custom headers 2022-10-23 19:13:58 +13:00
Brandon Presley 77db34b310 Add toggle for hiding maximum set count
Closes #90
2022-10-16 16:54:20 +13:00
Brandon Presley 9bd8fa9353 Replace height percent setting with flex: 1
This way reacts better to changing the screen sizes.
I think there was one bug where the fab wouldn't be
precisely at the bottom of the page depending on the
flat list length.
2022-10-14 18:12:21 +13:00
Brandon Presley 46f0875497 Create useSnackbar custom hook 2022-10-14 17:27:19 +13:00
Brandon Presley e2c790870b Hide rest settings in workouts when alarms are off
Closes #83
2022-10-04 14:46:15 +13:00
Brandon Presley 76a3584dbb Hide workout images based on setting
Closes #80
2022-10-01 16:30:29 +13:00
Brandon Presley b0b804eae1 Use react context for settings
Closes #81
2022-10-01 16:01:07 +13:00
Brandon Presley 4d219581d0 Use lambdas for submit editing in EditWorkout
For some reason the next ref wouldn't get focused
if I passed the functions without wrapping in a lambda.
2022-09-30 15:16:56 +13:00
Brandon Presley 71c358a532 Move cursor to next input for workouts editing 2022-09-30 15:14:53 +13:00
Brandon Presley de4574cac2 Set defaults for workout
Closes #64
2022-09-27 17:42:41 +13:00
Brandon Presley 86509eb211 Prevent commas and single quotes from being entered
Closes #60
2022-09-27 17:41:31 +13:00
Brandon Presley efbe1a5b1e Change icon for image button on new workout 2022-09-27 12:56:17 +13:00
Brandon Presley 2dd2ced21d Auto focus name for editing a workout
Closes #57
2022-09-25 23:40:38 +13:00
Brandon Presley 3509aa93f3 Add setting to hide steps 2022-09-24 17:29:52 +12:00
Brandon Presley 8e674ce993 Fix sets not showing when editing a workout 2022-09-24 17:15:44 +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 85dd2b6d17 Move rest timer and sets per session settings to Workouts
Closes #32
2022-09-21 11:50:20 +12:00
Brandon Presley 643fbf94a4 Disable save button when EditWorkout has no name 2022-09-20 16:05:23 +12:00
Brandon Presley e308993566 Use gestures instead of buttons for EditWorkout image
Closes #31
2022-09-19 14:58:08 +12:00
Brandon Presley d05c815a79 Add change image button and fix margin in workout
Closes #26, #27.
2022-09-19 13:20:24 +12:00
Brandon Presley eddad49719 Add button to remove image from a workout
Closes #21
2022-09-18 18:15:58 +12:00
Brandon Presley cb446be7b0 Add steps to workouts
Closes #15
2022-09-18 18:08:09 +12:00
Brandon Presley 2027b0f66a Streamline selection of image for workout 2022-09-16 21:20:10 +12:00
Brandon Presley 052d000e12 Make padding & margin consistent everywhere. 2022-09-16 21:07:02 +12:00
Brandon Presley 03e284ed87 Fix editing a workouts image 2022-09-10 19:02:16 +12:00
Brandon Presley e3b3c6ca09 Split out database logic into service files 2022-09-04 16:56:46 +12:00
Brandon Presley 259d36d67f Move all database operations into db.ts 2022-09-04 15:28:21 +12:00
Brandon Presley 607f83955d Replace react context with let statement in db.ts
1. I can't easily import context with my editor.
2. It's extra complexity everyone has to understand.
3. I hate the antichrist.
2022-09-04 14:05:25 +12:00
Brandon Presley 909d54d6c9 Make image bigger in EditWorkout 2022-09-02 12:46:04 +12:00
Brandon Presley 9006cc0dea Add script to organize all imports 2022-09-02 12:33:53 +12:00
Brandon Presley 756a2089e9 Prevent race condition with database migrations 2022-08-30 23:21:25 +12:00
Brandon Presley 0b8b005507 Remove disabled input from EditWorkout 2022-08-30 20:22:20 +12:00
Brandon Presley f6dec0c3b2 Add images to sets 2022-08-28 20:55:12 +12:00
Brandon Presley 925138d6dc Remove unused dependencies 2022-08-28 20:20:58 +12:00
Brandon Presley 23d8c91c69 Add workouts page
The workouts page can be used to add a new type of workout,
or to edit the name of an already existing one.
Closes #1.
2022-08-26 15:10:28 +12:00