Commit Graph

36 Commits

Author SHA1 Message Date
Brandon Presley a0dc62e761 Remove all JS side Timers
This is the result of me fixing the background timers.
Previously our code just used a CountdownTimer
not even in a service, just immediately in the
@ReactMethod. This would in certain scenarios stop
running. Even with battery optimizations turned off.

The reason why all the JS side timers had to be removed
is because we were relying on RCTDeviceEventEmitter
which I don't know how to use from within a Service.
See my stackoverflow ticket here: https://stackoverflow.com/questions/74204339/sending-react-native-android-events-to-javascript-from-a-service

Closes #212, #196
2024-02-17 17:27:42 +13:00
Brandon Presley 19307a2a3c Remove progress circle from timer page
- This is partly to figure out what is happening in #206.
- It's also because we have the global timer bar
- Could never quite make it look like the text was centered
2023-11-29 09:25:22 +13:00
Brandon Presley a7db87c61a Fix colors on fabs 2023-11-14 14:44:10 +13:00
Brandon Presley 5a06b7ee2c Fix default colors on fresh install 2023-11-14 14:34:10 +13:00
Brandon Presley 84ff8a110b Improve responsiveness of timer page - 1.180 🚀 2023-11-12 23:37:58 +13:00
Brandon Presley ef63fcf470 Organize all imports 2023-11-12 17:05:37 +13:00
Brandon Presley add8b01e4c Remove unused code from TimerPage 2023-11-06 15:00:52 +13:00
Brandon Presley e8ee4a253e Migrate from Drawer -> Stacks to Stack -> Drawer
This simplifies our codebase greatly by
only having a single stack navigator and
a single drawer navigator. Previously we had
a stack navigator for every main page on the drawer.
2023-10-28 15:59:25 +13:00
Brandon Presley f28406b4c4 Move add 1 min button to left side fab 2023-10-26 12:20:04 +13:00
Brandon Presley a9b69638a6 Fix color of progress bar in Timer page
React native paper update made the dark theme color into RGBA
instead of hex, so adding the string '80' no longer works.
2023-08-22 12:04:47 +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 4303fe2cc4 Use deno fmt instead of prettier 2023-06-27 15:16:59 +12:00
Brandon Presley 6438a9c48a Use the same colors as switch for timer page - 1.114 2023-01-08 14:00:27 +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 5115055280 Reword MassiveX as AppX 2022-12-29 13:57:19 +13:00
Tiffany Barclay 2176acd924 Clean up timer page styling
Closes #110
2022-12-25 01:05:48 +13:00
Brandon Presley 67d90d4e02 Get settings on TimerPage on focus
Previously it was on mount.
Fixes #122.
2022-12-02 14:48:10 +13:00
Brandon Presley dc73035607 Add progress bar for rest timer in StartPlan 2022-11-10 15:15:27 +13:00
Brandon Presley e6d5e928a9 Use text for progress color on Timer
The progress color needs to be static
because I can't find a combo of background
color to contrast well with all the custom
primary colors.
2022-11-09 13:26:26 +13:00
Brandon Presley 13c1f64398 Change backgroundColor on timer 2022-11-08 15:50:14 +13:00
Brandon Presley bac2e3498f Add back in primary color for timer
The default progress color had weird
looking jagged edges.
2022-11-08 12:58:47 +13:00
Brandon Presley eb23fc2210 Remove primary color from timer progress
Some of these colors provide terrible contrast
so we should just leave it as default. Otherwise
people using certain colors (like light cyan)
can barely see this progress circle at all.
2022-11-08 12:45:40 +13:00
Brandon Presley bb85935e1d Remove custom circle background color on TimerPage
The default color has better contrast than
what I was using before.

Closes #112
2022-11-07 14:14:43 +13:00
Brandon Presley 1e4e66363b Remove unused variables from TimerPage 2022-11-05 14:52:24 +13:00
Brandon Presley 9c808ce84b Add progress circle to TimerPage 2022-11-05 14:40:06 +13:00
Brandon Presley 1e0daeec90 Remove unused variable in TimerPage 2022-11-05 12:57:32 +13:00
Brandon Presley 7b4fddfebf Make text bigger on TimerPage 2022-11-05 12:57:08 +13:00
Brandon Presley facbfe4da5 Add noSound to timer add 2022-11-03 21:59:00 +13:00
Brandon Presley fcce1ad9ef Add native events to communicate the running timer
Closes #99
2022-11-03 20:04:15 +13:00
Brandon Presley 21d9149498 Quit trying to move timer logic into AlarmModule
I just can't figure out how to make the stop button
and delete intents work.
2022-10-24 14:45:21 +13:00
Brandon Presley 3cbabb723a Add sessions page
Related to #82
2022-10-05 23:38:52 +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 4599da7c28 Delete Timer page
Maybe i'll try add this again if anyone wants it.
2022-09-27 11:58:49 +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 a20a0a1832 Add timer page
Closes #54
2022-09-26 14:38:25 +13:00