notes
All repositories: gitoria
4.4 KB
# Report 015 — re-vendor f9614007 + route marker (#197) — worker J6, branch w15-revendor-197 (NOT merged/deployed)## Vendor (bin/ is git-ignored; from hybriel native/zig-out, static build 18:48 = f9614007)- bin/hybriel 9d957fed77d0bd7f0bfeb3b90beb358b524d24d555f63578d3340ecd63706b65 (was 60fa02f3…)- bin/libhlrt.a 868266c424b96cb71fb937ef8d97c601164bf5e0b4fc422e589a44fb1944babb (was 2ec0ac28…)- bin/hlc.o cf4fb7d3e37f7aa59b9124aa1bd1a97fb929688870ee5c7ae1c718621793f65d (was 37457b8d…); bin/hlrt/ replaced.- plugins/ (core crypto data fetch fs http http1 mpackdb proc time web — the same 11 dirs) replaced whole from hybriel; identical to f9614007 for these dirs (master only moved in plugins/markdown since).## Gates (ports 8740–8751; old = main 447da53 + old bin in wt-old, new = branch; own HL_CACHE_DIR; logs J6/wt/logs)| gate | old | new || browser.mjs | 66/0 (old-browser.log, run at 8750–8759, before the narrower port range arrived) | 66/0 (new-browser2.log; `grep TypeError` 0). Run 1: 41/1 "B follows the delete" timeout (rerun once → 66/0) || realdata-offline (backup 0132) | 12/0 | 12/0 || e2e-roundtrip (28 notes) | 5/0 | 5/0 || check-theme | — | 21 files, 0 problems |Final tree (with 3 new server-HTML checks): browser 69/0 three times (final1–3.log). The "B follows the delete" timeout appeared again once in the experiment run without current = true (see below); 2 of ~8 new-tree runs, 0 of 1 old run — an open point (machine overloaded; passes on rerun; not reproduced in the 3 final runs).## Route marker (#197) — `current = true` STAYStheme/shell/main-menu.hl re-copied verbatim from layouts 0bcc629. The route marks an item with href '/' only on the page '/' itself (by design: '/' is not "above" other pages). Experiment, `current = true` removed: server HTML of '/' marked; '/note/abc123def456' and '/login/failed' NOT marked (`class="" aria-current="false"`). components/main.hl keeps `current = true` with a comment saying so. New gate checks (tests/browser.mjs): plain fetch of /, /note/<id>, /login/failed → both menus (header + sidebar) carry aria-current="page" and class current in the server's HTML before any script. Shown to FAIL without current = true (nocurrent.log: 42 passed, 3 failed — the two non-'/' pages + the flake), pass with it.## E2E in lisbeth's Chrome (tests/e2e-chrome.mjs, flock -o, tunnels outside the lock, ONE about:blank tab, real keys/clicks, 390 then 1280)- NEW: **39 passed, 0 failed** (e2e-new5.log): list → note (editor has content) → typing heading/bold/list/table → save → reload → offline edit → online → server has it → delete question opens and stays → delete; user menu + Escape; sidebar; menu marks the page on list, on a note, and after a real click on the item (sidebar at 390, header at 1280). 390 audit: 0 taps < 44, no overflow.- Earlier new runs (e2e-new, new2–4) failed at different steps with the tab showing a signed-out page: cause = the shared Chrome's cookie jar. Cookies ignore ports, so another worker's app on 127.0.0.1 overwrote/lost `notessid`; fix: tests/e2e-chrome.mjs honours `E2E_HOST` (run with `E2E_HOST=localhost`, own jar; API calls stay on 127.0.0.1). With it the run is green. Not a code bug (the old tree failed the same way before the fix).- OLD (wt-old) with E2E_HOST=localhost: 2 runs, both crashed (once "no #sidebar main-menu a", once "menu item leads to the list", the tab showing a signed-out page) — inconclusive, the shared Chrome was busy with other workers (tabs of other apps open); not repeated. OLD with 127.0.0.1: 12/2 (first run).- Shots (atlas-evidence/J6/): new-{390,1280}-{1-list,1b-user-menu,1c-sidebar,1d-note,1e/1f-menu…,1g-menu-after-click,2-typed,3-reloaded,4-offline,5a-delete-ask,5-end,audit-*}.png; old-390-* partial. LOOKED AT: new-390-5a-delete-ask (note with heading, table, list, toolbar; "Delete this note for good? Delete / Keep" open below, nothing overflowing) and new-1280-1f-menu-on-note (list left, editor with the note, header "Notes" with the accent underline = marked on a note page).## CleanupMy two ssh -R tunnels killed; no server of mine left; ports 8740–8751 and 9223 (my -L) checked empty; data copies deleted by the tests; wt-old worktree kept for the merger to remove: `git worktree remove --force /media/STORAGE/claude-scratch/atlas/J6/wt-old`.## Deploy-ready: yes (code + vendor; not deployed). bin/ must be vendored on the target (git-ignored). Open point: the rare "B follows the delete" timeout.
Branches
Latest commits
- d860dc2dnotes#12: the markup names its own rules instead of hand-written class strings: the selected row is `aria-current="page"` (the list-first theme rule styles it, no class), the delete question is `Style.pAsk` and follows its own `open` attribute (bound to `asking`), the error line is `Style.pMessage` (body once in lib/looks.hl, rule in notes.hl, main.hl and loginfailed.hl). The CSS declarations are the same, only selectors changed (.ask -> p.ask, .ask.open -> p.ask[open], .message -> p.message); the pages look the same (AE 0 at 4 sizes). main.hl's selectorClass in/out stays (login.js reads it).mre
- 2e7f8664notes#13: the list and back links pass the note key from the loop (emit pick(e, r.key)) instead of writing data-note into the View and reading it back with getAttribute; the two window.history.replaceState calls and the identcode e.target.value read stay (hl:web has no replace-navigation, a bound hidden input is not adopted on a script's change event), see NO13 reportmre
- 4dc98282notes#15: a deleted note made in this tab leaves the list at once (the delete now removes this tab's edit under every key the row has: local id, server id); gate: browser.mjs notes#15 section, red on the old codemre
- e4e7402fnotes#11: plain declarations instead of let for variables never reassigned (components/notes.hl 3, lib/jsoncheck.hl 5, lib/util.hl 2, tools/migrate-short-ids.hl 8)mre
- 27b6a09enotes#8: Style blocks in the nested form (note-list, note-editor, .ask with their children nested, :empty as a nested pseudo-class); the same CSS rules, the pages look the samemre
- 71a9538bnotes: B27W report, log linemre
- 78ba0073notes: an ident access key (Authorization: Bearer idt_…) reads and writes its identity's notes through /api/me and /api/notes; gate tests/ident-access-notes.mjs (ident#27)mre
- 3de46dacnotes: the sign-in callback keeps the session it finds and signs it in (same cookie, nothing signed out; ident#28); security gate 73+5 failing → 78 passedmre
- 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