Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

docs(website): correct the counts, the gate width and the claims that drifted

Etienne Lescot43d2c4ce04d5
diff --git a/website/docs/ai-editing.md b/website/docs/ai-editing.md
index 06dd4fd3b..a4cab587e 100644
--- a/website/docs/ai-editing.md
+++ b/website/docs/ai-editing.md
@@ -13,7 +13,7 @@ keywords:
# AI editing
-OpenScreen ships an optional agent that edits your project from a chat panel. It is **off until you connect a provider yourself**, and apart from the one-time Whisper model download, it is the only part of the app that talks to a network.
+OpenScreen ships an optional agent that edits your project from a chat panel. It is **off until you connect a provider yourself**. Apart from the one-time Whisper model download, the provider you connect is the only network OpenScreen uses — for this agent, and for [caption translation](./captions.md#translation).
:::tip
None of this is required. Recording, editing, transcription, captions, and export all work with no account and no provider, whether or not you ever open the chat panel — the only network any of them touches is the [one-time Whisper model download](./captions.md#transcribing) on your first transcription.
diff --git a/website/src/components/Editor/index.tsx b/website/src/components/Editor/index.tsx
index c77f33e2c..409644253 100644
--- a/website/src/components/Editor/index.tsx
+++ b/website/src/components/Editor/index.tsx
@@ -1,23 +1,23 @@
/**
- * The page's centre of gravity: six viewports of editor, and nothing above it.
+ * The page's centre of gravity: nine viewports of editor, and nothing above it.
*
* It sits immediately under the hero because it is the argument. Everything
* after it is either a claim the editor cannot make on its own (the recorder,
* the encoder, captions, the agent) or a property rather than a capability
* (the licence, the privacy, the platforms).
*
- * No visible heading, as the design has it. The six beats caption themselves —
- * "STYLE / Swap the background", and five more — so a heading above them was a
+ * No visible heading, as the design has it. The five beats caption themselves —
+ * "STYLE / Swap the background", and four more — so a heading above them was a
* lid on a box that labels itself, and the deck under it was the page
* explaining itself to the reader instead of showing them.
*
* Two things survive that removal, both invisible:
*
* The h2, now screen-reader-only. Without it the outline runs h1 straight to
- * the six h3 captions, which is a skipped level, and the section's
+ * the five h3 captions, which is a skipped level, and the section's
* aria-labelledby has nothing to point at.
*
- * The skip link, visible on focus. The band is six viewports tall; tabbing
+ * The skip link, visible on focus. The band is nine viewports tall; tabbing
* through it to reach the download link is a long way for someone who has
* already decided.
*/
@@ -36,7 +36,7 @@ export default function Editor() {
</a>
<Heading as="h2" id="editor-title" className={styles.title}>
- Six things you will actually do
+ Five things you will actually do
</Heading>
</div>
diff --git a/website/src/components/Recreation/ART-DIRECTION.md b/website/src/components/Recreation/ART-DIRECTION.md
index 1c6ea3611..4813fe5ca 100644
--- a/website/src/components/Recreation/ART-DIRECTION.md
+++ b/website/src/components/Recreation/ART-DIRECTION.md
@@ -1,6 +1,6 @@
# The recreation — art direction
-Six settings in two acts, told by the scroll. This replaces an earlier build
+Five settings in two acts, told by the scroll. This replaces an earlier build
that drew the whole editor at 1:1 in a 1920px scene and flew a camera over it;
this note records what was wrong with that and what the rules are now, so the
next pass does not rediscover either.
@@ -45,9 +45,14 @@ media element, no second timebase, nothing that can drift.
and no palette — which looks like breathing room on paper and like the left half
of the screen going empty on screen. Two separate passes shipped that bug.
-**The hand is a child of the control it operates.** No pointer path in
-percentages of the stage, because such a path has to be re-tuned every time a
-panel moves and is otherwise silently almost-right.
+**The hand is aimed at the control it operates, never at a coordinate.** Both
+pointers name a target — `data-t` for the reader's, `data-shot` for the recorded
+one — and the driver measures it once per resize, then re-expresses it as a
+percentage of the stage each frame. The percentages are the output, not the
+score: a path authored in them has to be re-tuned every time a panel moves and
+is otherwise silently almost-right. The recorded pointer still carries authored
+coordinates for the moments its tip is over nothing nameable — open canvas, the
+travel between two controls.
## What is real
@@ -58,20 +63,33 @@ panel moves and is otherwise silently almost-right.
way that looks entirely plausible.
- **The padding slider** moves the composite through `PreviewCanvas.tsx`'s own
`clamp(1 - (padding/100) * 0.4, 0.4, 1)`, evaluated per frame.
-- **The wallpapers** are the 18 the app ships, and the one selected first is the
- one `STAGE.wallpaper` names.
-- **The pills** are the document's five: three zoom regions with the scales
- `effectiveZoomScale` gives them, two trims the agent made. The annotation is
- the one drawn object — the document holds none, which is exactly why that lane
- still shows its "Press A" hint.
-- **The transcript** is 103 words and 3 silences from the app's own
- `buildClipSection`, and the two that strike are the two the document removes.
+- **The wallpapers** are the app's own — twelve of the eighteen it ships, in the
+ design's order — and the first one the take picks is the one `STAGE.wallpaper`
+ names.
+- **The pills' scales and labels** are the document's: `effectiveZoomScale` for
+ the zooms, `toFixed(2)` and all, which is how a hand-typed "1.8×" gives itself
+ away. Their times are not. The document's own edit is two trims at the two ends
+ of a forty-second take — truthful, and almost nothing to look at — so the rail
+ stages nine objects over twenty-six seconds: three zooms, a speed ramp and five
+ trims. The annotation is the one drawn object; the document holds none, which
+ is exactly why that lane still shows its "Press A" hint.
+- **The transcript** is staged for the same reason: 76 tokens against the
+ document's 106, and five of them strike — the three silences and the two
+ filler words. The document's own transcript, as `buildClipSection` builds it,
+ is in `generated.ts`; the pane does not read it.
- **The picture in the window** is a render of the page the recording was of.
-- **There is no webcam bubble** because `STAGE.webcam` is `null`: the camera
- track is off in this project.
+- **The webcam bubble** is staged too, and is the one thing on screen the
+ document contradicts rather than merely omits: `cameraTrack.visible` is false,
+ so the bubble plays a clip of its own.
`generated.ts` carries all of it and is emitted by `scripts/gen-recreation.mjs`.
-Never edit it by hand; `--check` fails the build when it drifts.
+Never edit it by hand — run the generator and let the formatter have it.
+
+`--check` cannot be trusted as it stands: it byte-compares its own output with
+the committed file, and the committed file has been through biome (lint-staged
+formats it on the way in), so it reports drift on a file nobody touched. It is
+not wired into CI either. Either the generator should emit what biome would
+leave, or the formatter should be told to skip a generated file.
## Verifying
diff --git a/website/src/components/Recreation/driver.ts b/website/src/components/Recreation/driver.ts
index c5ff86797..1be643f2a 100644
--- a/website/src/components/Recreation/driver.ts
+++ b/website/src/components/Recreation/driver.ts
@@ -503,9 +503,10 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {
const camSrc = "/video/webcam.mp4";
// Set at attach, not in the markup and not in primeCam: in the markup every
- // phone fetches it for a bubble it never draws, and in primeCam it would
+ // reader who never reaches the band pays for it, and in primeCam it would
// race the clip it exists to stand in for. Here it has the whole approach to
- // the band to arrive, and the driver only ever attaches above 901px.
+ // the band to arrive — and on a phone, where the scene does run (the gate is
+ // 360px), it is still only fetched by a reader who scrolls into it.
cam.poster = "/img/walkthrough/webcam-poster.jpg";
const primeCam = () => {
if (cam.getAttribute("src")) return;
@@ -539,8 +540,8 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {
Warmed here rather than in the markup: this runs on the same in-band gate
that primes the clip, so it costs nothing until the reader is actually
- arriving, and nothing at all below 901px, where the driver never attaches
- and the strip is never drawn. */
+ arriving, and nothing at all below 360px, where the driver never attaches
+ and the still fallback stands in. */
let stripPrimed = false;
const primeStrip = () => {
if (stripPrimed) return;
diff --git a/website/src/components/Recreation/index.tsx b/website/src/components/Recreation/index.tsx
index e9f451743..308b3c0d0 100644
--- a/website/src/components/Recreation/index.tsx
+++ b/website/src/components/Recreation/index.tsx
@@ -257,9 +257,10 @@ export default function Recreation() {
box never intersects anything, so all twelve fired at
once when the beat arrived and the strip painted blank
for the first half second of it. Loading them eagerly
- fixes that and costs every phone 48 KB for a strip no
- phone ever sees, because the scene needs 901px. The
- driver only ever runs above that width. */}
+ fixes that and bills 48 KB to everyone who opens the
+ page, including the readers who never scroll this far.
+ Phones are not an exception to pay it for: the scene
+ runs from 360px up, and they reach this strip too. */}
<img
src={`/img/walkthrough/wp-${String(n).padStart(2, "0")}.jpg`}
alt=""
@@ -606,8 +607,9 @@ export default function Recreation() {
src withheld until the reader is inside the band mean this
bordered, shadowed box paints EMPTY until the clip's first frame
decodes — just over a second on a 1.5 Mbps link. A poster in the
- markup fixes that and bills every phone 6.9 KB for a bubble no
- phone draws, because the scene needs 901px. */}
+ markup fixes that and bills 6.9 KB to every reader on every load,
+ phones included — the scene runs from 360px up — for a bubble
+ nobody sees before the band. */}
<video
ref={cam}
className={styles.webcamVideo}