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
- 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
- w64-org-slash
Latest commits
- 26117255|||PR apps API: review comments on files with spaces in their namemre
- b8796cecMerge branch 'f1-broken-json' into mainGitoria
- 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
- f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
- 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre
- 16a3530fMerge branch 'heap-revert' into mainGitoria
- 220a80e0|||PR Remove temporary /__heap route and heap helper; logmre
- 13f0c342Merge branch 'hl25-records' into mainGitoria
- a002ecb7|||PR records: HL25 report, heap helper, logmre
- 2492a55cTemporary keyed /__heap route for the live memory snapshotmre
- fefaedd2log: tracker PR-only, HL25 startedmre
- 21aa57calog: parkmre
- e9f950a8reports: G25c soakmre
- a7783686log: deploy 9f41ffcmre
- 9f41ffc1log: W30b mergedmre
- bef635c1Merge branch 'w30b'mre
- 15b996a5Org list: keyed rows by @id, newest first, concat instead of hand loopmre
- c4f6d9e3reports: G25c growth huntmre
- b88e39f1log: privacy cleanup donemre
- bfd7826ddocs: neutral example organisation namemre