Commit Graph

63 Commits

Author SHA1 Message Date
314b09017b
Add title to Plan 2023-08-21 14:25:29 +02:00
f778426aba Run prettier
Something happened with the deno formatter,
I can't remember what! Hahahahahaahahaha
2023-08-12 15:23:02 +12:00
95681c0b3d Save plan before starting it
Also after saving it makes more sense to just
navigate to PlanList instead of calling
navigation.goBack(). This way we can make sure
we have up-to-date data.

The old way would typically lead to us seeing
stale data. E.g.
1. Tap on a plan
2. Tap on edit
3. Change details of the plan
4. Press save
5. See old plan

Now when we save we instead see the original list of plans.
2023-07-31 15:54:32 +12:00
85915b9aa0 Retrieve last set when running a plan - 1.145
Closes brandon.presley/Massive#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
3e41c3bbd8 Use outlined buttons instead of contained ones
I like them better! Ahahahahahahahahah
Bwahahahahahahahahahahahahahahahahahah
2023-07-17 16:24:09 +12:00
89606b9d21 Fix type errors related to upgrade 2023-07-15 14:38:46 +12:00
0beb1397a6 Hide play button from new plans - 1.143
It doesn't make sense to start a plan
that hasn't been created yet.
2023-07-04 11:20:07 +12:00
4303fe2cc4 Use deno fmt instead of prettier 2023-06-27 15:16:59 +12:00
90db607190 Easily swap between edit/start for plans - 1.137 2023-03-28 12:20:32 +13:00
3af3e1faf2 Order plan workouts alphabetically
Closes #150
2023-02-14 16:37:09 +13:00
467df629b0 Change edit headers to add when adding 2023-01-08 18:05:59 +13:00
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
48432188c3 Simplify Switch.tsx 2022-12-24 19:55:38 +13:00
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
c9adaf59ff Remove confusing add workout button from plan 2022-11-16 18:48:16 +13:00
bc7aca03e8 Remove semicolons from line endings 2022-10-31 17:22:08 +13:00
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
e6dcd4a47e Use hermes engine
https://reactnative.dev/docs/hermes
2022-10-28 18:36:47 +13:00
80b1a1ef56 Fix single views for new custom headers 2022-10-23 19:13:58 +13:00
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
4df5af783c Add missing keys to EditPlan 2022-09-27 12:26:03 +13:00
91c0430760 Factor out massive switch 2022-09-26 16:10:13 +13:00
be5571a965 Fix text color inconsistency in plan editing 2022-09-25 18:11:50 +13:00
acfd0e698d Minor refactors and renaming 2022-09-25 17:49:26 +13:00
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
39fafa353f Split out some type definitions into their own files 2022-09-24 18:47:31 +12:00
85dd2b6d17 Move rest timer and sets per session settings to Workouts
Closes #32
2022-09-21 11:50:20 +12:00
0cee774136 Prevent empty plans from being created 2022-09-18 18:45:05 +12:00
052d000e12 Make padding & margin consistent everywhere. 2022-09-16 21:07:02 +12:00
4b35a526b4 Fix error on editing plan 2022-09-04 17:33:05 +12:00
e3b3c6ca09 Split out database logic into service files 2022-09-04 16:56:46 +12:00
259d36d67f Move all database operations into db.ts 2022-09-04 15:28:21 +12:00
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
9006cc0dea Add script to organize all imports 2022-09-02 12:33:53 +12:00
756a2089e9 Prevent race condition with database migrations 2022-08-30 23:21:25 +12:00
9b8fb95559 Add workouts from plan page if none exist 2022-08-28 20:54:07 +12:00
51ed36e30a Customize header title for EditPlan and EditSet 2022-08-26 15:17:45 +12:00
32be938c86 Hide top drawer menu on EditPlan 2022-08-25 13:06:50 +12:00
3322289c17 Factor out MassiveSwitch 2022-07-17 13:45:31 +12:00
bdd712833c Reduce number of colors in theme 2022-07-15 18:06:33 +12:00
039de1fbd3 Fix linting errors 2022-07-11 12:32:13 +12:00
e72cdc8db7 Make plans use stack navigation 2022-07-11 12:28:30 +12:00
52a4eada94 Fix adding plan 2022-07-10 16:10:06 +12:00
4faad97c13 Add missing deps to callbacks 2022-07-10 11:54:23 +12:00
cba57e6e64 Use callbacks everywhere 2022-07-10 11:51:52 +12:00
978fe98393 Make EditPlan scroll 2022-07-09 17:10:28 +12:00
f2d5166c8a Add ability to edit created on sets 2022-07-09 16:38:57 +12:00
880fc976bc Fix all lint errors 2022-07-09 13:48:45 +12:00
dbb3dc2eb3 Fix linting errors 2022-07-09 13:27:19 +12:00
b12b41b77e Factor out MassiveFab 2022-07-08 14:59:19 +12:00