• Aryan Noshirvnai's avatar
    Add shared-library search to the Library page · 8d5e0200
    Aryan Noshirvnai authored
    Users could only search their own library - there was no way to find
    music already tagged by someone else on Stax. Added a "My Library" /
    "Shared" scope toggle that appears while actively searching; switching to
    Shared re-runs the query against every user's library via the new
    /library/shared/search endpoint. Kept on the Library page rather than a
    new tab or folded into Discovery: typing a search is the same action as
    the existing owner-scoped one, just widened in scope, while Discovery's
    own mental model (ambient/mic-driven identification) is genuinely
    different.
    
    Shared results can't be streamed or playlisted directly - every row
    belongs to another user - so SharedSongRow claims a real owned copy via
    /library/shared/claim before playing or adding to a playlist, reusing the
    same "get your own copy, then use it" flow Discovery already has for a
    mic hit that turns out to be something someone else has.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    8d5e0200
Library.test.tsx 20.2 KB