Skip to content

feat: Allow YouTube urls in media section of models - #884

Merged
alee merged 5 commits into
comses:mainfrom
Karthik99999:media
Aug 7, 2026
Merged

feat: Allow YouTube urls in media section of models#884
alee merged 5 commits into
comses:mainfrom
Karthik99999:media

Conversation

@Karthik99999

Copy link
Copy Markdown
Contributor

Separating from #874

Also adds emitted events to the BootstrapModal class to make it simpler to pause the video when the media modal is closed.

alee and others added 3 commits August 5, 2026 20:19
reject non-YouTube codebase video URLs
test degenerate urls as well
Rename the unshipped codebase media field from youtube_url to
video_source_url, keeping YouTube-specific validation while leaving room
for future video providers. Update the release editor media form and
gallery to use the generic video source naming, persist sparse video
updates via PATCH, and preserve tags on partial serializer updates.

Fix video gallery sizing so embedded video previews keep a 16:9 aspect
ratio instead of stretching in the fixed-height image frame.

Add targeted backend and frontend tests for video source validation,
partial update persistence, and the minimal media payload.

Co-authored-by: Codex <codex@openai.com>

@alee alee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @Karthik99999 !

@alee
alee merged commit 7df8178 into comses:main Aug 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants