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
- 0a2ae3daMerge remote-tracking branch 'origin/records-1123' into records-1124mre
- 9a48cfcaMerge branch 'vendor-theme' into mainJukebox
- 170d3735Merge branch 'code-order-2' into mainJukebox
- 3f1918a7|||PR Re-sync layouts theme 4099e64 with Segoe UI firstmre
- 2e7f6a43Vendor virtual-list 489afcf from components.hybrielmre
- 0ba85799Merge branch 'reset-classes' into mainJukebox
- 502eeed5jukebox#20: vendor virtual-list initial resetKey baseline fixmre
- 6d5ce287|||PR jukebox#9 Centralize songs table reads and writes in db.hlmre
- dcca21abjukebox#8 Move copies and queue logic into their topicsmre
- 3b76651cjukebox#20: update virtual-list README pin and resetKey optionsmre
- bc09e1e8|||PR jukebox#20: reset virtual lists through resetKey (partial validation)mre
- a3796dc5Records: live step waits for idlemre
- 3b158e16Records: merges of #9 and #11mre
- 27204167Merge main into records-1123mre
- 10f8a8c8Merge branch 'code-order' into mainJukebox
- 204fc828Merge branch 'day72' into mainJukebox
- 8e8d0e2b|||PR Records: PROCEDURES.md, missions 016-019, GO 2026-11-23mre
- 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