Mike Dalessio
c78bb652d5
Clean up beacon on-visibility-change handling
...
The previous version was not posting the beacon when the page was
loaded and visible.
2025-08-09 14:09:34 -04:00
Mike Dalessio
8ec109ec1a
Delay clearing notifications until a card is actually viewed.
...
Send the "read" beacon when the card is made visible.
Also take care to only send the "disconnect" beacon if the card is
visible.
ref: https://fizzy.37signals.com/5986089/collections/2/cards/1301
2025-08-08 08:02:54 -04:00
Kevin McConnell
42fa37d347
Send beacon request on disconnect as well
...
This is so we can dismiss any notifications that arrived for a bubble
while we were viewing that bubble. Otherwise, they'll stick around until
we leave the page and come back.
2025-01-21 14:47:56 +00:00
Kevin McConnell
c11b5af5e0
Make Stimulus controller more generic
2025-01-14 13:37:54 +00:00