Commit fc4b4352 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Add guest browsing, onboarding profile fields, and a background job pipeline for uploads

Home and Discovery now serve anonymous callers (get_current_user_optional)
so unauthenticated visitors can browse and identify songs - Discovery's
rate limiter keys off IP instead of user_id for guests, and the
save/claim step is skipped entirely since there's no account to attach it
to. UserProfile gains display_name/preferred_genres for the new 4-page
onboarding (replacing the old 6-step tour), plus PATCH /auth/profile and
POST /auth/profile/avatar to save them.

POST /music/upload no longer blocks on the full identify/tag pipeline -
it saves the file, creates an UploadJob, and hands identify/tag off to a
BackgroundTasks job (mirroring RemixJob/ChatScanJob), returning
{job_id, status} immediately. This is what lets the frontend upload
several files concurrently instead of queuing each one behind the last,
and what lets tagging keep running after the uploading tab closes - GET
/music/upload/jobs is how the client finds out the result, including
reconciling after a reload.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 77eff0b8
Pipeline #1296 failed with stage