Skip to content

feat(home): set metadataBase and shrink the teaser video with a poster - #45

Merged
maxitect merged 4 commits into
mainfrom
feat/31-launch-checks-before-the-album-announcement
Nov 12, 2026
Merged

maxitect merged 4 commits into
mainfrom
feat/31-launch-checks-before-the-album-announcement

Conversation

@maxitect

@maxitect maxitect commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What

Launch checks before the album announcement: social images resolve to the production origin, and the home page video is small and shows a still before it plays. Two of the ticket's four deliverables need production or the band's content and stay open (see Notes).

Changes

  • metadataBase is set to https://clarksbowlingclub.com in src/app/(frontend)/layout.tsx, so Open Graph and Twitter image URLs are absolute and the build no longer warns about http://localhost:3000.
  • The home video is now two files at the original 1920x818 size, listed as <source> elements in HomeClient.tsx:
    • teaser-av1.mp4 (7.34 MB): AV1 (SVT-AV1, preset 4, ~800 kbps) with 80 kbps AAC, listed first. Browsers that support AV1 download only this one.
    • teaser-hevc.mp4 (7.50 MB): HEVC (x265 two-pass, 780 kbps, tagged hvc1, faststart) with AAC, listed second, for Apple devices without AV1.
    • teaser.mp4 (26.6 MB, was 34.3 MB): H.264 (x264 slow, RF 27) with 96 kbps AAC, listed last, only for browsers with neither.
    • Audio is kept because the page has an unmute button.
  • public/videos/teaser-poster.jpg (186 KB, first frame at 1920 wide) is set as the <video poster>.

Acceptance criteria

AC Result Method Evidence
Sharing the home page URL shows the right image PASS (absolute URL); the WhatsApp/Slack unfurl itself needs production cli AC1 below
Home video under 8 MB and a still shows before it plays PASS: AV1 7.34 MB for most browsers, HEVC 7.50 MB for Apple devices without AV1; the 26.6 MB H.264 file only loads in browsers with neither cli, browser AC2 below
No console errors on any page in production OPEN: needs production after #23 deploys. Home on the production build: 0 errors browser AC3 below
Lighthouse mobile on the home page, before and after, recorded in the issue OPEN: production step - Notes

Closes

Closes #31

Merging closes #31. The open items in Notes (production console check, Lighthouse before and after, the album content in the sheet) move to a follow-up ticket.

Notes

  • Left open, for the user:
    • Album content in the Google Sheet (music embeds, lyrics, tour dates): needs the band's actual content, which I do not have, and the live sheet is off limits. Missing: the music embed links/IDs, the lyrics text (both languages) and the tour dates and venues.
    • Hydration error #418 in production: confirm it is gone after build(repo): migrate to pnpm and update all dependencies #23 deploys, by loading each page on clarksbowlingclub.com and reading the console.
    • Lighthouse (mobile, home page): run it on production before merging this and again after the deploy, and record both in the issue. Local runs are not comparable.
    • Share preview: after deploy, paste the URL into WhatsApp or Slack; the image is the existing opengraph-image.jpg.
  • Not touched: package.json, next.config.ts, Payload files (Advent calendar live at /calendrier by 1 December #29).
  • ffmpeg is broken on this machine (missing libx265), so the video was encoded with HandBrakeCLI. The original is in git history.
  • The user asked for H.264 fallback RF about 23; at RF 23 the file was 38.6 MB, bigger than the original, so I used RF 27 (26.6 MB). Only browsers without AV1 load it.
  • The AV1 file is 7.34 MB, under the 8 MB limit with little room: do not raise its bitrate.
  • The WebKit on this Mac decodes AV1, so the HEVC and H.264 fallbacks were proven by blocking the files above them, which makes the browser move to the next <source>. A real Safari without AV1 (older iPhone or Mac) should be tried on the preview.
  • Users with reduced motion still get home.png.

Review

Verdict: ALL CLEAR
Rounds: 3

Finding Severity Resolution
Video quality: re-encode teaser as AV1 at full size with an H.264 fallback warning fixed in d2e4ed7
H.264 fallback is 26.6 MB, over AC2's 8 MB, for every browser without AV1 decode critical fixed in 3289f46 (HEVC source for Apple devices; the user accepts H.264 as the last fallback for browsers with neither codec)

Re-verified: AC2 (browser, deploy preview) all three videos and the poster return 200 (AV1 7,339,372, HEVC 7,497,214, H.264 26,607,717 bytes); Chromium picks teaser-av1.mp4 and requests no other video; hvc1.1.6.L120.90 and av01.0.08M.08 match each file's codec record, audio mp4a.40.2; HEVC decodes in macOS AVFoundation at 1920x818 and its frame at 45 s is close to main's original. AC1 (cli) PASS · check.sh PASS

Evidence

AC1

pnpm dev (dev always resolves to localhost):
og:image content="http://localhost:4031/opengraph-image-4usi79.jpg?..."
pnpm start (production build), / and /music:
og:image content="https://clarksbowlingclub.com/opengraph-image-4usi79.jpg?opengraph-image.3xpohusaaca-p.jpg"
twitter:image content="https://clarksbowlingclub.com/twitter-image-4usi79.jpg?twitter-image.3xpohusaaca-p.jpg"

AC2

public/videos/teaser-av1.mp4  -> 7339372 bytes (original: 34314817)
public/videos/teaser-hevc.mp4 -> 7497214 bytes (hvc1, 1920x818, 775 kb/s, moov at start)
public/videos/teaser.mp4      -> 26607717 bytes (H.264, last resort)
Chromium, pnpm dev: poster="/videos/teaser-poster.jpg"
  currentSrc=.../teaser-av1.mp4 videoWidth=1920 readyState=4 currentTime=4.93 (playing)
WebKit on this Mac, nothing blocked:      currentSrc=.../teaser-av1.mp4  readyState=4
WebKit, teaser-av1.mp4 blocked:           currentSrc=.../teaser-hevc.mp4 videoWidth=1920 readyState=4
WebKit, av1 and hevc blocked:             currentSrc=.../teaser.mp4      videoWidth=1920 readyState=4
canPlayType('video/mp4; codecs="hvc1.1.6.L120.90, mp4a.40.2"') in WebKit = "probably"

Visual check: frames at 20 s and 45 s from the original and from the HEVC file, both 1920x818, side by side. Composition, colour and detail match; the HEVC is a touch softer on fast motion (the keyboard player's hands at 20 s). Earlier check of the AV1 file at 30 s: same, slightly softer in the dark crowd.

AC3

Playwright console messages, level error, home page on pnpm start: Total messages: 0 (Errors: 0, Warnings: 0)

@netlify

netlify Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for clarksbowlingclub ready!

Name Link
🔨 Latest commit 3289f46
🔍 Latest deploy log https://app.netlify.com/projects/clarksbowlingclub/deploys/6af644ce2898f14bddf394e5
😎 Deploy Preview https://deploy-preview-45--clarksbowlingclub.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@maxitect
maxitect marked this pull request as ready for review November 12, 2026 23:01
@maxitect
maxitect merged commit b7ba479 into main Nov 12, 2026
5 checks passed
@maxitect
maxitect deleted the feat/31-launch-checks-before-the-album-announcement branch November 12, 2026 23:01
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.

Launch checks before the album announcement

1 participant