Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,4 @@ outside the verification environment's scope. Neither command publishes the site

Refresh the README's light and dark System overview captures with `just landing-captures` (real seeded server and local Chrome). To capture an existing instance, set `FANOUT_LANDING_BASE_URL` to its URL and `FANOUT_LANDING_SESSION_COOKIE` to a `name=value` session cookie before running the same command; no server starts and no data is seeded.

To record chat and dashboard clips, set `FANOUT_LANDING_RECORDINGS=1` and the external-instance variables above, then run `bun run e2e e2e/specs/app/landing-recordings.spec.ts --project=app-1440-light --project=app-1440-dark` from `ui/host`. Follow [landing-recordings.md](../site/scripts/landing-recordings.md) to encode and upload them.
The landing page's chat and dashboard clips are produced outside this repository; [landing-clips.md](../site/scripts/landing-clips.md) covers the assets they need and how to publish them.
91 changes: 0 additions & 91 deletions site/scripts/clip-timeline.mjs

This file was deleted.

101 changes: 0 additions & 101 deletions site/scripts/clip-timeline.test.mjs

This file was deleted.

62 changes: 0 additions & 62 deletions site/scripts/encode-clips.mjs

This file was deleted.

4 changes: 0 additions & 4 deletions site/scripts/encode-clips.sh

This file was deleted.

37 changes: 37 additions & 0 deletions site/scripts/landing-clips.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Landing clips

The landing page's chat and dashboard slots play short clips of the real
Fanout UI. They are produced outside this repository from screen captures of a
Fanout instance with chat enabled; answers, panels and numbers are as recorded.

Expected assets, each at 16:10:

- `chat-{light,dark}.{webm,mp4,png}`
- `dashboard-{light,dark}.{webm,mp4,png}`

Keep each video at about 4 MB. The PNG poster is the clip's final frame.

Videos are never committed. Published videos live in the Cloudflare R2 bucket
`fanout` under `videos/`, served at `https://assets.fanout.run/videos/`. The
bucket holds public assets only, in one folder per file type. PNG posters stay
in `site/src/assets/landing/` so Astro can optimize them.

Each slot stays poster-only until both themes have both video formats in
`site/src/data/landing-media.json`. An absent manifest also shows posters. The
component follows the site theme, pauses off screen and in hidden tabs, and
shows only the poster when reduced motion is enabled. Its `spedUp` prop marks
clips with shortened waits in the caption.

Copy the reviewed posters into `site/src/assets/landing/`, then upload the
videos from the repository root with Wrangler logged in to the account that
owns `fanout`:

```sh
bash site/scripts/upload-clips.sh /path/to/clips
```

The uploader writes content-addressed immutable keys, skips unchanged clips
already listed in the manifest, and preserves URLs for clips absent from the
input directory. It never deletes old objects because published pages may still
reference them. After uploading, commit `site/src/data/landing-media.json` and
the PNG posters.
Loading
Loading