From c105e95611f0df08c892465be30ddb80ee5370b7 Mon Sep 17 00:00:00 2001 From: EtienneLescot Date: Mon, 24 Aug 2026 13:11:21 +0200 Subject: [PATCH] fix(website): match the recreation generator's param name to ClipWaveform's amplitude rename waveBarHeightPct/waveBarOpacity re-evaluate expressions lifted verbatim out of V4Timeline.tsx, but declared their own Function parameter as the old name h. The component renamed h to amplitude, so the lifted body threw ReferenceError: amplitude is not defined and the docs build's check:recreation step failed on every run since. --- website/scripts/gen-recreation.mjs | 4 ++-- website/src/components/Recreation/generated.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/scripts/gen-recreation.mjs b/website/scripts/gen-recreation.mjs index f24e7ed9..d68b4ce4 100644 --- a/website/scripts/gen-recreation.mjs +++ b/website/scripts/gen-recreation.mjs @@ -188,11 +188,11 @@ const waveBarCount = new Function( `return ${lift(/const barCount = ([^;]+);/, "waveform barCount")};`, ); const waveBarHeightPct = new Function( - "h", + "amplitude", `return ${lift(/height: `\$\{([^}]+)\}%`/, "waveform bar height")};`, ); const waveBarOpacity = new Function( - "h", + "amplitude", `return ${lift(/opacity: ([^,\n]+),\n/, "waveform bar opacity")};`, ); diff --git a/website/src/components/Recreation/generated.ts b/website/src/components/Recreation/generated.ts index c5802e33..3e81c6b9 100644 --- a/website/src/components/Recreation/generated.ts +++ b/website/src/components/Recreation/generated.ts @@ -544,7 +544,7 @@ export const PANELS = { ], }, effects: { - title: "Video Effects", + title: "Composition", padding: "Padding", blurBg: "Blur BG", motionBlur: "Motion Blur", @@ -802,7 +802,7 @@ export const PROVENANCE: ProvenanceEntry[] = [ { shown: "Gradient", source: "src/i18n/locales/en/settings.json → background.gradient" }, { shown: "Upload Custom", source: "src/i18n/locales/en/settings.json → background.uploadCustom" }, { shown: "Background 1", source: "computed: settings.json background.imageLabel over the 18 wallpapers WALLPAPER_COUNT declares in src/lib/wallpaper.ts" }, - { shown: "Video Effects", source: "src/i18n/locales/en/settings.json → effects.title" }, + { shown: "Composition", source: "src/i18n/locales/en/settings.json → effects.title" }, { shown: "Padding", source: "src/i18n/locales/en/settings.json → effects.padding" }, { shown: "Blur BG", source: "src/i18n/locales/en/settings.json → effects.blurBg" }, { shown: "Motion Blur", source: "src/i18n/locales/en/settings.json → effects.motionBlur" },