• Aryan Noshirvnai's avatar
    Move Liked Songs into the Library tab as a real album-like entry · c7c9043b
    Aryan Noshirvnai authored
    Favorites are a personal/library concept, not something that should live
    only under the separate Playlists page. A "Liked Songs" card now appears
    first in Library's own Albums grid (same shape as every other AlbumCard, a
    heart tile standing in for cover art) whenever the caller has at least one
    liked song - derived from the already-loaded library list's is_liked flags,
    no extra request.
    
    New /library/liked page is built to look and behave exactly like a real
    album page (AlbumDetail) rather than the plainer list Playlists' own detail
    view uses: big header tile, track count, Play button, SongRow list with
    working hearts/swipe/add-to-playlist. Sourced from getLibrary() + is_liked
    directly, not the playlist endpoints - nothing about playlist
    membership/ordering is relevant here. Unliking a song removes it from the
    list immediately, since every row is only present because it's liked.
    
    Still backed by the same is_liked_playlist under the hood, so it still
    appears in Playlists too - this is a second, more prominent entry point,
    not a replacement.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    c7c9043b
LikedSongs.test.tsx 5.18 KB