Skip to content

Homepage: a sentence to make one like each film and style; Get started lists the ways in - #232

Merged
ZLHad merged 15 commits into
mainfrom
claude/site-sample-wall
Nov 22, 2026
Merged

ZLHad merged 15 commits into
mainfrom
claude/site-sample-wall

Conversation

@ZLHad

@ZLHad ZLHad commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Part d of the 首片上手 batch. Stacked on #231 (the mirrors), which is stacked on #228: this PR's own diff is docs/site/index.html, tools/readme.py and its change note.

The homepage: every sample film and style now carries a sentence that makes one like it, and "Get started" lists the four ways in, as the README does.

Why

The step a newcomer gets stuck on is "what do I say". The homepage shows the films and the 43 styles, but none of them can be taken as a starting point.

What changes

  • Showcase. Each film card has a small pill at its top-left, opposite the play button: "Make one like this · copy / 照这个做一支 · 复制这句话".
    • It shows on hover or keyboard focus, and always on a touch screen. While hidden it cannot be clicked. It overlays the card, so the caption keeps its height and nothing shifts.
    • It copies a quick request for a film of the same kind on a new subject, for example "Quick draft: a 25-second vertical science short on why the sky is blue." The launch short's sentence leaves a blank to fill: "[paste its link here]".
    • A line at the bottom says what was copied, and clears when a style's lightbox opens. Without clipboard access, that line shows the sentence to copy by hand. Pressing the pill does not start the film.
  • Styles. A style's lightbox gets a copyable sentence under the sample, the same pattern for every style, for example: "快速出一版 20 秒的横屏短片,用「水墨」风格(styles/ink-wash),只用画面和文字、不配旁白,讲为什么天空是蓝的。"
    • "Quick" and "no narration" keep a first film off the local voice's 2.6 GB download.
    • The sentence asks for vertical in the 19 styles whose tokens.json says aspect: both, and landscape for the rest. The list is STYLE_VERTICAL, and tools/readme.py check holds it to the styles.
    • The bin/vh new promo my-film --style … line stays under the sentence, smaller.
  • Get started, step 2: "Pick a way in", in the READMEs' order, each way with its own commands:
  • tools/readme.py check: every command the page offers to copy must be one a README gives on the same commit, whole or after cd ~/OpenVideoHarness && . Tested: the old plugin line put back fails, naming it.
  • Reduced motion: the pill and the toast do not fade.
  • The paused style-showcase branch builds a separate styles page around one shared 5 s clock. I did not reuse it: the homepage already has the wall and the lightbox, and the sentence fits there.

How it was checked

  • python3 tools/readme.py check passes.
  • In Chrome through Playwright, against a local static server:
    • Keyboard: Tab from the top reaches the first pill after 45 stops, right after the "What Claude sees" toggle. It shows (opacity 1) with a 2 px cyan focus ring. Enter copies and does not play the film.
    • Touch (390×844, touch, hover: none): all four pills show; a tap copies and does not play the film.
    • Toast: shown after a copy, gone when a style's lightbox opens right after.
    • Reduced motion: the pill's transition is 0 s.
    • Layout shift while the showcase and the style wall scroll in, their videos start, and the pointer crosses the four cards: 0 (it was 0.007 with the pill inside the caption).
    • No horizontal overflow at 1440 (en, zh) or 390 (zh).
    • I looked at each screenshot: the start section at 1440 en, the showcase with keyboard focus, the phone showcase, a lightbox after a copy.
  • tools/ci.sh --committed with shellcheck and pyflakes (through uv), at f04d1bb: all passed; one check skipped (frames on a HyperFrames composition). The first run at 204c794 failed eight bin/vh versions checks because this Mac's disk dipped under 5 GB free (versions keeps a replaced film only with 5 GB free); a second run at that commit passed.

Not looked at

  • Safari and Firefox.
  • A real touch device (Chrome's touch emulation at phone width only).
  • On the phone, the vertical film's caption still sits over the film's own burned-in title, as before this PR; the pill no longer adds to it.

Review round 1 (all findings addressed in this PR)

  1. The plugin commands are out of the page and the change note; the "any folder" row gives the READMEs' npx skills add. The plugin commands went onto the homepage in The workbench as a plugin for Claude Code and Codex; Studio refreshes stale skill stubs #230 itself, beside its README change. The new readme.py check would fail on a page command no README has.
  2. Each row carries its own commands in the READMEs' order. The Studio row says and gives bin/vh studio; Terminal gives codex then claude. There is no stray first command under the rows.
  3. openLightbox clears the toast. Checked: copy, then open a style at once, and no toast.
  4. The film sentences name the kind of film, not showcase/NN, and the launch short's blank reads [paste its link here] ([在这里贴上它的链接]).
  5. Keyboard and touch checked as above; the pill is now hidden from the pointer while invisible, so a click on the bare corner does nothing.
  • Notes: reduced motion and layout shift checked as above. On the phone, the pill moved out of the caption block, so the block is no longer taller.

ZLHad added 14 commits November 22, 2026 03:33
…ce's first download

Measured on a clean Mac: 71 of the install's 90 s and 305 MB were the reference repos, which a first film does not use;
the install ended with a 60-line doctor report that said ready even when uv or a render browser was missing (Linux);
the local voice's first use downloaded about 2.5 GB without a word.

- install.sh fetches the reference repos only with --refs; references/fetch.sh <dir> says what it fetches and how big
  first (a size table in the script, checked by CI), and an unknown name exits 2.
- bin/vh doctor --first: ready for a first film or not, what is missing and how to get it, how a voice comes here;
  the installer ends with it, the skills step says one line, the example sentence is the README's silent one.
- bin/vh tts: before the local voice's first download, one line with the size, the time it may take and the way
  around it (--provider edge); uv's download lines shown, the model's progress every 10 s. The default provider
  is set in tts.py alone (DEFAULT_PROVIDER).
- README, homepage: the sizes measured.
… checks run the behaviour

- install.sh asks for python3 up front; bin/vh doctor --first with no python3 is not ready (exit 1).
- doctor --first: a Chinese locale with no Chinese font is not ready; on Linux the render browser's missing system
  libraries are not ready, and libraries it cannot ask about are 'not checked' (exit 3, the installer then does not say
  ready); an outdated agent is told to update; Python 3 in the ready line; uv says what it is for.
- tools/audio/firstuse.py: the local voice's and the local Whisper's first downloads in one table (sizes measured:
  0.8 + 1.8 GB, 2.0 + 1.6 GB), the line before them, the model's progress written to the real stdout so a
  redirect_stdout around the loader cannot swallow it. bin/vh's first_use helper is used by tts, voices audition and
  pace; tts checks its script first. doctor and tts read the sizes from there; edge 'needs only a small package'.
- references: one repo by name that does not come exits 1; a full fetch with no network is one line; 'under 1 MB';
  doctor's references line is fine by default; setup says its size; four docs say the one-name fetch.
- The example sentence follows the locale; the skill says to read the installer's last lines.
- README sizes: no double count. CI: fetch.sh through a stand-in git, doctor --first's states, the bare doctor, the
  first-download lines through a stand-in uv, the progress inside a redirect.
…ts now writes the sample and fetches nothing)
…al npm registry does not answer, and every later download follows

