gitoria
All repositories: gitoria
7.2 KB
# gitoria mission 005 — gitoria#23 phone first on the shared theme — WIP (QUOTA STOP)Worker E2 (Atlas), 2026-10-20. Branch `wm` (from main b680c48, Hybriel 0f396652). **Stopped by Atlas (quota) mid-mission:nothing deployed or pushed. Gates were NOT run yet.** A fresh worker continues from "Next steps" below.## Done (committed on wm, WIP)- `theme/` copied verbatim from layouts.worldapi.org (`cp -r …/layouts.worldapi.org/theme ./theme`, layouts HEAD 3d4f8e1; it is oneblock newer than tracker's copy: the `files-upload` rules). `shared/tokens.hl` is byte-equal to layouts' (`cmp` = 0).- `components/styles.hl` rewritten: `inherit '../theme/theme.hl'`, accent blue-dark, borderless, radiusSmall/radiusLarge only,phone-first rules (44 px targets, 16 px fields, ≥ 14 px text), one `@media (min-width: 60rem)` block. `node theme/check-theme.mjs .`:**old styles 44 problems → new 0**.- `components/main.hl` (the shell) on the theme the way tracker does it: `AppHeader` (brand gitoria) + `MainMenu` (Repositories →main address) + `UserMenu` (`#whoami`, Access tokens, SSH keys, `#logout`) + tracker's signed-out `identMenu` (ident icon → popover`#ident-panel` with `#selector` and `#loginbutton`; open in the header from 60rem) + `Sidebar desktop="false"` (phone menu) +`main { ContentFirst { slot } }` (hybriel#130 order). The selector element stays in the page signed in (hidden with class `in`).- Repo frame (gitoria#22) NOT restructured: repohead.hl untouched; only styled — the tab row `repo-nav` wraps in its own row(2 rows × 44 px at 390, 1 row at 1280), the current tab marked via `body:has(<view>)`.- `tests/mobile-measure.js`: the in-page phone measurement (scrollWidth vs a fixed 390 — innerWidth grows with a mobile page, so thegate's old `noOverflow` could not fail —, taps < 44×44 with the WCAG inline-link exemption, fields < 16 px, text < 14 px, headerheight, code/table boxes past the edge, tab row). Not yet wired into tests/browser.mjs.## Measured on a COPY of gitoria.worldapi.org-20261020-1226.tgz (az5b2 session file in the copy, LC_ALL=C, fake tickets = snapshot)390 px, DPR 3, mobile + touch, iPhone UA, signed in as az5b2 (17/18 signed out). Old = b680c48, new = this WIP.| page | scrollWidth old → new | taps <44 old → new | inputs <16 px old → new | text <14 px old → new | header px old → new ||---|---|---|---|---|---|| 01-home-repolist | 390 → 390 | 22/22 → 1/23 | 3/3 → 0/3 | 29 → 0 | 55 → 52 || 02-readme | 441 → 390 | 4/10 → 1/11 | 0/0 → 0/0 | 1 → 3 | 55 → 52 || 03-code-folder-root | 441 → 390 | 47/56 → 2/57 | 0/0 → 0/0 | 21 → 0 | 55 → 52 || 04-code-folder-sub | 441 → 390 | 45/54 → 2/55 | 0/0 → 0/0 | 21 → 0 | 55 → 52 || 05-code-file | 441 → 390 | 27/36 → 2/37 | 0/0 → 0/0 | 99 → 0 | 55 → 52 || 06-code-file-longline | 441 → 390 | 29/35 → 2/36 | 0/0 → 0/0 | 138 → 0 | 55 → 52 || 07-code-routger-root | 441 → 390 | 51/57 → 2/58 | 0/0 → 0/0 | 22 → 0 | 55 → 52 || 08-branch-view | 441 → 390 | 50/56 → 2/57 | 0/0 → 0/0 | 22 → 0 | 55 → 52 || 09-commit-small-diff | 441 → 390 | 51/57 → 2/58 | 0/0 → 0/0 | 22 → 0 | 55 → 52 || 10-commit-big-diff | 441 → 390 | 42/52 → 2/53 | 0/0 → 0/0 | 17 → 0 | 55 → 52 || 11-pulls-list | 441 → 390 | 3/9 → 1/10 | 0/0 → 0/0 | 0 → 0 | 55 → 52 || 12-releases | 441 → 390 | 3/9 → 1/10 | 0/0 → 0/0 | 0 → 0 | 55 → 52 || 13-tickets | 441 → 390 | 41/60 → 1/61 | 2/2 → 0/2 | 46 → 0 | 55 → 52 || 14-settings | 441 → 390 | 5/12 → 1/13 | 0/0 → 0/0 | 0 → 0 | 55 → 52 || 15-no-such-repo | 390 → 390 | 2/3 → 1/4 | 0/0 → 0/0 | 0 → 0 | 55 → 52 || 16-login-failed | 390 → 390 | 3/3 → 1/4 | 0/0 → 0/0 | 0 → 0 | 55 → 52 || 17-home-signed-out | 390 → 390 | 16/16 → 1/17 | 0/0 → 0/0 | 28 → 0 | 55 → 52 || 18-readme-signed-out | 441 → 390 | 4/10 → 1/11 | 0/0 → 0/0 | 1 → 3 | 55 → 52 |At 1280 no page scrolls sideways (old and new). The old header is 55 px here (D2 measured 130 with a live ident selector; my runhad no ident, so the selector stayed empty). Code boxes: old 7 boxes past the edge on the readme, 1 on each file view → new 0;the long-line file (19 456 px line) scrolls inside `#lines`.Left over in the WIP (new column): `a.brand "gitoria"` 61×26 on every page (the theme's brand link) and the branch crumb`a "main"` 35×44 on the code pages (the crumbs rule misses it); readme `code` 13.0 px ×3 (Markdown code inside a smaller parent).Screenshots (I cannot view images — no image viewer in this agent; the statements above are DOM measurements, not eyesight):`/media/STORAGE/claude-scratch/atlas/E2/shots/{old,new}-{390,1280}/<page>.png` (18 pages each). Raw numbers:`…/E2/results/{old,new}.json`, table `…/E2/results/table.md`. Scripts: `…/E2/scripts/serve.mjs` (tree, port, label: copy of thebackup data, session file, fake tickets on port+9, LC_ALL=C) and `…/E2/scripts/shots.mjs` (tree, port, label, chrome range). The datacopies are deleted; to measure again: `mkdir …/E2/data && tar xzf /media/STORAGE/deploy-backups/gitoria.worldapi.org/gitoria.worldapi.org-20261020-1226.tgz -C …/E2/data --exclude=.env`.## Gates — NOT RUN YETbrowser.mjs / push.mjs / ssh.mjs old vs new: not run. check-theme: old 44 → new 0. Mobile check: not yet in the gate.Expected gate breakage from the new shell (to fix in tests/browser.mjs, acting like a human): `#logout` now sits in the user menupopover → open `button.user-toggle` first (as tracker's tests do); at 390 `#loginbutton` sits in `#ident-panel` → open`button.ident-toggle` first (at the gate's default 1280 it stands in the header). `#whoami` is now `p#whoami` inside the user menu.## Not fixed here (reported)- LC_ALL: lib/code.hl:13 `git grep -P` under a UTF-8 locale marks non-ASCII files "not text"; all runs used LC_ALL=C.- Theme gap (layouts.worldapi.org, not Hybriel): the theme's buttons are 2.25rem and its header icon buttons 2.5rem (< 44 px);gitoria overrides them with `html …` rules — belongs into the theme. No Hybriel gap found so far.## Next steps (exact)1. styles.hl: brand ≥ 44 px (`'html application-header > a.brand'` min-height 2.75rem, inline-flex); the crumb `a "main"` (checkwhich rule misses — the first crumb), readme `code` ≥ 14 px; re-run `scripts/serve.mjs` + `scripts/shots.mjs` → all zeros.2. Open the ☰ sidebar, the user menu and the ident panel at 390 and measure them (shots of the open states).3. tests/browser.mjs: a "phone first" block before the selector block — seed a long-line file on a branch `wide` of alpha, then at390 (mobile, DPR 2) evaluate tests/mobile-measure.js on main /, alpha /, /code, /code/src, /code/src/a.txt, /branch/wide/<long>,/branch/feature/x, /commit/<first>, /pulls, /releases, /tickets, /settings, nothing-here /, /login/failed, signed-out main → onecheck per page (`ok`); plus the ☰/user-menu/ident-panel clicks. Fix the logout/login clicks (above). Add`node theme/check-theme.mjs .` to deploy.sh GATES. Run browser/push/ssh on new AND on old (old tree: `git archive b680c48` + bin +the new tests/) — the mobile block must fail on old.4. 1280 check by numbers (header flush with the column, code side column), README "Test"/"Files", STATUS, LOG; then report.
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- a2a840a5gitoria#23 WIP (quota stop): theme from layouts, styles inherit it, shell on the theme's header/menus/sidebar, phone measurement script; gates not runmre
- 12b665b0mission brief 005mre
- b680c483Revert "gitoria#22: RepoTabs wrapping component for the repo tabs (active tab, no content for a missing repo)"mre
- 4fda244fgitoria#22: RepoTabs wrapping component for the repo tabs (active tab, no content for a missing repo)mre
- 0fd5e280mission brief 004mre
- e1d425e7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
- e59ff114deploy.sh: wait up to DEPLOY_URL_WAIT (120 s) for 200 after the restart, as the other apps (cold compile, hybriel#148)mre
- bcafcceb003: compose cache volume + tmpfs /tmp, gate start waits 120 s, report/LOG/STATUSmre
- bed3f2d5Re-vendor Hybriel to the shared static build 0f396652 (plugins; bin/ is git-ignored)mre
- 3207e128mission brief 003mre
- 18ab71fbtests/ticketskit: wait up to 120 s for tickets (native Hybriel cold compile ~25 s, hybriel#148)mre
- 4fffa966docker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
- 4f47843egate: ticket links use the tickets short URL (/<slug>/<n>, tickets#25)mre
- 86605446mission 002 (code order) 4/4: README file map + import order + 'Same output' test + gate run with a tickets HEAD copy, STATUS (entry, lessons), LOG, report; tests/realdata-baseline.mjs + realdata-compare.py (a cleanup answers the same on live data: pages, modules, API, git over HTTPS and SSH, faces), tests/letcount.pymre
- cc7bf7bamission 002 (code order) 3/4: let only where a variable is reassigned or re-bound in a loop body (289 lets → plain declarations; 213 left: 125 reassigned, 88 loop-bound; no member/import/param clash). gates 200/0, 46/0, 44/0; real-data reads + writes identical (browser modules: var → const only)mre
- 090a20c6mission 002 (code order) 2/4: one lib/ file per topic — git.hl split into git (calls, branches, init, temp folder) / homepage / code / pulls / releases (+ git-helpers: paths, ids, |||PR/|||RL markers); repos-helpers, tickets-helpers, transport-helpers; util.hl = localtime + env, storage dir, addresses, lists, text checks, one newest-first sort (was 3 copies); the function routes out of project.hl into lib/api.hl (thin; plumbing in api-helpers.hl), sshgate.hl folded into api.hl + sshkeys.hl keyLine + repos.hl mayPush; 'Make main' and the merge answer out of the faces (code.hl makeMain, pulls.hl pullsView), one login helper (users.hl userOfLoginCode); project.hl is the map. Session-writing routes get &req + &server.sessions. gates 200/0, 46/0, 44/0; real-data identical except /login/failed now shows the parked reason for a browser that already had a session (the old copy-of-req lost it)mre
- 110c2799mission 002 (code order) 1/4: .hl files out of the root — lib/ (api, git, localtime, markdown, repos, sshgate, sshkeys, tickets, tokens, transport, users), components/styles.hl; jsoncheck.hl removed (imported nowhere); import paths only. gates 200/0, 46/0, 44/0; real-data reads + writes identicalmre
- fdfb4b1bgitoria: Hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4, mpackdb 2cb7ae5e, http1 773de63e); gates 200/0, 46/0, 44/0mre
- 5b46ac84antcolony#40: LOG.md — missions 069/072 are antcolony missions (report paths on Byrodin)mre
- 5602ff41gitoria: Hybriel master 190aa11d (fc838894 GC correctness, #127 mountKids by reference, #126, #48) — tracker README flat; gates 200/0, 46/0, 44/0mre