gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc92e4a0fc92e4a0ftests/e2e-outside.mjs: real-Chrome E2E, a note pushed from another device while open, then typingmrec92e4a0f/reports/011-theme.md

8.4 KB

  1. # Report 011 — notes onto the layouts theme, mobile first — DONE (not deployed, not pushed)
  2. Worker Z2 (Sonnet), 2026-10-21. Branch `w11-theme` from fd36da2 (= live). Brief: missions/011-theme.md. Followed tickets 022.
  3. ## What changed
  4. - `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.)
  5. - 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.
  6. - **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.
  7. - `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.
  8. - login-failed page: "back to notes" is a `.links` link (44 px). notes has no raw-HTML error page (it is a component).
  9. - Not changed: components/md-editor/ (1442e58 verbatim), project.hl, lib/.
  10. ## Offline (notes#4, hybriel#185)
  11. 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).
  12. ## 390 audit (real Chrome, copy of notes.worldapi.org-20261021-0036.tgz, 28 notes; old fd36da2 vs new)
  13. tapsSmall = interactive elements < 44×44 (not a link inside a sentence); wide = visible elements past 390; text<14 = elements with own text < 14 px.
  14. | page (390) | scrollW | taps<44 / all (old → new) | inputs<16 px | wider than 390 | text<14 px | header px |
  15. |---|---|---|---|---|---|---|
  16. | list | 390→390 | 0/31 → **0**/32 | 0 → 0 | 0 → 0 | 0 → 0 | 64 → 52 |
  17. | a note | 390→390 | 0/15 → **0**/16 | 0 → 0 | 0 → 0 | 1 → 1 | 64 → 52 |
  18. | new note | 390→390 | 0/15 → **0**/16 | 0 → 0 | 0 → 0 | 1 → 1 | 64 → 52 |
  19. | login-failed | 390→390 | **1**/3 → **0**/4 | 0 → 0 | 0 → 0 | 0 → 0 | 64 → 52 |
  20. | offline list | 390→390 | 0/15 → **0**/16 | 0 → 0 | 0 → 0 | 1 → 3 | 64 → 52 |
  21. 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).
  22. 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).
  23. 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).
  24. Raw numbers: shots/old-audits.json, shots/new-audits.json.
  25. ## Gates
  26. | gate | old fd36da2 | new |
  27. |---|---|---|
  28. | tests/browser.mjs (ports 8732/8733, chrome 8734–8739) | **66/0** | run 1 63/1, final **66/0** |
  29. | check-theme | – | 0 |
  30. | tests/realdata-offline.mjs | – | **12/0** |
  31. | 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 |
  32. | tests/e2e-chrome.mjs in lisbeth's Chrome | **30/0** | **33/0** |
  33. 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.
  34. ## E2E, lisbeth's real Chrome
  35. CDP 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.
  36. 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/.
  37. ## Left / next
  38. - 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.
  39. - `current` is not passed to MainMenu (one item).
  40. - 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.
  41. - No Hybriel gap found.
  42. 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

  • c92e4a0ftests/e2e-outside.mjs: real-Chrome E2E, a note pushed from another device while open, then typingmre
  • 0516b4ccmd-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre
  • 38cc11ecmd-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
  • 3e7e79f5reports/H1-hydrate.mdmre
  • d98775e8tests/browser.mjs: wait for hydration before the clicks after a goto('/') (tables new note, phone sidebar)mre
  • 1f3198b6tests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre
  • 39cf9fdfre-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
  • db07aa84tests: short-id-switch ports from env (NOTES_SWITCH_IDENT_PORT/_PORT), defaults unchangedmre
  • ef9f9feere-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
  • 5485467cdocker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
  • 86ea4a85deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • edeab20fnotes mission 015: mission, report, LOG, STATUSmre
  • 542a0383notes mission 015: e2e-chrome E2E_HOST (own cookie jar in the shared Chrome)mre
  • 8b30f510notes mission 015: main-menu from layouts 0bcc629, current = true kept (route marks only /), server-HTML marker checksmre
  • 84b574c4notes mission 015: re-vendor plugins from hybriel f9614007 (incl. web, #117)mre
  • 447da53dnotes mission 014: report — remaining gates and lisbeth E2E proofmre
  • fd9f92c3notes mission 014: report (partial), LOG, STATUSmre
  • b2501360notes mission 014: open() sets asking=false before flush(0) (hybriel#196)mre
  • 9414ce59notes mission 014: merge theme 76f99f6, components 3794c59, strict single-press openAsk (fails on old open())mre
  • c08c655anotes 013: theme re-copied from layouts 76f99f6 (menu marks the current page), current = true on the menu item, e2e marker checks, reportmre