gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit8e326e948e326e94Records: resetKey blockedmre8e326e94/missions/007-sort-scroll.md

3.9 KB

  1. # 007 — jukebox#20 follow-up: changing the sort far down leaves the list at the old offset with blank rows
  2. TASK (HIS words for #20, 2026-11-03, verbatim): "when i reload the tab it would be nice if it remebered its scroll position in the list and centers the currently playing song."
  3. NOT HIS: R1 built the scroll memory on branch jb20 (decf1c2, worktree /media/STORAGE/claude-scratch/jukebox/R1/wt; read
  4. R1/REPORT.md). R1 found a bug that is on main too: `emit vlTop()` (songs.hl:48, artist.hl:67, search.hl:68) does not move the
  5. list, so changing the Songs sort while far down keeps the old offset and shows only blank rows. R1 changed tests/ui.mjs to
  6. scroll to the top first (commit aa2ad28), which hides the bug. With remembered offsets per sort this matters more.
  7. Wanted: after a sort (or filter / tab) change the list shows real rows: at the offset remembered for the NEW sort if there is
  8. one, else at the top. Undo the ui.mjs workaround (aa2ad28) so ui.mjs checks it again.
  9. ## Ownership stop
  10. components/virtual-list/ is Atlas's shared component (copied byte for byte from components e5b98ec; `tools/sync-components.sh --check`
  11. must stay clean). Find out first WHY vlTop does not arrive (a page emitting to a component it placed; read COMPONENTS.md on
  12. events and $parent; hybriel's tests). If the fix needs a change in virtual-list (e.g. scrollTop applied again when it changes,
  13. or a call the page can make on it), do NOT edit it: STOP and report the exact need (an option, defaults unchanged). If the
  14. framework itself has a gap, write a minimal repro in R2/repro and stop. An app-side fix the framework's way you may make.
  15. ## Read first
  16. - /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md in full.
  17. - /media/STORAGE/projects/WorldAPI/jukebox/CONDUCTOR.md "Verification"; README.md; components/virtual-list/README.md.
  18. - /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md, and in
  19. /media/STORAGE/projects/hybriel/COMPONENTS.md: "`$parent`" (~1174), "The event value a View handler receives" (~1718),
  20. "Event bindings" (~1764), and search it for how an emit travels (up the owner chain or not). Copy a working shape. DOCS line.
  21. ## Steps
  22. 1. Worktree: continue in a NEW worktree /media/STORAGE/claude-scratch/jukebox/R2/wt on a branch jb20b from jb20 (decf1c2).
  23. bin/ = root's day35 bin (never commit a bin symlink).
  24. 2. Cause first (write it in R2/REPORT.md). Then fix if app-side, else stop as above.
  25. 3. Revert aa2ad28's workaround; ui.mjs (and jb20.mjs: sort change far down shows rows, at the new sort's remembered offset or 0)
  26. must fail on jb20 and pass on the fix.
  27. 4. All gates, every port in your range: node tests/gate.mjs, ui.mjs, jb3.mjs, jb11.mjs, jb13.mjs, jb14.mjs, jb15.mjs, jb20.mjs,
  28. node theme/check-theme.mjs . (on jb20: 120, 53, 50, 5, 10, 5, 33, 9, 0; a single jb3 "songs heading" timeout is flaky, rerun once).
  29. 5. Proof in his Chrome on lisbeth :9223 (lock, one plain tab, json/list before/after, closed in finally), server on a test port with a
  30. COPY of ./storage: at 390×844 and 1280×800 scroll Songs far down, change the sort, shot; reload, shot. Shots in R2/shots/.
  31. 6. Commit on jb20b (no attribution lines). No merge, no push, no :8700.
  32. ## Environment
  33. - Scratch: /media/STORAGE/claude-scratch/jukebox/R2/. Ports: servers 8820–8829, Chrome via HL_PORT_BASE=8630 (debug 8830–8839);
  34. check `ss -ltn` first. Never send anything to :8700.
  35. - DATA RULE: never open ./storage from any process; tests use a copy (delete it at the end).
  36. - Model Sonnet. Cap about 50 requests. Waiting = ONE background command.
  37. - Stop every process you started; list name + PID. Last: `for p in $(pgrep chrome); do readlink /proc/$p/cwd; done | grep R2` prints nothing.
  38. ## Report (R2/REPORT.md + final message at most 10 lines)
  39. Cause, fix (file:line) or the exact virtual-list need / repro, test that fails before, gate numbers, shots and what you saw,
  40. branch SHA, processes stopped, final json/list, DOCS line.

Branches

Latest commits

  • 8e326e94Records: resetKey blockedmre
  • f72dd7edRecords: icons comingmre
  • b264e5deRecords: P1 icons stopmre
  • 514d7cbeRecords: mission 008 startedmre
  • 61c40127Mission 008: #19 + #21mre
  • 6dcaeb46Records: resetKey planmre
  • c5dbf2ecRecords: R2 resultmre
  • 956069b8Records: R1 result, mission 007mre
  • 3c8a2e12Mission 007: #20 sort scrollmre
  • deb8cef5Records: mission 006 startedmre
  • 4f0ad42fMission 006: jukebox#20mre
  • 800cae06Records: #21 planmre
  • 64bc7823Records: #21 causemre
  • 76639655Records: B1 questionmre
  • d7906b36Records: mission 005 startedmre
  • d3df773cMission 005: doc linemre
  • 6a5d840aMission 005: jukebox#22mre
  • 13e5e748Records: mission 004 startedmre
  • a8098271Mission 004: jukebox#21mre
  • df8f5205Records: jukebox#19-21, #11 closedmre