gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4fda244f4fda244fgitoria#22: RepoTabs wrapping component for the repo tabs (active tab, no content for a missing repo)mre4fda244f/reports/004-repotabs.md

3.5 KB

  1. # 004 — gitoria#22: RepoTabs (one wrapping component for the repo tabs)
  2. Branch wt22 (from e1d425e), Hybriel 0f396652 (unchanged). Not pushed, not deployed.
  3. ## What changed
  4. * `components/repohead.hl` → `components/repotabs.hl`, component `RepoTabs` (`slot = null`, `tab = ''`): View = `repoPage { repoHead { name, description, nav, "Add code" box / "No such repository" } if (hasRepo) { slot } }`.
  5. The nav links carry `aria-current = 'page'` on the active tab (`tab` = readme · code · pulls · releases · tickets · settings). `onCodePage` is gone: `showAddCode = tab == 'code' && emptyRepo`.
  6. * All 8 pages (readme, code, branch, commit, pulls, releases, tickets, settings): `RepoTabs { tab = '…' <content> }` instead of `repoPage { RepoHead { } <content> }` (code/branch/commit pass `'code'`).
  7. A missing repo now renders only the message — the page content is no longer in the DOM.
  8. * `styles.hl`: `'repo-nav a[aria-current=page]'` = bold, strong text colour, 2 px accent underline (theme tokens only).
  9. * README updated. Gate `tests/browser.mjs`: 3 new checks (below).
  10. ## Hybriel gap (reported, no JS workaround)
  11. `attr = <member that is null>` on a View element renders `attr=""`, it is NOT omitted (the brief assumed omitted). So every non-active tab has `aria-current=""` (= false for ARIA, harmless) and the CSS cannot be `a[aria-current]`.
  12. Pure-CSS workaround: the style matches `[aria-current=page]`. Also: in a styles file a quoted selector is verbatim, so it is `repo-nav`, not `repoNav` (my first try styled nothing; the gate caught it).
  13. Repro: `.scratch/repro-null-attr/` (also copied to /media/STORAGE/claude-scratch/atlas/B2/repro-null-attr; README there; `./bin/hybriel project.hl`, port 8751, `curl localhost:8751/` → `<a id="b" … aria-current="">`). Slot inside `if` works fine.
  14. (I carried on with the CSS selector instead of stopping, because nothing else was blocked; once Anton fixes it the selector can go back to `[aria-current]`.)
  15. ## Gates (ports 8740–8749, tickets from a `git archive HEAD` copy)
  16. | gate | old (e1d425e) | new |
  17. |---|---|---|
  18. | browser.mjs | 200 / 0 (run here) | **203 / 0** (3 new checks) |
  19. | push.mjs | 46 / 0 (README, same Hybriel) | **46 / 0** |
  20. | ssh.mjs | 44 / 0 (README) | **44 / 0** |
  21. New checks: (1) on Readme, Code, a file, Branch, Commit, Pulls, Releases, Tickets, Settings exactly the right tab has aria-current=page AND a computed style (font-weight / border / colour) different from every other tab; (2) every tab link's href unchanged on every view; (3) unknown repo in a real browser, all views: main text is exactly "No such repository Nobody has created this address yet. All repositories", one child in repo-page, no nav.
  22. They can fail: the NEW gate against OLD code → 201 passed, **2 failed** (no aria-current; missing repo shows extra content). The link check passes on old code, as it should (regression guard). The 200 old checks (first HTML, navigation, layout, …) all pass unchanged on the new code.
  23. Not run: the real-data same-output compare.
  24. ## Screenshot
  25. `.scratch/gate-gate-repotabs-active.png` (Settings view, saved by the gate). I cannot view images in this setup, so I did NOT look at it; the visible difference is asserted through computed styles.
  26. ## Creator test steps
  27. 1. Open `<repo>.gitoria.worldapi.org/pulls` (also `/`, `/code`, `/releases`, `/tickets`, `/settings`, a branch, a commit): the current tab is bold with an underline, no other.
  28. 2. Open `nothing.gitoria.worldapi.org/code` (or /pulls, /settings): only "No such repository" and the link.
  29. 3. On an empty repo of yours the "Add code" box still shows on /code only.

