gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commiteaa7e6d6eaa7e6d6Vendor Hybriel day76 for live parent member readsmreeaa7e6d6/missions/018-jb16-marked-row.md

3.4 KB

  1. # 018 — jukebox#16: the list marks the song that plays after Previous / Next
  2. HIS WORDS (2026-10-30, the task): "jukebox when you click the prev or next song button the active list item does not get updated -- HOW DO SUCH THINGS HAPPEN WHEN THEY ARE PROPERLY TESTED - DUMB FUCKING ASSHOLES!!!"
  3. Ticket: `curl -s -A Jukebox -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/jukebox/tickets/16`
  4. NOT HIS (conductor's context): the earlier attempt JB16 stopped at a framework gap (report: `git show jb16:reports/JB16.md`; red gate
  5. tests/jb16.mjs on branch jb16, commit a5e1576 — 21 of 29 checks failed on the old code). Cause: each screen keeps its own `playingId`, set only by a tap;
  6. Previous, Next and a song's end change main.hl's `nowId` and never reach the screen; a screen opened while a song plays starts with no mark.
  7. Since set day63 (hybriel#63, live on day72) a page's `$parent` is the shell that wraps it (HL-STANDARD F16: in handlers only, never in the View or an initializer).
  8. Also the case of a song ending by itself (auto-advance) and a screen opened later must mark the playing song.
  9. ## Read first
  10. - /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md in full; /media/STORAGE/projects/WorldAPI/jukebox/PROCEDURES.md.
  11. - /media/STORAGE/projects/hybriel/docs/HL-STANDARD.md (F15, F16, F18, F20), docs/HL-PRIMER.md, COMPONENTS.md §5 (parents/slots, around line 140–180) and the $parent section. Copy a working shape from the docs or hybriel tests/fixtures. DOCS line in the report.
  12. - Find the framework's way for the SHELL to tell the page in its slot which song plays now (and for a page to read it when it opens). If the docs give none, STOP: write a minimal repro under your scratch dir and report it (the conductor sends it to Arachne). No workaround (F20). A server push of the playing id via `emit client` is NOT acceptable without the conductor's OK.
  13. ## Steps
  14. 1. Worktree /media/STORAGE/claude-scratch/jukebox/J16/wt, branch jb16b from origin branch day72 (head 33072bb, = day72 + jukebox#4; not yet on main). bin/ = copy of /media/STORAGE/claude-scratch/anton/set-day72 bin/ + lib/ (not in git).
  15. 2. Bring tests/jb16.mjs from branch jb16 (a5e1576), fit it to the current code, show it FAILS on 33072bb. Commit.
  16. 3. Fix in the framework's way (smallest change; every list identifies the song by its id). Commit.
  17. 4. Gates: jb16 + gate, ui, jb3, jb13, jb23, theme (ports in your range). Then proof in his Chrome on lisbeth (PROCEDURES.md) at 390x844 and 1280x800:
  18. tap a song in Songs, press Next, Previous: the marked row follows; open Album/Artist/Search while a song plays: the playing song is marked if it is in the list. Look at every shot.
  19. 5. Push branch jb16b with ONE commit subject starting with '|||PR ' (only one, or Gitoria opens two PRs). Base: it will be rebased onto main after PR #9 merges; say so in the report. STOP.
  20. ## Environment
  21. - Scratch /media/STORAGE/claude-scratch/jukebox/J16/. Ports: servers 8824–8829, Chrome HL_PORT_BASE=8630 (8830–8839). Check `ss -ltn`.
  22. Never ./storage (use a copy), never test traffic to :8700. No ticket writes. Never push main.
  23. - Budget: $2.5 hard cap, about 60 requests. Waiting = one background command. At the cap: commit, report, end.
  24. - Stop every process you started; list name + PID. Final tab list in the report.
  25. ## Report (J16/REPORT.md + final message at most 12 lines)
  26. The mechanism used (doc section), jb16 old/new numbers, gate numbers, shots + final tab list, PR number, DOCS line, processes stopped.

Branches

Latest commits

  • eaa7e6d6Vendor Hybriel day76 for live parent member readsmre
  • 0923398bMerge branch 'records-1124d' into mainJukebox
  • 78f0cc86|||PR records 2026-11-24: inbox-thread rule, "Not playing" confirmed and closedmre
  • c1b153c4Merge branch 'records-1124c' into mainJukebox
  • d7b5e780|||PR Records 2026-11-24 (2): live day72, PR #19 merge, #10 newsmre
  • 43b564dbMerge branch 'records-1124b' into mainJukebox
  • fa86b08c|||PR Records 2026-11-24: LOG, STATUS, missions 020-023mre
  • 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