jukebox
All repositories: gitoria
6.7 KB
# 001 — jukebox: shared theme/components current, own Style blocks in the language's form (jukebox#2 follow-up)TASK (his words, unchanged): "The styles are totally wrong formatted. This is getting annoying."and "'@media (min-width: 60rem)' { <- the language has also something for this"and (2026-10-26) "that style block is also garbage, the styles are nested not repeated with spaces, and they directly relate to their component tags why is anything of the language ignored always?"NOT HIS: Apollo's order 2026-11-02 (same work as tickets' mission 025 for jukebox). Ticket context: https://tickets.worldapi.org/jukebox/2 (in review with him). Do not write to any ticket.## Read first- /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md, in full (esp. STYLE FORMAT, MEDIA QUERIES,HYBRIEL DOCS FIRST, NO TAB LEFT BEHIND, HIS JUKEBOX :8700, GATE PORTS).- /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md,/media/STORAGE/projects/hybriel/COMPONENTS.md "§4 — Styles" (incl. "@media, @supports, @container share one shape").Copy a working shape from the docs.- THE FORM: /media/STORAGE/claude-scratch/atlas/T36R/arachne-answer.md and /media/STORAGE/claude-scratch/atlas/LY7/arachne-theme-answer.md(day35: '>' / ids / compound classes as quoted NESTED keys, pseudo-elements and :has quoted whole).- Models with the same form and proof: /media/STORAGE/claude-scratch/atlas/CS23/REPORT.md, CS23b/REPORT.md, LY7/ and LY7b/REPORT.md,and /media/STORAGE/claude-scratch/tickets/T36/REPORT.md (tickets did this job; read its final section for the inbox regression it found).- App: README.md ("Run it", the gates, "Files", the Hybriel vendoring notes), tools/sync-components.sh, DECISIONS.md.## Scope (repo /media/STORAGE/projects/WorldAPI/jukebox, main a4bce6d; worktree, branch style-form)1. Re-vendor to Hybriel set day35 (/media/STORAGE/claude-scratch/anton/set-day35, source cb9e480d), exactly as componentsdid (its README "CS23: re-vendored to Hybriel set day35"): bin/ = the set's bin/ + lib/ (not in git; never commit a bin symlink),check SHA256SUMS, plugins core + web = source of cb9e480d, README vendoring note. Gates on day35 BEFORE any style change(= the baseline). One commit. (NOT HIS: this also moves jukebox#17 past the day33 fix it waits for.)2. Shared parts, unchanged copies (git show/archive of the commit, never a working tree):- theme/ and shared/ from layouts.worldapi.org 17e0f03; record the commit in the README theme note; `node theme/check-theme.mjs .`.- components: icons from components.hybriel 8176eb1. media-player and virtual-list: SEE "Open points" — do what theconductor's go message says; the default is to leave both as they are.Gates again. One commit each.3. The app's own Style blocks, one commit per file: components/main.hl, songs.hl, search.hl, components/styles.hl (and anyother own .hl with a Style block you find; not the vendored copies, not theme/).- One declaration per line, nested like the View; rules named after this View's elements; an element with an id gets itsid rule; pseudo-classes nested (hover { … }); a one-line rule only with ONE declaration; one short comment line above arule, never between declarations.- The three quoted '@media (…)' (main.hl 140 and 145, songs.hl 152) → `@media { minWidth = '60rem' … }` / maxHeight,nested where the rule allows it, at the Style root with the rule inside where it must (as CS23 did).- The flat '.jb-bar media-player …' lines (main.hl, "a quoted plain tag nested under a quoted selector is dropped by thebuild"): retest that on day35 and nest them if day35 builds them; else keep them with the reason.- No form in the language (selectors into media-player's or virtual-list's parts, :not(), keyframes, selector lists,custom properties on classes): stays quoted (nested key where day35 allows it), one-line reason above, listed in thereport (file:line, why). No workaround, no change in components/ or theme/ for it. Do NOT rename ids or classes.- Changes he would see are not allowed: the served CSS must give the same rules and values.## Proof- Served /__hl/app.css after step 2 vs after step 3, same binary: same rules and values; every difference explained.- Real data per README on a COPY of storage/ (never ./storage, never :8700): tests/real.mjs with JUKEBOX_STORAGE=<copy>.- Screenshots before (step 2) and after (step 3) in his Chrome on lisbeth :9223 (`ssh -f -N -L 9223:127.0.0.1:9223 lisbeth` ifnot up), one own plain tab (Target.createTarget without browserContextId), closed in finally, browser.disconnect(), lock/media/STORAGE/claude-scratch/atlas/lisbeth.lock, json/list before and after. Pages: Songs, Artists, Albums, an album, anartist, Search with hits, Favourites; the player bar while a song plays; the now-playing overlay with its queue; the phonesidebar open. Sizes 390×844, 800×1280, 1280×800, 1280×900. ImageMagick compare -metric AE: 0 or every difference explained.Also play to the end of a short song (jukebox#11: the next song must start by itself) at step 1 and step 3.- Gates (README): node tests/gate.mjs, ui.mjs, jb3.mjs, jb11.mjs, jb13.mjs, jb14.mjs, jb15.mjs, node theme/check-theme.mjs . —0 failed at steps 1, 2 and 3. A flake: rerun once, report it.## Not in this missionNo restart of :8700, no merge to main, no push, no ticket writes. STOP after the report; Jukebox reviews and does the live step.## Environment- Everything under /media/STORAGE/claude-scratch/jukebox/S1/ (worktree wt/, storage copies, logs, shots, REPORT.md).- Ports 8820–8839 only (check `ss -ltn` first). Every gate's port env var set inside it (gate heads: JUKEBOX_UI_PORT, JB11_PORT,JB13_PORT, JB14_PORT, JB15_PORT, JUKEBOX_GATE_PORT, HL_PORT_BASE so that HL_PORT_BASE+200..+209 lies in 8830–8839, i.e.HL_PORT_BASE=8630). Run the gates one at a time.- Stop every process you started and list it (name + PID) in the report. No attribution lines in commits.- Model Sol (codex|gpt-6.1-sol), at most 1.5 % of the Codex week. Cap about 60 requests.## Open points (decided by Apollo before the start)- components 8176eb1 has NO virtual-list: jukebox's copy comes from the unmerged components branch jb2-virtual-list (46d90ec).- components 8176eb1's media-player lacks jukebox#11's fix (the next song starts inside the ended event, so it also plays withthe screen locked; jukebox commit b58e449, in review with him). An unchanged copy would undo #11.## Report (REPORT.md + short final message, at most 12 lines)Commits, gate numbers per step, CSS comparison per file, AE per page × size, the quoted gaps (file:line, why), DOCS line(sections used + what the docs did not answer), requests per step, processes started/stopped, the final`curl -s 127.0.0.1:9223/json/list` page list.
Branches
Latest commits
- 41773828Records: statusmre
- a82c0805Records: mission 001 brief (Style form)mre
- a4bce6d1Records: ticket push subscriptionmre
- 14abde3bjukebox: records: Atlas's records moved to worldapi-conductor/archivemre
- 0433e9a8jukebox: records: gitoria remote added and pushedmre
- 1722d707jukebox: records: repo creation handed to Gitoriamre
- b42e7dfbjukebox: conductor records (CONDUCTOR.md, STATUS.md), old STATUS archivedmre
- 1b0d0bc1jukebox: a startup error prints its message before exit 1 (hybriel#247)mre
- b19c478bjukebox JB18 (jukebox#17): onto Hybriel set-day31 (b287cd82, contains the SIGPIPE fix 6d2ca454): plugins/core and plugins/web re-vendored, bin/ from the set; a client that closes /stream while it is written no longer kills the server (90 aborted streams survived, the old bin died with exit 141 on the first)mre
- 73867a2ejukebox#2: Style blocks in the language's nested form (rules named after the View's own elements, pseudo-classes nested, merged duplicates); the same CSS rules, the pages look the samemre
- 06c548d6jukebox JB15: report, log linemre
- 980859cbjukebox JB15 (jukebox#15): the now-playing overlay on a short screen (tablet or phone on its side) gave the queue 12 to 100 px because the big cover took the room; the cover now shrinks with the screen height and goes away under 41rem, the queue keeps 3+ rows; gate tests/jb15.mjs at 8 sizesmre
- 9efc40ffjukebox#12 #14: Grok session 1793246574527-181160mre
- 7d58b36ejukebox JB13 (jukebox#13): Next and Previous ask for the songs after / before the current song's id in the current order, not for place + 1; gate tests/jb13.mjs checks Next with the queue down to one song after the order changedmre
- 51358794jukebox JB14 (jukebox#14): the Songs screen opens sorted the way it was left (kept on the server in storage/ui.json), the sort control shows the sort the rows really have (selected options, autocomplete off); gate tests/jb14.mjsmre
- cc68a063jukebox JB13 (jukebox#13): a tapped song plays the song that was tapped, found by its id in the list as it is now (not by its row number, which counted plays move); the queue goes on from its place there, the rows refresh on the tap; gate tests/jb13.mjs (songs by plays, favourites)mre
- 88d3d5c1jukebox JB12b (jukebox#12): the scroll handle is big (2.75rem x 4rem, accent colour, grip) and drawn on every device, no media query; native bar hidden; gate tests/touch.mjs checks the drawn width with and without touchmre
- b58e4495jukebox JB11 (jukebox#11): the next song starts in the ended event on the same audio element, so it also starts with the screen locked; gate tests/jb11.mjs (hidden tab, no frames)mre
- 12a26233jukebox JB12 (jukebox#12): the long lists get a scroll handle a finger can use on touch screens (44 px tap area, slim look, drag through all rows), gate tests/touch.mjsmre
- 0f2157a9jukebox JV1: onto Hybriel set-day27b: readBytes and stat for /stream and the mp3 tags (no dd, head or tail), startup fault exits 1, fs and mpackdb plugins re-vendored; songs with a comma in the title are indexed againmre