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
- d083535bticket_list: nest Style rules and bare media queriesmre
- c24608ebmarkdown: format Style with nested language rulesmre
- de964b3bsettings: format Style with nested language rulesmre
- 03c1de05new_project: format Style with nested language rulesmre
- bd76cfa6connect: format Style with nested language rulesmre
- 01fad593inbox: format Style with nested language rulesmre
- 79dc9392you: format Style with nested language rulesmre
- 78073baamain: format Style with nested language rulesmre
- 5499c290Sync theme unchanged from layouts 17e0f03mre
- fd33ee21Sync reviewed components from 8176eb1mre
- 93348453Re-vendor tickets to Hybriel set day35mre
- a4123831tickets#42: the /connect and /login/callback error pages are app pages: the function routes redirect to /connect/failed/<code> and /login/failed/<code> (components/problem.hl, sentences in lib/problems.hl), htmlPage and its hand-written stylesheet are gone; gate tests/error-pages.mjsmre
- 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