gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc5d28fb5c5d28fb5Tickets conductor: S51 startedmrec5d28fb5/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

  • c5d28fb5Tickets conductor: S51 startedmre
  • fd6ca1e6Tickets conductor: brief 027 waker design, push-test projectmre
  • e448e656Tickets conductor: STATUS #51mre
  • 1c10857bTickets conductor: P51 eval, brief 027mre
  • e725969dTickets conductor: #51 directionmre
  • 1b5c63ddTickets conductor: P51 startedmre
  • 9f13fbdaTickets conductor: brief 026 prioritymre
  • acc477d9Tickets conductor: brief 026 + Vinzenz recommendationsmre
  • 9233a734Tickets conductor: brief 026 completemre
  • 5da589fdTickets conductor: brief 026 + Gitoria's answermre
  • a3cd5329Tickets conductor: tickets#51 opened, brief 026 draftmre
  • 6f6e5797Tickets conductor: STATUS wordingmre
  • 957de51fTickets conductor: T36 live, #36 review, #50 donemre
  • bc2fde32Merge branch 'main' into t36-stylemre
  • b7ca093atests: wait for the new row and normalize editor marker spacesmre
  • 41da3525Tickets conductor: flake cause, T36 deploy stepmre
  • 64c477e6Tickets conductor: deploy waits for Arachnemre
  • 467d7286Tickets conductor: T36 done, deploy questionmre
  • fed5ca81ticket_list: remove repeated selected-state coloursmre
  • 8542fc8aTickets conductor: T36 proof reviewedmre