gitoria
All repositories: gitoria
2.0 KB
# W30b — org list without hand loop (follow-up of gitoria#30)Task line (ticket #30 title, Atlas audit 2026-10-26): "Lists are rebuilt by hand in handlers instead of keyed records with upsert and remove".#30 is done and live; its worker left one hand loop: components/list.hl line ~138 `for (x of orgs) { if (x.slug != r.org.slug) { next.push(x) } }` (createOrgIt's orgs list; reports/W30-REPORT.md says orgs have no id). Line ~156 `repos = [row, for (x of repos) { x }]` — check whether that is the documented whole-list form or can be `[row].concat(repos)` (Arachne 2026-11-08: shorter equivalent; check that rows keep their DOM nodes if switched).Read first, fully: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md; /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md; /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md; COMPONENTS.md section "List rendering" (rowKey paragraph); SPEC.md "Looking records up by the `@` property: `upsert` and `remove`". reports/W30-REPORT.md shows the shape used for the other lists. Copy a working shape from the docs; a gap → DOCS line in the report.## Work (git worktree `../gitoria-W30b`, branch w30b from main; copy main's bin/ (day52, not in git); never edit LOG.md/STATUS.md; ports 8720-8739 only, `ss -ltn` first, port 8700 taken: GITORIA_GATE_* variables as in reports/V52-REPORT.md)1. Give org rows their @ key (the org's slug or id: what identifies an org server-side; check the server data). Replace the hand loop with upsert / one-arg remove / whole-list write newest first, as the docs say.2. Extend tests/browser.mjs: creating an org puts it where the list order says, existing org row nodes are kept, a second visit shows the same order.3. Gates (LC_ALL=C): `node theme/check-theme.mjs .`, `node tests/browser.mjs`, every gate in deploy.sh's GATES list, all 0 failed.4. Commit on branch w30b (subject without "#N"). Do NOT merge, push or deploy.## Reportreports/W30b-REPORT.md (≤15 lines): old → new shape, @ key, checks added, gate numbers, DOCS lines. Then stop. Budget ~40 requests.
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