mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
feat(my-videos): wire bucket reconciliation into the tab (Phase 2, step 3b)
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]>
This commit is contained in:
1 parent
41505c2e51
commit
9d3a0df02a
2 files changed
+139
No files matched your search
@@ -993,6 +993,20 @@
|
||||
class="grid-stack"
|
||||
data-orientation="vertical"
|
||||
></ul>
|
||||
<div id="profileMyVideosOrphans" class="space-y-2 hidden">
|
||||
<h4 class="text-sm font-semibold text-text">
|
||||
Orphaned storage objects
|
||||
</h4>
|
||||
<p class="text-2xs text-muted">
|
||||
Files in your bucket that no current video references — safe to
|
||||
remove to reclaim space.
|
||||
</p>
|
||||
<ul
|
||||
id="profileMyVideosOrphanList"
|
||||
class="grid-stack"
|
||||
data-orientation="vertical"
|
||||
></ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section
|
||||
|
||||
Reference in new issue
Block a user