Files
gabrielvidalandClaude Opus 5.5 8ad0dc33e1 feat(notify): a push's buttons work from the browsers and the app, not only Home Assistant
The auto-ship push 'Merge & deploy N PRs?' carried its buttons only on the
Home Assistant notification, whose taps reach the lab over the tailnet: with
the phone off the tailnet (2026-11-27), the tap went nowhere and nothing said so.

- web push: the owner's browsers get a push's button titles (`actions`);
  push-sw.js draws them and a tap answers POST /api/notify/{id}/action (a
  failure opens the push's link), like an ask's options
- /api/notify/{id}/action: the first tap wins (a second device's goes nowhere,
  the plugin hears it once) and the push is cleared off the other devices
- inbox.waiting items may name their push (`notifyId`, owner only): the
  Waiting for feedback card and the bell then tap that push's buttons
- a plugin's hub/changed also refetches the inbox (its card leaves once answered)
- tests: push-sw.js in a fake worker scope, the bell's push tap, the web push
  payload, first tap wins + clear, notifyId passthrough

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:23:31 +01:00
..