gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita81abdc9a81abdc9gitoria#34: org page via function route, member-reachable orgs, selects, reportmrea81abdc9/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

  • a81abdc9gitoria#34: org page via function route, member-reachable orgs, selects, reportmre
  • 17f031f0gitoria#34: private repos, organizations, members, move tool, gatemre
  • 71b69343gitoria#23: the sidebar's Repositories link was a 404 after any in-page navigation (static menu re-evaluated publicUrl in the browser); the menu is an instance property now; gate taps it after a tab, folder, filemre
  • 90b4f728gitoria#25: restore the homepage cache and the parsed-blocks cache (they store data under immutable keys, no HTML); the page key, the framework readme key and the textHash key stay removedmre
  • a487248cgitoria#25: remove every cache that hid the page build (page key, Markdown render key, homepage cache, parsed-blocks cache) and the gate that only tested themmre
  • 12f2f4fegitoria: re-vendor Hybriel set-day27b, a startup fault in on Error exits 1mre
  • c21c084egitoria: write the standby service out in full so the boot gate can read the main servicemre
  • e307d69agitoria: say what is per process during the hand-overmre
  • f0cbe6a6gitoria: standby service on port 45014 and a deploy that hands over through it without a gapmre
  • 727cd083gitoria#25: README: vendor notes for Hybriel c1b1010f and the page cachemre
  • 61b72dedgitoria#25: re-vendor Hybriel master c1b1010f (W149 page cache), key the repo Readme page by slug and main commit, extend the readme-cache gatemre
  • 5b0b4b9ereadme-cache gate: use the security gate's ports when no own ports are givenmre
  • bc8f20d9gitoria#25: re-vendor Hybriel c09538bb with the W141 render cache, cache the homepage per commit, add the readme-cache gatemre
  • 9feebbd3Re-vendor Hybriel to ded47c13 (W145: Firefox start script fix)mre
  • 28ed41e5gitoria#24: one sign-in comes from hl:web batch 20, the /session/share workaround is gonemre
  • 3b2669e4gs: drop the unbuildable legacy check, fix pwa fetchmre
  • 2a2fdd77gs: C2 check before cookie experimentsmre
  • 76e0587aWIP gs 2mre
  • a80da7bdWIP gs: security gate for lazy sessions, g24 browser checksmre
  • 23fb05d8re-vendor Hybriel aaa39e69 (hl:web batch 20: login emit and Sessions.mint, tab follows a login, signed-in session cookie wins among duplicates and is re-issued with the Domain, W85 faster render, lazy sessions)mre