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
4 Commits
Author SHA1 Message Date
Shaun Kruger 7231f69014 Fix italics in html editor 2026-12-01 21:00:59 -07:00
Shaun Kruger e582cb9234 Add icon config 2026-12-01 20:58:47 -07:00
Shaun KrugerandClaude Opus 5.5 5bb9a70c11 Add sanitized rich-text descriptions for content assets
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>
2026-12-01 20:57:31 -07:00
Shaun KrugerandClaude Opus 5.5 3fe49b47ea 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>
2026-12-01 18:22:27 -07:00