Skip to content

feat(templates): show a video from YouTube, Vimeo, Streamable or Cloudinary - #1803

Merged
viethung0o0 merged 5 commits into
mainfrom
feat/template-embedded-video
Nov 27, 2026
Merged

viethung0o0 merged 5 commits into
mainfrom
feat/template-embedded-video

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • A template can now have a video from YouTube, Vimeo, Streamable or Cloudinary, added as a link or as embed code.
  • When a template is opened (home Templates tab, share page, install page), the video takes the cover image's place; without a video the image shows as before.
  • In the template form, the cover video sits next to the cover image with a live preview.
  • Landscape or portrait is detected automatically; unknown sizes show at 16:9.
  • Store list cards are unchanged.
  • Public API, CLI and MCP: templates.create / templates.update accept video: { source } (omit to keep, null or "" to clear) and return video; youtubeVideoId still works as a deprecated alias.
  • Adds one migration: a nullable embeddedVideo column on Template, no backfill.
  • During a rolling deploy, a save handled by an old pod follows last-writer-wins, as other template fields do today.
  • Inbox: clicking the page avatar or name in the conversation header opens the page in a new tab; inboxes avatars also returns profileUrl and provider.
  • Inbox: the "joined" line in the conversation header is shorter and shows first names only.

Test plan

  • Create and edit a template with each supported link and embed code; an unsupported link shows an error
  • The form preview shows the video next to the cover image, in the right orientation
  • Clearing the video brings the cover image back
  • Share, install and home Templates pages show the video in landscape and portrait
  • Store cards still show only the image
  • Public API: create with video.source, GET → PUT echo, clear with null, youtubeVideoId alias
  • Inbox header: page avatar/name opens the page in a new tab; channels without a page link stay plain
  • Inbox header: "Hung, Phong joined" shows first names, hover shows full names

@github-actions github-actions Bot added the feature New feature or request label Nov 27, 2026
@viethung0o0
viethung0o0 force-pushed the feat/template-embedded-video branch from 1c11008 to a930b32 Compare November 27, 2026 08:45
@viethung0o0
viethung0o0 marked this pull request as ready for review November 27, 2026 09:26
@viethung0o0
viethung0o0 merged commit 486a825 into main Nov 27, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants