gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite6dff0cbe6dff0cbgitoria#23: report 005, STATUS, LOGmree6dff0cb/reports/005-mobile-first.md

7.9 KB

  1. # gitoria mission 005 — gitoria#23 phone first on the shared theme — DONE (not deployed, not pushed)
  2. Workers E2 (start, quota stop at a2a840a) and G2 (finish), Atlas, 2026-10-20. Branch `wm` (from main b680c48, Hybriel 0f396652).
  3. Commits: a2a840a (WIP: theme, styles, shell, measure script), 7f992d6 (the rest + gates), plus this report's commit. Nothing
  4. deployed or pushed. Repo frame (gitoria#22) NOT restructured: repohead.hl untouched, styled only.
  5. ## What changed
  6. - `theme/` copied verbatim from layouts.worldapi.org (HEAD 3d4f8e1, `cp -r …/layouts.worldapi.org/theme ./theme`, as tracker does);
  7. `shared/tokens.hl` byte-equal to layouts'.
  8. - `components/styles.hl`: `inherit '../theme/theme.hl'`, accent blue-dark, radiusSmall/radiusLarge only, borderless, phone-first
  9. rules (44 px targets, 16 px fields, ≥ 14 px text), one `@media (min-width: 60rem)` block. G2 added: the brand link 44 px
  10. (`'html application-header > a.brand' { lineHeight = '2.75rem' }`, ellipsis kept), the branch links of the code side column
  11. `minWidth 2.75rem` (the "main" 35×44 was `code-side li > a`, not a crumb), readme `code` `max(.875rem, .9em)` (was 13.0 px),
  12. pull list: `a.ticketref` and the source/target branch links `minWidth 2.75rem` (found by the gate: "#1" 20×45, "fixbr" 35×44).
  13. - `components/main.hl` (shell): AppHeader + MainMenu + UserMenu + tracker's signed-out ident menu + Sidebar (phone menu) +
  14. ContentFirst (hybriel#130 order).
  15. - Gates: `tests/browser.mjs` block "phone first" (see README "Test"), `clickInMenu` (open the user menu / ident dropdown before
  16. #logout / #loginbutton) in browser/push/ssh.mjs, console errors now name their page; deploy.sh GATES + `node theme/check-theme.mjs .`.
  17. ## 390 px on a COPY of gitoria.worldapi.org-20261020-1226.tgz (az5b2 session, LC_ALL=C, fake tickets = snapshot)
  18. DPR 3, mobile + touch, iPhone UA, signed in (17/18 signed out). Old = b680c48, new = 7f992d6. `tests/mobile-measure.js`.
  19. | page | scrollWidth old → new | taps <44 old → new | inputs <16 px old → new | text <14 px old → new | header px old → new | code boxes past edge old → new |
  20. |---|---|---|---|---|---|---|
  21. | 01-home-repolist | 390 → 390 | 22/22 → 0/23 | 3/3 → 0/3 | 29 → 0 | 55 → 52 | 0 → 0 |
  22. | 02-readme | 441 → 390 | 4/10 → 0/11 | 0/0 → 0/0 | 1 → 0 | 55 → 52 | 7 → 0 |
  23. | 03-code-folder-root | 441 → 390 | 47/56 → 0/57 | 0/0 → 0/0 | 21 → 0 | 55 → 52 | 0 → 0 |
  24. | 04-code-folder-sub | 441 → 390 | 45/54 → 0/55 | 0/0 → 0/0 | 21 → 0 | 55 → 52 | 0 → 0 |
  25. | 05-code-file | 441 → 390 | 27/36 → 0/37 | 0/0 → 0/0 | 99 → 0 | 55 → 52 | 1 → 0 |
  26. | 06-code-file-longline | 441 → 390 | 29/35 → 0/36 | 0/0 → 0/0 | 138 → 0 | 55 → 52 | 1 → 0 |
  27. | 07-code-routger-root | 441 → 390 | 51/57 → 0/58 | 0/0 → 0/0 | 22 → 0 | 55 → 52 | 0 → 0 |
  28. | 08-branch-view | 441 → 390 | 50/56 → 0/57 | 0/0 → 0/0 | 22 → 0 | 55 → 52 | 0 → 0 |
  29. | 09-commit-small-diff | 441 → 390 | 51/57 → 0/58 | 0/0 → 0/0 | 22 → 0 | 55 → 52 | 0 → 0 |
  30. | 10-commit-big-diff | 441 → 390 | 42/52 → 0/53 | 0/0 → 0/0 | 17 → 0 | 55 → 52 | 0 → 0 |
  31. | 11-pulls-list | 441 → 390 | 3/9 → 0/10 | 0/0 → 0/0 | 0 → 0 | 55 → 52 | 0 → 0 |
  32. | 12-releases | 441 → 390 | 3/9 → 0/10 | 0/0 → 0/0 | 0 → 0 | 55 → 52 | 0 → 0 |
  33. | 13-tickets | 441 → 390 | 41/60 → 0/61 | 2/2 → 0/2 | 46 → 0 | 55 → 52 | 0 → 0 |
  34. | 14-settings | 441 → 390 | 5/12 → 0/13 | 0/0 → 0/0 | 0 → 0 | 55 → 52 | 0 → 0 |
  35. | 15-no-such-repo | 390 → 390 | 2/3 → 0/4 | 0/0 → 0/0 | 0 → 0 | 55 → 52 | 0 → 0 |
  36. | 16-login-failed | 390 → 390 | 3/3 → 0/4 | 0/0 → 0/0 | 0 → 0 | 55 → 52 | 0 → 0 |
  37. | 17-home-signed-out | 390 → 390 | 16/16 → 0/17 | 0/0 → 0/0 | 28 → 0 | 55 → 52 | 0 → 0 |
  38. | 18-readme-signed-out | 441 → 390 | 4/10 → 0/11 | 0/0 → 0/0 | 1 → 0 | 55 → 52 | 7 → 0 |
  39. At 1280 no page scrolls sideways (old and new; new scrollWidth 1265 = the 15 px scrollbar). Long line (19 456 px): scrolls inside `#lines`.
  40. Header 55 here on old because the copy has no live ident (D2 measured 130 with the selector filled); new 52 = the theme's.
  41. Open states at 390 (real taps, `scripts/menus.mjs`): ☰ sidebar 0–320 px wide, "×" 44×44, "Repositories" 288×44; user menu box
  42. 182–374 px, Access tokens / SSH keys / Log out 179×44 each; ident dropdown (signed out, main and repo address) 150–374 px,
  43. "Log in with ident" 200×44; all toggles 44×44; nothing under 44 px or 14 px, page stays 390.
  44. 1280 by numbers (`scripts/wide.mjs`): header 52 px; brand left 57 = column left 57; signed out the ident panel ends at 1209 = column
  45. right; the user icon button ends at 1217 (the theme's −.5rem margin; its 24 px glyph ends ≈ 1207). Code pages: file/tree 57–889,
  46. side column (branches, latest commits) 921–1209 = 18rem beside it; tab row one row of 44 px.
  47. ## Gates (LC_ALL=C, ports 8700–8729, TMPDIR in the scratch dir)
  48. | gate | old b680c48 (+ new tests) | new |
  49. |---|---|---|
  50. | check-theme | 44 problems | 0 |
  51. | browser.mjs | 200 passed, **20 failed** (all in "phone first": 15 pages + tab row + long line + 3 dropdowns) | **221/0** (runs 2–4); run 1: 219/2 |
  52. | push.mjs | 46/0 | 46/0 |
  53. | ssh.mjs | 44/0 | 44/0 |
  54. Run 1 of new failed /pulls (fixed in styles) and once "browsers: no console errors": `TypeError: _71 is not a function or its
  55. return value is not iterable (main-menu.hl:17:13)` — the theme's MainMenu `for (it of list)`. Not seen in 3 later runs, not
  56. reproduced on the data copy (tab navigation, logout, login flip via a fake ident exchange, name prompt: `E2/scripts/console.mjs`
  57. + `serve2.mjs`). Suspicion (not proven): the browser re-evaluates `items = menu` and gitoria's `static menu` holds `publicUrl`
  58. (an env static of lib/util.hl → a refusing stub in the browser module); tracker's menu is literal paths. The gate now names the page
  59. of a console error. Not reported as a Hybriel gap (no repro).
  60. ## Screenshots (step 5)
  61. gitoria serves NO raw file of a repo: project.hl routes have no raw/blob/download route (only /code, /branch, /commit pages, which
  62. show a binary file as "This file is not text — not shown"), and the remote is gitoria itself (ssh.gitoria.worldapi.org:2222).
  63. So no PNGs were committed (they would get no URL). Local paths (loreana):
  64. `/media/STORAGE/claude-scratch/atlas/E2/shots/old-390/*.png` (before) and `…/shots/new-390/*.png` (after), 18 pages each, names as in
  65. the table; 1280: `…/shots/{old,new}-1280/`; open dropdowns: `…/shots/new-390-open/{sidebar-repo,usermenu-repo,usermenu-main,
  66. identpanel-main,identpanel-repo}.png`. Raw numbers `…/E2/results/{old,new,new-menus}.json`, table `…/results/table.md`.
  67. I cannot view images (no image viewer in this agent): everything above is DOM measurement, not eyesight.
  68. ## Not fixed here (reported)
  69. - 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.
  70. - Theme gap (layouts.worldapi.org, not Hybriel): buttons 2.25rem, header icon buttons 2.5rem, brand 26 px high (< 44 px);
  71. gitoria overrides them with `html …` rules — belongs into the theme.
  72. - The intermittent MainMenu console error above (1 of 4 gate runs).
  73. - No Hybriel gap with a repro found.
  74. ## Scripts (scratch, not in the repo)
  75. `E2/scripts/serve.mjs` (copy of the backup, session file, fake tickets on port+9), `serve2.mjs` (+ fake ident exchange on port+8),
  76. `shots.mjs` (18 pages × 390/1280 + numbers), `menus.mjs` (open dropdowns at 390), `wide.mjs` (1280 alignment), `console.mjs`,
  77. `probe.mjs`. Data copies deleted after the runs.
  78. ## Phone test for the creator (after deploy)
  79. 1. Open a repo's Code page on the phone: no sideways page scroll; the tabs wrap into 2 rows; a long file scrolls sideways inside its box only.
  80. 2. Tap ☰ top left: the menu slides in with "Repositories"; tap it → the repo list. Tap the user icon top right: Access tokens, SSH keys, Log out.
  81. 3. Signed out: tap the ident icon top right → "Log in with ident" → log in → you come back to the same page signed in; type in a field (e.g. new ticket): iOS does not zoom.

Branches

Latest commits

  • e6dff0cbgitoria#23: report 005, STATUS, LOGmre
  • 7f992d62gitoria#23: phone first on the shared theme — brand, branch and pull links 44 px, readme code 14 px; gate block "phone first" (15 pages at 390 + the three dropdowns, fails 20 on old), dropdown-aware login/logout clicks, check-theme in GATESmre
  • 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