calendar
All repositories: gitoria
6.0 KB
# Report 009 (A9): re-vendor Hybriel master, drop the calendar's own hl:time copiesBranch w9-hltime (worktree A9/wt), from main ce16a4e. Not pushed, not deployed, no .env read. Evidence /media/STORAGE/claude-scratch/atlas-evidence/A9/ (logs + shots).## Step 1 — re-vendor (commit 875353c)Hybriel master **022a3ac1** (contains 6b396322 = int 6 + hl:web batches 5+6, and 65e8ec21 = int 7; checked with `git merge-base --is-ancestor`). bin/hybriel = native/zig-out/bin/hybriel (sha256 6e0f77d77cc10b72f7620c16817bbf24e2380812f2157daf95dd600a069b9e80, static), bin/libhlrt.a + hlc.o + hlrt/ from native/zig-out/lib; plugins core crypto data fetch fs http http1 mpackdb proc time web copied whole (rsync --delete). Changed: mpackdb (MPackDB.hl, engine, mpackdb.zig, libmpackdb.so), web (WebFramework, client, compile, README); new in time/: client.js, tests/parity.*.## Step 2 — what was removed- `lib/push-plan.hl` deleted (63 lines). The server clock (`lib/push.hl`) now calls `missed` of `components/month-view/reminders.hl` — the same code as the page.- reminders.hl: `offsetOf` (Intl.DateTimeFormat by hand) and the `new Date(...)` device-zone branch gone; `instantOf` is now `fromLocal` of hl:time (`import { fromLocal } from 'hl:time'`). `planBetween` / `plan` / `missed` take a `deviceZone` (an all-day event's day is read in it). Net over lib/ + components/: 22 insertions, 100 deletions.- month-view.hl: new `deviceZone()` (Intl zone name of the browser, read at each arm; not fZone, which is only set at the first pointer) passed to `missed` / `plan`.- No JavaScript written. No new Hybriel gap: the A7 repro (static calling fromLocal in a component) works.## DST check (tests/dst.mjs, `tests/dst/`, in deploy.sh GATES)Real headless Chrome, device zones Europe/Vienna, America/New_York, Australia/Lord_Howe (Emulation time zone); a test page runs the OLD code (tests/dst/old-reminders.hl = main's reminders.hl) and the NEW next to each other on 3500 cases per device zone: events in Vienna/New York/Lord Howe/UTC/Kolkata on 2026-03-08, 03-29 (Vienna spring change), 03-30, 04-05, 10-25 (Vienna autumn change), 10-26, 11-01 (NY), 11-02, 2027-03-28, 2027-10-31, start times 00:30 02:30 03:00 09:00 23:30, timed and all-day, rows minutes/hours/days. Third source: python zoneinfo. **13/0.**- NEW = python zoneinfo in all 3 × 3500 cases.- NEW = OLD in 3473 of 3500; **27 differ by exactly one hour** (18 fold cases: the old Intl code took the LATER instant of the repeated hour, now the earlier; 9 gap cases: now moved forward), all with a wall clock inside the Vienna/New York change hour (fold/gap), and they equal what the server's push copy already did. Everything else, DST days included, identical. So not 100% identical: the old browser code was wrong by one hour in the fold/gap hour; page and push are now the same. (Old code vs python: the same 27 differ → the check "new = python" fails on old code.)## Step 3 — gates (ports: notify 8732–8739 (app 8732, ident 8733, Chrome 8734–8739; its range is PORT+2…+7 for the 6 scenarios), push base 8788 (app 8788, ident 8789, fake push 8790, Chrome 8792), browser gate old 8788/8789/8790–8794 and new 8732/8733/8734–8739 (not at the same time as the others on one port set), dst 8793/8794, E2E app 8793 (ident 8794))| gate | old (main ce16a4e + its bin) | new (w9-hltime) ||---|---|---|| tests/browser.mjs | 81/0 | 81/0 || theme/check-theme.mjs | – | 31 files, 0 problems || tests/notify-paths.mjs | 7/0 + 3 gaps | 7/0 + 3 gaps || tests/push.mjs | 16/16 | 16/16 || tests/dst.mjs | n/a | 13/0 |Notes: the browser gate FAILS (79/1: "first pointer event runs no calLoad of its own — 2 frames") on old AND new whenever the local date differs from the UTC date, i.e. between 00:00 and 02:00 CEST (server's `today` is the UTC day; GATE_CLOCK shifts only the page). Rerun after 02:00 CEST: 81/0 both. Not caused by this mission; worth a note for the gate. Known gaps unchanged, none closed: permission button before first touch (no show hook), open-not-touched reminder, closed app (the gate text still says "needs Web Push" but Web Push exists since 008; its scenario is not changed).## Step 4 — lisbeth E2E (tests/reminders-e2e.mjs, real Chrome 155, one tab, under the lock, fresh ident login each run, host localhost:8793 via ssh -R, real FCM)Same script on the old tree (PREFIX old) and the new (PREFIX new); each: subscribe (fcm.googleapis.com), event "Real push" 2.5 min ahead with 1 min + 1 day before 20:00, all-day event tomorrow (12 h), card/settings shots at 390 and 1280, the reminder fires with the page open (tag = `<id>:<start − 60 s>`), then real clicks on "Turn off on this device" (browser unsubscribed, "Turn on notifications" offered, text "Reminders show while the calendar is open on this device.") and back on (subscribed again), off control 44 px high at 390.- old: all RESULT lines yes (tag exact instant yes, off ok, on ok), push sent (201). new: identical results, tag `0mvirgmgn7ga:1792626480000` = reminder instant exactly, push sent (201). Checks: 2 × (exact tag, off, on) = 6 yes, 0 no. The planned text is "2 reminders set for the next 7 days" in both.- Shots (looked at): old-390-card / new-390-card, old-1280-card / new-1280-card — pixel layout the same: planned text, "Reminders also reach this device when the calendar is closed.", "Turn off on this device", "Reminder settings", the month with the 01:4x event on the 22nd and "All day tomorrow" on the 23rd; at 1280 one row. Also *-390-on, *-390-settings, *-1280-notified, *-1280-off, *-1280-on-again, *-390-on-again.- **Seen, not caused by this mission (old = new):** the "Reminder Settings" dialog at 390 px (old-390-settings.png / new-390-settings.png) shows its two reminder rows jumbled: inputs and selects of both rows stacked in two narrow columns, selects without readable text, × marks far below. The gate says "the editor fits a phone" (no horizontal overflow), so it does not see it. Worth a ticket.## GapsClosed: A7's gap "hl:time fromLocal in a browser static". Open: the three notify gaps above; the very first load hook; the settings-dialog layout at 390 px; the one-hour fold/gap change (intended).
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