gitoria

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite9fec7bbe9fec7bb|||PR HL-STANDARD clean-up: typed parameters, plain locals, by-reference cacheAtlase9fec7bb/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

  • 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
  • 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