gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit227c9b96227c9b96Records: jb19 livemre227c9b96/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

  • 227c9b96Records: jb19 livemre
  • 9f365376README: the bar's controls (jb19)mre
  • d18851fdjb19: pressed switches look different (whole selector), queue column cannot widen past the panel, gates follow the new bar (jb3, jb11, jb15)mre
  • 82b54c0ejb19: bar Shuffle · Previous · Play · Next · Repeat, no 10 s buttons; Shuffle switch (shuffle from the playing song, back to the list), Repeat off/all/one, both remembered in ui.json; Shuffle my favourites an ordinary button; gate tests/jb19.mjsmre
  • ba354710jb19: icons pinned to components.hybriel 46fefaa (shuffle, repeat, repeatOne, prevTrack, nextTrack)mre
  • d8e8d059jb19 step 2: media-player from components.hybriel c96709c (skip, repeat options; the end of a song only calls onPlay), sync-components.sh and SOURCE point to it, jb11 counts media loads and metadata writes (from jb21 d3a026e)mre
  • 7b048c1bRecords: jb19 done, L2 live stepmre
  • 665185aeMission 009: jb19 livemre
  • 47b2d3beRecords: P1 resumedmre
  • 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