jukebox
All repositories: gitoria
4.4 KB
# 006 — jukebox#20: after a reload the list keeps its scroll position and centers the song that playsTASK (HIS words, 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."Ticket: https://tickets.worldapi.org/jukebox/20 (no ticket writes by you).NOT HIS (Jukebox's notes, unconfirmed):- Atlas built the needed virtual-list options in components main (components#24): `centerId` (String, a row id centered oncewhen the list is first built), `scrollTop` (Number, applied once on load), `onScroll` (callback with the offset, throttled).Copy components/virtual-list/ and icons/icons.hl from components commit e5b98ec (repo/media/STORAGE/projects/WorldAPI/components.hybriel.worldapi.org) with tools/sync-components.sh, byte for byte; updatecomponents/SOURCE and the --check refs. Do NOT copy media-player (it waits for components#25). Read virtual-list/README.md.- Remembering: the app already remembers the Songs sort on the server (lib/remember.hl, songs.hl songsRemember, jukebox#14).Use the same way for the scroll offset per list (Songs, Artists, Albums, an artist's / album's songs, Search), keyed bywhich list it is, never by a row position that can change. No hand-written JavaScript, no localStorage hack.- Centering the playing song: after a reload, does the app know a playing / last-played song (check main.hl, lib/)? If thepage can only learn it from the shell, that is the open framework gap of jukebox#16 (a page has no $parent; hybriel#63waits for his answer): then build ONLY the scroll memory, do not work around the gap, and say so in the report. If thepage can learn it the framework's way, center it with centerId, by the song's id.- What wins when both exist (remembered offset vs playing song)? His sentence names both; if they conflict on screen, usethe playing song when one is known and the offset otherwise, and report it as a decision for him.## Read first- /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md in full (REVIEW QUESTIONS: id not position; second visit).- /media/STORAGE/projects/WorldAPI/jukebox/CONDUCTOR.md "Verification" and "Authority boundaries" (vendored components); 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` — a component calls and reads the component that placed it" (~1174),"The event value a View handler receives" (~1718), "Event bindings" (~1764). Copy a working shape from the docs. DOCS line.## Steps1. Worktree /media/STORAGE/claude-scratch/jukebox/R1/wt, branch jb20 from main (bin/ = root's day35 bin; never commit a bin symlink).2. Copy virtual-list + icons (one commit); all gates still pass.3. Build the scroll memory (and the centering if allowed above). A new gate (tests/jb20.mjs, ports by env vars) that FAILS onmain: scroll a long list, reload, the same rows are in view; with a playing song known, it is centered after reload.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 . (last on day35: 120, 53, 50, 5, 10, 5, 33, 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 portwith a COPY of ./storage: at 390×844 and 800×1280 scroll Songs far down, reload, shot before and after; same for one album.Shots in R1/shots/; look at each one.6. Commit on jb20 (no attribution lines). No merge, no push, no :8700.## Environment- Scratch: /media/STORAGE/claude-scratch/jukebox/R1/. Ports: servers 8820–8829, Chrome via HL_PORT_BASE=8630 (debug ports8830–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 60 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 R1` prints nothing.## Report (R1/REPORT.md + final message at most 10 lines)What is remembered and where (file:line), whether centering was built or blocked (and why), new gate (fails on main: show it),gate numbers, shots and what you saw, branch SHA, processes stopped, final json/list, DOCS line.
Branches
Latest commits
- 10f8a8c8Merge branch 'code-order' into mainJukebox
- 204fc828Merge branch 'day72' into mainJukebox
- 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