calendar
All repositories: gitoria
4.4 KB
# C13 — the notification controls leave the month view (branch c13-reminder-place) — HANDOFF, gates to re-run## Done- 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).- User menu (user icon → components/main.hl, `button#settings-open` "Reminder settings", declarative `popovertarget="settingseditor"`, no JS) opens the settings dialog.The dialog (`#settingseditor`, now a MANUAL popover: an auto popover opened from inside the menu is nested and dies with it) has the section"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.Esc and Cancel close it (`on keydown`, `popovertargetaction=hide`); Save closes via hidePopover.- 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").- Behaviour kept: subscribe-on-show (pushEnsure), owner-only test 1 per device per 30 s, off switch (localStorage), blocked hint; ids kept.## Why "Turn on" + test + off showed together (caramboleyo's phone)`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`.## Why nothing showed on load (his other shot) and what push depends onAll 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`.## Gates (tests updated for the new place)- 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.- 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.## E2E (lisbeth, lock, tab 37CE… reused, app on a backup COPY without sessions/push table, fake push service)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").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`.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.## Openre-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
- 2dd53dccP1: one reminder shows once: arm() one at a time, the page skips reminders the server already pushed; push-twice gatemre
- 3a29760aC13 report (handoff)mre
- 33ab66ffCalendar: notification controls move from the month view into Reminder settings (user menu), one consistent state, state read when the dialog opensmre
- 682a5b43reports: calendar gate countsmre
- 876d22b2reports/H1-hydrate.mdmre
- ef0cae45tests/dst.mjs: wait for hydration instead of a fixed 2.5 s sleep before clicking #gomre
- d9cadecatests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre
- efa61227re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
- 7808adbecalendar#12: report 011, LOG, STATUS, push-shots-testmre
- df2e4fa0calendar#12: test push rate limit (1 per 30 s per device), owner-only gate checksmre
- acb957cfcalendar#12: Send a test notification on a subscribed device (one push in ~10 s, owner's own device), push gate part 4mre
- 0b222eb8tests: e2e-theme CDP port default from E2E_THEME_CDP_PORT (8756 unchanged)mre
- 8b8a5abare-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
- a69b27f9docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 1a97edfdcalendar mission 010: reminder rows at 390 px (the 7-column month grid no longer catches the reminder lists), gate checks, settings-shots, reportmre
- 61b21404calendar mission 009: reminder times on hl:time in the browser (lib/push-plan.hl and the Intl code removed), DST gate tests/dst.mjs, E2E script, reportmre
- 875353c1calendar mission 009: re-vendor Hybriel master 022a3ac1 (int 6 6b396322 hl:time browser side, int 7 65e8ec21; bin sha256 6e0f77d7, plugins whole)mre
- ce16a4efdeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- f490bc8cdeploy: Web Push gate tests/push.mjs (PUSH_GATE_PORT)mre
- 3af29fc8calendar mission 008 (A8): report, README, LOG, push-shots.mjsmre