gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitcefc7b4acefc7b4atickets: a startup error prints its message before exit 1 (hybriel#247)mrecefc7b4a/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

  • cefc7b4atickets: a startup error prints its message before exit 1 (hybriel#247)mre
  • 99bd6570tickets: lib/migrate.hl writes no table of another topic any more: projects.hl rewriteSlug / addProjectNamed / hasMembers, tickets.hl moveToProject / ticketRecords / ticketRecordsOf, events.hl renameStates / eventRecords / eventRecordsOf; the migration calls them (tickets#47)mre
  • b57161e3tickets: the markup names its own rules (Style.pMessage, Style.olTickets, ...) instead of hand-written class strings that copy a stylesheet rule; the shared bodies sit in lib/looks.hl (tickets#38)mre
  • f767b24dtickets: 111 needless let became plain declarations (3 in ticket.hl, ticket_list.hl, comments.hl and 108 never-reassigned, not captured loop-body ones); the 212 really reassigned lets stay (tickets#44)mre
  • 16c0d3b5tickets: the modal window is phone first: the full-screen sheet is the base rule, the centred window sits in the min-width 60rem block (tickets#39)mre
  • 090ee809tickets: every component's styles in its own nested Style {} block; styles.hl keeps only the theme inherit, the accent and the site-wide rules (tickets#36)mre
  • d395763ftickets: ident-access gate ports 8769/8768 (8797 is taken on loreana)mre
  • afb9a403tickets: an ident access key (Authorization: Bearer idt_…) works in the API (ident#27 app side): lib/ident-access.hl copied from components, read keys GET only, ident down 503; gate tests/ident-access-tickets.mjsmre
  • 48c1ba79tickets: md-paste-files gate with the file manager casesmre
  • f04afc43tickets: MdEditor from components 59704ce (a file manager copy still attaches, pipe rows, tickets#49)mre
  • 06599fa0tickets: MdEditor from components b0f1ec2 (a clipboard with text always pastes the text, tickets#49); real Ctrl+V gatemre
  • 2e1b116ftickets: re-vendor Hybriel master acaceaf3 (framework ec8d6c1d): plugins/web patch queue while a page is built, anonymous session cookies refresh; gate waits for the comment editors to draw (W174) and clicks the form editor when it stands still; security gate: main's code runs on its own binary, lazy-session cookie checksmre
  • 361bc0fetickets: re-vendor Hybriel 7a684920 (WIP, not deployed); on Error exits 1 at startup; migrate passes its log by reference; gate checks follow lazy sessions and the 413 refusalmre
  • 8a69999cident#28: /login/callback never signs out the session it finds; a valid code puts the user on the same sessionmre
  • 337e9b21tickets#37: a comment's files are open to everyone who can read the commentmre
  • 1800600ftickets: write the standby service out in full so the boot gate can read the main servicemre
  • 8179d287tickets: standby service on its port plus 10 and a deploy that hands over through it without a gapmre
  • 0398145ctickets: the table grid rule is marked functional for check-thememre
  • 40fddc20tickets takes components e54f83a: tables get thin grey lines from the theme, desktop toolbar stays one row with the Table button, F4 check counts 11 buttonsmre
  • c1b77d61tickets#35: text typed before the editor is built is taken in once by the build (the input handler no longer writes it to the field first, which doubled the first letters); the gate failure shows the surfacemre