gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit0923398b0923398bMerge branch 'records-1124d' into mainJukebox0923398b/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

  • 0923398bMerge branch 'records-1124d' into mainJukebox
  • 78f0cc86|||PR records 2026-11-24: inbox-thread rule, "Not playing" confirmed and closedmre
  • c1b153c4Merge branch 'records-1124c' into mainJukebox
  • d7b5e780|||PR Records 2026-11-24 (2): live day72, PR #19 merge, #10 newsmre
  • 43b564dbMerge branch 'records-1124b' into mainJukebox
  • fa86b08c|||PR Records 2026-11-24: LOG, STATUS, missions 020-023mre
  • 0a2ae3daMerge remote-tracking branch 'origin/records-1123' into records-1124mre
  • 9a48cfcaMerge branch 'vendor-theme' into mainJukebox
  • 170d3735Merge branch 'code-order-2' into mainJukebox
  • 3f1918a7|||PR Re-sync layouts theme 4099e64 with Segoe UI firstmre
  • 2e7f6a43Vendor virtual-list 489afcf from components.hybrielmre
  • 0ba85799Merge branch 'reset-classes' into mainJukebox
  • 502eeed5jukebox#20: vendor virtual-list initial resetKey baseline fixmre
  • 6d5ce287|||PR jukebox#9 Centralize songs table reads and writes in db.hlmre
  • dcca21abjukebox#8 Move copies and queue logic into their topicsmre
  • 3b76651cjukebox#20: update virtual-list README pin and resetKey optionsmre
  • bc09e1e8|||PR jukebox#20: reset virtual lists through resetKey (partial validation)mre
  • a3796dc5Records: live step waits for idlemre
  • 3b158e16Records: merges of #9 and #11mre
  • 27204167Merge main into records-1123mre