gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit00517faf00517fafgitoria: shell 404 page for unknown paths (catch-all route, status 404, JSON 404 under /api), 390 gate checksMG00517faf/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

  • 00517fafgitoria: shell 404 page for unknown paths (catch-all route, status 404, JSON 404 under /api), 390 gate checksMG
  • d9e977f0reports/MG-mobile.md, LOGMG
  • 2f2725actests/browser.mjs: commit-row check (one row, centred date)MG
  • 4df1ea01tests/browser.mjs: MG phone checks (list first, no dead strip, one branch heading, tab grid, commit rows, PR title row, ticket columns, wrapping commands)MG
  • c52424e9gitoria mobile: repo list before the forms, 3x2 tab grid, no duplicate branch heading, ordered commit rows, aligned ticket rows, pull title on its own row, wrapping clone commands, no dead strip under formsMG
  • 3a95252dG3: cache parsed README blocks by sha256 of the text (bounded LRU), reportmre
  • 570138cddeploy: security gate (tests/security.mjs)mre
  • da6b20fcgitoria SG: security audit fixes (uploadMax 0, Secure cookie on https, session rotation at login, nosniff on function routes, no identity in page data) + tests/security.mjs gate + reportmre
  • f98c981fgitoria B1: report wordingmre
  • c6364cedgitoria B1: compact Markdown blocks (one kind flag per block/span, empty and false fields omitted); same rendered HTML, page values -67%mre
  • cd99d2feWIP gitoria#22: always render the repo level's slot (missing-repo boot hang), pages render nothing without a repo; hydration diagnosis in reports/G2-hydrate.mdmre
  • e5404b9breport: commit idsmre
  • 63cfa21ereports/G2-repotabs.mdmre
  • 9b0516fdgitoria#22: mark the tab underline functional (check-theme), chain E2E: serve/measure split, bring the lisbeth tab to frontmre
  • 19bc1df8gitoria#22: all repo pages under ONE layout level (components/repo.hl, hl:web D-CHAIN): a tab click replaces only the page in the slot; head and tab nav stay the same DOM nodesmre
  • 40658417tests/browser.mjs: wait for the page to be live (hydrated) before clicking Merge — a click on the server-rendered button before the client mounted was lost (flaky 'Clashing change' under load)mre
  • 48a6154bre-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
  • e972e8d7tests: short-id-switch (GITORIA_SWITCH_IDENT_PORT/_PORT) and ssh tunnel (GITORIA_GATE_TUNNEL_PORT) ports from env, defaults unchangedmre
  • f06f5349re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
  • c7d3cc87docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre