gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit28e9c93828e9c938ticket list: draw the newest 50 rows and a Show more button (500 rows were a 2-4 s first paint, 740 KB, a 90 000 px phone page)mre28e9c938/reports/023-theme-sync.md

4.1 KB

  1. # Report 023 — tickets: layouts 76f99f6 theme + components 3794c59 (worker H4) — DONE, not deployed, not pushed
  2. Branch `w31-theme-sync` from 7ed2e5e (= live). Brief: missions/023-theme-sync.md.
  3. ## Changed
  4. - `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.
  5. - `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.
  6. - `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.
  7. - 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).
  8. ## Gates (LC_ALL=C, ports 8702–8726; logs H4/logs/)
  9. | gate | old 7ed2e5e (new test file) | new |
  10. |---|---|---|
  11. | tests/browser.mjs | 376 passed / 6 failed | **382 / 0** (377 + 5 new checks) |
  12. | tests/events.mjs | – (not touched by this change) | **52 / 0** |
  13. | check-theme | – | 0 problems (45 files) |
  14. 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.
  15. ## 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)
  16. 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.
  17. - **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.
  18. - **Old (7ed2e5e): 1 passed / 14 failed** (no marker, no badge element: the test can fail).
  19. - 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).
  20. ## Not done / notes
  21. - The marker is browser-set (see above): the server-rendered page and the offline cached page show the badge but no marker until hydrated.
  22. - Not tested: signed-out menu (no Inbox badge then), other accents' contrast (layouts D4 measured them).
  23. Cleanup: servers, tunnel, old worktree, data copy and sessions deleted; ss shows nothing of mine on 8700–8729.

Branches

Latest commits

  • 28e9c938ticket list: draw the newest 50 rows and a Show more button (500 rows were a 2-4 s first paint, 740 KB, a 90 000 px phone page)mre
  • ccebb0c7mobile: ticket number stays on one line, filter chips one scrolling row, fields full width under their caption, Edit/action buttons, member names whole, 44 px relation linksmre
  • f2dc7741gate: the phone toolbar is two even rows (E2)mre
  • 20f7c33async components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
  • d74a5482sync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
  • 9d02c540sync components.hybriel 6b0936a: the 'edited' foldable drops the theme's border and marginmre
  • 22751914sync components.hybriel 8d79ff7: bubble hugs its content, quiet 'edited' label; gate checksmre
  • c8452453sync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre
  • 52ba11e8sync-components: copy icons/icons.hl + README (F4); testsmre
  • 138d198dmd-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre
  • 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