feat(playlists): twelve Songs like mixes a day, drawn from a top-24 artist pool
release / go (push) Successful in 2m2s
release / web (push) Successful in 1m14s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 4m5s
release / android (push) Successful in 4m38s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 2m2s
release / web (push) Successful in 1m14s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 4m5s
release / android (push) Successful in 4m38s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Six mixes stretched to oversized circles on a wide window; twelve fill the row at its normal tile size. The pool doubles with the count so the daily shuffle still rotates which artists get a mix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,7 @@ type seedArtistRow struct {
|
||||
}
|
||||
|
||||
// pickSeedArtistsFromRows projects sqlc rows into the seed list. The
|
||||
// SQL already orders by score DESC + artist_id and LIMIT 12, so this is
|
||||
// SQL already orders by score DESC + artist_id and LIMIT 24, so this is
|
||||
// just a column projection — but pulling it into a function keeps the
|
||||
// call-site readable and makes the post-fetch path testable without
|
||||
// a database.
|
||||
@@ -106,10 +106,11 @@ func pickDailySeeds(pool []pgtype.UUID, userID pgtype.UUID, dateStr string, n in
|
||||
}
|
||||
|
||||
// songsLikeSeedCount is how many "Songs like {artist}" mixes to build
|
||||
// each day, enough to fill Songs-like's own Home row. Drawn from
|
||||
// PickSeedArtists' deeper top-12 pool via a daily-deterministic shuffle so
|
||||
// the set still rotates day to day rather than pinning the same six artists.
|
||||
const songsLikeSeedCount = 6
|
||||
// each day, enough to fill Songs-like's own Home row at its normal tile
|
||||
// size on a wide window. Drawn from PickSeedArtists' deeper top-24 pool via
|
||||
// a daily-deterministic shuffle so the set still rotates day to day rather
|
||||
// than pinning the same twelve artists.
|
||||
const songsLikeSeedCount = 12
|
||||
|
||||
// pickSeedArtistsForDay picks up to songsLikeSeedCount seed artists for
|
||||
// the Songs-like mixes; For-You uses pickDailySeeds directly with
|
||||
|
||||
Reference in New Issue
Block a user