Commit Graph

27 Commits

Author SHA1 Message Date
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 ee6cef63ee Remove date editing from SetForm
It looks so messy, and adding libraries to deal with dates
is simply bloat.
2022-09-03 15:26:10 +12:00
Brandon Presley 6b617d974f Replace react-native imports of Text with react-native-paper 2022-09-01 23:43:53 +12:00
Brandon Presley ef2b877b49 Add date editing to Massive input 2022-09-01 13:59:06 +12:00
Brandon Presley 718bb279d9 Add warning for incorrect date format 2022-09-01 13:12:39 +12:00
Brandon Presley d7330067bb Allow text editing of created in SetForm 2022-09-01 13:05:41 +12:00
Brandon Presley 756a2089e9 Prevent race condition with database migrations 2022-08-30 23:21:25 +12:00
Brandon Presley 26f54e43e0 Prevent errors when no sets exist yet 2022-08-30 21:41:49 +12:00
Brandon Presley 27a1f3132f Remove image view from SetForm
1. This doesn't easily fit on the screen with the keyboard open
2. It wasn't editable, while being on an edit screen, so it was
   misleading.
2022-08-29 15:19:07 +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 fd38439756 Change color scheme 2022-08-26 13:54:51 +12:00
Brandon Presley 8ae8de9612 Underline current workout in SetForm 2022-08-25 14:16:30 +12:00
Brandon Presley c54396cb9c Make text inputs outlined 2022-08-25 12:35:09 +12:00
Brandon Presley bc3a39c4b6 Show list of current workouts when adding set 2022-08-24 15:36:49 +12:00
Brandon Presley 0dcfc8eadf Show next workout on EditSet page 2022-08-24 12:46:47 +12:00
Brandon Presley 1ce9a49224 Focus name field when it's empty 2022-08-23 15:58:44 +12:00
Brandon Presley fd66bd3ab3 Remove date related logic
This kept displaying the wrong date/time for certain timezones.
So i'll just show the actual ISO date we store in the database.
Maybe later i'll figure out what was going on here or use a
date library (probably not).
2022-08-20 16:38:18 +12:00
Brandon Presley 1b2c26e36c Fix selection changing 2022-08-07 15:09:45 +12:00
Brandon Presley 31c6047c9c Auto focus and select reps on SetForm 2022-08-06 15:10:48 +12:00
Brandon Presley 3377365590 Predict next set earlier 2022-08-06 14:49:30 +12:00
Brandon Presley e489ddfc26 Select text on focus reps 2022-08-04 14:50:55 +12:00
Brandon Presley 19b2efea9d Select all weight text on focus 2022-08-04 14:27:07 +12:00
Brandon Presley b2ffe99f2d Fix copying a set 2022-07-27 15:52:55 +12:00
Brandon Presley 056f027d28 Only focus reps in SetForm when predict succeeds 2022-07-26 11:52:21 +12:00
Brandon Presley e191323fff Factor out EditSet and SetForm 2022-07-20 15:48:48 +12:00