docs(authentication): add the session reuse demo video

Merged
KA
2d ago
+8-0

What

The Authentication page opens with a 36-second demo video, placed after the intro paragraph. It shows the config's admin credentials and a setup test that saves the admin session. Then a headed run opens the customers page already signed in.

Why

The page explains session reuse in prose and code only. The video shows the whole flow, from config to a passing run, in one place.

How it works

  1. docs/images/authentication.mp4 is the recording re-encoded from 3840×2106 (97.7 MB) to 1920×1054 H.264, 60 fps, CRF 30, no audio, +faststart. That makes it 3.3 MB, close to personas.mp4 (3.6 MB) and vercel-previews.mp4 (3.0 MB).
  2. docs/authentication.mdx:8-20 imports the Video snippet and embeds the video like docs/filters.mdx does: muted loop playsInline controls, an aria-label describing what the video shows, and a one-line caption.

Issue

GTM-1065

Verified

Ran it locally: yes

  • pnpm check passes, including docs:check, which compiles every page as MDX.
  • I checked frames from the encoded file. The code in the editor and the dashboard text stay sharp at CRF 30.
  • The aria-label and caption match the video: credentials.admin, session.save('admin'), describe(..., { session: 'admin' }), and the final 15 passed, 12.01s.
  • No screenshot of the rendered page: the docs site has no local preview in this repo. The video itself is attached below.

https://github.com/user-attachments/assets/3f41e273-2312-4e78-82e1-3add96ef6140