Repository source: docs/plans/music_slideshow/music_slideshow_step3_development_plan.md
Debug mode: enabled (debug log)
Effort study: railspike-effort / v3/music_slideshow; host ledger music_slideshow.md. Standing P2 enrollment.
Extended estimates: enabled. Stage figures are stage work only; they are not summed.
Cycle estimate: 0.50
Step 2 approved 2026-11-28 ("approved step 2"), including the revision that Next starts the next track. Starting revision 619b53d5e.
Concepts touched: Music section (Stage 6 adds the slides paragraph). Media embed (reused; Stage 6 notes the slides as a second caller). No-script presentation, Page theme, Feature flags (rules unchanged; checked in Stages 1, 2 and 4).
Completion Contract
Normal entry: mitrapclub.com → Music → Friday listen, or a pasted
/music/slides/?since=YYYY-MM-DDaddress.End-to-end outcome: the set's tracks open oldest first; Play starts the current track; Next, Previous, a tile or an arrow key stops it, shows the new slide and starts its track where the provider and browser allow.
Recovery: an empty set keeps the date form; a bad
sinceshows the short message with Details and a link to the 7-day set; a slide for a thread no longer in the set redirects to the set's first slide;FORUM_MUSIC_SLIDES_ENABLEDoff answers 404 and hides the entry.Deployment and external checks: Deploy now to mitrapclub.com; desktop Chrome check of Next starting YouTube; iPhone SE check; one Friday meeting.
Release: PR merged to main and deployed; the maintainer reports one meeting run on it.
Key Risks
High risk: Next stays silent. Impact: the main revision fails. Early validation: Stage 5 browser test asserts the loaded frame asks for autoplay; a manual Chrome check confirms sound. Mitigation: open the next player inside the same tap or key handler; frames already carry
allow="autoplay".Wrong week for a track. Impact: a late Thursday track lands in the next set. Early validation: Stage 1 test with a post at 23:30 Eastern. Mitigation: read
sinceas a local day in the site'scalendarTimeZone. Mitrapclub has none today, so Stage 1 sets it toAmerica/New_York, which also moves its calendar off UTC.Projector readability. Impact: the room cannot read the slide. Early validation: Stage 2 screenshots at 1920×1080 and 1280×720 in Underground and Underground Dark. Mitigation: type scales with window width; the meeting check in Stage 6 settles it.
Enhancement requests
2026-11-28, maintainer: help with the HDMI, projector and room PA setup, "possibly in a separate cycle". Disposition: a follow-up cycle,
music_room_setup, not this one. Candidate scope: a sound check slide (generated tone, left / right / both, level meter, played through the default output), full screen, keep the laptop awake, a projector test pattern with a safe margin, and a microphone "heard it" check. A phone remote is a later, separate cycle.2026-11-28, maintainer, on the speaker picker: "i think this is still worthwhile to pursue, to check for other failure modes". Disposition: in
music_room_setup. Play the tone on a chosen output to tell a dead HDMI link or a switched-off PA apart from a wrong default. The page must say the tracks still follow the laptop's default output.
Stage 1 – The set and a plain slide
Estimate: 0.12
Goal:
/music/slides/and/music/slides/<thread id>render the set's slides without script: title, who shared it and when, "3 / 9", Previous and Next links, and the date form.Dependencies: none.
Expected changes:
TagPage::since(PDO, tag, DateTimeImmutable from)returns the listed #music threads withroot_post_created_aton or after the start of that local day, oldest first, capped at 200.MusicPageController::slides(?string threadId, ?string since). Routes beside/music/inApplication.php, both gated bymusicSectionand the new flag.templates/pages/music_slides.php.FORUM_MUSIC_SLIDES_ENABLEDinFeatureFlagRegistry.php, on by default, in Rendering.calendarTimeZonefor mitrapclub inSiteProfileRegistry.php. No read-model schema change.Verification approach: new
MusicSlidesPageTest(order, date edge at 23:30 Eastern, empty set, bad date, removed thread redirect, flag off, non-music site 404);FeatureFlagEvaluatorTest; smoke set.Estimate details: driver: route, query and error paths; uncertainty: low.
Risks or open questions:
Impact: a large set makes one page slow. Early warning: the 200 cap test. Mitigation: select IDs first, as
TagPage::pagedoes, then load only the current and neighbouring threads.
Canonical components/API contracts touched:
ReadModel/TagPage.phpandThreadKeysetPage(extended, same membership SQL);Http/MusicPageController.php(extended);MediaEmbedDetector(reused for the track link); shared error message pattern fromCONTRIBUTING.md.
Stage 2 – Slide layout for a big screen and a phone
Estimate: 0.12
Goal: the slide looks like the mockup: 16:9 poster or play tile with the player bar, large title, tile row with the current track marked.
Dependencies: Stage 1.
Expected changes: the slide renders the track through
MediaEmbedRenderer(poster and bar as on a post page). Styles insite.cssunder one.music-slidesblock, sized from the window width; Underground tweaks intheme-underground.css. Tile row wraps and shows the current slide's neighbours for large sets.Verification approach: new
tests/browser/music_slides.mjs: screenshots at 1920×1080, 1280×720 and 390px in Underground and Underground Dark; no sideways scroll in any permitted theme; title at least 48px at 1920. Renderer tests stay green.Estimate details: driver: layout across themes; uncertainty: medium (27 themes).
Risks or open questions:
Impact: a theme's card styles fight the full-window layout. Early warning: the all-themes overflow check. Mitigation: scope styles to
.music-slidesand reuse theme variables only.
Canonical components/API contracts touched:
View/MediaEmbedRenderer.php,MediaEmbedPosterStoreand poster route (reused unchanged);site.css,theme-underground.css.
Stage 3 – Friday listen on /music/
Estimate: 0.05
Goal: under the share box, one Friday listen link with the 7-day count, or nothing when the flag is off.
Dependencies: Stage 1.
Expected changes:
music.phpandMusicPageController::page()pass the count fromTagPage::since.Verification approach:
MusicPageTestadditions;music_share.mjsstill passes.Estimate details: driver: small template change; uncertainty: low.
Risks or open questions: none beyond UI copy; keep it to the label and count.
Canonical components/API contracts touched:
templates/pages/music.php,MusicPageController::page().
Stage 4 – Moving between slides without a reload
Estimate: 0.10
Goal: with script, Previous, Next, tiles, arrow keys and sideways swipes swap the slide in place and update the address.
Dependencies: Stage 2.
Expected changes: new
public/assets/music_slides.js: fetches the target slide's HTML, swaps the slide region, useshistory.pushState, handles Back. Swipe counts only clearly sideways moves. Closing the current player before the swap stops its sound. Keys are handled only on the slides page, not in form fields.Verification approach:
music_slides.mjsextends to: Next swaps without a navigation, Back returns, arrow keys work, only one player open; script-off pass of the same flow by links.Estimate details: driver: history and swap edge cases; uncertainty: medium.
Risks or open questions:
Impact: a failed fetch leaves the old slide. Early warning: test with the fetch blocked. Mitigation: fall back to following the link.
Canonical components/API contracts touched:
media_embed_inline_player.js(reused: the swap closes and opens players through its events).
Stage 5 – Next starts the next track
Estimate: 0.06
Goal: a move by tap or key opens the new slide's player in the same handler, marked as tapped, so YouTube, TikTok and SoundCloud start; Spotify and Bandcamp open loaded.
Dependencies: Stage 4.
Expected changes:
music_slides.jsrenders the next slide from a prefetched copy so the player opens inside the gesture; marks the player as tapped before opening it.Verification approach: browser test asserts the new frame's source carries
autoplay=1for YouTube andauto_play=truefor SoundCloud, and that a Spotify slide opens loaded; manual desktop Chrome check that sound starts.Estimate details: driver: keeping the open inside the gesture; uncertainty: medium.
Risks or open questions:
Impact: a fetch inside the handler breaks the gesture link. Early warning: the Chrome check. Mitigation: prefetch the neighbours when a slide shows.
Canonical components/API contracts touched:
media_embed_inline_player.js(its tapped mark andwithAutoplay, reused).
Stage 6 – Concept update and the real-world replay
Estimate: 0.05
Goal: record the feature and replay the known environment.
Dependencies: Stages 1–5.
Expected changes:
docs/concepts/music_section.mdslides paragraph;media_embed.mdnames the slides as a caller; Step 4 summary.Verification approach: after deploy, the maintainer opens Friday listen on the room laptop (signed out) and the iPhone; records whether the title read clearly, whether Next started YouTube, and whether iPhone needed a tap. Until then the summary marks this pending; workspace screenshots do not count.
Estimate details: driver: waiting on deploy and a meeting; uncertainty: low for the work, high for timing.
Risks or open questions: none new.
Canonical components/API contracts touched: concept files only.
— Claude · 2026-11-28 UTC · Model: claude-opus-5-5