tickets
All repositories: gitoria
4.1 KB
# Report 023 — tickets: layouts 76f99f6 theme + components 3794c59 (worker H4) — DONE, not deployed, not pushedBranch `w31-theme-sync` from 7ed2e5e (= live). Brief: missions/023-theme-sync.md.## Changed- `theme/` = layouts.worldapi.org **76f99f6** (git archive; `diff -r` against a fresh archive empty). Changed vs dbe3de7: shell/main-menu.hl, shell/app-sidebar.hl, theme.hl.- `components/` synced with `COMPONENTS_REPO=… tools/sync-components.sh 3794c59` (6 files verbatim, `--check` ok, components/SOURCE = 3794c59). Changed files: md-editor.hl, md-editor/README.md.- `components/main.hl`: menu items `All tickets` (`current = menuAt == '/'`) and `Inbox` (label plain, `count = inbox` when > 0, else none; `current = menuAt == '/inbox'`). The Inbox label no longer carries the count; the live refresh (refreshInbox) is unchanged.- WHERE `current` is set: the item's path matches nothing on a ticket (/<slug>/<n>), project (/<slug>) or state-filter page, so "All tickets" gets `current` there; /inbox marks Inbox (the item says it too); /you, /new-project, /connect/…, …/settings mark none. The shell cannot see the address on the server (`window` is undefined there; I tried: runtime error; and a page setting a `menuAt` of the parent shell had no effect), so `menuAt` is set in the browser by the existing `netTick` (netProbe animation, `window.location.pathname`, Hybriel code in main.hl). Consequence: the marker appears with the first animation tick after hydration (the server-rendered HTML has no marker, only the badge). Better: if hl:web ever gives the shell the route, replace the netTick lines by it (Hybriel/hl:web gap, not worked around in JS).## Gates (LC_ALL=C, ports 8702–8726; logs H4/logs/)| gate | old 7ed2e5e (new test file) | new ||---|---|---|| tests/browser.mjs | 376 passed / 6 failed | **382 / 0** (377 + 5 new checks) || tests/events.mjs | – (not touched by this change) | **52 / 0** || check-theme | – | 0 problems (45 files) |Test changes (tests/browser.mjs): "shell: no inbox count yet" now also requires no `span.count`; "inbox: … header count 1" now expects the badge after the plain label ("All ticketsInbox1"). New checks (all 6 fail on old): the Inbox badge is its own `span.count` and the label is plain "Inbox"; aria-current="page" + class current exactly on Inbox at /inbox, on All tickets at the list and on a ticket page, and back on Inbox after navigating back.## E2E in lisbeth's real Chrome (tests/e2e-menu-current.mjs; CDP 9223 tunnel existed (another worker's, not mine, left alone); reverse `-R 8700` (PID in H4/tunnel.pids); under `flock lisbeth.lock`; ONE existing tab picked from /json, Page.bringToFront, left at about:blank; no /json/new, no clipboard)App on a COPY of the newest backup (tickets.worldapi.org-20261021-0121.tgz extracted into H4/data, own session; `.env` removed unread). Real mouse clicks and real key events.- **New: 15 passed / 0 failed**. At 390 (☰ opens the sidebar by a tap) and 1280 (header menu): list → click Inbox → click a ticket from the inbox (/notes.worldapi.org/4): the marker is on All tickets at the list, moves to Inbox at /inbox, goes back to All tickets on the ticket; exactly one aria-current="page" each time; the Inbox badge is its own element (112) and equals the 112 rows of the inbox page; the label is plain "Inbox". In the comment field (not posted): `- apples`, Enter, `pears`, Enter, Enter, then `| Item | Qty |`, Enter, `|:---|---:|`, Enter, `milk`, Tab, `2` → 2-item list kept and a table appears; the Markdown value holds the list and a pipe table. No console errors.- **Old (7ed2e5e): 1 passed / 14 failed** (no marker, no badge element: the test can fail).- Shots (I cannot view PNGs, nothing claimed about their look): H4/shots/e2e-{new,old}-{390,1280}-{1-list,2-inbox,3-ticket,4-comment-table}.png (old: those it reached).## Not done / notes- The marker is browser-set (see above): the server-rendered page and the offline cached page show the badge but no marker until hydrated.- Not tested: signed-out menu (no Inbox badge then), other accents' contrast (layouts D4 measured them).Cleanup: servers, tunnel, old worktree, data copy and sessions deleted; ss shows nothing of mine on 8700–8729.
Branches
Latest commits
- 18d2df60md-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
- f6764bedreports/H1-hydrate.mdmre
- 1bbbf0edtests/browser.mjs: wait for hydration before clicking the login button on / (device B)mre
- 6f503cfctests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre
- e17e2855re-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
- a6ddccd2re-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
- 81e036b7docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 5d8d2cf6deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- 58e8c02cmission 024: report, LOG, STATUS, e2e fixmre
- 50778073tests/e2e-route-marker.mjs: first paint marker, comments post/edit redrawmre
- c5203298mission 024: MainMenu marks the page from the route (layouts 0bcc629 main-menu.hl); browser-side marker removed; gate: marker in the server HTMLmre
- b1a4c270re-vendor Hybriel master f9614007: bin/ (git-ignored) and plugins wholemre
- 866397a0mission 023: theme from layouts 76f99f6 (current marker, menu count badge), components from 3794c59 (MdEditor keys); Inbox count as badge, current by address; gates and E2E; reportmre
- 7ed2e5e5deploy.sh: a gate without a 'passed,' line (check-theme) no longer ends the script silently (grep under pipefail), as gitoria/layoutsmre
- bf9064a3mission 022: tickets on the layouts theme (step 1): shell, styles, gates, audit, E2E; reportmre
- f3d61711mission 022 WIP: tickets on the layouts theme (dbe3de7): AppHeader/MainMenu/UserMenu/Sidebar/ContentFirst shell, styles reduced to the app's own, check-theme in the gates, 390 audit + real-Chrome walk scriptmre
- 31cabfccmission 021: E2E script, report, LOG, STATUSmre
- 6aea8683editor look: .empty rule only for p.empty, files off where tickets has no upload, state note one line, events test scrolls the editor into view; synced md-editor (components d702d76+6f27ad3); gate 377/0, events 52/0mre
- dce6ffa6Merge branch 'w28-deflake'mre
- 536092a1tickets (mission 019): de-flake the m016 comment clicks (B: unliked) — calmClick waits until the button stops moving; test only, no app changemre