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
- edb7c947calendar: the sign-in callback keeps the session it finds and signs it in (same cookie, nothing signed out; ident#28); security gate 56+4 failing → 60 passedmre
- bf8cc0fcStyles move into their components: the shell's styles into main.hl, the events and the editors into the month view's Style block; styles.hl keeps only the theme inherit, the accent and the message line; .gitignore ignores a bin symlink too; tests/styles-shots.mjs for the before/after pixel comparemre
- 5d8579d7README: login.js stays by caramboleyo's explicit rulemre
- cc759328Merge sb3-standby: calendar deploys through its standbymre
- f2fcdc6dcalendar: a standby container (port 45015, profile standby, reminder clock off) and a /health page; deploy hands over through standby-swap.sh without a gapmre
- 229643f7Merge branch 'cal-14'mre
- 1110b26fcalendar#14: the month name no longer breaks into two lines on a phone (Reminder settings drops to its own row when the header is too narrow), gate checks for one-line title and all header controls on screenmre
- 490c658aident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
- 18095868calendar: Reminder settings button opens its dialog again (the dialog's open handler still closed the removed user menu and stopped); old e2e and gate scripts use the new headermre
- 6eee4b5acalendar header: the selector alone top right plus Log out as before the theme missions; Reminder settings back on the month page (WIP: the settings test still fails)mre
- 0b909decident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
- 0c8f9364Merge branch 'sy-sync'mre
- 9fab1c8fsync components.hybriel 4922f9c into the month view: prev / next 44 px targets, names formatted in UTC (a UTC+12 zone showed the wrong first weekday); the calendar keeps its own language handling (Accept-Language / browser) and the P1/C13 reminder code; gate: 44 px check (SY)mre
- 27d3e294theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
- 2ac9c1bbdeploy: security gate (tests/security.mjs)mre
- 6b0a2571merge sc-sec (calendar security) with 99-year sessionsmre
- 92001e52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- 0f76c99dSecurity audit SC: push endpoint SSRF guard, uploadMax 0, Secure cookie, login session rotation + rate limit, event cap, nosniff, security gatemre
- 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