Commit Graph

55 Commits

Author SHA1 Message Date
Brandon Presley 90db607190 Easily swap between edit/start for plans - 1.137 2023-03-28 12:20:32 +13:00
Brandon Presley 3af3e1faf2 Order plan workouts alphabetically
Closes #150
2023-02-14 16:37:09 +13:00
Brandon Presley 467df629b0 Change edit headers to add when adding 2023-01-08 18:05:59 +13:00
Brandon Presley a9000898f3 Replace children with title for Switch
Apparently, the children prop makes React.memo
not work any more. I read about it in
https://stackoverflow.com/questions/53074551/when-should-you-not-use-react-memo
2022-12-30 19:49:54 +13:00
Brandon Presley 48432188c3 Simplify Switch.tsx 2022-12-24 19:55:38 +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
Brandon Presley c9adaf59ff Remove confusing add workout button from plan 2022-11-16 18:48:16 +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 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 4df5af783c Add missing keys to EditPlan 2022-09-27 12:26:03 +13:00
Brandon Presley 91c0430760 Factor out massive switch 2022-09-26 16:10:13 +13:00
Brandon Presley be5571a965 Fix text color inconsistency in plan editing 2022-09-25 18:11:50 +13:00
Brandon Presley acfd0e698d Minor refactors and renaming 2022-09-25 17:49:26 +13:00
Brandon Presley 71d223f0a1 Add current workout progress to title of set editing
Related to #48

Should be thoroughly tested before closing.
2022-09-24 19:09:58 +12:00
Brandon Presley 39fafa353f Split out some type definitions into their own files 2022-09-24 18:47:31 +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 0cee774136 Prevent empty plans from being created 2022-09-18 18:45:05 +12:00
Brandon Presley 052d000e12 Make padding & margin consistent everywhere. 2022-09-16 21:07:02 +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
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 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 9b8fb95559 Add workouts from plan page if none exist 2022-08-28 20:54:07 +12:00
Brandon Presley 51ed36e30a Customize header title for EditPlan and EditSet 2022-08-26 15:17:45 +12:00
Brandon Presley 32be938c86 Hide top drawer menu on EditPlan 2022-08-25 13:06:50 +12:00
Brandon Presley 3322289c17 Factor out MassiveSwitch 2022-07-17 13:45:31 +12:00
Brandon Presley bdd712833c Reduce number of colors in theme 2022-07-15 18:06:33 +12:00
Brandon Presley 039de1fbd3 Fix linting errors 2022-07-11 12:32:13 +12:00
Brandon Presley e72cdc8db7 Make plans use stack navigation 2022-07-11 12:28:30 +12:00
Brandon Presley 52a4eada94 Fix adding plan 2022-07-10 16:10:06 +12:00
Brandon Presley 4faad97c13 Add missing deps to callbacks 2022-07-10 11:54:23 +12:00
Brandon Presley cba57e6e64 Use callbacks everywhere 2022-07-10 11:51:52 +12:00
Brandon Presley 978fe98393 Make EditPlan scroll 2022-07-09 17:10:28 +12:00
Brandon Presley f2d5166c8a Add ability to edit created on sets 2022-07-09 16:38:57 +12:00
Brandon Presley 880fc976bc Fix all lint errors 2022-07-09 13:48:45 +12:00
Brandon Presley dbb3dc2eb3 Fix linting errors 2022-07-09 13:27:19 +12:00
Brandon Presley b12b41b77e Factor out MassiveFab 2022-07-08 14:59:19 +12:00
Brandon Presley 119711a13a Move up subtitle of EditPlan 2022-07-07 17:18:56 +12:00
Brandon Presley 0ceeb2e4d5 Add empty message for workouts in EditPlan 2022-07-07 17:18:40 +12:00
Brandon Presley 5120852ce7 Limit days in EditPlan title to 2 2022-07-07 17:18:23 +12:00
Brandon Presley 2abb6bc1c9 Refresh EditPlan when the modal pops up 2022-07-07 17:18:02 +12:00
Brandon Presley 65e25c1a61 Empty workouts when none are found in EditPlan 2022-07-07 17:17:20 +12:00
Brandon Presley 29200cf248 Use switches for plan editing 2022-07-07 16:17:55 +12:00
Brandon Presley 1d68ba86f5 Remove useFocusEffect
It was lagging the app out.
2022-07-07 15:13:44 +12:00
Brandon Presley 570b43715f Ensure only one connection to SQLite exists 2022-07-07 14:18:38 +12:00