Create and delete genre mixes from the web UI

- Add a form to create a cluster mix rule: shown on first visit when there
  are no rules, and from a + in the sidebar for another Listenbrainz user.
  Backed by POST /api/discover/rules, which validates each setting and
  allows one rule per Listenbrainz user.
- Add deleting a user's mixes from a bin in the sidebar, optionally also
  deleting the mixes' playlists from Subsonic. Backed by
  DELETE /api/discover/rules/<id>?delete_playlists=true.
- Stop showing the previous user's mix while a new user's mixes build.
- Remove the per-account Listenbrainz token: LB Radio now always uses
  listenbrainz.token from the config. A migration drops the token columns
  from app_user, and PUT /api/auth/account/listenbrainz is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
judeandClaude Opus 5.5 committed 2026-11-22 09:45:52 +00:00
1 parent f5cb5076ca
commit 93e12cfc72
23 files changed
+701 -344

No files matched your search

@@ -0,0 +1,22 @@
{
"db_name": "PostgreSQL",
"query": "SELECT playlist_id FROM \"cluster_mix_playlist\" WHERE rule_id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "playlist_id",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false
]
},
"hash": "28192c8717a3cb6654c3868c43f2fbe2c542e7c81ddf28f91b60d112a7a9e95b"
}