Commit Graph

41 Commits

Author SHA1 Message Date
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 859fa2a89f Add setting to disable sound on rest timers
Closes #50
2022-10-27 17:28:27 +13:00
Brandon Presley b19033b814 Add index to sets.created
Most queries will be filtering on created date
(showing todays sets, todays plans) so this
should speed up our queries.
2022-10-26 13:25:13 +13:00
Brandon Presley c73937396e Fix defaults for freshly installed app
Closes #95
2022-10-18 21:43:46 +13:00
Brandon Presley 77db34b310 Add toggle for hiding maximum set count
Closes #90
2022-10-16 16:54:20 +13:00
Brandon Presley eb53d58991 Add ability to set app theme
Closes #79
2022-10-04 14:35:56 +13:00
Brandon Presley ba3ed2a272 Revert "Revert "Add setting for showing date by default""
This reverts commit e1b7e80e2f.
2022-10-02 18:07:43 +13:00
Brandon Presley a5c70050a7 Revert "Revert "Add setting for date format""
This reverts commit 3691c729b4.
2022-10-02 18:04:36 +13:00
Brandon Presley 374cbdf45d Add set prediction settings
Closes #51
2022-09-29 14:44:01 +13:00
Brandon Presley 3691c729b4 Revert "Add setting for date format"
This reverts commit 023041b846.
2022-09-26 19:13:48 +13:00
Brandon Presley e1b7e80e2f Revert "Add setting for showing date by default"
This reverts commit e8715162a0.
2022-09-26 19:13:24 +13:00
Brandon Presley e8715162a0 Add setting for showing date by default
Closes #52
2022-09-26 19:02:25 +13:00
Brandon Presley 023041b846 Add setting for date format 2022-09-26 18:23:06 +13:00
Brandon Presley a20a0a1832 Add timer page
Closes #54
2022-09-26 14:38:25 +13:00
Brandon Presley 3509aa93f3 Add setting to hide steps 2022-09-24 17:29:52 +12:00
Brandon Presley 3e4dfa5c80 Add setting to hide workouts from edit set
Closes #43
2022-09-24 17:23:15 +12:00
Brandon Presley 2b6ac1cd10 Set default show unit to be true 2022-09-24 16:55:23 +12:00
Brandon Presley e516cdfdc0 Add ability to customize primary color
Closes #40
2022-09-24 13:57:51 +12:00
Brandon Presley 14d71fec8b Remove workouts table in favor of storing steps on sets 2022-09-23 13:52:33 +12:00
Brandon Presley f320d16c4b Fix adding new set with no plan
Closes #36
2022-09-22 14:38:33 +12:00
Brandon Presley 0bc644a1ba Add setting to show/hide unit field
Closes #34
2022-09-21 13:51:29 +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 a4bdd36a03 Insert missing rows into workouts on migration 2022-09-18 20:30:30 +12:00
Brandon Presley 562ee4f43e Make sure workouts table has all names from sets 2022-09-18 18:30:06 +12:00
Brandon Presley cb446be7b0 Add steps to workouts
Closes #15
2022-09-18 18:08:09 +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 137ecf4a77 Add show images setting 2022-09-01 13:06:49 +12:00
Brandon Presley 450d488089 Move migrations to db.ts 2022-08-30 23:43:39 +12:00
Brandon Presley f6dec0c3b2 Add images to sets 2022-08-28 20:55:12 +12:00
Brandon Presley 4967cbf728 Disable new record notifications by default 2022-08-27 18:08:23 +12:00
Brandon Presley 23d8c91c69 Add workouts page
The workouts page can be used to add a new type of workout,
or to edit the name of an already existing one.
Closes #1.
2022-08-26 15:10:28 +12:00
Brandon Presley 48d4d59ac8 Add ability to choose alarm sound
Closes #5
2022-08-25 20:41:15 +12:00
Brandon Presley 75b71b5851 Replace usage of react-native-async-storage with sqlite 2022-08-24 12:01:39 +12:00
Brandon Presley d591d2e453 Remove redundant code from db.ts 2022-07-18 14:10:32 +12:00
Brandon Presley 570b43715f Ensure only one connection to SQLite exists 2022-07-07 14:18:38 +12:00
Brandon Presley ecb436f8a6 Add progress to plans 2022-07-07 12:45:45 +12:00
Brandon Presley 43405269df Add half completed Plans 2022-07-06 17:40:53 +12:00
Brandon Presley e4ed53c358 Move logic of TimerService into TimerBroadcast
This was supposed to solve the timer stopping sometimes
when the application was in the background.
It was actually stopping because of battery optimizations.
2022-07-06 16:27:36 +12:00
Brandon Presley bb9a6c5f37 Add basic CRUD for sets 2022-07-03 13:50:01 +12:00