Skip to content

feat(promo): add the promo film project and a test clock for UI recordings - #569

Merged
linroid merged 2 commits into
mainfrom
feat/promo-video
Oct 16, 2026
Merged

linroid merged 2 commits into
mainfrom
feat/promo-video

Conversation

@linroid

@linroid linroid commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Adds art/promo, the project that renders Ketch's promo film, and a small test clock in the app so the film can record the real UI deterministically.

The film

  • A 77 s film in English and Simplified Chinese, dark and light, rendered at 4K60 (1080p30 for quick checks) with Remotion. Every app screen is the real Compose UI, recorded by the snapshot harness (PromoSnapshots), not a mock-up.
  • Music is generated by a script from the same timing file the film uses, so retiming a scene keeps the music in sync.
  • Copy lives in one file per scene with both languages side by side; facts shown on screen (sizes, counts, release) come from src/facts.json, refreshed from the GitHub release by npm run facts.
  • Upload covers (16:9 and 3:4) and the thumbnail, which is the film's first frame and is embedded as cover art.
  • art/promo/README.md is the maintainer's guide: changing copy, updating numbers after a release, re-recording after UI changes, retiming a scene, adding a language or theme, and rendering.

Only sources are committed (about 1.9 MB). Recorded clips, stills, music and rendered films are generated and gitignored; npm run assets, npm run music and npm run film rebuild them.

App change: an injectable time source for composables

LocalTimeSource (next to LocalClock) gives composables the controller's TimeSource, and AppController now builds MessageCenter with its clock. The toast countdown, focus visibility and the AI connection test read it instead of TimeSource.Monotonic. Production behaviour is unchanged (every default is the wall clock); snapshot tests and the promo recorder can now run the whole UI on virtual time. AppControllerTest drives the controller in 1/60 s frames to cover the wiring.

Testing

  • ./gradlew :app:shared:jvmTest: 2,392 tests, 0 failures (snapshot scenarios skipped without -Psnapshots).
  • ./gradlew :app:desktop:compileKotlin and :app:shared:compileTestKotlinJvm.
  • npm run check in art/promo: types, formatting, music ties and film scans pass. facts reports that main has moved past the numbers the current recordings show (14 MCP tools, 6,000+ tests, release v0.9.1), and the accent beat still shows the four accents of v0.2.1; bringing the film up to the current app is a re-record, left for a follow-up.

…dings

The Remotion project in art/promo renders the promo film in English and
Simplified Chinese, dark and light, at 1080p30 or 4K60, from real app UI
recorded by the snapshot harness (PromoSnapshots) on virtual time.
# Conflicts:
#	AGENTS.md
#	app/shared/src/commonMain/kotlin/com/linroid/ketch/app/ui/settings/AiDiscoverySettings.kt
#	docs/development/testing.md
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T15:03:37.980795Z fab9696 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

 1 957 files  + 3   1 985 suites  +3   23m 52s ⏱️ +9s
13 168 tests +22  12 907 ✅ +8  261 💤 +14  0 ❌ ±0 
15 871 runs  +22  15 610 ✅ +8  261 💤 +14  0 ❌ ±0 

Results for commit fab9696. ± Comparison against base commit 21cc4ac.

@linroid
linroid merged commit 9693f43 into main Oct 16, 2026
15 checks passed
@linroid
linroid deleted the feat/promo-video branch October 16, 2026 15:08
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