gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain5d144817Merge branch 'records-t40' into mainTicketsmain/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

  • 5d144817Merge branch 'records-t40' into mainTickets
  • 44ee6f06|||PR records: #43 #45 livemre
  • b8fdeee9Merge branch 'p39-routes' into mainTickets
  • a0187a0a|||PR Remove redundant route-order loopmre
  • 369e4b9cMerge branch 'k40-lists' into mainTickets
  • 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
  • 610d8e8aMerge branch 'records-t39' into mainTickets
  • 32bcdf24|||PR records: GO P39 K40mre
  • 4123c6d1Merge branch 'records-t38' into mainTickets
  • cd3641a1|||PR records: day72 deploy live, tickets closedmre
  • 7d44d852Merge branch 'records-t37' into mainTickets
  • 926f7061|||PR records: merges, D36 deploymre
  • bf58534eMerge branch 'l33-final' into mainTickets
  • 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
  • 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
  • 5822cb3aMerge branch 'o34-clean' into mainTickets
  • 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
  • 14cf96b4Merge branch 'records-t36' into mainTickets
  • 07749fa1|||PR records: day72 + #40 mergedmre
  • ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre