gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchcode-order95f5faae|||PR jukebox#7 Drop needless let declarationsmrecode-order/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

  • 95f5faae|||PR jukebox#7 Drop needless let declarationsmre
  • 33072bb5|||PR Record day72 gates and Chrome proofmre
  • 95f2cd73|||PR Use typed parent methods for screen playback and local server facesmre
  • 6422a020Sync media-player at 51c3818mre
  • b582ba1cVendor complete Hybriel day72 plugin setmre
  • 02dccbc9Merge branch 'records-1119' into mainJukebox
  • a39e1c23|||PR Records: missions 013-015, reconnect fix livemre
  • fc7db075Merge branch 'reconnect-retry' into mainJukebox
  • ac6f4c6fL2: plain declaration for a in pickedNextmre
  • 2f335086Review round 2: only an explicit queue pick drops pend (not the automatic advance); jb23 records every source changemre
  • 3eb6695fReview fixes: action generation, queue pick clears pend, Previous/Next retry the decided request, typed handlersmre
  • 7a53c0c2|||PR A tap lost to a dead socket plays after reconnect (mission 015)mre
  • 1f0cd77bMerge branch 'records-day41' into mainJukebox
  • 67be229f|||PR Records: day41 live (PR #4), mission 012, statusmre
  • 0bb027daconductor: caramboleyo is the user, not owner/creatorApollo
  • 04f5d9d5Merge branch 'day41' into mainJukebox
  • 8ed6da45|||PR README: media-player pin df9e7dfmre
  • d5d45fc3|||PR media-player df9e7df (repeat-one fix), sync pin and SOURCEmre
  • 89cdabb1Vendor Hybriel day41 (57054d9e): plugin dirs, set .somre
  • 1fecd6a7Merge branch 'records-day39' into mainJukebox