gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit21c8f65d21c8f65dnotes mission 012: STATUSmre21c8f65d/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

  • 21c8f65dnotes mission 012: STATUSmre
  • 0bbb3dd9notes mission 012: delete section of the browser gate de-flaked (openAsk: calm wait, press again when the question closes by itself); report 012mre
  • f431bdf8notes mission 011: notes on the layouts theme (ListFirst shell), styles cut, check-theme gate, E2E extended; reportmre
  • 1a8603d1notes mission 011 WIP: deploy.sh gate summary also matches check-theme, browser.mjs logout via the user menumre
  • dae2e508notes mission 011 WIP: theme dbe3de7, shell on AppHeader/MainMenu/UserMenu/Sidebar + ListFirst, styles cut to the app's own, check-theme gate, e2e auditmre
  • fd36da27notes mission 010: the note editor is the Hybriel MdEditor block (components.hybriel 1442e58, verbatim); md-editor.js, its route, script tag and offlineFiles retired; gate 66/0, realdata-offline 12/0, round-trip and Chrome E2E tests; report 010mre
  • efa92170notes tests/identkit.mjs: refuse a taken ident port, cold-wait deadline, emit, identities; mission 009 reportmre
  • f3dec0f1Merge branch 'w7'mre
  • d1cf966dre-vendor hybriel 97bcf128: offlineFiles for the editor script, 44 px taps, 390 px offline checks, mission 008mre
  • 4a610a21paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • eeaea980report 007: say which runs included the removed checkmre
  • 8a8ad9banotes mission 007: report, LOG, STATUSmre
  • 2cce9c96code order: plain declarations where never reassigned (letcount 0 never); gate: scan every IndexedDB at log-out, soft mode for old-code runs, drop a check that could not failmre
  • 7f6a4090README: offline in Hybriel (hl:web offline, continuation, known md-editor gap); gate waits report instead of crash; realdata-offline checkmre
  • 632223f2notes#4: delete notes-offline.js and sw.js (hl:web's generated worker and kept state replace them)mre
  • 52a2acadgate: offline checks on hl:web's worker/queue, Chrome offline via CDP (reload offline first), one-offline conflict, log-out forgets the kept copymre
  • e5785b03notes#4: the notes page in Hybriel — hl:web offline = [Notes], queued faces notesPut/notesDrop, push notesChanged, value-form notesPull on a tick; notes-offline.js/sw.js no longer loaded or routedmre
  • 510aff75notes#4: server continues a run of saves of one login (by + since), loser keeps writing into its copy; notesFor listmre
  • 0176c4b5mission brief 007mre
  • 06cfa870notes mission 006: re-vendor hybriel 0f396652 (static), reportmre