gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2f2959c52f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre2f2959c5/missions/W30b-org-list.md

2.0 KB

  1. # W30b — org list without hand loop (follow-up of gitoria#30)
  2. 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".
  3. #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).
  4. 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.
  5. ## 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)
  6. 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.
  7. 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.
  8. 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.
  9. 4. Commit on branch w30b (subject without "#N"). Do NOT merge, push or deploy.
  10. ## Report
  11. reports/W30b-REPORT.md (≤15 lines): old → new shape, @ key, checks added, gate numbers, DOCS lines. Then stop. Budget ~40 requests.

Branches

Latest commits

  • 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
  • 01b71c2edocs: neutral wording in missions, reports and logmre
  • 3eeea733log: 2026-11-09 PR flow plan and membersmre