Commit graph

5 commits

Author SHA1 Message Date
3544d89ceb Make the Discord login button look like Discord's
All checks were successful
Deploy Palico Bot / check (push) Successful in 10s
Deploy Palico Bot / deploy (push) Successful in 7s
Blurple button with the Discord logo, styled after the one in sokko-g.
The rule now beats `a.btn`, which forced inline-block and broke the
flex layout, and the login panel is a bit wider so the label fits on
one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 19:21:23 +01:00
03c410973e Rework the jukebox page: live updates, Discord login, progress, batch uploads
- Follow the queue live through /api/events (read with fetch so the key can
  be sent), reconnect with backoff and reload the state meanwhile; an
  indicator shows whether the page is live.
- Log in with Discord when enabled, the password stays available as a
  fallback; explain failed logins and expired sessions.
- Show a progress bar and durations, the queue length and total time, and a
  hint when the queue waits for listeners.
- Shuffle and loop buttons; search, rename and add the whole library,
  optionally shuffled.
- Upload several files at once with per-file progress (XMLHttpRequest), add
  a direct link, drag and drop files; allow 40 uploads per 15 minutes.
- Style password, URL and search fields, focus rings, and the phone layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:21:43 +01:00
d200040691 Lighten the website and make it more accessible
- Serve the hero images as WebP at their display size: 118 KB and 55 KB
  instead of 3.5 MB and 1.4 MB.
- Add a favicon, an apple-touch icon, a description and a theme colour.
- Announce status messages to screen readers and label the move buttons.
- Offer "Se souvenir de moi" to keep the password on the device, and keep
  working when browser storage is unavailable.
- Fix typos in the jukebox introduction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:05:57 +01:00
a1cefe6da5 Fix jukebox playback getting stuck and make the web page reflect actions
- Adding a track or someone joining the voice channel now resumes a queue
  suspended because the bot was alone; before, only the Play button did.
- Retry the voice connection with backoff instead of giving up after one
  failed attempt.
- Keep playing when the head of the queue changes while connecting.
- Requeue the interrupted track when the bot leaves an empty channel or
  loses its voice connection.
- Removing the current track no longer answers 404; other bots no longer
  count as listeners.
- Accept uploads whatever MIME type the browser sends (ffprobe validates the
  content) and clean temporary files hourly, sparing queued ones.
- Web page: refresh again after an action instead of reusing a stale
  request, disable buttons while a request runs, show the real start time and
  custom titles, and support drag and drop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:59:58 +01:00
6d2e379a0c Initial Commit 2026-06-28 22:44:04 +02:00