feat: Your genres leads with the genres you play most, not A to Z
release / web (push) Successful in 1m8s
release / go (push) Successful in 1m40s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 3m43s
release / android (push) Successful in 4m21s
release / Build signed APK (push) Successful in 4m55s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
release / web (push) Successful in 1m8s
release / go (push) Successful in 1m40s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 3m43s
release / android (push) Successful in 4m21s
release / Build signed APK (push) Successful in 4m55s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
The genre mix builder already ranks genres by how much you listen to them (taste profile, then plays and likes, then library size), but the rank was lost when the mixes were stored and both apps sorted the shelf by name. Each playlist now has a shelf_rank (migration 0107), which the genre builder fills 1..n in that listening order, even where it picked a narrower genre before a broader one. The list and detail endpoints carry it, and the web and Android Home sort the genre shelf by it, unranked playlists after by name. Android's playlist cache gains the column (Room v14). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -253,11 +253,12 @@ SELECT id, user_id, name, description, is_public, kind, system_variant,
|
||||
-- name: CreateSystemPlaylist :one
|
||||
-- Inserts a system-generated playlist. Used by BuildSystemPlaylists.
|
||||
-- For 'for_you' variant, pass seed_artist_id as NULL (zero-value pgtype.UUID
|
||||
-- with Valid=false).
|
||||
-- with Valid=false). shelf_rank is the mix's place on its Home shelf, 1
|
||||
-- first, or 0 for kinds the clients order themselves.
|
||||
INSERT INTO playlists (
|
||||
user_id, name, description, is_public,
|
||||
kind, system_variant, seed_artist_id, cover_path
|
||||
) VALUES ($1, $2, sqlc.arg(description), false, 'system', $3, $4, $5)
|
||||
kind, system_variant, seed_artist_id, cover_path, shelf_rank
|
||||
) VALUES ($1, $2, sqlc.arg(description), false, 'system', $3, $4, $5, sqlc.arg(shelf_rank))
|
||||
RETURNING *;
|
||||
|
||||
-- name: GetSystemPlaylistByVariantForUser :one
|
||||
|
||||
Reference in New Issue
Block a user