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
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
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