Add content assets for cataloging uploaded files #3

Merged
skruger merged 4 commits from asset_catalog into main 2026-12-01 21:11:53 -07:00
Owner

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

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>
skruger added 1 commit 2026-12-01 18:25:10 -07:00
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>
skruger added 2 commits 2026-12-01 20:59:02 -07:00
Introduce HtmlTextField, which cleans submitted HTML with nh3 against a
tag/attribute allowlist, and use it for ContentAsset.description via
Meta.field_classes. Edit descriptions with TinyMCE and render the
sanitized HTML on the asset page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
skruger added 1 commit 2026-12-01 21:01:13 -07:00
skruger merged commit ba76671795 into main 2026-12-01 21:11:53 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: skruger/privatestudio#3