calendar
All repositories: gitoria
8.3 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.
Branches
Latest commits
- bd730759calendar mission 006: theme move (WIP): brief, report, LOG, STATUSmre
- b117b153calendar mission 006 WIP: reminder row fields keep 44 px; e2e script flagsmre
- 53e3b0debrowser gate: Log out through the user menu, theme colour rgb(15, 20, 25)mre
- 90bf9e2ecalendar mission 006 WIP: theme dbe3de7, theme shell (AppHeader/MainMenu/UserMenu/Sidebar/ContentFirst), styles cut to the app's own rules, check-theme gate, e2e toolsmre
- 3c5604f9identkit: refuse a taken ident port, cold-start deadline, abort on dead ident, clear no-code error (as notes)mre
- 4996bbe7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
- f5bf0803calendar mission 004: re-vendor Hybriel to the shared static build 0f396652; compose cache volume + tmpfs; notify-paths gate in deploy.sh; gate start waits 150 s; reportmre
- eb86526fmission brief 004mre
- 2f953b16deploy.sh: wait up to DEPLOY_URL_WAIT (120 s) for 200 after the restart, as the other apps (cold compile, hybriel#148)mre
- 9078e1b7calendar mission 003 (2/2): report, LOG, STATUS (cause: timers only in an open, front, touched page; gate old 5/2 new 7/0; Hybriel gaps Web Push + page-shown hook, STOP)mre
- 31ffe910calendar mission 003 (1/2): calendar#9 — missed reminders shown when the app is back, timers set again when it is shownmre
- 26c997d3mission brief 003mre
- c6809c76calendar mission 002: report, LOG, STATUS (test bug; fixed gate 78/0 at 00:30 05:40 12:00 19:59 20:01; 23:30 not run, quota stop)mre
- 00f72783calendar mission 002 (2/2): TEST bug — the reminder steps get their own identity (carol): alice's all-day Vacation (20th-22nd) from the events steps added 2 reminders from the 12th 20:00 to the 19th 23:00; Tokyo check no longer skipped in the Tokyo eveningmre
- 54fb0ce1calendar mission 002 (1/2): gate clock override GATE_CLOCK=HH:MM (this process and every page get Date shifted to that local time today)mre
- c838ee79mission brief 002mre
- f2bc67ecdocker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
- 2881119fcalendar mission 001 (4/4): code order — README layout + same-output test, STATUS, LOG, report; tests/letcount.py (sub-folders), tests/realdata-baseline.mjs, tests/realdata-compare.pymre
- 3b2a4cd0calendar mission 001 (3/4): code order — let only where reassigned (147 dropped incl. components/month-view; 110 left: 67 reassigned, 43 loop-bound); gates 78/0 (3 of 4 runs; 1 known 'next month' flake) + 18/0, live-data run = step 2mre
- f5ce6b1dcalendar mission 001 (2/4): code order — topics, map, thin faces: lib/util.hl, lib/events(-helpers).hl (+calendarView/settingsView/soonOf), lib/settings.hl, lib/users.hl (+userOfLoginCode, tagOf), lib/api(-helpers).hl; project.hl = map; login route takes &req/&sessions (failed-login reason now kept); gates 78/0 + 18/0mre