Commit Graph

942 Commits

Author SHA1 Message Date
Brandon Presley 42912040ff Simplify getNow 2023-01-04 13:24:49 +13:00
Brandon Presley c7952738b5 Add selected title for plans + sets
Inspired by the stock Files app in Android.
2023-01-03 17:21:51 +13:00
Brandon Presley cffc458338 Start alarms as a foreground service
Related to #142.
Can't be sure this fixed anything because I can't replicate the error
on my emulators running android 13. I need to install android 13
on a real device and try replicate + see if this fixes it.
2023-01-03 17:04:51 +13:00
Brandon Presley 05237fc293 Set versionCode=36136 2023-01-03 15:15:33 +13:00
Brandon Presley 5fd7e75908 Fix settings persistence issues 2023-01-03 14:59:19 +13:00
Brandon Presley 705052f1b4 Set versionCode=36135 2023-01-03 11:33:43 +13:00
Brandon Presley efc97bdf47 Fix settings page on shorter devices 2023-01-03 11:31:37 +13:00
Brandon Presley d0702b7675 Reduce redundancy of labels for theme setting 2023-01-03 11:31:25 +13:00
Brandon Presley 24e230e8b9 Use a scroll view for settings page
This way shorter screens dont cut off content
2023-01-02 23:29:46 +13:00
Brandon Presley 67689f4af8 Set versionCode=36134 2023-01-02 18:56:53 +13:00
Brandon Presley a2721e9f12 Use sqlite in Android code for alarm settings
Closes #129
2023-01-02 18:54:35 +13:00
Brandon Presley bafdecd3e3 Add unit tests for EditSets
Closes #138
2023-01-01 20:47:07 +13:00
Brandon Presley e432c1b711 Add app test 2023-01-01 18:33:03 +13:00
Brandon Presley 08f91bf531 Test saving a plan 2023-01-01 18:13:45 +13:00
Brandon Presley 80f2dfdff5 Improve performance of Routes.tsx 2023-01-01 18:05:11 +13:00
Brandon Presley 3c9b93f0bc Test adding a new set 2023-01-01 18:01:46 +13:00
Brandon Presley f221ebb8df Test editing a workout 2023-01-01 15:21:56 +13:00
Brandon Presley a68d4d6a69 Include tests directory in organize.sh 2023-01-01 15:21:42 +13:00
Brandon Presley 5d9df37778 Organize imports 2023-01-01 15:20:56 +13:00
Brandon Presley 8246155c13 Test start plan + edit plan 2023-01-01 15:06:42 +13:00
Brandon Presley 58f1c905b2 Test edit set component 2023-01-01 14:47:16 +13:00
Brandon Presley 805b7bdc34 Simplify tests 2023-01-01 14:35:22 +13:00
Brandon Presley a772e36160 Add tests to deploy script 2023-01-01 14:32:23 +13:00
Brandon Presley ad95438120 Test all pages 2023-01-01 14:32:10 +13:00
Brandon Presley 3c953530a4 Add working test for homepage 2023-01-01 14:19:32 +13:00
Brandon Presley 13e1d4cc21 Move the theme object to be inline for mock-providers
This way we get better auto completion
2023-01-01 14:19:15 +13:00
Brandon Presley 21773e3b4f Remove fake timers from jestSetup
I believe this was from ages ago when I was using `setInterval` to try
and keep state of the timers from JavaScript. Now we are relying on our
timers in Kotlin so we don't need this any more.
2023-01-01 14:18:36 +13:00
Brandon Presley 27ff4861d9 Reduce logs in SetList 2023-01-01 14:18:27 +13:00
Brandon Presley e43188ccdf Merge branch 'master' into unit-tests 2023-01-01 13:57:01 +13:00
Brandon Presley 9287c31e70 Update fastlane 2023-01-01 13:47:04 +13:00
Brandon Presley 5612df5d8c Set versionCode=36133 2023-01-01 13:46:26 +13:00
Brandon Presley a78e07dac8 Keep list menu open after selecting all
Typically when you select all records it's because you want
to operate on those records immediately. The only case
this wouldn't be true is if you were scrolling, then selecting all
a bunch of times. I think it's more likely someone just wants to
select all, then delete.
2023-01-01 13:43:55 +13:00
Brandon Presley 86f01eb002 Memoize the most expensive parts of SettingsPage 2023-01-01 13:39:10 +13:00
Brandon Presley 5335f4afbc Memoize switches in SettingsPage 2023-01-01 13:32:26 +13:00
Brandon Presley d71ad8c170 Set versionCode=36132 2023-01-01 13:18:13 +13:00
Brandon Presley 53799fdcc4 Change mode of text input from outlined to default
Related to #140
2023-01-01 13:16:08 +13:00
Brandon Presley 651b130caa Remove pdf I accidentally committed of the readme 2023-01-01 13:15:23 +13:00
Brandon Presley 73c7486eb3 Update plan start image 2022-12-30 20:46:39 +13:00
Brandon Presley ea2ff913db Update screenshots 2022-12-30 20:45:12 +13:00
Brandon Presley 0be8f03133 Set versionCode=36131 2022-12-30 20:40:15 +13:00
Brandon Presley 7863b9caa0 Improve speed of setting sound string as well 2022-12-30 20:38:34 +13:00
Brandon Presley 3fdc5900e3 Improve performance of setttings toggles
I was awaiting the result of the sqlite operations
when really I should have just set the state immediately,
and done the operations in the background.
2022-12-30 20:37:08 +13:00
Brandon Presley e51aad21f3 Set versionCode=36130 2022-12-30 20:31:34 +13:00
Brandon Presley f48124123c Delete unused variable from Routes.tsx 2022-12-30 20:29:47 +13:00
Brandon Presley 3603c67133 Add filtering back in to SettingsPage
I accidentally removed it and pushed to production...
Woopsie.
2022-12-30 20:29:16 +13:00
Brandon Presley a9000898f3 Replace children with title for Switch
Apparently, the children prop makes React.memo
not work any more. I read about it in
https://stackoverflow.com/questions/53074551/when-should-you-not-use-react-memo
2022-12-30 19:49:54 +13:00
Brandon Presley dd7cb0406b Use React.memo for Switch 2022-12-30 19:42:30 +13:00
Brandon Presley a5ddf5c94d Use React.memo in Select.tsx 2022-12-30 19:39:35 +13:00
Brandon Presley 9be10610d2 Use React.memo on AppInput 2022-12-30 19:39:20 +13:00
Brandon Presley 5e37490c2d Add react-hook-form for settings page
This seems to have improved performance.

Related to #135.
2022-12-30 15:47:12 +13:00