gitoria
All repositories: gitoria
6.3 KB
# G2 — gitoria#22: repo tabs as ONE persistent repo layout (hl:web D-CHAIN)Branch `g2-repotabs` (from main 4065841, Hybriel 5406d146 vendored). Not merged, pushed or deployed.## Approach* hl:web chain: a page declares `parent './x.hl'`, the parent has a `slot` and itself `parent './main.hl'` (docs: hybriel/COMPONENTS.md "Wrapping", hybriel/projects/chain-lab/views/repo.hl + README). No hl:web gap found, no JS written.* NEW `components/repo.hl` = the repo level: shell (main.hl) → **repo.hl** → page. It holds repo head (name, description, "All repositories"), the tab nav and the `slot`. The active tab comes from `route = null` (the standing level is given the new route on each navigation) via `tabOfPath(route.path)` (lib/repos-helpers.hl); links carry `aria-current="page"` (null renders `aria-current=""` — known Hybriel gap from 4fda244, CSS matches `[aria-current=page]`). Style (styles.hl): bold, strong colour, 2 px accent underline; tabs wrap on a phone, 44 px high.* Missing repo: only "No such repository" + link, no slot → the page isn't even constructed. Main address (no slug): the level shows no head, just the slot (index.hl is `parent './repo.hl'` too, so Readme `/` is in the SAME chain as code/pulls…).* All 8 pages (index→readme, code, branch, commit, pulls, releases, tickets, settings): `parent './repo.hl'`, `RepoHead` gone (repohead.hl deleted). "Add code" → `components/addcode.hl`, used by code/branch/commit only, inside the page (so it is read fresh on each navigation; the standing level isn't re-constructed). `loginfailed.hl` keeps `main.hl` (another chain = full load, by design).* Not needed: batch 11 / #209 (host/slug is fixed per repo address; only `route` changes and that repaints in place).* Caveat: a navigation between repo addresses (other host) or to the main address list is a different origin = full load anyway.## Commits (branch g2-repotabs)1. 19bc1df repo.hl + addcode.hl, pages re-parented, styles, README, gate checks, tests/chain.mjs2. 9b0516f tab underline marked `// functional` (check-theme), chain.mjs serve/measure split + bringToFront for lisbeth## (1) Nodes removed/added per click — real Chrome, real clicks, MutationObserver element counts, tagged node objects (tests/chain.mjs, headless, alpha repo; desktop 1280 and phone 390 give identical numbers)| click | old removed/added | old head+nav+repo-page same node? | new removed/added | new head+nav+links same node? ||---|---|---|---|---|| Readme→Code | 34 / 59 | NO (all replaced) | 22 / 47 | YES (shell, repo-page, repo-head, name, nav, link, header) || Code→Pulls | 59 / 31 | NO | 47 / 19 | YES || Pulls→Readme | 31 / 34 | NO | 19 / 22 | YES || Readme→Code (2nd) | 34 / 59 | NO | 22 / 47 | YES |New replaces only the page in the slot. Aria-current follows each click (new), none marked (old). Same numbers in lisbeth's Chrome (E2E below). JSON: shots/chain-{old,new,lisbeth-old,lisbeth-new}.json.## (2) Readme tab click with a 2 003-line README (longdoc), click → README text painted, 3 runs| | old | new ||---|---|---|| headless desktop (ms) | 1665 / 1298 / 1647 | 1881 / 1778 / 1930 || headless phone390 | 1437 / 1797 / 1463 | 1690 / 1550 / 1584 || lisbeth desktop | 3147 / 2230 / 2030 | 2945 / 2261 / 1996 || lisbeth phone390 | 2115 / 1996 / 2260 | 2395 / 2062 / 1930 |Honest result: **no speed-up**. Both add ≈ 2 600 elements (the Markdown rendering is the cost; long tasks ≈ 250–470 ms); new is within noise (headless slightly slower, lisbeth equal). The chain keeps head/nav, it does not make a long README cheaper; #180/#181 are in both (both trees vendor 5406d146). Further speed needs the README render itself (virtualising/chunking the Markdown blocks) — not part of this ticket.## (3) Gates (deploy.sh GATES + push/ssh), ports 8700–8729| gate | old (main) | new ||---|---|---|| check-theme | 0 problems (before my change) | 48 files, 0 problems (the underline lines are marked `// functional`; first try had 2 problems — caught) || browser.mjs | 225 / 0 | **232 / 0** (7 new checks, final commit) || push.mjs | 46 / 0 (README) | 46 / 0 || ssh.mjs | 44 / 0 (README) | 44 / 0 |New checks (3 re-used from 4fda244: active tab + different style on all 9 views, tab hrefs, unknown repo shows only the message; 4 chain checks: same node objects after Readme→Code→Pulls→Releases→Tickets→Readme→Code, zero child mutations inside repo-head while slot parent mutates, Back button returns inside the chain with Readme marked, Code→commit page keeps head+nav). **The new browser.mjs against OLD code: 226 passed / 6 failed** (aria-current, missing-repo, 4 chain checks). Reruns: the first new-code run had 2 failures (my gate's `__navMarker` lost on my reload — gate bug fixed; and one phone 390 hydrate timeout of the missing-repo page that did not recur — 232/0 on two later runs).## (4) lisbeth E2E (lock rules; apps + tunnels outside the lock; old = main on :8725, new on :8726 via `ssh -R`; ONE existing tab reused, bringToFront, emulation cleared after)Clicks Readme→Code→Pulls→Readme→Code at 1280 and 390 px (real mouse events). Screenshots (I looked at them): shots/chain-lisbeth-{old,new}-{desktop,phone390}-{0-readme,1-code,2-pulls,3-readme,4-code}.png.* Saw (new, phone390 Pulls): header, "alpha", description, tabs wrapped over 2 rows, "Pull requests" bold white with accent underline + raised background, rest normal; list below; no overflow (scrollWidth ≤ 390), tab sizes ≥ 44 px high (Readme 84×44, Code 61×44, Pull requests 120×44, Releases 89×44, Tickets 76×44, Settings 85×44).* Saw (old, phone390 Pulls): active tab only blue text on grey (no bold, no underline).* Saw (new, desktop Code): one row of tabs, "Code" bold with underline, code browser + sidebar.Headless shots of the same: shots/chain-{old,new}-*.png.## IncidentWhile clearing a stale server port I ran `kill 2889158`, which was ANOTHER worker's (Anton's `anton/srss426/tree2`) hybriel process, not mine (my pid file had been overwritten by a second start). It was killed with SIGTERM; please tell Anton. Afterwards I killed only processes I verified by cwd; nothing of mine runs now.## Filescomponents/repo.hl (new), addcode.hl (new), repohead.hl (deleted), pages, styles.hl, lib/repos-helpers.hl (tabOfPath), README, tests/browser.mjs (+7 checks), tests/chain.mjs (measurement/E2E tool: `CHAIN_LABEL= CHAIN_APP= [CHAIN_SERVE=1|CHAIN_MEASURE=1 CHAIN_CDP=…]`).
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