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
- 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