Commit Graph

38 Commits

Author SHA1 Message Date
edf54d047e Fix production error with undefined settings - 1.159 🚀 2023-10-14 10:56:46 +13:00
57883266b8 Hide rest timers on Workouts when alarms are off
Closes #172.
2023-10-14 10:46:22 +13:00
9ae311b94a Toggle selecting all for Plans and Workouts 2023-09-04 13:59:35 +12:00
ec72824e3c Check for existence of plans and workouts - 1.154 🚀 2023-08-29 11:58:15 +12:00
8e42e9c3e4 Allow editing of multiple workouts 2023-08-14 16:03:07 +12:00
dc5434991a Pause adding multi-edit to workouts
Got up to the point where i'm find/replacing the
old names with new names, and I got confused
about the purpose of this feature.
2023-08-14 13:14:34 +12:00
da17f8899c Paginate graphs
Also factor out LIMIT constant
2023-08-14 10:42:15 +12:00
f778426aba Run prettier
Something happened with the deno formatter,
I can't remember what! Hahahahahaahahaha
2023-08-12 15:23:02 +12:00
4303fe2cc4 Use deno fmt instead of prettier 2023-06-27 15:16:59 +12:00
9c9a5fdd63 Trim search queries - 1.138
Closes #156
2023-06-13 14:18:49 +12:00
5d9df37778 Organize imports 2023-01-01 15:20:56 +13:00
31f1528c35 Replace settings context with theme context
The settings context was having a big performance
impact on the app. We only truly need the theme + color
to be a global context.
2022-11-01 16:50:03 +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
6e75614d10 Add basic working unit tests 2022-10-30 12:56:58 +13:00
463852e6a6 Prevent double searching everywhere
Also change variable names. Search should represent the
act of searching, rather than the value being typed by the user.
2022-10-28 18:59:54 +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
36e6637ba2 Revert "Revert "Add custom app bar""
This reverts commit e84dd7bdea.
2022-10-23 12:35:58 +13:00
e84dd7bdea Revert "Add custom app bar"
This reverts commit a664b65ce2.
2022-10-23 12:32:44 +13:00
a664b65ce2 Add custom app bar
The header bar provided by react-navigation was jumping on first
load, whereas this custom one doesn't.
2022-10-23 12:24:39 +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
52f8241054 Prevent flickering of empty lists on slow devices 2022-10-13 16:30:02 +13:00
8e674ce993 Fix sets not showing when editing a workout 2022-09-24 17:15:44 +12:00
fa56d48c25 Remove redundant fetching of workout in EditWorkout 2022-09-24 14:48:52 +12:00
85dd2b6d17 Move rest timer and sets per session settings to Workouts
Closes #32
2022-09-21 11:50:20 +12:00
1bd05e1c20 Add padding to bottom of list pages 2022-09-20 16:17:01 +12:00
cb446be7b0 Add steps to workouts
Closes #15
2022-09-18 18:08:09 +12:00
052d000e12 Make padding & margin consistent everywhere. 2022-09-16 21:07:02 +12:00
c6646a85fe Fix typescript error in WorkoutList 2022-09-11 15:44:44 +12:00
e3b3c6ca09 Split out database logic into service files 2022-09-04 16:56:46 +12:00
e483187338 Remove all loading logic
SQLite is so fast the spinners only mislead the user into thinking
these operations take long. They are practically instant.
2022-09-04 16:30:02 +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
f030686b95 Remove drawer menu from WorkoutList 2022-08-27 16:33:01 +12:00
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