Redesign GeoDrops into live location sharing (was: one-off song pins)
Replaces the "drop a specific song at this exact point, once" model with a live broadcast: share your position and whatever you're currently playing, updated automatically as you move or switch songs, visible to anyone nearby while you're sharing. Matches the backend's GeoDrop -> LiveLocation redesign. - "Share my live location" toggle: starts watchPosition, pushes an update on every meaningful location/song change, plus a periodic heartbeat (keeps the row from expiring server-side while nothing's changed) - matching the backend's staleness-expiry approach, since a closing tab can't reliably notify the server with an authenticated request on unload. - Nearby list now live-updates on a short poll, not just on demand. - New: "Play my geo playlist" - shuffles everyone nearby's current song into the shared player's queue (Fisher-Yates, not the common biased Array.sort(() => Math.random() - 0.5) shuffle) and starts playing. - Only broadcasts a song when it's a real LibrarySong reference (Soundmarks/Rooms/Posts-sourced playback uses synthetic negative ids for player identity, not something safe to send as song_id). Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment