Skip to content

feat(web): share page brand colour, custom thumbnails and embed options - #4307

Open
richiemcilroy wants to merge 13 commits into
mainfrom
feat/share-branding
Open

richiemcilroy wants to merge 13 commits into
mainfrom
feat/share-branding

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Organizations can set a brand colour for share pages and embeds, owners can give any video a custom thumbnail (upload an image or pick a frame), and the embed tab gains toggles for title, owner, logo and autoplay.

Brand colour

Org settings, Shareable links. Pro, owners and admins. It colours the play button, progress bar and player focus rings on share pages and embeds, and is offered first in the call to action colour presets. It is opt-in, so orgs that already set desktop brand colours see no change until they pick one; those colours show up as swatches. The play icon switches between white and ink for contrast, and colours too dark to see on video keep the progress bar and rings white. It is server rendered, so Cap blue never flashes first.


Custom thumbnail

"Thumbnail" in the share page Manage menu and the dashboard card menu. Pick a frame (taken server side with ffmpeg from the published MP4) or upload a PNG, JPEG or WebP (resized to 1920 px JPEG in the browser). Used by the dashboard, share and embed posters, OG image, oEmbed and Slack unfurls. The OG URL gains &v= so link previews refresh straight away. Reset to automatic removes it. Stored under the video's own prefix, so delete and duplicate carry it along. No schema change.



Embed options

URL params title=false, owner=false, branding=false (Pro), autoplay=true&muted=true, plus the existing t. Default embed code is byte-identical to before. I left out hiding controls, since a Cap embed without controls can't be paused or unmuted by keyboard or screen reader users.

Proof

  • Real app on a scratch database and MinIO: brand colour saved, share page and embed render it (computed styles checked), frame pick and upload both save, the old object is deleted, and the poster, OG image and dashboard card all switch.
  • Unit tests for contrast and brand resolution, embed param parsing and building (including byte identity with the old snippet), thumbnail metadata, keys and versions, link preview URLs and OG route params. The existing share and embed round-trip tests pass unchanged, so DB round trips are unchanged. Typecheck and Biome are clean.
  • Share page server render, interleaved A/B on the same dev server: 40/38 ms on the branch vs 39/45 ms on main. Embed: 29/34 ms vs 30/31 ms. Both within noise.
  • JS on load (dev build): share 10095 to 10111 KB, embed 8277 to 8284 KB. Both dialogs load lazily.

RetriggerView in GreptileConfidence Score: 5/5

The changes since the previous review appear safe to merge.

Summary

Adds organization brand colours, custom video thumbnails, and embed options.

  • Share pages and embeds can use an organization’s chosen brand colour.
  • Video owners can upload a thumbnail or choose a frame from their video.
  • Embed snippets can hide player details or start playback automatically.

Reviews (2) · Last reviewed commit: "chore(web): drop comments that restate t..." · Reviewed by Greptile

@sandchest-com

sandchest-com Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Sandchest

Sandchest reviewed 3237bed: nothing exploitable found in this change.

Sandchest reviews every change for vulnerabilities an attacker could use · 10 credits · Review details

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

View 3 other findings in Capy.

Open in Capy

Comment thread apps/web/app/globals.css Resolved
Comment thread apps/web/app/api/video/og/route.tsx Resolved
Comment thread apps/web/lib/custom-thumbnail.ts Resolved
@vercel

vercel Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Nov 17, 2026 1:58am UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 17, 2026 01:58 Inactive

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

Open in Capy

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cap-web — 3237bedd Deployed Nov 17, 2026 by vercel[bot]
Preview – cap-status — 3237bedd Deployed Nov 17, 2026 by vercel[bot]
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.

1 participant