Commit Graph

35 Commits (master)

Author SHA1 Message Date
Leon Babic 314b09017b
Add title to Plan 2023-08-21 14:25:29 +02: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 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 4303fe2cc4 Use deno fmt instead of prettier 2023-06-27 15:16:59 +12: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 a1440b680f Fix ripple color for dark theme 2022-12-15 16:43:00 +13:00
Brandon Presley 2e347deb53 Add ability to edit/delete multiple sets/plans 2022-12-13 22:54:37 +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 f91d529f39 Add copy feature for plans
Long tap an existing plan, then press copy.
This will bring up a new plan to add with all
the same workouts/days as the one you have
2022-11-02 13:02:08 +13:00
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 e7321b6d8e Add typeorm migrations 2022-10-31 17:05:31 +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
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
2022-10-28 18:36:47 +13:00
Brandon Presley 1a43f41170 Refresh current day for Plans on focus
Closes #85
2022-10-13 11:25:23 +13:00
Brandon Presley 05a7747f05 Add divider before delete button on plan 2022-10-12 14:53:05 +13:00
Brandon Presley e0b84af9e7 Move sessions page functionality onto Plan page
The sessions page mostly copied the exact same features as Plans,
which would confuse the user.
2022-10-12 14:07:48 +13:00
Brandon Presley 9849ef6834 Fix icons on long press menus 2022-09-27 13:35:27 +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 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 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 e72cdc8db7 Make plans use stack navigation 2022-07-11 12:28:30 +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 b12b41b77e Factor out MassiveFab 2022-07-08 14:59:19 +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
Brandon Presley 43405269df Add half completed Plans 2022-07-06 17:40:53 +12:00