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
- 28e9c938ticket list: draw the newest 50 rows and a Show more button (500 rows were a 2-4 s first paint, 740 KB, a 90 000 px phone page)mre
- ccebb0c7mobile: ticket number stays on one line, filter chips one scrolling row, fields full width under their caption, Edit/action buttons, member names whole, 44 px relation linksmre
- f2dc7741gate: the phone toolbar is two even rows (E2)mre
- 20f7c33async components.hybriel 214c318: MdEditor on a phone, two even toolbar rows of 44 px targets, label 15 px, table head 16 px (E2)mre
- d74a5482sync components.hybriel 134b4e3: MdEditor builds an editor put into the page at once, redraws a surface put in anew (F5, hybriel#211)mre
- 9d02c540sync components.hybriel 6b0936a: the 'edited' foldable drops the theme's border and marginmre
- 22751914sync components.hybriel 8d79ff7: bubble hugs its content, quiet 'edited' label; gate checksmre
- c8452453sync components 9a: shared Icon (icons/icons.hl), md-editor toolbar icons + single focus ring (components f4-icons ba96735)mre
- 52ba11e8sync-components: copy icons/icons.hl + README (F4); testsmre
- 138d198dmd-editor.hl: verbatim copy of components f3-mdvalue (an older text handed back is kept)mre
- 18d2df60md-editor.hl: verbatim copy of components f3-mdvalue (an outside value change is shown by the editor)mre
- f6764bedreports/H1-hydrate.mdmre
- 1bbbf0edtests/browser.mjs: wait for hydration before clicking the login button on / (device B)mre
- 6f503cfctests/cdp.mjs: HL_CPU_THROTTLE=<rate> optional CPU throttling for gate runsmre
- e17e2855re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
- a6ddccd2re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
- 81e036b7docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 5d8d2cf6deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- 58e8c02cmission 024: report, LOG, STATUS, e2e fixmre
- 50778073tests/e2e-route-marker.mjs: first paint marker, comments post/edit redrawmre