mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
After the note-side list renders, the My Videos tab now reconciles against the bucket: lists the user's objects (unlock-gated), then marks any active note whose hosted file is gone as a 🟠 "Missing file", and lists bucket objects no current video references in an "Orphaned storage objects" section — including files left behind by videos deleted on Nostr (the headline cleanup case). Each orphan has a "Delete file" button (with a confirm) that calls deleteStorageKeys and refreshes. Reconciliation runs after the list is shown so the UI stays responsive, and is a no-op (orphan section hidden) when storage is locked/unconfigured. Rows carry a data-video-id + a data-role pill so missing status can be applied in place. Build + full lint green (DOM via createElement/textContent, no innerHTML). Co-Authored-By: Claude Opus 4.8 <[email protected]>