Commit Graph

16 Commits

Author SHA1 Message Date
Rosa Gutierrez 26d5701217 Wait for service worker to be active before subscribing
The push subscription requires an active service worker. When
registering a new service worker, we now wait for it to become
active using navigator.serviceWorker.ready before attempting
to subscribe to push notifications.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 16:38:45 +01:00
Rosa Gutierrez c650cba179 Fix stuck state when permission granted but no subscription
When you had already granted notification permission but hadn't
completed the subscription flow (no service worker or no push
subscription), the UI showed neither the subscribe button nor the
enabled state, leaving you stuck with no way to subscribe, and wrong
instructions to fix it.

Instead, let's just show the button to allow you to subscribe.
2026-01-23 16:38:45 +01:00
Jason Zimdars 785de2f0cb Whitespace 2025-07-22 22:42:36 -05:00
Jason Zimdars 211403f584 Remove debug 2025-07-21 18:49:29 -05:00
Jason Zimdars 9b6995194c Break sooner, use switch 2025-07-21 18:49:18 -05:00
Jason Zimdars c3b946c961 Design flow for enabling push and the various status that go with it 2025-07-21 18:27:31 -05:00
Jason Zimdars 4ba3bbc4f1 Revert "Linux wet the bed on this, trim whitespace and ensure 8-bit values"
This reverts commit 3940d9d60f.
2025-07-17 19:51:31 -05:00
Jason Zimdars b2334fc8be Revert "Add debug for Linux"
This reverts commit 37e344d9f1.
2025-07-17 19:51:25 -05:00
Jason Zimdars 37e344d9f1 Add debug for Linux 2025-07-17 19:33:21 -05:00
Jason Zimdars 3940d9d60f Linux wet the bed on this, trim whitespace and ensure 8-bit values 2025-07-17 19:30:30 -05:00
Jason Zimdars 1b52a860f3 No need to talk to other controllers right now 2025-07-17 18:04:40 -05:00
Jason Zimdars 347e41037f Simplify connect method, stub a method that will display various states based on detection 2025-07-17 17:54:23 -05:00
Jason Zimdars 3ddb5e536e Use async method instead of getter, use root scope 2025-07-17 17:29:20 -05:00
Jason Zimdars 291f4e2d14 Now that the basics are working, update debug to catch real issues
- I'll use these to update the UI later
2025-07-15 18:09:30 -05:00
Jason Zimdars db9f670876 Must include account slug to match manifest scope 2025-07-15 17:03:28 -05:00
Jason Zimdars 47324eb45a Fix routes to manifest and service-worker, rename controller 2025-07-15 16:42:47 -05:00