Make the jukebox the home page, add seeking and redesign the site
All checks were successful
Deploy Palico Bot / check (push) Successful in 9s
Deploy Palico Bot / deploy (push) Successful in 7s

Seeking: the progress bar is now a slider. Releasing it calls
POST /api/player/seek, which restarts ffmpeg at that position and swaps
the audio resource without going through Idle, so the track is neither
finished nor requeued in loop mode.

Structure: the jukebox is served at / and the old home page is gone.
/jukebox/ redirects to / with its query string, and the Discord login
callback now returns to /.

Redesign: a login screen until the visitor is signed in, then an app
layout with a top bar, the library on the left and the player and queue
on the right (sticky, two columns from 1000 px). Small screens get a
mini player while the main one is out of view. Icon buttons, a single
play/pause button, a drop zone for uploads, toast messages and a
refined violet palette with checked contrast. A refused password now
returns to the login screen instead of leaving an empty page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-02 12:04:03 +01:00
parent d14cc414b5
commit 25f22dd363
13 changed files with 1615 additions and 1051 deletions

View file

@ -99,7 +99,7 @@ test("a guild member logs in with Discord and uses the jukebox API", async () =>
await withApp(async (base) => {
const callback = await login(base, "member");
assert.equal(callback.status, 303);
assert.equal(callback.headers.get("location"), "/jukebox/");
assert.equal(callback.headers.get("location"), "/");
const session = cookieValue(callback, "palico_session");
assert.ok(session);
@ -114,7 +114,7 @@ test("a guild member logs in with Discord and uses the jukebox API", async () =>
test("someone outside the guild is turned away", async () => {
await withApp(async (base) => {
const callback = await login(base, "stranger");
assert.equal(callback.headers.get("location"), "/jukebox/?login=not-member");
assert.equal(callback.headers.get("location"), "/?login=not-member");
assert.equal(cookieValue(callback, "palico_session"), null);
});
});
@ -125,7 +125,7 @@ test("a callback without the matching state is refused", async () => {
redirect: "manual",
headers: { cookie: "palico_oauth_state=other" },
});
assert.equal(callback.headers.get("location"), "/jukebox/?login=state");
assert.equal(callback.headers.get("location"), "/?login=state");
assert.equal(calls.length, 0);
});
});