tickets
All repositories: gitoria
6.5 KB
# Report 022 — tickets onto the layouts theme, mobile first (step 1) — DONE (not deployed, not pushed)Worker X2 (Sonnet), Atlas, 2026-10-21. Branch `w30-theme` from 31cabfc (= live). Brief: missions/022-theme.md.## What changed- `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 .`).`.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).- `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.- `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).- `lib/api-helpers.hl` htmlPage (login-failed page): the "back to the tickets" link 44 px high.- Not touched: components/comments, md-editor, files-upload.## 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)`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).| page (390) | scrollWidth | taps <44 / all (old → new) | inputs <16 px | wider than 390 | text <14 px | header px ||---|---|---|---|---|---|---|| list | 390→390 | 552/909 → **0**/907 | 2 → 0 | 0 → 0 | 1675 → 1 | 91 → 52 || ticket | 390→390 | 19/42 → **0**/40 | 4 → 0 | 0 → 0 | 17 → 8 | 91 → 52 || new ticket | 390→390 | 96/150 → **0**/148 | 2 → 0 | 0 → 0 | 225 → 1 | 91 → 52 || project settings | 390→390 | 23/34 → **0**/32 | 8 → 0 | 0 → 0 | 2 → 1 | 91 → 52 || inbox (108 rows) | 390→390 | 126/221 → **0**/219 | 0 → 0 | 0 → 0 | 325 → 0 | 91 → 52 || login-failed | 390→390 | 1/1 → **0**/1 | 0 → 0 | 0 → 0 | 0 → 0 | – |check-theme: 63 problems (the theme copy on old code) → **0** (45 files).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).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.Header 91 px old (it wrapped on the phone) → 52.## Gates (LC_ALL=C, ports 8732–8739 / 8752–8754, one at a time)| gate | old 31cabfc | new ||---|---|---|| browser.mjs | **377/0** | run 1 213/3 (selectors, below), run 2 374/3, run 3 376/1, final **377/0** || events.mjs | **52/0** | **52/0** (twice) || check-theme | – | 0 |Test changes (only where the expectation changed, all in tests/browser.mjs):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).2. "palette": the brand is the theme's white title (rgb 245,250,255), was the accent colour.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.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.## 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)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".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/.## Left / next- 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).- 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).- 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).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
- 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