Let guests search Spotify and request songs #40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/live-requests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Guests can follow the set, but they can't ask for anything.
Solution
App server
search({ q })proxies Spotify search (10 results) and labels tracks already played this session by URI.request(track)merges into one live request per track per session, andmeToo({ requestId })joins one.requests()lists requested, queued and played; dismissed requests disappear. History rows say "requested by Ana, Ben".djRequests({ sessionId })returns pending and queued requests.setRequestStatussets pending, queued or dismissed, but a request that has played stays played.reportPlaywith arequestIdmarks the request played.spotify:track:…and cover art must come fromi.scdn.co.Guest site
Also: every
expect(promise).rejectsin the app server tests is now awaited. Unawaited, they never asserted. All of them still pass.This is Slice 4 of
projects/2026-09-27-dj-online-companion/plan.md.Testing
bun run test: 182 pass. That includes 22 request tests and 7 Spotify tests.bun run check: clean.bun run build:livebuilds.bun run livein test mode and the fake catalog: Ana requests Libertango, Ben taps "me too", and the DJ's list shows "Libertango by Ana, Ben".🤖 Generated with Claude Code