jukebox
All repositories: gitoria
5.4 KB
# 008 — jukebox#19 + #21: the player's controls, and no more flicker of the notification cardTASK #19 (HIS words, 2026-11-03, verbatim): "also there is no shuffle button before the prev button but a massive shuffle my favorites button that takes up a lot of the interface. also no repeat one/repeat all/dont repeat button after next button. but two unnecessary 10 seconds forward or backward buttons."TASK #21 (HIS words, 2026-11-03, verbatim): "also after adding the browser to battery exeptions the background play when screen off works so the workaround can be removed now where the playing card in the android notification disappears and reappers on ever change."Tickets: https://tickets.worldapi.org/jukebox/19 and /21 (no ticket writes by you).NOT HIS (Jukebox's reading, unconfirmed):- Copy components/media-player/ from components commit c96709c (repo /media/STORAGE/projects/WorldAPI/components.hybriel.worldapi.org)byte for byte with tools/sync-components.sh (media-player now comes from components, not from the app's b58e449; updatecomponents/SOURCE and the --check refs; --check must be clean). Do NOT copy virtual-list (another change waits for it).New params (defaults unchanged): `skip` (Boolean, false = no Back/Forward 10 s buttons), `repeat` ('off' | 'one'; 'one' =the element's native loop). mpEnded now only calls onPlay(next) — this removes the #11 double load that made the cardflicker (N1's finding: claude-scratch/jukebox/N1/REPORT.md; its jb11 check is on branch jb21 d3a026e in N1/wt — bring it over).- In main.hl: `skip = false`, and drop the quoted '.mp-back' / '.mp-forward' rules. The bar order becomes:shuffle · previous · play/pause · next · repeat, at every size (390, 800, 1280). Buttons the app's own, 44 px taps, icons fromcomponents/icons (if an icon is missing, STOP and report the need; icons are Atlas's).- Shuffle button = a toggle (on/off, shows its state): on = the songs still to come are shuffled from the current song on(the app's shuffle ctx, seeded), off = back to the list's order after the current song. Keep the song that plays.- Repeat button = cycles off → all → one → off and shows which: 'one' = media-player repeat 'one'; 'all' = at the end of thequeue the list starts again from its first song (app side, by song id); 'off' = stop at the end. Known components#26: thelast queue item replays at its end today; report how it behaves with your change, do not patch the component.- Remembered across a reload (like the sort, lib/remember.hl): shuffle and repeat state.- "Shuffle my favourites" on Songs stays, but no longer big (class jb-big): an ordinary button like Shuffle, with its count field.Do not remove any other control. RESTYLE PROOF: list every control removed or moved.- If any of this can be read two ways on screen, STOP and report the readings.## Read first- /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md in full (STYLE FORMAT, RESTYLE PROOF, REVIEW QUESTIONS).- /media/STORAGE/projects/WorldAPI/jukebox/CONDUCTOR.md "Verification" and "Authority boundaries"; README.md; components/media-player/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: the Style section and "@media, @supports, @container share one shape" (~519),"The event value a View handler receives" (~1718), "Event bindings" (~1764). Copy a working shape. DOCS line.## Steps1. Worktree /media/STORAGE/claude-scratch/jukebox/P1/wt, branch jb19 from main. bin/ = root's day35 bin (never commit a bin symlink).2. Copy media-player (one commit); bring N1's jb11 check; gates.3. Build the bar and the buttons. New gate tests/jb19.mjs (ports by env vars) that FAILS on main: bar order, no 10 s buttons,shuffle toggle changes what comes next and keeps the playing song, repeat one/all/off behave at a song's / queue's end(short tone fixtures as in jb11), state kept 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, jb19.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 port with aCOPY of ./storage: before (main) and after shots of the bar and the open play view at 390×844, 800×1280, 1280×800, 1280×1024;tap shuffle and repeat, press next. Shots in P1/shots/; look at each one.6. Commit on jb19 (no attribution lines). No merge, no push, no :8700.## Environment- Scratch: /media/STORAGE/claude-scratch/jukebox/P1/. 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 70 requests. Waiting = ONE background command. If you reach the cap, commit WIP and report exact next steps.- Stop every process you started; list name + PID. Last: `for p in $(pgrep chrome); do readlink /proc/$p/cwd; done | grep P1` prints nothing.## Report (P1/REPORT.md + final message at most 12 lines)What changed (file:line), controls removed/moved, new gate (fails on main: show it), gate numbers, shots and what you saw,components#26 behaviour, branch SHA, processes stopped, final json/list, DOCS line.
Branches
Latest commits
- 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
- a01f3aa8ui gate: back to the top before the sort checks (the screen reopens where it was left)mre
- f7936c20Lists keep their scroll position across a reload (jukebox#20): per-list offsets in storage/ui.json, gate jb20mre
- d67906devirtual-list and icons from components.hybriel e5b98ec (centerId, scrollTop, onScroll)mre
- df7920ceRecords: R3 startedmre
- 0549f038Mission 010: jb20 livemre
- 273494e2STATUS rewrittenmre
- 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