gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainfe209ffeMerge branch 'w56-owner-members' into mainGitoriamain/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

  • fe209ffeMerge branch 'w56-owner-members' into mainGitoria
  • fa0754c8|||PR repository owner transfer and members API (#55)mre
  • 8862e537Merge branch 'w55-rename-org' into mainGitoria
  • 014d2b7fOne immutable readers snapshot per move for the left-organization event (#53)mre
  • 1859d506Decide who hears a repo left its organization by its readers before the move (#53)mre
  • 499f25f2Review fixes for the Settings organization move (#53)mre
  • ed3b922b|||PR move a repository into an organization in Settings (#53)mre
  • 74ec2af8Merge branch 'w54-repo-rename-pr' into mainGitoria
  • 9f7ce8d8Preserve rename compatibility and live page titlesmre
  • c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
  • ce08920dMerge branch 'w52c-header-phone' into mainGitoria
  • 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
  • e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
  • c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
  • 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
  • 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
  • 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
  • 155861f6Merge branch 'w52-person-approval' into mainGitoria
  • b5435de8|||PR person approvals: second Kunibert round (#52)mre
  • 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre