Commit Graph

1232 Commits

Author SHA1 Message Date
Brandon Presley f8a4157c33 Force push amended changes in deployment - 2.14 🚀 2024-02-08 21:28:11 +13:00
Brandon Presley 9650a17b61 Merge branch 'master' of gitea.presley.nz:brandon.presley/Massive - 2.13 🚀 2024-02-08 21:25:33 +13:00
Brandon Presley 15557d1a02 Push to play store last in deploy.mjs - 2.12 🚀 2024-02-08 21:22:41 +13:00
Brandon Presley 5991a6de39 Push to play store last in deploy.mjs
If the play store is acting up then it should still
at least push the tags so f-droid can update.
2024-02-08 21:22:14 +13:00
Brandon Presley 07c704841d Use foreground service for alarm completion
Many of our errors in production are caused
by the alarm module finishing. In devices after
android version 7 we are "required" to use
startForegroundService or else the following
error supposedly occurs:

Exception java.lang.IllegalStateException:
  at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1725)
  at android.app.ContextImpl.startService (ContextImpl.java:1680)
  at android.content.ContextWrapper.startService (ContextWrapper.java:731)
  at android.content.ContextWrapper.startService (ContextWrapper.java:731)
  at com.massive.AlarmModule$getTimer$1.onFinish (AlarmModule.kt:144)
  at android.os.CountDownTimer$1.handleMessage (CountDownTimer.java:127)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:236)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:228)
  at java.lang.Thread.run (Thread.java:923)

I say supposedly because on all of my testing
devices (which are android 7+) this error
doesn't occur.
2024-02-08 20:58:08 +13:00
Brandon Presley 1f6100607d Add platform independent deploy script
Deploy now by running:

