• Aryan Noshirvnai's avatar
    Survive navigating away from /upload, add a step checklist, and let uploaders… · fad9c417
    Aryan Noshirvnai authored
    Survive navigating away from /upload, add a step checklist, and let uploaders correct identification
    
    Uploading used to live in Upload.tsx's own component state, so leaving
    the page mid-upload abandoned the in-flight request with no way to see
    it finish. Lifts the queue into a new UploadQueueProvider (same tier as
    PlayerContext, above the router) so it keeps running and updating
    regardless of navigation.
    
    Each queued file now shows a Claude-Code-style step checklist (upload →
    identify → artwork) instead of a bare progress bar. Completed results
    show the system's 0-100 confidence score, and an "Edit details" form
    lets the uploader correct title/artist/album/genre - doing so flips the
    song to review_status "pending" ("community noted") via the new
    PATCH /library/{id}, reflected immediately in the card without a
    refetch. Also adds the review-queue API client functions AdminPanel's
    community-review tab uses to approve or reject those songs.
    fad9c417
Upload.test.tsx 7.62 KB