notes
All repositories: gitoria
8.4 KB
# Report 011 — notes onto the layouts theme, mobile first — DONE (not deployed, not pushed)Worker Z2 (Sonnet), 2026-10-21. Branch `w11-theme` from fd36da2 (= live). Brief: missions/011-theme.md. Followed tickets 022.## What changed- `theme/` = `git archive dbe3de7 theme` of layouts.worldapi.org (dbe3de79aaf63a5c9e98ca7cb1017fe44a46913d), verbatim; `shared/tokens.hl` is byte-equal to layouts' at dbe3de7 (cmp). `theme/check-theme.mjs` is in deploy.sh GATES; `.check-theme-ignore` = `components/md-editor/` (vendored, untouched). deploy.sh gate summary fixed as Atlas asked: `grep -E 'passed,|^check-theme:' … || true` (both lines); `bash -n` ok, `--dry-run --skip-tests` ok, and the pipefail pipeline run with the real check-theme output prints its line and continues. (A full dry run with gates was not run: it would repeat the 5 min browser gate.)- Shell (`components/main.hl`): theme AppHeader (brand · MainMenu · UserMenu) + phone Sidebar (☰ → main menu "Notes") + `slot`. Signed in: user icon → UserMenu (`#whoami` "Signed in with ident", `#logout`). Signed out: ident icon → dropdown with ident's selector + "Log in with ident" (open in the header from 60rem), as tickets/gitoria. login.js bridge, `#identcode`, faces unchanged. The old `#userbox`/`.brand` accent header is gone.- **Layout shell: ListFirst** (not ContentFirst). A notes app is a list plus one note: ListFirst's phone behaviour (list first, a tap opens the note alone with `a.back` → "All notes") and 60rem two panes (list `aside` 24rem, note `main`, each scrolling by itself, full width) is exactly what notes.hl did by hand with `note-book.open` + a 50rem media query. ContentFirst would need a sidebar list that is not the main menu; three-pane needs a folders column notes do not have. `notes.hl` now renders `ListFirst { view = sel != '' ? 'detail' : 'list' … aside { note-list } main { note-reader } }`; the `<note-list>`/`<note-reader>`/`<note-editor>` tags, ids (`#notes`, `#newnote`, `#notetext`, `#delete*`, `#syncstate`) are kept. Signed-out hint and `/login/failed` use ContentFirst (`main { … }`). Breakpoint moved 50rem → the theme's 60rem.- `components/styles.hl` (78 → ~70 lines): `inherit theme.hl`, accent yellow, and only: `.message`, ident icon/panel/selector, note-list header, editor frame, `.ask`, the tick animation, the ≥60rem ident-in-header rules. Gone (the theme has them): base elements, links, headings, fields, buttons (`quiet`, `danger` now theme classes), `p.empty`, `.muted`, old header/userBox/a.button/main/note-book/#notes boxes (the old list rows had borders and 0.4rem radii). check-theme: 14 problems on the old styles → 0.- login-failed page: "back to notes" is a `.links` link (44 px). notes has no raw-HTML error page (it is a component).- Not changed: components/md-editor/ (1442e58 verbatim), project.hl, lib/.## Offline (notes#4, hybriel#185)No file to add to `offlineFiles`: the theme is Hybriel components compiled into `/__hl/app.css` and the page's own bundle, not separate files, so the worker's precache already holds it. project.hl has no `offlineFiles` (retired in m010) and still has none. realdata-offline 12/0 (reload offline: 28 notes listed, the open note shows its text, 390 px offline: no element wider, every tap ≥ 44 px) and the E2E below (offline list, offline note opens, offline typing lands, syncs back into the same note).## 390 audit (real Chrome, copy of notes.worldapi.org-20261021-0036.tgz, 28 notes; old fd36da2 vs new)tapsSmall = interactive elements < 44×44 (not a link inside a sentence); wide = visible elements past 390; text<14 = elements with own text < 14 px.| page (390) | scrollW | taps<44 / all (old → new) | inputs<16 px | wider than 390 | text<14 px | header px ||---|---|---|---|---|---|---|| list | 390→390 | 0/31 → **0**/32 | 0 → 0 | 0 → 0 | 0 → 0 | 64 → 52 || a note | 390→390 | 0/15 → **0**/16 | 0 → 0 | 0 → 0 | 1 → 1 | 64 → 52 || new note | 390→390 | 0/15 → **0**/16 | 0 → 0 | 0 → 0 | 1 → 1 | 64 → 52 || login-failed | 390→390 | **1**/3 → **0**/4 | 0 → 0 | 0 → 0 | 0 → 0 | 64 → 52 || offline list | 390→390 | 0/15 → **0**/16 | 0 → 0 | 0 → 0 | 1 → 3 | 64 → 52 |check-theme: 14 problems (theme copy on old styles) → **0** (21 files). Honest note: the old notes styles already had 44 px taps at 390 (only the login-failed link failed), so the taps column mostly stays 0; what the move changes is the shell (header 64 → 52 px, no wrapping, user menu, sidebar), borders/radii (14 check-theme problems → 0), one shared stylesheet, and the desktop: old 1280 had 6 editor-toolbar buttons 32×44 and a 15 px sideways-scrollbar gap (scrollWidth 1265 = scrollbar in both; new 1280 scrollW = 1280, no scrollbar, because the list-first panes scroll themselves).Text < 14 px left, all vendored: `button.source-switch` 13.6 px (md-editor, also in old); `th` 13.6 px (md-editor table header, appears after a table is typed: the offline-list audit has it twice).1280 (new): targets under 44: list 2, note 4 (`Notes` header link 38 px, `New note` 36 px, `Markdown source` 36 px, `Delete note` 36 px) — the theme's deliberate denser desktop (buttons 2.25rem, header menu links). Old 1280: 6 toolbar buttons 32×44 (now 44 wide from the theme).Raw numbers: shots/old-audits.json, shots/new-audits.json.## Gates| gate | old fd36da2 | new ||---|---|---|| tests/browser.mjs (ports 8732/8733, chrome 8734–8739) | **66/0** | run 1 63/1, final **66/0** || check-theme | – | 0 || tests/realdata-offline.mjs | – | **12/0** || tests/e2e-roundtrip.mjs (28 notes) | – | **5/0**, all notes byte-identical on open and after edit+save, 0 canonical-form findings, no note added or lost || tests/e2e-chrome.mjs in lisbeth's Chrome | **30/0** | **33/0** |Test changes in browser.mjs: ONE. "log out": Log out now sits in the user menu, so the gate first really clicks `button.user-toggle` (waits for the popover) and then `#logout` (the run-1 failure was exactly this: "#logout has no layout box"). The other selectors (`note-list`, `note-reader`, `note-editor`, `.back`, `#notes a`, `#newnote`, `application-header .brand` = "notes", `#syncstate`) still hold because the tags and ids were kept; the phone/desktop visibility checks pass on ListFirst's classes unchanged. The theme's check is a separate deploy gate.## E2E, lisbeth's real ChromeCDP via `ssh -f -N -L 8756:127.0.0.1:9223 -R 8750 -R 8751 lisbeth` (local ports kept in the 8750–8759 slot). ONE existing about:blank tab navigated and put back to about:blank; no /json/new, no clipboard, the HyperConductor tab untouched. App on a COPY of the newest backup (own storage + session file), old tree on :8750, new on :8751; copy deleted. `tests/e2e-chrome.mjs` extended (also runs on the old tree: theme-only steps are skipped there). Per width (390 and 1280), real mouse clicks and key events: list → user menu opens (Log out shown) and Escape closes it → (390) ☰ opens the sidebar showing "Notes" → click a list entry opens that note (390: `.back` returns to the list) → New note → type heading, bold (Ctrl+B), list, table → server has the note byte for byte → reload → offline (page + worker): note opens, typing works, list opens → back online the edit reaches the same note (no copy) → login-failed page → open the note and **delete it with real clicks** (Delete → confirm "Delete") → the server and the list are back to 28 notes. New 33/0, old 30/0, no console/server errors. Not real: nothing scripted except audits (evaluate) and reading values.Shots (PNG; **I cannot view images — only numbers count, no eyesight claim**): /media/STORAGE/claude-scratch/atlas/Z2/shots/ — `old-…` and `new-…` per width {390,1280}: `-1-list`, `-1b-user-menu` (new), `-1c-sidebar` (new, 390), `-1d-note`, `-2-typed`, `-3-reloaded`, `-4-offline`, `-5a-delete-ask`, `-5-end`, `-audit-{list,note,new-note,offline-list,login-failed}`; audits `old-audits.json`, `new-audits.json`. Logs in …/Z2/logs/.## Left / next- Main menu has one item (Notes); the user menu has no account link (notes has no account page). The menu is the place for more later.- `current` is not passed to MainMenu (one item).- Not tested: signed-out ident dropdown on a phone by real taps (gate covers signed-out at desktop; the same markup as tickets/gitoria); a real ident login in Chrome.- No Hybriel gap found.Cleanup: servers/gates/Chrome of the gates stopped by PID, the ssh tunnel (pid 4154570) killed, copies deleted, `ss` shows nothing of mine on 8732–8739 / 8750–8759. Old tree kept in scratch/old (not a worktree).
Branches
Latest commits
- 5909d458notes: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows without a delimiter row; tickets#49, notes#5)mre
- 98bd6a98N5b: pipe rows without a delimiter row are a table (MdEditor ad4e929, plain copy); gate tests/dashboard-table.mjs; reportmre
- dbf93319N5 report: components gate rerun 613 passed, 0 failedmre
- 3a8bc0d2N5: empty Table-button table is written as a real pipe table (MdEditor 4bd1112, plain copy); gate tests/table-button.mjs; reportmre
- c16bd443N5: step 1 report (tables pass locally; his DASHBOARD note has no delimiter row)mre
- 6091320anotes: MdEditor 7437e32 (surface drawn at once when the page is claimed); gate measures claim-to-text on 5 note loads at 1280 and 390mre
- 0aa9277enotes: move each component's styles into its own Style block (shell and header selector in main.hl, list, editor frame and delete question in notes.hl); styles.hl keeps the theme inherit, the accent and the message colour; .gitignore ignores a bin symlink too; tests/shots.mjs for the pixel comparemre
- 9ba01de3notes: write the standby service out in full so the boot gate can read the main servicemre
- 98cab40anotes: standby service on its port plus 10 and a deploy that hands over through it without a gapmre
- 1fadb473notes gate: the editor table now has 1 px cell lines from the notes thememre
- 8762115cnotes: take the components e54f83a (paste as Markdown, text typed before the editor is built is kept, Table button); table lines come from the notes thememre
- ac23e194ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
- 2804f0d3Merge branch 'iw-ident-widget'mre
- 52d8d242notes: e2e script checks Log out and the selector in the header instead of the user menumre
- e5abf7b7notes header: the selector alone top right plus Log out as before the theme missions; the user icon is gonemre
- a2e343aeident 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
- 7a889b82notes: MdEditor with the Table button, typed pipe rows and the theme's table look (components mt-tables); a table note is named by its header words; gate checks that fail on mainmre
- b96c7f70theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
- 6140e6a0sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- cb7e6469deploy: security gate (tests/security.mjs)mre