node deploy.mjs
2024-02-08 18:54:06 +13:00
Brandon Presley d648850892 Update gemfile 2024-02-08 18:12:19 +13:00
Brandon Presley ab91bbe88f Merge gitea.presley.nz:brandon.presley/Massive 2024-02-07 17:41:54 +13:00
Brandon Presley 936a47b8b2 Add more information to rest timer notifications - 2.11 🚀
From homepage - Name of exercise
From plans - Name (count/total)
2024-02-07 17:41:38 +13:00
Brandon Presley 6a9e2224ec Add more information to rest timer notifications
From homepage - Name of exercise
From plans - Name (count/total)
2024-02-07 17:31:41 +13:00
Brandon Presley 9b881c3d58 Change logging
1. Remove a few needless logs
2. Label where the logs are coming from
2024-02-07 17:31:13 +13:00
Brandon Presley 5ce3b9e69c Move dark/light color selects next to buttons
Now we can easily preview what changing the
primary colors will cause.
2024-02-07 15:52:08 +13:00
Brandon Presley 9dd4e70d33 Add selection for unit to convert to in graphs 2024-02-07 12:02:36 +13:00
Brandon Presley 8fbc92920d Add period selector for "All time" in graphs 2024-02-07 11:42:24 +13:00
Brandon Presley 31f9ddede3 Merge branch 'master' of gitea.presley.nz:brandon.presley/Massive 2024-02-05 14:29:29 +13:00
brandon.presley b42fb6b2b6 Merge pull request 'Add leading zeros to minute and day of month fields' (#219) from svenf/Massive:fix-date-format into master - 2.10 🚀
Reviewed-on: #219
2024-02-05 14:29:02 +13:00
brandon.presley 9b52aec554 Merge pull request 'Add leading zeros to minute and day of month fields' (#219) from svenf/Massive:fix-date-format into master
Reviewed-on: #219
2024-02-05 01:26:48 +00:00
Brandon Presley 426c557019 Add migrations to leading zeros for date settings
Also included the 12-hour formats for leading zeros.
2024-02-05 14:24:53 +13:00
Sven Frotscher fe695de487 Add leading zeros to minute and day of month fields 2024-01-16 12:13:23 +01:00
Brandon Presley 5a3b926dcf Handle fresh user experience better for Plans - 2.9 🚀
1. Add a button to insert some Exercises if none exist
2. Show a toast for the first plan, explaining you should
  tap it to begin the plan.
2023-11-29 12:55:18 +13:00
Brandon Presley 81421e5be7 Make timer bar slightly taller 2023-11-29 09:27:56 +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 8e9a6be85d Start alarm service as non-foreground - 2.8 🚀
Closes #209
2023-11-28 11:16:41 +13:00
Brandon Presley 3ed87114d2 Fix view weight graph for small screens 2023-11-27 11:53:54 +13:00
Brandon Presley 5a9030dae7 Fix view of graphs on smaller screens 2023-11-27 11:51:15 +13:00
Brandon Presley fe68ddfae8 Show full date for graphs 2023-11-23 15:04:18 +13:00
Brandon Presley 9ab07c0114 Put selected exercises first when editing a plan - 2.7 🚀
Closes #190
2023-11-22 11:29:12 +13:00
Brandon Presley c18072bdc0 Default showing of steps to false 2023-11-21 19:25:18 +13:00
Brandon Presley 610d55c932 Change color name of Red to Brandy 2023-11-21 19:24:47 +13:00
Brandon Presley 0163788175 Set placeholder for plan title 2023-11-21 19:24:40 +13:00
Brandon Presley 8a1e1b982a Show both date and time by default 2023-11-21 19:14:53 +13:00
Brandon Presley 8cfdc354dc Make fresh installs show the date by default 2023-11-21 19:11:12 +13:00
Brandon Presley c98706bd56 Delete gitea issue template
Not sure how to make different kinds since there can be
bugs or feature requests.
2023-11-21 17:57:08 +13:00
Brandon Presley 303d8fa819 Make version a text input for issue template 2023-11-21 17:56:00 +13:00
Brandon Presley e20d07bcf8 Add issue template to gitea 2023-11-21 17:54:42 +13:00
Brandon Presley cb2fa2fb0c Fix error when saving a set with no weight
Just default it to zero if it isn't entered.
2023-11-21 17:44:53 +13:00
Brandon Presley abbe702f24 Update package-lock.json 2023-11-21 17:30:00 +13:00
Brandon Presley 2a78d2e556 Add button to export sets as CSV - 2.6 🚀
Closes #203
2023-11-21 10:26:34 +13:00
Brandon Presley 3882a95b65 Add whitespace to SettingsPage 2023-11-21 10:16:31 +13:00
Brandon Presley 7e764062f4 Remove redundant exports from gym-set.ts 2023-11-21 10:16:17 +13:00
Brandon Presley 857af61eec Refactor SettingsPage
1. If we rely on query builders too much we lose type safety
2. The update method wasn't really worth factoring out in the
  first place.
2023-11-20 20:06:45 +13:00
Brandon Presley 15a28a0a81 Replace dragging with buttons in edit plan - 2.5 🚀
Every draggable library I tried was buggy.
2023-11-20 12:42:23 +13:00
Brandon Presley 2f24104d13 Set finished notification sound to null - 2.4 🚀
Closes #195
2023-11-20 12:24:43 +13:00
Brandon Presley cc6b37e16a Fix timer not always ending - 2.3 🚀
This bug is because I mis-named the event for the alarm finishing.
It would only be possible to create this bug if you do the following:
1. Create a timer
2. Swap to another app for it's duration and keep your phone screen
   active
3. On timer completion, without tapping the notification, focus the app
4. See the timer has not been set to zero
2023-11-15 22:44:02 +13:00
Brandon Presley b485175082 Stop timer when you undo a set from an open plan 2023-11-15 16:05:28 +13:00
Brandon Presley 086e3ea2df Simplify the peek view of exercises from Plan 2023-11-15 16:03:58 +13:00
Brandon Presley 1b164aaaf1 Remove loading indicator where load times are fast
If the load time is too fast (on a mid-tier device),
then for most people they will see a flicker of a
loading spinner (which looks like a bug). These indicators
would only marginally improve the experience of people with
the slowest devices, but for most people this will just look
like a bug.

I left the indicators in the InsightsPage since those queries
actually do take >=300ms on a mid-tier device.
2023-11-15 15:53:32 +13:00
Brandon Presley b44cbae131 Fix progress bar not showing on some pages - 2.2 🚀
Moving the bar  from App.tsx -> AppDrawer.tsx was a mistake,
because then the bar only shows on drawer routes instead of
app-wide.
2023-11-15 14:32:29 +13:00
Brandon Presley 608bb3e97a Add settings for default fields on Exercise - 2.1 🚀
Closes #188
2023-11-15 14:05:25 +13:00
Brandon Presley f6a75d89cd Write an empty mp3 when disabling sound - 1.188 🚀
Also revert to the default sound if you enable it again.

Closes #178
2023-11-15 13:28:30 +13:00