gitoria

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb99cce69b99cce69|||PR Update calendar login and logout through session pushesAtlasb99cce69/reports/011-push-phone.md

4.0 KB

  1. # Report 011 — calendar#12: push never arrived on caramboleyo's phone
  2. Branch w12-push-phone (from main 0b222eb), not pushed, not deployed, no .env read, byrodin only read.
  3. ## Findings (server data, 2026-10-22 ~10:00)
  4. - push.db: ONE subscription: owner 0muh8y8myb5z (ident az5b2), endpoint host fcm.googleapis.com, zone Europe/Vienna, created 2026-10-22 08:49:56 CEST. `since` advances every 30 s (loop alive).
  5. - nginx (container `web`): at 06:49:50-54 UTC his phone (Android 10, Chrome 155 Mobile) loaded the app, the NEW /__hl/sw.js (701 B, push + notificationclick handlers) and the manifest (standalone, icons 200/304); subscription saved 6 s later. His visit before that: 21 Oct 05:54 UTC with the OLD sw.js (622 B, no push) — before the 22:46 deploy.
  6. - calendar container log: no "push sent / not sent" line ever: the server never tried to send to him.
  7. - His future events: 2026-11-03 09:00, 11-04 all-day, 11-07 15:45; default reminders → first due 2026-11-02 20:00. Nothing came due since he subscribed.
  8. - Live service worker: showNotification in push, notificationclick, icons 200. No bug found in the send path.
  9. ## Cause
  10. Not a server bug: push reached production at 22:46 on the 21st, his installed app took the new worker only on the 22nd 08:49, and since then no reminder was due — there was nothing to push, and the app gave him no way to see that push reaches the phone. Display on his phone remains unproven (Android notification/battery settings can still hide it); nobody here has that phone.
  11. ## Fix
  12. "Send a test notification" (#push-test, shown on a subscribed device): `calPushTest` → lib/push.hl `testPush` marks the device row (`test` due time, `testAt` request time); a 2 s ticker (`testRound`) sends ONE push after CALENDAR_PUSH_TEST_DELAY (10 s): title "Calendar test", body "Push works on this device", tag calendar-test; log "push test sent (201)" / "push test not sent" / "push test: the subscription is gone".
  13. Abuse: the face needs the signed-in session; `testPush` finds the row by endpoint and requires `row.owner == session user` (a foreign or unknown endpoint → error, nothing sent); rate limit 1 test per device per 30 s (`testAt`, a waiting test counts) → "a test was just sent: wait 30 seconds"; payload fixed (no user text), ttl 120 s.
  14. ## Gates (final code df2e4fa + report commit)
  15. browser 84/0 (CALENDAR_GATE_PORT 8734); check-theme 31 files 0 problems; dst 13/0; notify-paths 7/0 + 3 gaps (NOTIFY_GATE_SCRATCH short path: Chrome's socket path limit broke it under wt/.scratch); push full 23/23 (16 old + 7 new in part 4: button 44 px, "on its way", nothing before 1.5 s, second tap refused, foreign/unknown endpoint refused, ONE push 8-20 s later to the closed device with the right title/body, no other device got a test). Part 4 on old main (button missing): 0 passed, 2 failed. (Parallel runs collide on ports 8734/8735: run notify and browser one after the other.)
  16. ## Real FCM in lisbeth's Chrome 155 (tests/push-shots-test.mjs, app on loreana :8791, under the lock)
  17. Subscribed through fcm.googleapis.com; tap on the button → app log `push test sent (201)`; `registration.getNotifications()` = [["Calendar test","Push works on this device","calendar-test"]]; second tap within 30 s → "The test could not be started: a test was just sent: wait 30 seconds". Shots (looked at, layout clean, 44 px button, text wraps, no overlap): /media/STORAGE/claude-scratch/atlas-evidence/C12/ test-390-on, test-1280-on, test-390-sent, test-1280-sent, test-390-ratelimit (.png).
  18. ## Not proven
  19. The OS-level toast on a physical phone (CDP cannot capture it). Test plan for caramboleyo after deploy: reload Calendar in Chrome, tap "Send a test notification", lock the phone within 10 s; expect "Calendar test – Push works on this device"; server log `push test sent (201)`. 201 but nothing shown → Android Settings → Apps → Chrome → Notifications / battery; 410 → tap "Turn on notifications" again.
  20. ## Ident (report only)
  21. No Web Push: lib/notify.hl hasPushDevice is a stub (false), lib/delivery.hl pushHooks.push = null (ident#8 not built); urgent notifications are mailed.

Branches

Latest commits

  • b99cce69|||PR Update calendar login and logout through session pushesAtlas
  • fff2f537Merge branch 'calendar31-lib' into mainAtlas
  • 07cde3dc|||PR keep worker records out of the repo; README vendor is day72Atlas
  • a753b0ab|||PR move shared calendar logic to libAtlas
  • b32a921dMerge branch 'vendor-day72' into mainAtlas
  • 60a0dd19|||PR Hybriel day72 (00c9dbb8) instead of the withdrawn day73Atlas
  • 53f5464dMerge branch 'calendar26-day73' into mainAtlas
  • 338499ec|||PR Keep reminder settings open during editing and rejected savesAtlas
  • ad9e8d59|||PR Use framework page and popover state, Hybriel day73Atlas
  • cab224a1Re-vendor calendar to verified Hybriel day73Atlas
  • f9b8f918Merge branch 'calendar-vendor-day61' into mainAtlas
  • 66341793|||PR Vendor Hybriel day61Atlas
  • 36fc596bMerge branch 'vendor-day59' into mainAtlas
  • b37cc1da|||PR Vendor Hybriel day59Atlas
  • 05665102Merge branch 'vendor-day56' into mainAtlas
  • 687296fb|||PR Vendor Hybriel day56Atlas
  • a6166d4eMerge branch 'hl-standard-3' into mainAtlas
  • 6d0eb3b0|||PR Calendar day add buttons only when signed in (Kunibert minor)Atlas
  • add4b499|||PR Make calendar day actions keyboard accessibleAtlas
  • 79e49b4dMerge branch 'hl-standard' into mainAtlas