Video stills: Frame at on video blocks and the front page's video, and Tools > Video thumbnails (migration 074)

Frame at (a still from a YouTube or Facebook video at a typed time)
now also fills a video block's still and the front page's new Video
still, which the hero shows before its featured video plays. Tools >
Video thumbnails takes one from any link, to download or copy into a
field. All go through the existing POST /api/admin/video-frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aidan Dona 2026-10-08 12:10:44 -05:00
parent 31d9f78120
commit 14a22ca44d
12 changed files with 240 additions and 13 deletions

View file

@ -49,6 +49,7 @@ export const frontPage = {
text("countdown_scope_id"),
enumeration("countdown_event_type", ["retreat", "class", "workshop", "meeting", "other"]),
int("featured_columns"),
text("video_still"),
],
children: [

View file

@ -0,0 +1,11 @@
-- ═══════════════════════════════════════════════════════════════
-- 074 FRONT PAGE VIDEO STILL
--
-- The hero's featured video gets a still of its own: the picture
-- shown before it plays (a /uploads/ path, a bare filename or a
-- URL, like every image field). Null keeps YouTube's thumbnail, or
-- for a video file, its first frame. The editor's Frame at fills it
-- from the video at a typed time.
-- ═══════════════════════════════════════════════════════════════
ALTER TABLE front_page ADD COLUMN video_still TEXT;

View file

@ -225,7 +225,7 @@ home.get("/front-page", (c) => {
? { url: page.livestream_url, title: page.livestream_title }
: null,
video: page.video_url
? { url: page.video_url, title: page.video_title, captions: page.video_captions }
? { url: page.video_url, title: page.video_title, captions: page.video_captions, still: page.video_still }
: null,
event: shapeHeroEvent(db, heroEvent),
},