jukebox
All repositories: gitoria
3.9 KB
# 007 — jukebox#20 follow-up: changing the sort far down leaves the list at the old offset with blank rowsTASK (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."NOT HIS: R1 built the scroll memory on branch jb20 (decf1c2, worktree /media/STORAGE/claude-scratch/jukebox/R1/wt; readR1/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 thelist, so changing the Songs sort while far down keeps the old offset and shows only blank rows. R1 changed tests/ui.mjs toscroll to the top first (commit aa2ad28), which hides the bug. With remembered offsets per sort this matters more.Wanted: after a sort (or filter / tab) change the list shows real rows: at the offset remembered for the NEW sort if there isone, else at the top. Undo the ui.mjs workaround (aa2ad28) so ui.mjs checks it again.## Ownership stopcomponents/virtual-list/ is Atlas's shared component (copied byte for byte from components e5b98ec; `tools/sync-components.sh --check`must stay clean). Find out first WHY vlTop does not arrive (a page emitting to a component it placed; read COMPONENTS.md onevents and $parent; hybriel's tests). If the fix needs a change in virtual-list (e.g. scrollTop applied again when it changes,or a call the page can make on it), do NOT edit it: STOP and report the exact need (an option, defaults unchanged). If theframework itself has a gap, write a minimal repro in R2/repro and stop. An app-side fix the framework's way you may make.## Read first- /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md in full.- /media/STORAGE/projects/WorldAPI/jukebox/CONDUCTOR.md "Verification"; README.md; components/virtual-list/README.md.- /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md, and in/media/STORAGE/projects/hybriel/COMPONENTS.md: "`$parent`" (~1174), "The event value a View handler receives" (~1718),"Event bindings" (~1764), and search it for how an emit travels (up the owner chain or not). Copy a working shape. DOCS line.## Steps1. Worktree: continue in a NEW worktree /media/STORAGE/claude-scratch/jukebox/R2/wt on a branch jb20b from jb20 (decf1c2).bin/ = root's day35 bin (never commit a bin symlink).2. Cause first (write it in R2/REPORT.md). Then fix if app-side, else stop as above.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)must fail on jb20 and pass on the fix.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,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).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 aCOPY of ./storage: at 390×844 and 1280×800 scroll Songs far down, change the sort, shot; reload, shot. Shots in R2/shots/.6. Commit on jb20b (no attribution lines). No merge, no push, no :8700.## Environment- Scratch: /media/STORAGE/claude-scratch/jukebox/R2/. Ports: servers 8820–8829, Chrome via HL_PORT_BASE=8630 (debug 8830–8839);check `ss -ltn` first. Never send anything to :8700.- DATA RULE: never open ./storage from any process; tests use a copy (delete it at the end).- Model Sonnet. Cap about 50 requests. Waiting = ONE background command.- Stop every process you started; list name + PID. Last: `for p in $(pgrep chrome); do readlink /proc/$p/cwd; done | grep R2` prints nothing.## Report (R2/REPORT.md + final message at most 10 lines)Cause, fix (file:line) or the exact virtual-list need / repro, test that fails before, gate numbers, shots and what you saw,branch SHA, processes stopped, final json/list, DOCS line.
Branches
Latest commits
- 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
- d6b3e068|||PR Records: day39 live (PR #2), mission 011 PR step, statusmre
- 5fa19e89Merge branch 'day39' into mainJukebox
- cfe95440|||PR day39 re-vendor: Hybriel 51e921d7 (bin 6b481aa7), ids kebab-case since hybriel#256: quoted state rule and tests use jb-shuffle / jb-repeatmre
- f3614c9bRe-vendor to Hybriel day39 (51e921d7, bin 6b481aa7)mre
- 9f5c6532Merge branch 'status-22-pr' into mainJukebox
- 5838d6c7|||PR STATUS: #22 pending decision, PR-only rulemre
- 29d2029cRecords: PR-only rule (Kunibert)mre
- adacb0abRecords: neutral ticket rule, #22 decision recordedmre
- b2d6f121Records: #308 hold liftedmre
- 7ab67533Records: day39 on hold (hybriel#308)mre
- 22f21739Records: note rebase before mergemre
- f7368ea3Records: mission 011 day39, waits for lisbethmre
- 9515d2cdRecords: jb20 livemre
- 019f6601ui gate: comment names the open bug components#27 (workaround, not fixed)mre
- 277a2722README: provenance linemre
- 4169ca6aREADME: sync pinmre