gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainfe209ffeMerge branch 'w56-owner-members' into mainGitoriamain/reports/W30-REPORT.md

3.4 KB

  1. # W30 report: keyed list writes (gitoria#30). Branch w30, worktree ../gitoria-W30, not merged/pushed/deployed
  2. Call sites (old: build `next=[row]`, copy every other row in a loop, assign; remove: the same loop with a filter):
  3. - components/list.hl repoCreated (repos), tickets.hl addTicket (tickets), sshkeys.hl makeKey/removeKey, tokens.hl makeToken/removeToken. All now: add = `list.remove(row.@id)` then `list = [row, for (x of list) { x }]` (one whole-list assignment, new row first, the language's own `for` entry, no hand loop); remove = one-argument `list.remove(id)`. Copied from SPEC "upsert and remove", COMPONENTS "List rendering", SPEC "`if`/`for` entries" (verified in a scratch file first).
  4. - I did not use `upsert` for the add: it appends, the lists are newest first. A row delivered twice (push and ack) is removed and put on top again, so it stays one row.
  5. @ keys added: ssh key rows and token rows `id` became `@id` (UI-only rows; views read `k.@id`/`t.@id`); ticket rows get `@id = number` (number stays; they had no id, so rows were keyed by index); repo rows get `@id` next to `id` (rowOf in lib/repos-helpers.hl). Server data and stored rows really carry the field (ids come from the tables, number from tickets).
  6. Tests (tests/browser.mjs, 269 -> 293 checks): per list: new row on top, earlier rows are the same DOM nodes (kept/keep helpers), delivered-twice row is one row, reload gives the same order; tokens and keys also: remove one middle row takes exactly it, the survivors are the same nodes, reload; keys: empty note returns. The keys section needs the sshd secret, so the gate server is restarted with GITORIA_SSH_SECRET before the block. Counts that the new repo "delta" and ticket #3 change were adjusted (4 repos, 3 tickets).
  7. Old-code proof: with lib/ and components/ stashed only "tickets keep their DOM nodes" fails (1 failed); the other new checks pass on old code too, because repos/keys/tokens rows already had `id` and were keyed by it. They guard the new shape, they do not fail on the old one.
  8. Gates (LC_ALL=C, ports 8720-8739, HL_PORT_BASE=8520, GITORIA_* vars): check-theme 86 files 0 problems; browser 293/0; create-api 47; signin-return 3; security 82; private 158; ident-access 30; apps 95; pull-numbers 48; pull-ssh 20; app-token 42; reviews 98; events 52; pr-page 61; status 61; limits 53; status-keyed 13; member-merge 82. All 0 failed. (First run had 2 failures in my own count of tickets in two face checks, fixed in the test.)
  9. DOCS: used HL-PRIMER, CODE-ORDER, COMPONENTS "List rendering", SPEC upsert/remove and if/for entries. Gap: no doc line names the one-expression way to put a row first in front of the old list; I found `[row, for (x of list) { x }]` from the hybrid-literal section. A one-line example in COMPONENTS List rendering would help. No framework gap, no workaround, no .scratch repro.
  10. Risks: /api/repos and /api/repos/<slug> JSON now also contain an `@id` field next to `id` (the browser gate and API gates pass, but it is visible to API clients). createOrgIt's orgs list (list.hl) still has the hand-written loop (not in the ticket's call sites; orgs have no id). Tickets have no remove UI, so no remove check there. Not tried in his Chrome on lisbeth (headless gate only); no screenshots, no visual change.
  11. Cleanup: all servers/Chromes started by the gates have exited; no listeners in 8720-8739 and no chrome of mine left. Files outside the repo: logs in /media/STORAGE/claude-scratch/atlas/W30/. Requests: about 35.

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