calendar
All repositories: gitoria
11.9 KB
# Report 006 — calendar onto the layouts theme, mobile first — PARTLY DONE (not deployed, not pushed; stopped at the quota)Worker A3 (Sonnet), 2026-10-21. Branch `w6-theme` from 3c5604f (= live). Brief: missions/006-theme.md.## What changed- `theme/` = `git archive dbe3de7 theme` of layouts.worldapi.org (dbe3de79aaf63a5c9e98ca7cb1017fe44a46913d), verbatim; `shared/tokens.hl` is byte-equal to layouts' (cmp). No `.check-theme-ignore` needed (no vendored folder; plugins/ bin/ are skipped by default).- deploy.sh: `"node theme/check-theme.mjs ."` is in GATES; both gate-summary greps are `grep -E 'passed,|^check-theme:' …`, the success one exactly `… | tail -1 | sed 's/^/ /' || true`. (bash -n not re-run; not run through a full `deploy.sh --dry-run`.)- Shell (`components/main.hl`, adapted from notes 011): theme AppHeader (brand "Calendar" · MainMenu · UserMenu) + phone Sidebar (☰ → main menu, `desktop="false"`) + `main { ContentFirst { slot } }`.Main menu = one item "Calendar" (`/`). UserMenu (signed in): `#whoami` "Signed in with ident", `#logout`. Signed out: the ident icon → dropdown with ident's selector + "Log in with ident" (open in the header from 60rem), as notes/tickets.**Shell choice: ContentFirst** — the calendar is one big content area (a month) with overlays (editor, reminder settings); no list pane (not ListFirst/three-pane); without a desktop sidebar the month gets the whole 72rem column; the Sidebar holds only the main menu on the phone.project.hl: appThemeColor/appBackgroundColor from tokens (`darker.value` / `dark.value`) instead of hard-coded #191e23 (check-theme).- `components/styles.hl` (61 → ~55 lines): `inherit theme.hl`, accent blueLight, and only: `.message`, the ident login in the header, the day chips (`button.event`/`.more`: phone = cell-wide and 44 px tall; ≥60rem small on purpose, said in the rule), the active state of the kind switches, the editor scrim/panel (no border, radiusLarge, scrim via `color-mix` of the token), field rows. Gone: base elements, links, headings, buttons, `.quiet`, header, `a.button`, `main`.- Fork `components/month-view/month-view.hl`: only its `Style` block changed (behaviour untouched): borders/radii/select frame removed (the theme tiles the cells and frames), phone cell 3.5rem with no side padding, wide layout moved 40rem → 60rem, reminder-row fields `minWidth 2.75rem; flex none` (they were squeezed to 43 px when a row wrapped).- `components/loginfailed.hl`: the "back to the calendar" paragraph is `class="links"` (44 px).- check-theme: 17 problems on the old styles + fork → **0** (26 files).## 390 audit (real Chrome, copy of calendar.worldapi.org-20261021-0018.tgz, creator session, DPR 2 mobile+touch; old = 3c5604f, new = this branch)taps<44 = interactive elements under 44×44; wide = visible elements past 390; text<14 = elements with own text <14 px. Raw: logs/e2e-old-full.log (old), logs/e2e-new-audit.log + shots/new-audits.json (new).| page (390) | scrollW | taps<44 / all (old → new) | inputs<16 | wider than 390 | header px ||---|---|---|---|---|---|| month | 390→390 | 16/16 → **0**/18 | 0 → 0 | 0 → 0 | 60 → 52 || month with events | 390→390 | 17/17 → **0**/18 | 0 → 0 | 0 → 0 | 60 → 52 || new event editor | 390→390 | 29/30 → **0**/31 | 7 → **0** | 0 → 0 | 60 → 52 || event editor, own reminder row | 390→390 | 40/41 → **0**/42 | 7 → 0 | 0 → 0 | 60 → 52 || edit event | 390→390 | 30/31 → **0**/32 | 7 → 0 | 0 → 0 | 60 → 52 || reminder settings | 390→390 | 26/27 → **0**/31 | 0 → 0 | 0 → 0 | 60 → 52 || login-failed | 390→390 | 3/3 → **0**/4 | 0 → 0 | 0 → 0 | 60 → 52 |Totals at 390 over the 7 pages: taps<44 161 → **0**, inputs<16 42 → **0**, wider than 390 0 → 0, check-theme 17 → 0. (The "7 reminder fields at 43 px" the first new audit found are fixed by the fork rule above; re-audited: 0.)Text <14 px (not in the brief): 139 → 140 (the event chips are 12 px by design, `time`/labels 12.8–13.6 px) — left.1280 (new, deliberately denser): month 16/18, editors 22–26, login-failed 1 targets under 44 (theme buttons 36 px, header link 38 px, day chips small by their own rule) — same note as gitoria/tickets/notes.Real "month with events": the copy held events in an earlier month; the script paged back until a chip showed.Note: the day chips at 390 are cell-wide (≈48 px) and 44 px tall, so a day with 4 events is tall; text is cut with an ellipsis. A phone agenda (day list) would be nicer but is a behaviour change — not done.## Gates (LC_ALL=C, ports 8732–8739 / 8750)| gate | old 3c5604f | new ||---|---|---|| tests/browser.mjs | **78/0** | run 1 37/1 (selector), run 2 77/1 (theme colour), run 3 78/0, **final (after the last CSS change) 78/0** || tests/notify-paths.mjs | **7/0, 3 Hybriel gaps** | **7/0, 3 Hybriel gaps** (run on the tree before the last month-view CSS tweak; not rerun) || check-theme | – | 0 |Test changes in tests/browser.mjs (only where the shell changed): (1) Log out is in the user menu: new helper `logOut()` really clicks `button.user-toggle`, waits for `#user-menu:popover-open`, then `#logout` (used at the two logout steps); (2) "the page carries the theme colour": now `rgb(15, 20, 25)` (tokens `darker`), was `#191e23` — same change as notes/tickets.## E2E in lisbeth's real Chrome (CDP via `ssh -f -N -L 8756:127.0.0.1:9223 -R 8751 -R 8752 lisbeth`, ONE existing about:blank tab, put back; no /json/new, no clipboard; app on a COPY of the newest backup, old :8751 / new :8752)`tests/e2e-theme.mjs`, `tests/e2e-start-app.sh`, `tests/mobile-measure.js`. Real mouse clicks and Input.insertText.- OLD, full walk: 24/26 PASS at 390 + 1280 (month, next/prev, day click opens "New event", own reminder row added, create, reload (stored), edit, delete, reminder settings add row + save). The 2 FAILS were at 390 on old code: "click on the event opens Edit event" and "event gone after delete" (the 12 px chip is tiny / the click did not hit it) — not examined further.- NEW: with `E2E_SKIP_AUDIT=1` the 390 walk was **15/15 PASS**: month, next month, prev month, day click → "New event", own reminder row, create, reload (event stored), click chip → "Edit event" (title + Delete shown), edit saves, delete removes it, reminder settings add row + save, **user menu opens (Log out shown), sidebar opens with "Calendar"**. The 1280 walk reached create and then **FAILED "next month"** (twice in full runs, always on the second page load after a previous walk, never in a clean 390 walk or in my probe) — then later steps depended on the wrong month, so the 1280 walk of the NEW tree is NOT proven. The old tree passed 1280. Suspected cause (not confirmed): a pre-existing race in the fork — the first pointer event runs `browserEnv()` (a server round trip, then `show()` of the current month), which can overwrite a month the user already paged to; my script now waits 1.5 s after a mouse move. Needs a re-run / look; NO Hybriel gap claimed, nothing in /probe.- Not done: the 1280 walk on new (user menu at 1280), reminder SET in the editor on new at 1280, same-output.Shots (PNG; I cannot view images — numbers only, no eyesight claim): /media/STORAGE/claude-scratch/atlas/A3/shots/ — `old-{390,1280}-*` and `new-{390,1280}-*` (month, event-editor-new, event-editor-own-reminder, reminder-settings, event-editor-edit, month-with-events, login-failed; new also user-menu, sidebar, editor-*, event-created/deleted, next-month); `new-audits.json` (latest 390+1280 audit of the new tree).## Left / next1. Re-run the new 1280 walk (and the full walk at both widths) and find why "next month" sometimes does nothing right after a page load (race above, check on old too with the 1.5 s settle removed).2. **Same-output** (tests/realdata-baseline.mjs old vs new on the copy, ports 8751/8752 (+5 fake ident)) — NOT run; styles only changed, but not proven.3. notify-paths once more on the final tree; `deploy.sh --dry-run` once to see the gate summary lines.4. README/usage.md ("calendar" row) update; month-view README mentions of "month-view rules of styles.hl".5. The old 390 walk failures on the 12 px chips are evidence the phone editing path was hard before.Cleanup: servers (pids in scratch pid files), the ssh tunnel and data copies are gone; `ss` shows nothing of mine on 8732–8739 / 8750–8759/8756. Other sessions' Chromes (8797, 8802, 8800, 48021) are not mine.## Continuation (worker A4, 2026-10-21) — results**1. "next month" / chip failures at lisbeth.** Old code (3c5604f) fails the same way: in lisbeth's Chrome a full run (audit phase first, then the walk) ended "next month: Oktober → Oktober" on OLD (logs/lis-old1.log) and on new alike; the same walks pass in local headless Chrome for old and new (29/29, 26/26). So it is not a regression of the theme move. Cause found with an in-page timeline (probe/lis-next.mjs): the FIRST pointer event over the month view runs `browserEnv()`, which re-ran `show(today, loadEvents())` (title rewritten twice, + a server round trip when signed in) while the click lands 8–30 ms later; the late answer can put the month back (paged-check was made before the await) — the stale-overwrite race. It could not be forced to fail locally (probe/race.mjs 0/36 old, 0/24 new: a localhost round trip is too fast), so the race is established by the timeline + code reading, NOT by a failing repro. Not a Hybriel gap (nothing in /probe for Arachne).Fix in .hl (month-view fork, `browserEnv`): when the browser's day equals the server's day and the names are known, NOTHING is re-run (no show(), no calLoad); `today`/names/labels are assigned only when they differ; when the day differs, the month follows today only if the user has not paged **after the await** (re-checked), else `show(year, month, events)` without a round trip. Gate (tests/browser.mjs): "the first pointer event does not run show() again…" — **honest note: it also PASSES on the old code** (it counts title rewrites ≤ 1; old 2 in the probe, but the gate run counted ≤1), so it is NOT a proven fail-on-old check; probe/title-mut.mjs shows old 2 title rewrites vs new 1 per first pointer. A real gate needs a signed-in page (calLoad on the wire); not done.Old 390 chip failures (2 of 26): not reproduced at lisbeth on old (26/26 later) — flaky tiny-chip (17 px at 390 old) click; no cause found.Test fixes: e2e-theme.mjs now deletes the settings row it added (settings take max 8 rows: the accumulating copy made "settings closed" time out in repeated runs — a test artefact), prints chip hit/LOG diagnostics.**2. notify-paths on the final code: 7 passed, 0 failed, 3 Hybriel gaps** (logs/final-notify2.log; after the last .hl change).**3. Same output (realdata-baseline old vs new, copy of calendar.worldapi.org-20261021-0018.tgz):** 122 files (53 reads, 69 writes): 77 byte-identical, 24 identical after masking, 21 DIFFERENT — all pages/markup (/, /login/failed, de/fr, loginfailed-*, page-main), css, sw, manifest (theme colour), and the 3 changed browser modules (loginfailed, main, month-view). Every write/face answer (save-*, calLoad…) identical. (Run before the browserEnv fix; that touches only the month-view module.)**4. E2E in lisbeth's Chrome (tunnel -L 8756→9223, -R 8751/8752, under the flock, one existing tab):** NEW, final code, full run with audits: **33/33 PASS** at 390 and 1280 (month, next/prev, day click, own reminder, create, reload, edit via chip, delete, reminder settings add + reopen + delete row + save, user menu, sidebar), 14 audits: taps<44 at 390 = 0, wider than screen 0, inputs<16 0, console errors 0 (logs/lis-final.log). Before the final fix 1280 failed twice at the chip (heading stayed "New event") and once at "next month" — flaky, see 1.**5. README / docs/usage.md: NOT done (quota).** Browser gate on final code: 79/0 (logs/gate-new-final3.log).## LeftREADME "calendar" row + docs/usage.md (theme, user menu, ☰ menu) + month-view README sentence about styles.hl rules; deploy.sh --dry-run once; a signed-in gate that fails on old for the first-pointer round trip. Cleanup: servers/tunnel stopped, data copies deleted (ss: nothing of mine).
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