Fix inline video playback in client portals#65

merged1
main
fix/client-hub-video-embeds
openedOct 1, 2026bySScreen
View on GitHubTwo-way sync enabledPR last imported Oct 22, 2026

Client portals currently show only an “Open current version” link for shared videos. They also block video frames through the app's Content Security Policy. This change renders the current YouTube or Vimeo version in a responsive inline player, so clients can watch without leaving the project page.

The player uses the existing URL normalizer to derive trusted embed URLs. It supports watch, short, and player URLs, includes a descriptive frame title and fullscreen controls, and sends the origin referrer required by YouTube. Ordinary links keep their link behavior, and video links remain available as a fallback. The policy allows only the YouTube privacy-enhanced player and Vimeo player hosts. Public data projection, version history visibility, and comments retain their existing behavior.

Validation:

  • App and marketing TypeScript checks, production build, UI allowlist, and production source verification passed.
  • All 86 unit tests and 117 Convex tests passed, including the new embed regression tests.
  • Both CSP tests passed.
  • Chromium checks passed at 1440×1000 and 390×844 for responsive layout, permitted frame loading, fullscreen permission, and ordinary-link fallback. Provider frame responses were mocked; live video availability and provider embed restrictions were not tested.
  • pnpm check:full was attempted. The dependency audit reports 18 vulnerabilities in the existing dependency tree and stops the combined command. Remaining suites were run separately; the general browser smoke script stops at its unchanged /team-chat assertion expecting “Manage Team”.

Manual verification after deployment: open a published portal with a current YouTube or Vimeo media version, play the video inline on desktop and mobile, and confirm fullscreen and existing comments work. An ordinary external media URL should remain an external link.

Checks

1 failing · 5 successful
Some checks were not successful

Failing1

a6e8247

Added 1 commit

  • Fix inline video playback in client portalsa6e8247
Synced from GitHub

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 398663b1-1198-4021-b328-a5ebb6a68267

📥 Commits

Reviewing files that changed from the base of the PR and between 952056ed870526a58ee7556f3a96f12c286893a6 and a6e8247372691a8768bac6ab4a3b0b715c8f5d30.

📒 Files selected for processing (4)
  • next.config.mjs
  • scripts/check-stripe-csp.test.mjs
  • src/app/client-portal/client-portal-view.test.ts
  • src/app/client-portal/client-portal-view.tsx
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.