Take the console online: OIDC sign-in, outbox, play reporting #41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/console-go-online"
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
The app server and guest site exist, but the console can't open a session or report what it plays.
Solution
Engine
createEnginetakes an optional hooks argument withonPlayandonSetEnd.onPlayfires after each play is recorded.onSetEndfires when the last song ends, and onnewSetwith the old set's id.Link (
src/live/link.ts)config. The redirect goes to the console's/auth/callback, and the token is stored in settings.goOnline(passcode)callsopenSessiondirectly, so a reused passcode shows its message inline. It then sends the set's plays so far through the outbox.setId:playId, so a resend never duplicates it.LIVE_URL, else the storedlive.urlsetting, elsehttps://dj.incarnadine.org/live.Console UI
This is Slice 5 of
projects/2026-09-27-dj-online-companion/plan.md.Testing
bun run test: 193 pass. The link tests run against a real in-process app server:bun run check: clean.http://localhost:3000andhttp://127.0.0.1:3579, so open the console on one of those.🤖 Generated with Claude Code
65a1d6616fto6743ab52bb