Add content assets for cataloging uploaded files

ContentAsset records metadata (kind, title, description, release date,
season/episode/sequence) for an UploadedAsset, scoped to a studio.
ContentGroup groups episodes into a series or movies into a collection.

The studio page now has tabs for uploaded files and content, both loaded
with htmx. Files without content get a "Create content" button. Content
opens read-only with an Edit button; the form shows immediately when a
save fails validation.

Also adds the draft job status to the migration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shaun Kruger
2026-12-01 18:22:27 -07:00
co-authored by Claude Opus 5.5
parent d73dddc3d9
commit 3fe49b47ea
15 changed files with 657 additions and 12 deletions
+14
View File
@@ -0,0 +1,14 @@
document.body.addEventListener("initialize_tinymce", function(evt){
tinymce.remove();
tinymce.init({
selector: evt.detail.selector,
license_key: 'gpl',
menubar: '',
toolbar: 'undo redo | bold italic | bullist numlist | link emoticons',
plugins: [
'link', 'emoticons', 'lists'
]
})
});