Commit Graph

17 Commits

Author SHA1 Message Date
Brandon Presley da17f8899c Paginate graphs
Also factor out LIMIT constant
2023-08-14 10:42:15 +12: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 7b401388b5 Get last now excludes todays sets - 1.129
Otherwise the minute you enter something it
becomes the last set. Much more useful to be
showing yesterdays working set instead.
2023-03-06 18:32:32 +13: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 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
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 3012b69e00 Add one rep max calculator for best graphs
I tried out a bunch of formulas as well as
having them as options, and I ended up liking
the Brzycki formula the most.
https://en.wikipedia.org/wiki/One-repetition_maximum#Brzycki
All of them produced similar trends (for me) and the one using
exponents wouldn't work with the SQLite version on android
(can't use POWER function). Also having all the options looked
kind of cluttered. If people ask for it I'll add the other ones
later.
2022-10-16 13:39:59 +13:00
Brandon Presley a02247542e Group created by month when period is yearly
Possible solution to #78

We should keep this issue up for a while longer to see how this
solution feels.
2022-10-01 13:31:05 +13:00
Brandon Presley 4199bf0058 Fix image not being included for new predicted sets 2022-09-30 13:29:33 +13:00
Brandon Presley c41b8438d3 Prevent counting hidden sets for prediction
Closes #71
2022-09-30 13:00:27 +13: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 b223a4095c Show images on Best list and Workout list
Closes #19
2022-09-18 18:30:37 +12:00
Brandon Presley e3b3c6ca09 Split out database logic into service files 2022-09-04 16:56:46 +12:00