Branches

Latest commits

  • 4fda244fgitoria#22: RepoTabs wrapping component for the repo tabs (active tab, no content for a missing repo)mre
  • 0fd5e280mission brief 004mre
  • e1d425e7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • e59ff114deploy.sh: wait up to DEPLOY_URL_WAIT (120 s) for 200 after the restart, as the other apps (cold compile, hybriel#148)mre
  • bcafcceb003: compose cache volume + tmpfs /tmp, gate start waits 120 s, report/LOG/STATUSmre
  • bed3f2d5Re-vendor Hybriel to the shared static build 0f396652 (plugins; bin/ is git-ignored)mre
  • 3207e128mission brief 003mre
  • 18ab71fbtests/ticketskit: wait up to 120 s for tickets (native Hybriel cold compile ~25 s, hybriel#148)mre
  • 4fffa966docker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
  • 4f47843egate: ticket links use the tickets short URL (/<slug>/<n>, tickets#25)mre
  • 86605446mission 002 (code order) 4/4: README file map + import order + 'Same output' test + gate run with a tickets HEAD copy, STATUS (entry, lessons), LOG, report; tests/realdata-baseline.mjs + realdata-compare.py (a cleanup answers the same on live data: pages, modules, API, git over HTTPS and SSH, faces), tests/letcount.pymre
  • cc7bf7bamission 002 (code order) 3/4: let only where a variable is reassigned or re-bound in a loop body (289 lets → plain declarations; 213 left: 125 reassigned, 88 loop-bound; no member/import/param clash). gates 200/0, 46/0, 44/0; real-data reads + writes identical (browser modules: var → const only)mre
  • 090a20c6mission 002 (code order) 2/4: one lib/ file per topic — git.hl split into git (calls, branches, init, temp folder) / homepage / code / pulls / releases (+ git-helpers: paths, ids, |||PR/|||RL markers); repos-helpers, tickets-helpers, transport-helpers; util.hl = localtime + env, storage dir, addresses, lists, text checks, one newest-first sort (was 3 copies); the function routes out of project.hl into lib/api.hl (thin; plumbing in api-helpers.hl), sshgate.hl folded into api.hl + sshkeys.hl keyLine + repos.hl mayPush; 'Make main' and the merge answer out of the faces (code.hl makeMain, pulls.hl pullsView), one login helper (users.hl userOfLoginCode); project.hl is the map. Session-writing routes get &req + &server.sessions. gates 200/0, 46/0, 44/0; real-data identical except /login/failed now shows the parked reason for a browser that already had a session (the old copy-of-req lost it)mre
  • 110c2799mission 002 (code order) 1/4: .hl files out of the root — lib/ (api, git, localtime, markdown, repos, sshgate, sshkeys, tickets, tokens, transport, users), components/styles.hl; jsoncheck.hl removed (imported nowhere); import paths only. gates 200/0, 46/0, 44/0; real-data reads + writes identicalmre
  • fdfb4b1bgitoria: Hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4, mpackdb 2cb7ae5e, http1 773de63e); gates 200/0, 46/0, 44/0mre
  • 5b46ac84antcolony#40: LOG.md — missions 069/072 are antcolony missions (report paths on Byrodin)mre
  • 5602ff41gitoria: Hybriel master 190aa11d (fc838894 GC correctness, #127 mountKids by reference, #126, #48) — tracker README flat; gates 200/0, 46/0, 44/0mre
  • e85eaf01gitoria: 069 round 2 — hybriel 1a096ad3 not adopted (Markdown SSR still grows); browser gate waits for the server-side logout before restartmre
  • 09ce4f3fgitoria: mission 069 re-vendor hybriel 8efba065 stopped (big SSR pages grow + slow down); lambda audit clean; old vendor keptmre
  • 3dc43108antcolony#40: mission references point to the moved missionsmre