gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit866397a0866397a0mission 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; reportmre866397a0/reports/022-theme.md

6.5 KB

  1. # Report 022 — tickets onto the layouts theme, mobile first (step 1) — DONE (not deployed, not pushed)
  2. Worker X2 (Sonnet), Atlas, 2026-10-21. Branch `w30-theme` from 31cabfc (= live). Brief: missions/022-theme.md.
  3. ## What changed
  4. - `theme/` copied verbatim from layouts.worldapi.org **dbe3de7** (`git archive dbe3de7 theme`; `shared/tokens.hl` byte-equal, checked). `theme/check-theme.mjs` is in deploy.sh GATES (`node theme/check-theme.mjs .`).
  5. `.check-theme-ignore`: the three vendored component folders (comments, md-editor, files-upload — not changed) and lib/api-helpers.hl (the standalone login/connect error page is a raw HTML string with its own colours, no theme there).
  6. - `components/main.hl` (shell): theme AppHeader (brand · MainMenu · UserMenu) + Sidebar (phone ☰) + `main { ContentFirst { slot } }`. Main menu = All tickets / Inbox; the live inbox count is now in the label ("Inbox (108)"; the old `#inboxcount` badge is gone because MainMenu takes only label + href). User menu (signed in): name `#whoami`, "Account and tokens" (/you), Log out `#logout`. Signed out: ident icon → dropdown with ident's selector + "Log in with ident" (phone), standing open in the header from 60rem (as gitoria). Name prompt, offline note, login.js bridge unchanged.
  7. - `components/styles.hl`: inherits the theme; removed what the theme covers (base elements, links, headings, fields, buttons, details/summary, `.muted`, `p.empty`, old header/userBox/nav, main, a.button, button.quiet/danger); kept ticket list, filters, history, state badges, relations, settings/connect, markdown. Borders/radii gone (check-theme 63 → 0), ticket-filter links and ticket-list links 44 px, text ≥ 14 px for my own rules, one `@media (min-width: 60rem)` (was 45rem).
  8. - `lib/api-helpers.hl` htmlPage (login-failed page): the "back to the tickets" link 44 px high.
  9. - Not touched: components/comments, md-editor, files-upload.
  10. ## 390 audit (real Chrome, copy of tickets.worldapi.org-20261020-2108.tgz, signed in as the creator; 108 inbox rows, 400+ tickets; DPR 2, mobile + touch)
  11. `tests/e2e-theme.mjs` + `tests/mobile-measure.js`. Old = 31cabfc, new = this branch. taps<44 = interactive elements under 44×44 (not counting a link inside a sentence), "wider" = visible elements past 390 (not inside a box that scrolls itself).
  12. | page (390) | scrollWidth | taps <44 / all (old → new) | inputs <16 px | wider than 390 | text <14 px | header px |
  13. |---|---|---|---|---|---|---|
  14. | list | 390→390 | 552/909 → **0**/907 | 2 → 0 | 0 → 0 | 1675 → 1 | 91 → 52 |
  15. | ticket | 390→390 | 19/42 → **0**/40 | 4 → 0 | 0 → 0 | 17 → 8 | 91 → 52 |
  16. | new ticket | 390→390 | 96/150 → **0**/148 | 2 → 0 | 0 → 0 | 225 → 1 | 91 → 52 |
  17. | project settings | 390→390 | 23/34 → **0**/32 | 8 → 0 | 0 → 0 | 2 → 1 | 91 → 52 |
  18. | inbox (108 rows) | 390→390 | 126/221 → **0**/219 | 0 → 0 | 0 → 0 | 325 → 0 | 91 → 52 |
  19. | login-failed | 390→390 | 1/1 → **0**/1 | 0 → 0 | 0 → 0 | 0 → 0 | – |
  20. check-theme: 63 problems (the theme copy on old code) → **0** (45 files).
  21. Text < 14 px left (not in the brief's list, and in vendored components I must not change): `button.source-switch` 13.6 px (md-editor), `time` 12.8 px and `button.comment-like` 13.6 px (comments block).
  22. 1280 (same run): no page scrolls sideways (1265 = scrollbar). Targets under 44 at 1280: 669/39/109/33/163 → 5/12/6/9/2 (list/ticket/new/settings/inbox): by the theme's design the desktop is denser (buttons 36 px, the header's menu links 38 px; "Edit"/"Save" 36 px) — same note as gitoria 007.
  23. Header 91 px old (it wrapped on the phone) → 52.
  24. ## Gates (LC_ALL=C, ports 8732–8739 / 8752–8754, one at a time)
  25. | gate | old 31cabfc | new |
  26. |---|---|---|
  27. | browser.mjs | **377/0** | run 1 213/3 (selectors, below), run 2 374/3, run 3 376/1, final **377/0** |
  28. | events.mjs | **52/0** | **52/0** (twice) |
  29. | check-theme | – | 0 |
  30. Test changes (only where the expectation changed, all in tests/browser.mjs):
  31. 1. "shell: no inbox count yet" / "inbox: … header count 1": read the main-menu text ("All ticketsInbox" / "…Inbox (1)") instead of `#inboxcount` (the badge is now in the label).
  32. 2. "palette": the brand is the theme's white title (rgb 245,250,255), was the accent colour.
  33. 3. "tables … desktop": the fixture table now fits the wider theme column (72rem, was 60rem) so nothing scrolls on desktop; the old else-branch compared an element's right edge with itself (never true) — it now says "scrollW ≤ boxW". Phone still requires scrolling.
  34. The first two failures of run 1 (signed-out selector, `#choose`) were my bug (the ≥ 60rem rules for the ident panel were missing in styles.hl), fixed. Run 2 had another gate start on the same ports (my own earlier chain) — rerun clean.
  35. ## E2E, lisbeth's real Chrome (CDP via `ssh -L 8756→9223`, `-R 8750,8751`; ONE existing tab (about:blank, put back), Page.bringToFront, no /json/new, no clipboard)
  36. App on a COPY of the backup (own storage + session), old :8750 / new :8751. At 390 and 1280, real mouse clicks (new, 11/11 PASS, 0 console errors): list → click a ticket (opens /hycon/53); user-menu button opens (name, Log out shown); ☰ opens the sidebar with "All tickets / Inbox (108)" (390); comment with an attached PNG (file input set by DOM.setFileInputFiles, text typed, "Comment" clicked) → posted with its thumbnail; state change open → progress (390) and progress → open (1280); "Project settings" link opens settings. Not real: the state `<select>` value is set by script (+ input/change events), then the real click on "Change state".
  37. Shots (PNG, I cannot view images — numbers count, no eyesight claim): /media/STORAGE/claude-scratch/atlas/X2/shots/ — `old-{390,1280}-{list,ticket,new-ticket,project-settings,inbox,login-failed}.png` (before), `new-…` the same (after), `new-{390,1280}-{user-menu,sidebar(390),comment-filled,comment-sent,state-changed,settings,list-final}.png`, raw numbers `old-audits.json`, `new-audits.json`. Logs: /media/STORAGE/claude-scratch/atlas/X2/logs/.
  38. ## Left / next
  39. - Not done: ticket page current-page marking in the menu (`current` is not passed); the `time`/like-button/source-switch text sizes sit in the vendored components (a components change, not here).
  40. - Not tested: a signed-out ident dropdown on a phone by real taps (the gate covers signed-out at 1280; gitoria's walk covers the dropdown).
  41. - No Hybriel gap found. MainMenu's items must carry the count in the label; a badge would need a MainMenu slot (theme/layouts gap, optional).
  42. Cleanup: servers (pids in scratch/pids.txt), the ssh tunnel, lisbeth /tmp/x2-files, data copies and the old worktree are gone; ss shows nothing of mine on 8732–8739 / 8750–8759.

Branches

Latest commits

  • 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
  • 9c5fd42amission 020: attachments E2E proof (lisbeth Chrome, real-data copy), reportmre
  • 1206404fREADME attachments, report 018, LOG/STATUSmre
  • 3d9e7f3ctests: m017 gate fixes (list count, waits before delete clicks); gate 373/0mre
  • dd41d5bcre-sync components 15be2ac; mission 018mre
  • 420ad1bbtickets (mission 017 WIP, tickets#27): comment attachments — lib/attachments.hl (storage/attachments, limits, type by content, members-only GET /api/attachments/:id, delete drops, edit keeps), multipart POST …/comments (lib/multipart.hl), Respond block in FilesUpload (blocks verbatim from components w27c 1f8d79d), gate m017 checks written (not yet run); report, LOG, STATUSmre
  • a7a1380dmission brief 017mre
  • f83d9c0dtickets (mission 016): report reports/016-comments-block.md, LOG, STATUS, README gate countmre
  • eef80f55tickets (mission 016): comments through the shared Comments block (layouts#2) — edit (author, earlier versions kept), delete (author, asks; leaves one line in the history), like (members, toggle) on the server (lib/comments.hl, append-only tables), faces + API …/comments/:comment/{edit,delete,like}, push commentChanged; every run of comments is a block in place in the history; Markdown fields on the Hybriel MdEditor (shared/md-editor.js retired: it took over the block's <md-editor>); blocks copied verbatim from components.hybriel 9db927d (tools/sync-components.sh); gates browser 351/0 (old 326/0), events 52/0 (old 52/0)mre
  • eb7aeeb9mission brief 016mre
  • e4c34759paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • 26efb23freport w6-events (events test)mre
  • c6bfab04mission 015: re-vendor Hybriel 0f396652 (static build), reportmre