- tools/mirrors.txt: each kind of download, its variable, the official source, the mainland-China mirror, who runs it.
- This machine's settings in $XDG_CONFIG_HOME/ovh/settings.json (tools/settings.py, bin/vh settings): mirror cn|off|auto.
- bin/vh exports the mirror variables for everything it runs when the mirror is cn (a variable already set wins);
  HyperFrames' Chrome is fetched from the mirror by bin/vh new, install.sh and settings chrome, as HyperFrames has no
  setting for it.
- install.sh tries registry.npmjs.org for 5 s; only when it does not answer and the mirror does, it keeps cn and says so;
  --mirror cn|off forces it either way. doctor says which sources are in use.
- README: the China network line; homepage and overview: 74 commands.
… reads it); ci: bin/vh exec's into settings.py, known
…rge, keep the other keys, replace whole); save() goes through it

Studio's settings panel and a terminal writing at once both land: the CI check runs two writers of 60 updates each
(all 120 land; without the lock, 64 did).
…rror writes, without the saying (Studio calls it in-process)
…lier bin/vh exported), a source of the person's own stays, every Chrome fetch through the mirror, the probe tries the right hosts twice

settings.py: env_changes() is the one reader (bin/vh asks it when the file names a mirror or one was inherited), an
inherited OVH_MIRROR with the setting not cn takes out exactly the values bin/vh exported; npm's registry in an .npmrc and
uv's index or Python mirror in a uv.toml or pyproject.toml are left alone and said; a broken file kept as settings.json.bad,
a newer version never written over, a relative XDG_CONFIG_HOME ignored, an unwritable folder one line.
install.sh: npmjs through npm ping, Hugging Face and Google's storage through curl, all at once, twice each; the reason says
what happened; the Chrome step cannot stop the install; -h prints the whole header.
bin/vh: render, frames, textcheck and hf fetch HyperFrames' Chrome through the mirror with cn, with the @puppeteer/browsers
HyperFrames' node_modules holds; settings chrome [project]; the hints name it. mirrors.txt says what is checked and what is
trusted to the mirror, and what is not covered; README and the change note too.
…every start, so a file it names reaches every CI group
…t started lists the four ways in

- Showcase: a film card the pointer is over (the keyboard is in; always on a touch screen) offers a sentence that asks
  for a quick film made the way that one was, on a new subject; copied, the page says what it copied.
- Styles: a style's lightbox has a copyable sentence for a 20-second quick short in that style, pictures and on-screen
  text without narration, vertical where the style comes vertical (STYLE_VERTICAL, held to tokens.json by readme.py).
- Get started, step 2: Studio, the terminal, the agents' desktop apps, any folder (the skill or the plugin).
…EADMEs give them (no plugin lines until #230); the pill at the card's top-left; sentences by kind of film; the toast cleared by a lightbox

readme.py check: every command the page offers to copy is one a README gives on the same commit. The film's pill sits over the
card's top-left, opposite the play button: on hover or keyboard focus (not clickable while hidden), always on a phone; the
caption keeps its height. Reduced motion: no fade for the pill and the toast. The launch short's sentence leaves a blank.
@ZLHad
ZLHad force-pushed the claude/site-sample-wall branch from 204c794 to f04d1bb Compare November 21, 2026 22:58
Base automatically changed from claude/first-run-mirrors to main November 22, 2026 05:44
@ZLHad
ZLHad marked this pull request as ready for review November 22, 2026 05:45
@ZLHad
ZLHad enabled auto-merge (squash) November 22, 2026 05:45
@ZLHad
ZLHad merged commit 5ad395b into main Nov 22, 2026
7 of 8 checks passed
@ZLHad
ZLHad deleted the claude/site-sample-wall branch November 22, 2026 06:37
ZLHad added a commit that referenced this pull request Nov 22, 2026
's four ways in, with the plugin commands folded under its skill row
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