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
- 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
- e9fec7bb|||PR HL-STANDARD clean-up: typed parameters, plain locals, by-reference cacheAtlas
- eff166a4Re-vendor complete Hybriel plugins and runtime to day44mre
- cef81394Wait for the DST fixture page instead of an unused socketmre
- 42434f47Check lazy-session cookies after login with a stored anonymous fixturemre
- 728e84e3Re-vendor complete Hybriel day41 plugin directoriesmre
- cbd7ff43Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
- 59d1da0acalendar: plain declarations instead of needless let in 9 files (calendar#17): 49 declarations that are never reassigned; reassigned ones and the timer closure's p stay letmre
- f5415cf9calendar: the Style blocks in the language's nested form (calendar#16): rules named after the View's own elements with their children nested, pseudo-classes and @media nested, merged duplicate select rule; same CSS, shots identical in Chrome at 4 sizesmre
- 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