Skip to content

docs: play the full showcase cut in the README instead of a GIF - #398

Merged
fclairamb merged 1 commit into
mainfrom
batch/2026-09-17
Sep 18, 2026
Merged

fclairamb merged 1 commit into
mainfrom
batch/2026-09-17

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

The README showed a 2.35 MB GIF built from a second, stripped master: no docker run segment, no camera move. Those are exactly the beats a GIF cannot afford, a scrolling log changes every pixel of every frame (~55 KB per frame at 800 px / 6 fps), so the README showed less than the Tour page did.

GitHub plays a real video when the source is an attachment on its own CDN. The README now embeds the H.264 cut that way, the same 37.9s everything else derives from. Verified anonymously: GitHub rewrites the user-attachments URL server-side into a signed private-user-images URL and emits a real <video controls>, which serves 200 video/mp4 2052260 bytes with no credentials.

Drops the GIF and the duplicated res/screenshots mp4, 4.3 MB out of every clone, and with them the whole GIF ladder in postprocess.ts and the second master that fed it.

The one manual step

The upload is the one thing make showcase cannot do. It now prints a reminder at the end of every run, and web/dash0/showcase/README.md documents the four steps. The trap worth knowing: an attachment that is uploaded but never posted stays private to the uploader and 404s for everyone else. Issue #396 is the closed holding issue that anchors the current one, deleting it breaks the README video.

What this costs

  • make showcase can no longer keep the README asset fresh. That was an explicit goal of this pipeline, so the reminder and the docs are the mitigation, not a fix.
  • The video renders only on github.com. Docker Hub, pkg.go.dev and IDE previews see a bare URL. The screenshot table still works everywhere, and the caption links the Tour page as a fallback.

Verification

  • make showcase-cut runs clean and re-encodes byte-identically, zero asset churn
  • bunx eslint showcase/postprocess.ts green
  • 61 showcase unit tests pass

🤖 Generated with Claude Code

GitHub only renders a GIF inline from a path in the repo, so the README
showed a 2.35 MB GIF built from a second, stripped master: no docker run
segment, no camera move. Both are the beats a GIF cannot afford (a
scrolling log changes every pixel of every frame, ~55 KB per frame at 800
px / 6 fps), so the README showed less than the Tour page did.

GitHub does play a real video when the source is an attachment on its own
CDN. The README now embeds the H.264 cut that way, uploaded to issue #396,
which is the same 37.9s everything else derives from.

Drops the GIF and the duplicated res/screenshots mp4, 4.3 MB out of every
clone, and with them the whole GIF ladder in postprocess.ts and the second
master that fed it.

The upload is the one step make showcase cannot do. It prints a reminder
at the end of every run, and web/dash0/showcase/README.md documents the
four steps. The trap worth knowing: an attachment that is uploaded but
never posted stays private to the uploader and 404s for everyone else.

Co-Authored-By: Claude Opus 5 <[email protected]>
@fclairamb
fclairamb merged commit 7b9e01b into main Sep 18, 2026
19 checks passed
@fclairamb
fclairamb deleted the batch/2026-09-17 branch September 18, 2026 12:19
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