Fix Shopify video preview propagation on save

Updates logic to detect processing state (including READY-but-no-sources race condition) and propagates contentUrl updates to the frontend immediately.
This commit is contained in:
Ben Miller
2025-12-31 01:08:12 -07:00
parent 772957058d
commit 64ab548593
4 changed files with 46 additions and 1 deletions

View File

@ -464,7 +464,7 @@
style="display:none; background-color:#fffbeb; color:#92400e; padding:12px; border-radius:8px; margin: 0 16px 12px 16px; font-size:13px; border:1px solid #fcd34d; align-items:flex-start; gap:8px;">
<span style="font-size:16px; line-height:1;"></span>
<div>
Some videos are still being transcoded by Drive. The video preview might not work yet, but they can still be saved,
Some videos are still being processed. The video preview might not work yet, but they can still be saved,
reordered, or deleted.
</div>
</div>
@ -1516,6 +1516,8 @@
console.log("[MediaManager] Processing complete for " + item.filename);
item.isProcessing = false;
item.thumbnail = newItem.thumbnail;
item.contentUrl = newItem.contentUrl; // Propagate URL
item.source = newItem.source; // Propagate source update (synced)
changed = true;
}
}