gitoria

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit384d3d23384d3d23|||PR give calendar months their own addressAtlas384d3d23/reports/C13-reminder-place.md

4.4 KB

  1. # C13 — the notification controls leave the month view (branch c13-reminder-place) — HANDOFF, gates to re-run
  2. ## Done
  3. - Month view = month header + weekday row + day grid. `bar#reminder-bar` (text, Turn on, Test, Off, "Reminder settings") is gone (components/month-view/month-view.hl).
  4. - User menu (user icon → components/main.hl, `button#settings-open` "Reminder settings", declarative `popovertarget="settingseditor"`, no JS) opens the settings dialog.
  5. The dialog (`#settingseditor`, now a MANUAL popover: an auto popover opened from inside the menu is nested and dies with it) has the section
  6. "Notifications on this device" first (state text, blocked hint, Turn on / Send a test notification / Turn off — full-width buttons, 44 px at 390), then "Default reminders", Save/Cancel.
  7. Esc and Cancel close it (`on keydown`, `popovertargetaction=hide`); Save closes via hidePopover.
  8. - No hint in the month view for users who have not turned notifications on (nothing fits the month view; the section is one tap away in the menu; the first-open state shows "Turn on notifications").
  9. - Behaviour kept: subscribe-on-show (pushEnsure), owner-only test 1 per device per 30 s, off switch (localStorage), blocked hint; ids kept.
  10. ## Why "Turn on" + test + off showed together (caramboleyo's phone)
  11. `askNotify` called `readPermission()` BEFORE `pushOffKeep(false)`: after a "Turn off" (flag set) the ask button was computed visible (`granted && pushIsOff`) and never recomputed when pushEnsure succeeded and showed test/off. Now ONE derivation (`showControls`: `pushOn`, `notifyState`, `pushIsOff`) runs after every change: Turn on only while `!pushOn`, test+off only while `pushOn`.
  12. ## Why nothing showed on load (his other shot) and what push depends on
  13. All of `browserEnv()` (permission read, arm(), subscribe) ran only on pointerover/focusin/touchstart INSIDE month-view or on a later `shown`/visibilitychange. Header/menu taps are outside it. So on a phone, without a touch on the month view, no state is read and the device is not subscribed (the gate "3" already saw: first load subscribes nothing). Now opening the settings (`on toggle` → `browserEnv(); readPermission()`) reads the state and subscribes a granted device at once. Subscribing at plain first load without any touch is still NOT possible (no first-load hook in Hybriel) — open gap for push: a device that never touches the month view and never opens settings is armed only by the next `shown`.
  14. ## Gates (tests updated for the new place)
  15. - New: browser.mjs "month view at 390: only header/weekdays/grid" + "grid within 80 px" (old code: both FAIL, grid 149 px below header, tags include bar#reminder-bar; verified on old tree). push.mjs: one-state checks (1, 3, "Turn on after off"), scenario 5 "first look on a touch phone, nothing touched" (no permission → only Turn on; permission → subscribed by opening the settings, never two states). notify-paths/e2e-theme/settings-shots open the menu first.
  16. - Counts BEFORE the last code edits (popover manual, section order): browser 86/0 (old baseline 84 + 2 new), theme 0 problems. NOT re-run after the last edits: browser, notify-paths (syntax slip fixed), push, dst. **Re-run all five before merging** (env: C13/s/gate-env.sh, script C13/s/gates.sh). Honest note: the "Turn on after off" check cannot fail on the new code (the new single derivation fixes it); the old bug is shown by reasoning above, not by a red old run.
  17. ## E2E (lisbeth, lock, tab 37CE… reused, app on a backup COPY without sessions/push table, fake push service)
  18. tests/e2e-reminder-place(-app).mjs: 390 touch + 1280, dark/light, month untouched → menu → settings → state → "Send a test notification" → fake service got 1 push → 2nd refused → Cancel → reopen → Esc: 45 passed, 0 failed (incl. 390 without permission: only "Turn on").
  19. Shots: /media/STORAGE/claude-scratch/atlas/C13/shots/ old-390-dark-month-touched.png (before: bar), new-390-dark-month.png, new-390-dark-menu.png, new-390-dark-notifications.png (no-permission), new-390-dark-sent.png, new-1280-light-sent.png and the rest `{old,new}-{390,1280}-{dark,light}-*.png`.
  20. Seen: month clean; menu entry 44 px; dialog consistent, section first, buttons full width. Caveat: "light" shots are DARK — prefers-color-scheme emulation does not change this app's theme (no light mode found); not a regression.
  21. ## Open
  22. re-run gates; Esc/focus (autofocus on Cancel) not checked with a screen reader; old helper scripts (push-shots*, reminders-e2e, push-real) still use the old ids in the month view.

Branches

Latest commits

  • 384d3d23|||PR give calendar months their own addressAtlas
  • 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