Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(studio): gsap panel bug bash — clamping, overlay, click cycling, visibility toggle (#1126)
Miguel Ángel12842138867b
diff --git a/.fallowrc.jsonc b/.fallowrc.jsoncindex 6d92412e6d..eafdcc7087 100644--- a/.fallowrc.jsonc+++ b/.fallowrc.jsonc@@ -79,6 +79,12 @@"refreshDomEditSelection",],},+ // domEditing barrel: re-exports consumed throughout the studio but+ // fallow's static analyzer can't trace re-exports through barrel files.+ {+ "file": "packages/studio/src/components/editor/domEditing.ts",+ "exports": ["*"],+ },// Exported for render.test.ts (exported-for-tests pattern).{"file": "packages/cli/src/commands/render.ts",diff --git a/packages/core/src/lint/rules/gsap.test.ts b/packages/core/src/lint/rules/gsap.test.tsindex 167fc261b5..cae448ead9 100644--- a/packages/core/src/lint/rules/gsap.test.ts+++ b/packages/core/src/lint/rules/gsap.test.ts@@ -865,4 +865,57 @@ describe("GSAP rules", () => {const finding = result.findings.find((f) => f.code === "gsap_from_opacity_noop");expect(finding).toBeUndefined();});++ it("warns when gsap.timeline is created but not registered in __timelines", async () => {+ const html = `+<html><body>+ <div data-composition-id="root" data-width="1920" data-height="1080">+ <div id="box">Hello</div>+ </div>+ <script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>+ <script>+ const tl = gsap.timeline({ paused: true });+ tl.to("#box", { opacity: 0.5, duration: 2 });+ </script>+</body></html>`;+ const result = await lintHyperframeHtml(html);+ const finding = result.findings.find((f) => f.code === "gsap_timeline_not_registered");+ expect(finding).toBeDefined();+ expect(finding?.severity).toBe("warning");+ });++ it("does NOT warn when timeline is registered in __timelines", async () => {+ const html = `+<html><body>+ <div data-composition-id="root" data-width="1920" data-height="1080">+ <div id="box">Hello</div>+ </div>+ <script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>+ <script>+ window.__timelines = window.__timelines || {};+ const tl = gsap.timeline({ paused: true });+ tl.to("#box", { opacity: 0.5, duration: 2 });+ window.__timelines["root"] = tl;+ </script>+</body></html>`;+ const result = await lintHyperframeHtml(html);+ const finding = result.findings.find((f) => f.code === "gsap_timeline_not_registered");+ expect(finding).toBeUndefined();+ });++ it("does NOT warn for sub-compositions (template-based)", async () => {+ const html = `+<template>+ <div data-composition-id="sub" data-width="1920" data-height="1080">+ <div id="box">Hello</div>+ </div>+ <script>+ const tl = gsap.timeline({ paused: true });+ tl.to("#box", { opacity: 0.5, duration: 2 });+ </script>+</template>`;+ const result = await lintHyperframeHtml(html);+ const finding = result.findings.find((f) => f.code === "gsap_timeline_not_registered");+ expect(finding).toBeUndefined();+ });});diff --git a/packages/core/src/lint/rules/gsap.ts b/packages/core/src/lint/rules/gsap.tsindex 5938cb4a97..43745f6195 100644--- a/packages/core/src/lint/rules/gsap.ts+++ b/packages/core/src/lint/rules/gsap.ts@@ -785,6 +785,33 @@ export const gsapRules: LintRule<LintContext>[] = [return findings;},+ // gsap_timeline_not_registered+ ({ scripts, rawSource, options }) => {+ const findings: HyperframeLintFinding[] = [];+ const canInheritFromHost =+ options.isSubComposition || rawSource.trimStart().toLowerCase().startsWith("<template");++ for (const script of scripts) {+ const content = script.content;+ if (!/gsap\.timeline/.test(content)) continue;+ const hasRegistration = WINDOW_TIMELINE_ASSIGN_PATTERN.test(content);+ if (hasRegistration || canInheritFromHost) continue;+ findings.push({+ code: "gsap_timeline_not_registered",+ severity: "warning",+ message:+ "GSAP timeline is created but never registered in window.__timelines. " ++ "The runtime discovers timelines from this registry — without registration, " ++ "animations will not play during preview or render.",+ fixHint:+ "Add `window.__timelines = window.__timelines || {};` and " ++ '`window.__timelines["root"] = tl;` after creating the timeline (use the ' ++ "composition's data-composition-id as the key).",+ });+ }+ return findings;+ },+// gsap_from_opacity_noop — CSS opacity:0 + gsap.from({opacity:0}) = invisible foreverasync ({ styles, scripts, tags }) => {const findings: HyperframeLintFinding[] = [];diff --git a/packages/core/src/runtime/init.test.ts b/packages/core/src/runtime/init.test.tsindex 12d712a19b..c1fa09badd 100644--- a/packages/core/src/runtime/init.test.ts+++ b/packages/core/src/runtime/init.test.ts@@ -692,4 +692,23 @@ describe("initSandboxRuntimeModular", () => {expect(window.__playerReady).toBe(true);expect(window.__renderReady).toBe(true);});++ it("seeks captured timeline to currentTime on initial bind", () => {+ const seekTimes: number[] = [];+ const tl = createMockTimeline(5);+ const origTotalTime = tl.totalTime;+ tl.totalTime = ((time: number, ...rest: unknown[]) => {+ seekTimes.push(time);+ (origTotalTime as Function).call(tl, time, ...rest);+ }) as RuntimeTimelineLike["totalTime"];++ document.body.innerHTML = `+ <div data-composition-id="root" data-duration="5" data-width="1920" data-height="1080"></div>+ `;+ window.__timelines = { root: tl };+ initSandboxRuntimeModular();++ expect(seekTimes.length).toBeGreaterThan(0);+ expect(seekTimes[0]).toBe(0);+ });});diff --git a/packages/core/src/runtime/init.ts b/packages/core/src/runtime/init.tsindex 64c0464279..5c46f7a9c6 100644--- a/packages/core/src/runtime/init.ts+++ b/packages/core/src/runtime/init.ts@@ -948,6 +948,10 @@ export function initSandboxRuntimeModular(): void {// clock not yet initialized — duration will be set during TransportClock setup}state.capturedTimeline.pause();+ const seekTime = Math.max(0, state.currentTime || 0);+ if (typeof state.capturedTimeline.totalTime === "function") {+ state.capturedTimeline.totalTime(seekTime, false);+ }}if (resolution.diagnostics) {postRuntimeMessage({diff --git a/packages/core/src/studio-api/routes/files.test.ts b/packages/core/src/studio-api/routes/files.test.tsindex a45a988ff8..6279d98521 100644--- a/packages/core/src/studio-api/routes/files.test.ts+++ b/packages/core/src/studio-api/routes/files.test.ts@@ -327,6 +327,34 @@ const tl = gsap.timeline();expect(anim.properties.opacity).toBe(1);});+ it("add mutation returns 400 when fromProperties provided for non-fromTo method", async () => {+ const projectDir = createProjectDir();+ const EMPTY_COMP = `<!DOCTYPE html><html><body><div id="el"></div><script data-hyperframes-gsap>+const tl = gsap.timeline();+</script></body></html>`;+ writeHtml(projectDir, "empty.html", EMPTY_COMP);+ const app = new Hono();+ registerFileRoutes(app, createAdapter(projectDir));++ const res = await app.request("http://localhost/projects/demo/gsap-mutations/empty.html", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ type: "add",+ targetSelector: "#el",+ method: "to",+ position: 0,+ duration: 0.5,+ ease: "power2.out",+ properties: { opacity: 1 },+ fromProperties: { opacity: 0 },+ }),+ });+ expect(res.status).toBe(400);+ const body = (await res.json()) as { error: string };+ expect(body.error).toContain("fromProperties");+ });+it("edits a template-wrapped tween in place, preserving gsap.set and the IIFE", async () => {const projectDir = createProjectDir();writeComp(projectDir, "scene.html", TEMPLATE_COMP);diff --git a/packages/core/src/studio-api/routes/files.ts b/packages/core/src/studio-api/routes/files.tsindex 4e32155c60..596d79ba84 100644--- a/packages/core/src/studio-api/routes/files.ts+++ b/packages/core/src/studio-api/routes/files.ts@@ -17,6 +17,7 @@ import { isAudioFile } from "../helpers/mime.js";import { generateWaveformCache } from "../helpers/waveform.js";import { validateUploadedMediaBuffer } from "../helpers/mediaValidation.js";import { isSafePath } from "../helpers/safePath.js";+import type { GsapAnimation } from "../../parsers/gsapSerialize.js";import {removeElementFromHtml,patchElementInHtml,@@ -600,26 +601,44 @@ export function registerFileRoutes(api: Hono, adapter: StudioApiAdapter): void {removeAnimationFromScript,} = await loadGsapParser();+ function requireAnimation(+ scriptText: string,+ animationId: string,+ ): { anim: GsapAnimation } | { err: Response } {+ const parsed = parseGsapScript(scriptText);+ const anim = parsed.animations.find((a) => a.id === animationId);+ if (!anim) return { err: c.json({ error: "animation not found" }, 404) };+ return { anim };+ }++ function requireFromToAnimation(+ scriptText: string,+ animationId: string,+ ): { anim: GsapAnimation } | { err: Response } {+ const result = requireAnimation(scriptText, animationId);+ if ("err" in result) return result;+ if (result.anim.method !== "fromTo")+ return { err: c.json({ error: "animation is not a fromTo" }, 400) };+ return result;+ }+let newScript: string;// fallow-ignore-next-line complexityswitch (body.type) {case "update-property": {- const parsed = parseGsapScript(block.scriptText);- const anim = parsed.animations.find((a) => a.id === body.animationId);- if (!anim) return c.json({ error: "animation not found" }, 404);+ const r = requireAnimation(block.scriptText, body.animationId);+ if ("err" in r) return r.err;newScript = updateAnimationInScript(block.scriptText, body.animationId, {- properties: { ...anim.properties, [body.property]: body.value },+ properties: { ...r.anim.properties, [body.property]: body.value },});break;}case "update-from-property": {- const parsed = parseGsapScript(block.scriptText);- const anim = parsed.animations.find((a) => a.id === body.animationId);- if (!anim) return c.json({ error: "animation not found" }, 404);- if (anim.method !== "fromTo") return c.json({ error: "animation is not a fromTo" }, 400);+ const r = requireFromToAnimation(block.scriptText, body.animationId);+ if ("err" in r) return r.err;newScript = updateAnimationInScript(block.scriptText, body.animationId, {- fromProperties: { ...(anim.fromProperties ?? {}), [body.property]: body.value },+ fromProperties: { ...(r.anim.fromProperties ?? {}), [body.property]: body.value },});break;}@@ -628,6 +647,9 @@ export function registerFileRoutes(api: Hono, adapter: StudioApiAdapter): void {break;}case "add": {+ if (body.fromProperties && body.method !== "fromTo") {+ return c.json({ error: "fromProperties is only valid for method=fromTo" }, 400);+ }const result = addAnimationToScript(block.scriptText, {targetSelector: body.targetSelector,method: body.method,@@ -645,29 +667,25 @@ export function registerFileRoutes(api: Hono, adapter: StudioApiAdapter): void {break;}case "add-property": {- const parsed = parseGsapScript(block.scriptText);- const anim = parsed.animations.find((a) => a.id === body.animationId);- if (!anim) return c.json({ error: "animation not found" }, 404);+ const r = requireAnimation(block.scriptText, body.animationId);+ if ("err" in r) return r.err;newScript = updateAnimationInScript(block.scriptText, body.animationId, {- properties: { ...anim.properties, [body.property]: body.defaultValue },+ properties: { ...r.anim.properties, [body.property]: body.defaultValue },});break;}case "add-from-property": {- const parsed = parseGsapScript(block.scriptText);- const anim = parsed.animations.find((a) => a.id === body.animationId);- if (!anim) return c.json({ error: "animation not found" }, 404);- if (anim.method !== "fromTo") return c.json({ error: "animation is not a fromTo" }, 400);+ const r = requireFromToAnimation(block.scriptText, body.animationId);+ if ("err" in r) return r.err;newScript = updateAnimationInScript(block.scriptText, body.animationId, {- fromProperties: { ...(anim.fromProperties ?? {}), [body.property]: body.defaultValue },+ fromProperties: { ...(r.anim.fromProperties ?? {}), [body.property]: body.defaultValue },});break;}case "remove-property": {- const parsed = parseGsapScript(block.scriptText);- const anim = parsed.animations.find((a) => a.id === body.animationId);- if (!anim) return c.json({ error: "animation not found" }, 404);- const filtered = { ...anim.properties };+ const r = requireAnimation(block.scriptText, body.animationId);+ if ("err" in r) return r.err;+ const filtered = { ...r.anim.properties };delete filtered[body.property];newScript = updateAnimationInScript(block.scriptText, body.animationId, {properties: filtered,@@ -675,11 +693,9 @@ export function registerFileRoutes(api: Hono, adapter: StudioApiAdapter): void {break;}case "remove-from-property": {- const parsed = parseGsapScript(block.scriptText);- const anim = parsed.animations.find((a) => a.id === body.animationId);- if (!anim) return c.json({ error: "animation not found" }, 404);- if (anim.method !== "fromTo") return c.json({ error: "animation is not a fromTo" }, 400);- const filtered = { ...(anim.fromProperties ?? {}) };+ const r = requireFromToAnimation(block.scriptText, body.animationId);+ if ("err" in r) return r.err;+ const filtered = { ...(r.anim.fromProperties ?? {}) };delete filtered[body.property];newScript = updateAnimationInScript(block.scriptText, body.animationId, {fromProperties: filtered,diff --git a/packages/core/src/studio-api/routes/projects.ts b/packages/core/src/studio-api/routes/projects.tsindex 738775de84..3627a1f042 100644--- a/packages/core/src/studio-api/routes/projects.ts+++ b/packages/core/src/studio-api/routes/projects.ts@@ -1,7 +1,26 @@+import { readFile } from "node:fs/promises";+import { join } from "node:path";import type { Hono } from "hono";import type { StudioApiAdapter } from "../types.js";import { walkDir } from "../helpers/safePath.js";+const COMPOSITION_ID_RE = /data-composition-id\s*=/;++async function filterCompositionFiles(projectDir: string, files: string[]): Promise<string[]> {+ const htmlFiles = files.filter((f) => f.endsWith(".html"));+ const checks = await Promise.all(+ htmlFiles.map(async (f) => {+ try {+ const content = await readFile(join(projectDir, f), "utf-8");+ return COMPOSITION_ID_RE.test(content);+ } catch {+ return false;+ }+ }),+ );+ return htmlFiles.filter((_, i) => checks[i]);+}+export function registerProjectRoutes(api: Hono, adapter: StudioApiAdapter): void {// List all projectsapi.get("/projects", async (c) => {@@ -25,6 +44,7 @@ export function registerProjectRoutes(api: Hono, adapter: StudioApiAdapter): voiconst project = await adapter.resolveProject(c.req.param("id"));if (!project) return c.json({ error: "not found" }, 404);const files = walkDir(project.dir);- return c.json({ id: project.id, dir: project.dir, title: project.title, files });+ const compositions = await filterCompositionFiles(project.dir, files);+ return c.json({ id: project.id, dir: project.dir, title: project.title, files, compositions });});}diff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_00s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_00s.pngindex 4f0b0f1dd3..b9dfb6776d 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_00s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_00s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_05s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_05s.pngindex 334b558a0c..2938802e48 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_05s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_05s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_10s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_10s.pngindex 4bc9a2068c..64a3659b74 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_10s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_10s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_15s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_15s.pngindex f27c555b24..4378791ab4 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_15s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_15s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_20s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_20s.pngindex ad7dc83e4d..6da914846d 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_20s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_20s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_25s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_25s.pngindex f4fb427ff4..85ba77d537 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_25s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_25s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_30s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_30s.pngindex b01eb18f25..e5c54cbeff 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_30s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_30s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_35s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_35s.pngindex de27589aa2..96b1cd0956 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_35s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_35s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_40s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_40s.pngindex d933b6d918..d8abe531b8 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_40s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_40s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_45s.png b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_45s.pngindex 03edb5d013..9e82e12c08 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_45s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/actual_0_45s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_00s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_00s.pngindex f207e25255..666c80993d 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_00s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_00s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_05s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_05s.pngindex 69610663ae..d54db4341c 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_05s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_05s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_10s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_10s.pngindex ed2b4817d8..baa173263f 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_10s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_10s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_15s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_15s.pngindex a2ea5d801f..cd1b3f1109 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_15s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_15s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_20s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_20s.pngindex e97deb062c..51c7664380 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_20s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_20s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_25s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_25s.pngindex 9c9e8f108c..1f2ba6b348 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_25s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_25s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_30s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_30s.pngindex c415c4e02f..05f2cb87e1 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_30s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_30s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_35s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_35s.pngindex 63e01dce7e..062a4acf67 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_35s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_35s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_40s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_40s.pngindex dd141901cb..1c3cdc1339 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_40s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_40s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_45s.png b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_45s.pngindex 3206252744..69ad3cbf58 100644Binary files a/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_45s.png and b/packages/producer/tests/iframe-render-compat/failures/frames/expected_0_45s.png differdiff --git a/packages/producer/tests/iframe-render-compat/failures/visual-failures.json b/packages/producer/tests/iframe-render-compat/failures/visual-failures.jsonindex acd2abc1a7..badb71fa12 100644--- a/packages/producer/tests/iframe-render-compat/failures/visual-failures.json+++ b/packages/producer/tests/iframe-render-compat/failures/visual-failures.json@@ -2,508 +2,509 @@"summary": {"totalCheckpoints": 100,"failedCheckpoints": 100,- "threshold": 30+ "threshold": 30,+ "fixtureThreshold": 30},"failedFrames": [{"time": 0,- "psnr": 25.532776,- "belowThresholdBy": 4.467224000000002+ "psnr": 25.670173,+ "belowThresholdBy": 4.329827000000002},{- "time": 0.05,- "psnr": 25.527491,- "belowThresholdBy": 4.472508999999999+ "time": 0.049666666666666665,+ "psnr": 25.665257,+ "belowThresholdBy": 4.334743},{- "time": 0.1,- "psnr": 25.527085,- "belowThresholdBy": 4.472915+ "time": 0.09933333333333333,+ "psnr": 25.664898,+ "belowThresholdBy": 4.335101999999999},{- "time": 0.15,- "psnr": 25.527803,- "belowThresholdBy": 4.472197000000001+ "time": 0.149,+ "psnr": 25.66572,+ "belowThresholdBy": 4.33428},{- "time": 0.2,- "psnr": 25.528707,- "belowThresholdBy": 4.471292999999999+ "time": 0.19866666666666666,+ "psnr": 25.666527,+ "belowThresholdBy": 4.3334730000000015},{- "time": 0.25,- "psnr": 25.528334,- "belowThresholdBy": 4.471665999999999+ "time": 0.24833333333333335,+ "psnr": 25.665789,+ "belowThresholdBy": 4.334211},{- "time": 0.3,- "psnr": 25.52862,- "belowThresholdBy": 4.47138+ "time": 0.298,+ "psnr": 25.66605,+ "belowThresholdBy": 4.3339500000000015},{- "time": 0.35,- "psnr": 25.528897,- "belowThresholdBy": 4.471102999999999+ "time": 0.3476666666666667,+ "psnr": 25.666633,+ "belowThresholdBy": 4.333366999999999},{- "time": 0.4,- "psnr": 25.528203,- "belowThresholdBy": 4.471796999999999+ "time": 0.3973333333333333,+ "psnr": 25.666045,+ "belowThresholdBy": 4.333955},{- "time": 0.45,- "psnr": 25.527721,- "belowThresholdBy": 4.472279+ "time": 0.447,+ "psnr": 25.667801,+ "belowThresholdBy": 4.332198999999999},{- "time": 0.5,- "psnr": 25.528982,- "belowThresholdBy": 4.471018000000001+ "time": 0.4966666666666667,+ "psnr": 25.665958,+ "belowThresholdBy": 4.334042},{- "time": 0.55,- "psnr": 25.52819,- "belowThresholdBy": 4.471810000000001+ "time": 0.5463333333333333,+ "psnr": 25.66534,+ "belowThresholdBy": 4.3346599999999995},{- "time": 0.6,- "psnr": 25.528268,- "belowThresholdBy": 4.471731999999999+ "time": 0.596,+ "psnr": 25.667488,+ "belowThresholdBy": 4.332512000000001},{- "time": 0.65,- "psnr": 25.528628,- "belowThresholdBy": 4.471371999999999+ "time": 0.6456666666666666,+ "psnr": 25.665683,+ "belowThresholdBy": 4.334316999999999},{- "time": 0.7,- "psnr": 25.527501,- "belowThresholdBy": 4.472498999999999+ "time": 0.6953333333333334,+ "psnr": 25.666654,+ "belowThresholdBy": 4.333345999999999},{- "time": 0.75,- "psnr": 25.527646,- "belowThresholdBy": 4.472353999999999+ "time": 0.745,+ "psnr": 25.665803,+ "belowThresholdBy": 4.334197},{- "time": 0.8,- "psnr": 25.528598,- "belowThresholdBy": 4.471402000000001+ "time": 0.7946666666666666,+ "psnr": 25.665768,+ "belowThresholdBy": 4.334232},{- "time": 0.85,- "psnr": 25.528406,- "belowThresholdBy": 4.471594+ "time": 0.8443333333333334,+ "psnr": 25.666026,+ "belowThresholdBy": 4.333974000000001},{- "time": 0.9,- "psnr": 25.528198,- "belowThresholdBy": 4.471802+ "time": 0.894,+ "psnr": 25.665989,+ "belowThresholdBy": 4.334011},{- "time": 0.95,- "psnr": 25.528123,- "belowThresholdBy": 4.471876999999999+ "time": 0.9436666666666668,+ "psnr": 25.666062,+ "belowThresholdBy": 4.333938},{- "time": 1,- "psnr": 25.530176,- "belowThresholdBy": 4.469823999999999+ "time": 0.9933333333333334,+ "psnr": 25.665957,+ "belowThresholdBy": 4.334043000000001},{- "time": 1.05,- "psnr": 25.529038,- "belowThresholdBy": 4.470962+ "time": 1.043,+ "psnr": 25.665319,+ "belowThresholdBy": 4.334681},{- "time": 1.1,- "psnr": 25.527842,- "belowThresholdBy": 4.472158+ "time": 1.0926666666666667,+ "psnr": 25.66539,+ "belowThresholdBy": 4.334610000000001},{- "time": 1.15,- "psnr": 25.528373,- "belowThresholdBy": 4.471627000000002+ "time": 1.1423333333333334,+ "psnr": 25.665835,+ "belowThresholdBy": 4.334164999999999},{- "time": 1.2,- "psnr": 25.529091,- "belowThresholdBy": 4.470908999999999+ "time": 1.192,+ "psnr": 25.666256,+ "belowThresholdBy": 4.333743999999999},{- "time": 1.25,- "psnr": 25.528298,- "belowThresholdBy": 4.4717020000000005+ "time": 1.2416666666666667,+ "psnr": 25.6659,+ "belowThresholdBy": 4.334099999999999},{- "time": 1.3,- "psnr": 25.529338,- "belowThresholdBy": 4.470662000000001+ "time": 1.2913333333333332,+ "psnr": 25.666521,+ "belowThresholdBy": 4.3334790000000005},{- "time": 1.35,- "psnr": 25.528646,- "belowThresholdBy": 4.471354000000002+ "time": 1.341,+ "psnr": 25.666418,+ "belowThresholdBy": 4.333582},{- "time": 1.4,- "psnr": 25.529207,- "belowThresholdBy": 4.4707930000000005+ "time": 1.3906666666666667,+ "psnr": 25.666516,+ "belowThresholdBy": 4.333483999999999},{- "time": 1.45,- "psnr": 25.529405,- "belowThresholdBy": 4.470594999999999+ "time": 1.4403333333333332,+ "psnr": 25.666238,+ "belowThresholdBy": 4.333762},{- "time": 1.5,- "psnr": 25.530795,- "belowThresholdBy": 4.469204999999999+ "time": 1.49,+ "psnr": 25.665819,+ "belowThresholdBy": 4.334181000000001},{- "time": 1.55,- "psnr": 25.529347,- "belowThresholdBy": 4.470652999999999+ "time": 1.5396666666666667,+ "psnr": 25.666459,+ "belowThresholdBy": 4.333541},{- "time": 1.6,- "psnr": 25.529177,- "belowThresholdBy": 4.470822999999999+ "time": 1.5893333333333333,+ "psnr": 25.666325,+ "belowThresholdBy": 4.3336749999999995},{- "time": 1.65,- "psnr": 25.529121,- "belowThresholdBy": 4.470879+ "time": 1.639,+ "psnr": 25.665563,+ "belowThresholdBy": 4.334437000000001},{- "time": 1.7,- "psnr": 25.529399,- "belowThresholdBy": 4.4706009999999985+ "time": 1.6886666666666668,+ "psnr": 25.665991,+ "belowThresholdBy": 4.334008999999998},{- "time": 1.75,- "psnr": 25.528421,- "belowThresholdBy": 4.471578999999998+ "time": 1.7383333333333335,+ "psnr": 25.665225,+ "belowThresholdBy": 4.3347750000000005},{- "time": 1.8,- "psnr": 25.529416,- "belowThresholdBy": 4.470583999999999+ "time": 1.788,+ "psnr": 25.666288,+ "belowThresholdBy": 4.3337119999999985},{- "time": 1.85,- "psnr": 25.528221,- "belowThresholdBy": 4.4717790000000015+ "time": 1.8376666666666668,+ "psnr": 25.665266,+ "belowThresholdBy": 4.334734000000001},{- "time": 1.9,- "psnr": 25.527902,- "belowThresholdBy": 4.472097999999999+ "time": 1.8873333333333335,+ "psnr": 25.665011,+ "belowThresholdBy": 4.334989},{- "time": 1.95,- "psnr": 25.52892,- "belowThresholdBy": 4.471080000000001+ "time": 1.9370000000000003,+ "psnr": 25.665971,+ "belowThresholdBy": 4.334029000000001},{- "time": 2,- "psnr": 25.530678,- "belowThresholdBy": 4.469321999999998+ "time": 1.9866666666666668,+ "psnr": 25.665508,+ "belowThresholdBy": 4.334492000000001},{- "time": 2.05,- "psnr": 25.528809,- "belowThresholdBy": 4.471191000000001+ "time": 2.0363333333333333,+ "psnr": 25.665407,+ "belowThresholdBy": 4.334593000000002},{- "time": 2.1,- "psnr": 25.528916,- "belowThresholdBy": 4.471084000000001+ "time": 2.086,+ "psnr": 25.665667,+ "belowThresholdBy": 4.334333000000001},{- "time": 2.15,- "psnr": 25.528841,- "belowThresholdBy": 4.471159+ "time": 2.135666666666667,+ "psnr": 25.665722,+ "belowThresholdBy": 4.334278000000001},{- "time": 2.2,- "psnr": 25.528685,- "belowThresholdBy": 4.471315000000001+ "time": 2.1853333333333333,+ "psnr": 25.665476,+ "belowThresholdBy": 4.334523999999998},{- "time": 2.25,- "psnr": 25.528494,- "belowThresholdBy": 4.4715060000000015+ "time": 2.235,+ "psnr": 25.665359,+ "belowThresholdBy": 4.334641000000001},{- "time": 2.3,- "psnr": 25.529056,- "belowThresholdBy": 4.470943999999999+ "time": 2.284666666666667,+ "psnr": 25.664999,+ "belowThresholdBy": 4.335000999999998},{- "time": 2.35,- "psnr": 25.529042,- "belowThresholdBy": 4.4709579999999995+ "time": 2.3343333333333334,+ "psnr": 25.666587,+ "belowThresholdBy": 4.333413},{- "time": 2.4,- "psnr": 25.529264,- "belowThresholdBy": 4.470735999999999+ "time": 2.384,+ "psnr": 25.665216,+ "belowThresholdBy": 4.334783999999999},{- "time": 2.45,- "psnr": 25.527758,- "belowThresholdBy": 4.472242000000001+ "time": 2.433666666666667,+ "psnr": 25.664701,+ "belowThresholdBy": 4.335298999999999},{- "time": 2.5,- "psnr": 25.529451,- "belowThresholdBy": 4.470548999999998+ "time": 2.4833333333333334,+ "psnr": 25.663834,+ "belowThresholdBy": 4.336165999999999},{- "time": 2.55,- "psnr": 25.529187,- "belowThresholdBy": 4.470813+ "time": 2.533,+ "psnr": 25.664359,+ "belowThresholdBy": 4.335640999999999},{- "time": 2.6,- "psnr": 25.527694,- "belowThresholdBy": 4.472306+ "time": 2.5826666666666664,+ "psnr": 25.665088,+ "belowThresholdBy": 4.334911999999999},{- "time": 2.65,- "psnr": 25.528983,- "belowThresholdBy": 4.471017+ "time": 2.6323333333333334,+ "psnr": 25.665297,+ "belowThresholdBy": 4.334703000000001},{- "time": 2.7,- "psnr": 25.528599,- "belowThresholdBy": 4.471401+ "time": 2.682,+ "psnr": 25.665352,+ "belowThresholdBy": 4.334648000000001},{- "time": 2.75,- "psnr": 25.528595,- "belowThresholdBy": 4.471405000000001+ "time": 2.731666666666667,+ "psnr": 25.666831,+ "belowThresholdBy": 4.333169000000002},{- "time": 2.8,- "psnr": 25.528584,- "belowThresholdBy": 4.471416000000001+ "time": 2.7813333333333334,+ "psnr": 25.664831,+ "belowThresholdBy": 4.3351690000000005},{- "time": 2.85,- "psnr": 25.528495,- "belowThresholdBy": 4.4715050000000005+ "time": 2.8310000000000004,+ "psnr": 25.664452,+ "belowThresholdBy": 4.335547999999999},{- "time": 2.9,- "psnr": 25.528314,- "belowThresholdBy": 4.471685999999998+ "time": 2.8806666666666665,+ "psnr": 25.665043,+ "belowThresholdBy": 4.334956999999999},{- "time": 2.95,- "psnr": 25.528935,- "belowThresholdBy": 4.471064999999999+ "time": 2.9303333333333335,+ "psnr": 25.664478,+ "belowThresholdBy": 4.335522000000001},{- "time": 3,- "psnr": 25.530156,- "belowThresholdBy": 4.469843999999998+ "time": 2.98,+ "psnr": 25.665427,+ "belowThresholdBy": 4.334572999999999},{- "time": 3.05,- "psnr": 25.527974,- "belowThresholdBy": 4.472026+ "time": 3.029666666666667,+ "psnr": 25.66538,+ "belowThresholdBy": 4.334620000000001},{- "time": 3.1,- "psnr": 25.528024,- "belowThresholdBy": 4.4719760000000015+ "time": 3.0793333333333335,+ "psnr": 25.66421,+ "belowThresholdBy": 4.335789999999999},{- "time": 3.15,- "psnr": 25.527788,- "belowThresholdBy": 4.472211999999999+ "time": 3.1290000000000004,+ "psnr": 25.664635,+ "belowThresholdBy": 4.3353649999999995},{- "time": 3.2,- "psnr": 25.52833,- "belowThresholdBy": 4.47167+ "time": 3.1786666666666665,+ "psnr": 25.664152,+ "belowThresholdBy": 4.335847999999999},{- "time": 3.25,- "psnr": 25.528662,- "belowThresholdBy": 4.471337999999999+ "time": 3.228333333333333,+ "psnr": 25.664572,+ "belowThresholdBy": 4.335428},{- "time": 3.3,- "psnr": 25.528834,- "belowThresholdBy": 4.471166+ "time": 3.278,+ "psnr": 25.665011,+ "belowThresholdBy": 4.334989},{- "time": 3.35,- "psnr": 25.528553,- "belowThresholdBy": 4.471447000000001+ "time": 3.3276666666666666,+ "psnr": 25.664758,+ "belowThresholdBy": 4.335242000000001},{- "time": 3.4,- "psnr": 25.528278,- "belowThresholdBy": 4.471722+ "time": 3.3773333333333335,+ "psnr": 25.664574,+ "belowThresholdBy": 4.335425999999998},{- "time": 3.45,- "psnr": 25.533727,- "belowThresholdBy": 4.466273000000001+ "time": 3.427,+ "psnr": 25.668833,+ "belowThresholdBy": 4.331167000000001},{- "time": 3.5,- "psnr": 25.536056,- "belowThresholdBy": 4.4639440000000015+ "time": 3.476666666666667,+ "psnr": 25.671263,+ "belowThresholdBy": 4.328737},{- "time": 3.55,- "psnr": 25.540891,- "belowThresholdBy": 4.4591090000000015+ "time": 3.526333333333333,+ "psnr": 25.67407,+ "belowThresholdBy": 4.32593},{- "time": 3.6,- "psnr": 25.542596,- "belowThresholdBy": 4.457404+ "time": 3.576,+ "psnr": 25.677632,+ "belowThresholdBy": 4.322368000000001},{- "time": 3.65,- "psnr": 25.5418,- "belowThresholdBy": 4.4582000000000015+ "time": 3.6256666666666666,+ "psnr": 25.679291,+ "belowThresholdBy": 4.320709000000001},{- "time": 3.7,- "psnr": 25.542324,- "belowThresholdBy": 4.457675999999999+ "time": 3.6753333333333336,+ "psnr": 25.679101,+ "belowThresholdBy": 4.320899000000001},{- "time": 3.75,- "psnr": 25.542259,- "belowThresholdBy": 4.457740999999999+ "time": 3.725,+ "psnr": 25.679923,+ "belowThresholdBy": 4.320077000000001},{- "time": 3.8,- "psnr": 25.542141,- "belowThresholdBy": 4.457858999999999+ "time": 3.774666666666667,+ "psnr": 25.680906,+ "belowThresholdBy": 4.319094},{- "time": 3.85,- "psnr": 25.542145,- "belowThresholdBy": 4.457854999999999+ "time": 3.8243333333333336,+ "psnr": 25.679413,+ "belowThresholdBy": 4.320587},{- "time": 3.9,- "psnr": 25.542386,- "belowThresholdBy": 4.4576139999999995+ "time": 3.8740000000000006,+ "psnr": 25.679453,+ "belowThresholdBy": 4.320547000000001},{- "time": 3.95,- "psnr": 25.542825,- "belowThresholdBy": 4.457174999999999+ "time": 3.9236666666666666,+ "psnr": 25.679127,+ "belowThresholdBy": 4.320872999999999},{- "time": 4,- "psnr": 25.544485,- "belowThresholdBy": 4.455514999999998+ "time": 3.9733333333333336,+ "psnr": 25.679337,+ "belowThresholdBy": 4.320663},{- "time": 4.05,- "psnr": 25.542551,- "belowThresholdBy": 4.457449+ "time": 4.023,+ "psnr": 25.678418,+ "belowThresholdBy": 4.321581999999999},{- "time": 4.1,- "psnr": 25.541994,- "belowThresholdBy": 4.458006000000001+ "time": 4.072666666666667,+ "psnr": 25.679278,+ "belowThresholdBy": 4.320722},{- "time": 4.15,- "psnr": 25.541748,- "belowThresholdBy": 4.458252000000002+ "time": 4.122333333333334,+ "psnr": 25.679084,+ "belowThresholdBy": 4.320916},{- "time": 4.2,- "psnr": 25.542627,- "belowThresholdBy": 4.4573730000000005+ "time": 4.172,+ "psnr": 25.67842,+ "belowThresholdBy": 4.321580000000001},{- "time": 4.25,- "psnr": 25.551196,- "belowThresholdBy": 4.448803999999999+ "time": 4.221666666666667,+ "psnr": 25.682599,+ "belowThresholdBy": 4.317401},{- "time": 4.3,- "psnr": 25.552091,- "belowThresholdBy": 4.447908999999999+ "time": 4.271333333333334,+ "psnr": 25.690067,+ "belowThresholdBy": 4.309933000000001},{- "time": 4.35,- "psnr": 25.551437,- "belowThresholdBy": 4.448563+ "time": 4.321000000000001,+ "psnr": 25.691069,+ "belowThresholdBy": 4.308931000000001},{- "time": 4.4,- "psnr": 25.552455,- "belowThresholdBy": 4.447545000000002+ "time": 4.370666666666667,+ "psnr": 25.689988,+ "belowThresholdBy": 4.310012},{- "time": 4.45,- "psnr": 25.565069,- "belowThresholdBy": 4.434930999999999+ "time": 4.420333333333334,+ "psnr": 25.701076,+ "belowThresholdBy": 4.2989239999999995},{- "time": 4.5,- "psnr": 25.566134,- "belowThresholdBy": 4.433865999999998+ "time": 4.47,+ "psnr": 25.703625,+ "belowThresholdBy": 4.296375000000001},{- "time": 4.55,- "psnr": 25.565799,- "belowThresholdBy": 4.434201000000002+ "time": 4.519666666666667,+ "psnr": 25.703902,+ "belowThresholdBy": 4.296098000000001},{- "time": 4.6,- "psnr": 25.565537,- "belowThresholdBy": 4.434463000000001+ "time": 4.569333333333334,+ "psnr": 25.704101,+ "belowThresholdBy": 4.295898999999999},{- "time": 4.65,- "psnr": 25.56569,- "belowThresholdBy": 4.43431+ "time": 4.619000000000001,+ "psnr": 25.703541,+ "belowThresholdBy": 4.296458999999999},{- "time": 4.7,- "psnr": 25.565667,- "belowThresholdBy": 4.434332999999999+ "time": 4.668666666666667,+ "psnr": 25.703907,+ "belowThresholdBy": 4.296092999999999},{- "time": 4.75,- "psnr": 25.556324,- "belowThresholdBy": 4.443676+ "time": 4.718333333333334,+ "psnr": 25.701013,+ "belowThresholdBy": 4.298987},{- "time": 4.8,- "psnr": 25.556492,- "belowThresholdBy": 4.443508000000001+ "time": 4.768,+ "psnr": 25.693049,+ "belowThresholdBy": 4.3069510000000015},{- "time": 4.85,- "psnr": 25.555055,- "belowThresholdBy": 4.444945000000001+ "time": 4.817666666666667,+ "psnr": 25.691654,+ "belowThresholdBy": 4.308346},{- "time": 4.9,- "psnr": 25.555276,- "belowThresholdBy": 4.444724000000001+ "time": 4.867333333333334,+ "psnr": 25.692159,+ "belowThresholdBy": 4.307841},{- "time": 4.95,- "psnr": 25.541661,- "belowThresholdBy": 4.458338999999999+ "time": 4.917,+ "psnr": 25.68271,+ "belowThresholdBy": 4.31729}]}\ No newline at end of filediff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_00s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_00s.pngindex dc46ab3689..fc9dce12d2 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_00s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_00s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_05s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_05s.pngindex f629f37e85..7fa9d13cb6 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_05s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_05s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_10s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_10s.pngindex ca564dc6a9..0c6b770b4d 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_10s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_10s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_15s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_15s.pngindex ca564dc6a9..0c6b770b4d 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_15s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_15s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_20s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_20s.pngindex f629f37e85..0c6b770b4d 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_20s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_20s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_25s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_25s.pngindex ca564dc6a9..0c6b770b4d 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_25s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_25s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_30s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_30s.pngindex f629f37e85..0c6b770b4d 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_30s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_30s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_35s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_35s.pngindex ca564dc6a9..0c6b770b4d 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_35s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_35s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_40s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_40s.pngindex ca564dc6a9..0c6b770b4d 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_40s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_40s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_45s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_45s.pngindex f629f37e85..0c6b770b4d 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_45s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/actual_0_45s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_00s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_00s.pngindex d948dff8b2..ea2084cb54 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_00s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_00s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_05s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_05s.pngindex 32683cfdd0..7b07b27e68 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_05s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_05s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_10s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_10s.pngindex f47a7d46da..9e93662b8e 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_10s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_10s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_15s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_15s.pngindex 0380f40fc3..c5e613bebc 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_15s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_15s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_20s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_20s.pngindex 0380f40fc3..c5e613bebc 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_20s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_20s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_25s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_25s.pngindex 0380f40fc3..c5e613bebc 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_25s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_25s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_30s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_30s.pngindex 0380f40fc3..c5e613bebc 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_30s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_30s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_35s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_35s.pngindex 0380f40fc3..c5e613bebc 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_35s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_35s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_40s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_40s.pngindex 0380f40fc3..c5e613bebc 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_40s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_40s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_45s.png b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_45s.pngindex 0380f40fc3..c5e613bebc 100644Binary files a/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_45s.png and b/packages/producer/tests/render-symlinked-assets/failures/frames/expected_0_45s.png differdiff --git a/packages/producer/tests/render-symlinked-assets/failures/visual-failures.json b/packages/producer/tests/render-symlinked-assets/failures/visual-failures.jsonindex 3d2e3a0d37..4ad4852473 100644--- a/packages/producer/tests/render-symlinked-assets/failures/visual-failures.json+++ b/packages/producer/tests/render-symlinked-assets/failures/visual-failures.json@@ -2,508 +2,509 @@"summary": {"totalCheckpoints": 100,"failedCheckpoints": 100,- "threshold": 30+ "threshold": 30,+ "fixtureThreshold": 30},"failedFrames": [{"time": 0,- "psnr": 22.729066,- "belowThresholdBy": 7.2709340000000005+ "psnr": 21.623923,+ "belowThresholdBy": 8.376076999999999},{- "time": 0.05,- "psnr": 22.728686,- "belowThresholdBy": 7.271314+ "time": 0.04958333333333333,+ "psnr": 21.623061,+ "belowThresholdBy": 8.376939},{- "time": 0.1,- "psnr": 22.728667,- "belowThresholdBy": 7.2713329999999985+ "time": 0.09916666666666667,+ "psnr": 21.623088,+ "belowThresholdBy": 8.376912},{- "time": 0.15,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.14875,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.2,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 0.19833333333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.25,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.24791666666666665,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.3,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 0.2975,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.35,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.3470833333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.4,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.39666666666666667,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.45,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 0.44625,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.5,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.4958333333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.55,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 0.5454166666666667,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.6,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.595,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.65,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.6445833333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.7,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 0.6941666666666666,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.75,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.74375,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.8,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 0.7933333333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.85,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.8429166666666665,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.9,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.8925,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 0.95,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 0.9420833333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 0.9916666666666666,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.05,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 1.04125,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.1,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.0908333333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.15,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.1404166666666666,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.2,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 1.19,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.25,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.2395833333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.3,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 1.2891666666666666,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.35,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.33875,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.4,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.3883333333333332,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.45,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 1.4379166666666665,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.5,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.4875,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.55,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 1.5370833333333331,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.6,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.5866666666666667,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.65,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.63625,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.7,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 1.685833333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.75,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.7354166666666666,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.8,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 1.785,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.85,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.8345833333333332,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.9,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.8841666666666665,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 1.95,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 1.93375,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 1.9833333333333332,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.05,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 2.0329166666666665,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.1,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.0825,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.15,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.132083333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.2,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 2.1816666666666666,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.25,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.23125,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.3,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 2.2808333333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.35,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.3304166666666664,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.4,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.38,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.45,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 2.429583333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.5,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.4791666666666665,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.55,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 2.5287499999999996,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.6,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.578333333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.65,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.6279166666666662,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.7,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 2.6775,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.75,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.7270833333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.8,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 2.7766666666666664,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.85,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.82625,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.9,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.875833333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 2.95,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 2.925416666666666,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 3,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 2.975,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 3.05,- "psnr": 22.728644,- "belowThresholdBy": 7.271356000000001+ "time": 3.024583333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 3.1,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 3.0741666666666663,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 3.15,- "psnr": 22.728643,- "belowThresholdBy": 7.271356999999998+ "time": 3.12375,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 3.2,- "psnr": 22.728555,- "belowThresholdBy": 7.271445+ "time": 3.1733333333333333,+ "psnr": 21.623194,+ "belowThresholdBy": 8.376805999999998},{- "time": 3.25,- "psnr": 22.728555,- "belowThresholdBy": 7.271445+ "time": 3.2229166666666664,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.3,- "psnr": 22.728555,- "belowThresholdBy": 7.271445+ "time": 3.2725,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.35,- "psnr": 22.728555,- "belowThresholdBy": 7.271445+ "time": 3.322083333333333,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.4,- "psnr": 22.728555,- "belowThresholdBy": 7.271445+ "time": 3.371666666666666,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.45,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.42125,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.5,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.470833333333333,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.55,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.5204166666666663,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.6,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.57,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.65,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.619583333333333,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.7,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.6691666666666665,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.75,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.71875,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.8,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.768333333333333,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.85,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.817916666666666,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.9,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.8675,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 3.95,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.9170833333333333,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 4,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 3.9666666666666663,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 4.05,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 4.01625,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 4.1,- "psnr": 22.728565,- "belowThresholdBy": 7.271435+ "time": 4.065833333333333,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 4.15,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.1154166666666665,+ "psnr": 21.623186,+ "belowThresholdBy": 8.376814},{- "time": 4.2,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.165,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.25,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.214583333333334,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.3,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.264166666666666,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.35,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.31375,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.4,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.363333333333333,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.45,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.412916666666666,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.5,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.4625,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.55,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.512083333333333,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.6,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.5616666666666665,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.65,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.61125,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.7,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.660833333333333,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.75,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.710416666666666,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.8,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.76,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.85,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.809583333333333,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.9,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.859166666666666,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998},{- "time": 4.95,- "psnr": 22.728681,- "belowThresholdBy": 7.271318999999998+ "time": 4.9087499999999995,+ "psnr": 21.623201,+ "belowThresholdBy": 8.376798999999998}]}\ No newline at end of filediff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_09s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_09s.pngindex 035d31014f..f7901ed720 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_09s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_09s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_12s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_12s.pngindex 48117d3358..a7a6b291c6 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_12s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_12s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_15s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_15s.pngindex 83696e4af3..a7a6b291c6 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_15s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_15s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_18s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_18s.pngindex 83696e4af3..b4ed6d4178 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_18s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_18s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_21s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_21s.pngindex 5ee1187adb..070347914c 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_21s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/actual_0_21s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_09s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_09s.pngindex 4c8fbfc782..ef44d7fbe7 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_09s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_09s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_12s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_12s.pngindex 6a071bad09..44db4bdf79 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_12s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_12s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_15s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_15s.pngindex 914867d100..44db4bdf79 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_15s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_15s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_18s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_18s.pngindex 914867d100..e6d28d5a5e 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_18s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_18s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_21s.png b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_21s.pngindex 54703b6612..bcf1bfd84c 100644Binary files a/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_21s.png and b/packages/producer/tests/vfr-screen-recording/failures/frames/expected_0_21s.png differdiff --git a/packages/producer/tests/vfr-screen-recording/failures/visual-failures.json b/packages/producer/tests/vfr-screen-recording/failures/visual-failures.jsonindex 90f0a5a74a..18a411b47b 100644--- a/packages/producer/tests/vfr-screen-recording/failures/visual-failures.json+++ b/packages/producer/tests/vfr-screen-recording/failures/visual-failures.json@@ -1,279 +1,270 @@{"summary": {"totalCheckpoints": 100,- "failedCheckpoints": 54,- "threshold": 28+ "failedCheckpoints": 52,+ "threshold": 28,+ "fixtureThreshold": 28},"failedFrames": [{- "time": 0.09,- "psnr": 22.256128,- "belowThresholdBy": 5.743872+ "time": 0.029666666666666668,+ "psnr": 24.44885,+ "belowThresholdBy": 3.55115},{- "time": 0.12,- "psnr": 22.140487,- "belowThresholdBy": 5.859513+ "time": 0.059333333333333335,+ "psnr": 22.568789,+ "belowThresholdBy": 5.431211000000001},{- "time": 0.15,- "psnr": 22.179456,- "belowThresholdBy": 5.820544000000002+ "time": 0.08900000000000001,+ "psnr": 22.349581,+ "belowThresholdBy": 5.650418999999999},{- "time": 0.18,- "psnr": 22.179456,- "belowThresholdBy": 5.820544000000002+ "time": 0.11866666666666667,+ "psnr": 22.391461,+ "belowThresholdBy": 5.608539},{- "time": 0.21,- "psnr": 21.965369,- "belowThresholdBy": 6.034631000000001+ "time": 0.14833333333333334,+ "psnr": 22.391461,+ "belowThresholdBy": 5.608539},{- "time": 0.72,- "psnr": 22.124397,- "belowThresholdBy": 5.875603000000002+ "time": 0.17800000000000002,+ "psnr": 22.660384,+ "belowThresholdBy": 5.3396159999999995},{- "time": 0.75,- "psnr": 21.974375,- "belowThresholdBy": 6.025625000000002+ "time": 0.20766666666666667,+ "psnr": 24.714207,+ "belowThresholdBy": 3.2857930000000017},{- "time": 0.78,- "psnr": 21.974375,- "belowThresholdBy": 6.025625000000002+ "time": 0.23733333333333334,+ "psnr": 21.961888,+ "belowThresholdBy": 6.038112000000002},{- "time": 0.81,- "psnr": 21.576887,- "belowThresholdBy": 6.423113000000001+ "time": 0.267,+ "psnr": 22.13149,+ "belowThresholdBy": 5.868510000000001},{- "time": 0.84,- "psnr": 20.875483,- "belowThresholdBy": 7.124517000000001+ "time": 0.7416666666666667,+ "psnr": 22.157503,+ "belowThresholdBy": 5.842497000000002},{- "time": 0.87,- "psnr": 20.573199,- "belowThresholdBy": 7.426801000000001+ "time": 0.7713333333333334,+ "psnr": 21.703576,+ "belowThresholdBy": 6.296423999999998},{- "time": 0.9,- "psnr": 20.659209,- "belowThresholdBy": 7.340790999999999+ "time": 0.801,+ "psnr": 21.979018,+ "belowThresholdBy": 6.020982},{- "time": 0.93,- "psnr": 20.660655,- "belowThresholdBy": 7.339345000000002+ "time": 0.8306666666666667,+ "psnr": 20.468804,+ "belowThresholdBy": 7.531196000000001},{- "time": 0.96,- "psnr": 20.661614,- "belowThresholdBy": 7.338386+ "time": 0.8603333333333333,+ "psnr": 20.24634,+ "belowThresholdBy": 7.75366},{- "time": 0.99,- "psnr": 20.660907,- "belowThresholdBy": 7.339092999999998+ "time": 1.1866666666666668,+ "psnr": 20.358821,+ "belowThresholdBy": 7.641179000000001},{- "time": 1.02,- "psnr": 20.663712,- "belowThresholdBy": 7.336288+ "time": 1.2163333333333335,+ "psnr": 20.358821,+ "belowThresholdBy": 7.641179000000001},{- "time": 1.05,- "psnr": 20.661661,- "belowThresholdBy": 7.338339000000001+ "time": 1.246,+ "psnr": 20.304962,+ "belowThresholdBy": 7.695038},{- "time": 1.08,- "psnr": 20.661661,- "belowThresholdBy": 7.338339000000001+ "time": 1.2756666666666667,+ "psnr": 21.366366,+ "belowThresholdBy": 6.633634000000001},{- "time": 1.11,- "psnr": 20.658796,- "belowThresholdBy": 7.341204000000001+ "time": 1.3053333333333332,+ "psnr": 21.759025,+ "belowThresholdBy": 6.240974999999999},{- "time": 1.17,- "psnr": 21.79722,- "belowThresholdBy": 6.202780000000001+ "time": 1.335,+ "psnr": 21.92549,+ "belowThresholdBy": 6.07451},{- "time": 1.2,- "psnr": 21.556139,- "belowThresholdBy": 6.443860999999998+ "time": 1.3646666666666667,+ "psnr": 22.279441,+ "belowThresholdBy": 5.7205590000000015},{- "time": 1.23,- "psnr": 20.188096,- "belowThresholdBy": 7.811903999999998+ "time": 1.3943333333333334,+ "psnr": 22.363145,+ "belowThresholdBy": 5.636855000000001},{- "time": 1.29,- "psnr": 22.406725,- "belowThresholdBy": 5.593274999999998+ "time": 1.4240000000000002,+ "psnr": 24.205173,+ "belowThresholdBy": 3.7948270000000015},{- "time": 1.32,- "psnr": 22.786094,- "belowThresholdBy": 5.2139060000000015+ "time": 1.4536666666666667,+ "psnr": 22.777445,+ "belowThresholdBy": 5.222555},{- "time": 1.35,- "psnr": 23.352752,- "belowThresholdBy": 4.647248000000001+ "time": 1.9580000000000002,+ "psnr": 26.75451,+ "belowThresholdBy": 1.2454900000000002},{- "time": 1.38,- "psnr": 23.352752,- "belowThresholdBy": 4.647248000000001+ "time": 1.9876666666666667,+ "psnr": 23.394872,+ "belowThresholdBy": 4.6051280000000006},{- "time": 1.41,- "psnr": 22.211662,- "belowThresholdBy": 5.7883379999999995+ "time": 2.0173333333333336,+ "psnr": 23.247368,+ "belowThresholdBy": 4.752631999999998},{- "time": 1.92,- "psnr": 25.090316,- "belowThresholdBy": 2.9096839999999986+ "time": 2.047,+ "psnr": 23.247368,+ "belowThresholdBy": 4.752631999999998},{- "time": 1.95,- "psnr": 23.673743,- "belowThresholdBy": 4.326256999999998+ "time": 2.0766666666666667,+ "psnr": 23.111096,+ "belowThresholdBy": 4.888904},{- "time": 1.98,- "psnr": 23.673743,- "belowThresholdBy": 4.326256999999998+ "time": 2.1063333333333336,+ "psnr": 23.118457,+ "belowThresholdBy": 4.881543000000001},{- "time": 2.01,- "psnr": 22.642487,- "belowThresholdBy": 5.357513000000001+ "time": 2.136,+ "psnr": 23.530627,+ "belowThresholdBy": 4.469373000000001},{- "time": 2.04,- "psnr": 22.718313,- "belowThresholdBy": 5.281687000000002+ "time": 2.1656666666666666,+ "psnr": 23.264726,+ "belowThresholdBy": 4.735274},{- "time": 2.07,- "psnr": 23.028197,- "belowThresholdBy": 4.971803000000001+ "time": 2.195333333333333,+ "psnr": 23.406522,+ "belowThresholdBy": 4.593478000000001},{- "time": 2.1,- "psnr": 23.751957,- "belowThresholdBy": 4.248042999999999+ "time": 2.225,+ "psnr": 23.253297,+ "belowThresholdBy": 4.746703},{- "time": 2.13,- "psnr": 25.975816,- "belowThresholdBy": 2.0241840000000018+ "time": 2.2546666666666666,+ "psnr": 23.241565,+ "belowThresholdBy": 4.758434999999999},{- "time": 2.16,- "psnr": 22.928774,- "belowThresholdBy": 5.071225999999999+ "time": 2.2843333333333335,+ "psnr": 23.046583,+ "belowThresholdBy": 4.953417000000002},{- "time": 2.19,- "psnr": 26.324329,- "belowThresholdBy": 1.6756710000000012+ "time": 2.314,+ "psnr": 23.046583,+ "belowThresholdBy": 4.953417000000002},{- "time": 2.22,- "psnr": 25.537279,- "belowThresholdBy": 2.4627209999999984+ "time": 2.3436666666666666,+ "psnr": 23.321539,+ "belowThresholdBy": 4.678460999999999},{- "time": 2.25,- "psnr": 26.382274,- "belowThresholdBy": 1.617726000000001+ "time": 2.3733333333333335,+ "psnr": 23.2271,+ "belowThresholdBy": 4.7729},{- "time": 2.28,- "psnr": 26.382274,- "belowThresholdBy": 1.617726000000001+ "time": 2.403,+ "psnr": 23.022527,+ "belowThresholdBy": 4.977473},{- "time": 2.31,- "psnr": 23.573514,- "belowThresholdBy": 4.426486000000001+ "time": 2.432666666666667,+ "psnr": 23.017229,+ "belowThresholdBy": 4.982771},{- "time": 2.46,- "psnr": 24.578146,- "belowThresholdBy": 3.4218539999999997+ "time": 2.4623333333333335,+ "psnr": 22.887764,+ "belowThresholdBy": 5.112235999999999},{- "time": 2.49,- "psnr": 24.501098,- "belowThresholdBy": 3.498902000000001+ "time": 2.492,+ "psnr": 22.827383,+ "belowThresholdBy": 5.172616999999999},{- "time": 2.52,- "psnr": 24.404203,- "belowThresholdBy": 3.595797000000001+ "time": 2.521666666666667,+ "psnr": 22.876932,+ "belowThresholdBy": 5.123068},{- "time": 2.55,- "psnr": 25.122537,- "belowThresholdBy": 2.8774629999999988+ "time": 2.5513333333333335,+ "psnr": 23.549837,+ "belowThresholdBy": 4.450163},{- "time": 2.58,- "psnr": 25.122537,- "belowThresholdBy": 2.8774629999999988+ "time": 2.5810000000000004,+ "psnr": 23.549837,+ "belowThresholdBy": 4.450163},{- "time": 2.61,- "psnr": 26.335585,- "belowThresholdBy": 1.6644150000000018+ "time": 2.6106666666666665,+ "psnr": 22.929946,+ "belowThresholdBy": 5.070053999999999},{- "time": 2.64,- "psnr": 24.310134,- "belowThresholdBy": 3.6898659999999985+ "time": 2.6403333333333334,+ "psnr": 26.268077,+ "belowThresholdBy": 1.7319229999999983},{- "time": 2.67,- "psnr": 25.824841,- "belowThresholdBy": 2.1751590000000007+ "time": 2.818333333333334,+ "psnr": 25.377759,+ "belowThresholdBy": 2.622240999999999},{- "time": 2.85,- "psnr": 22.968464,- "belowThresholdBy": 5.031535999999999+ "time": 2.8480000000000003,+ "psnr": 25.377759,+ "belowThresholdBy": 2.622240999999999},{- "time": 2.88,- "psnr": 22.968464,- "belowThresholdBy": 5.031535999999999+ "time": 2.9073333333333333,+ "psnr": 22.824227,+ "belowThresholdBy": 5.1757729999999995},{- "time": 2.91,- "psnr": 22.524879,- "belowThresholdBy": 5.4751210000000015- },- {- "time": 2.94,- "psnr": 23.12954,- "belowThresholdBy": 4.870460000000001- },- {- "time": 2.97,- "psnr": 23.497156,- "belowThresholdBy": 4.502844+ "time": 2.937,+ "psnr": 22.829516,+ "belowThresholdBy": 5.170483999999998}]}\ No newline at end of filediff --git a/packages/studio/src/App.tsx b/packages/studio/src/App.tsxindex 2e9f68a4a8..56af6bef21 100644--- a/packages/studio/src/App.tsx+++ b/packages/studio/src/App.tsx@@ -26,10 +26,11 @@ import { useCompositionDimensions } from "./hooks/useCompositionDimensions";import { useToast } from "./hooks/useToast";import { useStudioUrlState } from "./hooks/useStudioUrlState";import {- STUDIO_INSPECTOR_PANELS_ENABLED,- STUDIO_MOTION_PANEL_ENABLED,-} from "./components/editor/manualEditingAvailability";-import { readStudioMotionFromElement } from "./components/editor/studioMotion";+ buildStudioContextValue,+ useDragOverlay,+ useInspectorState,+} from "./hooks/useStudioContextValue";+import { buildAgentContextPreview } from "./components/editor/domEditingAgentPrompt";import type { DomEditSelection } from "./components/editor/domEditing";import { AskAgentModal } from "./components/AskAgentModal";import { StudioGlobalDragOverlay } from "./components/StudioGlobalDragOverlay";@@ -38,7 +39,7 @@ import { StudioLeftSidebar } from "./components/StudioLeftSidebar";import { StudioPreviewArea } from "./components/StudioPreviewArea";import { StudioRightPanel } from "./components/StudioRightPanel";import { TimelineToolbar } from "./components/TimelineToolbar";-import { StudioProvider, type StudioContextValue } from "./contexts/StudioContext";+import { StudioProvider } from "./contexts/StudioContext";import { PanelLayoutProvider } from "./contexts/PanelLayoutContext";import { FileManagerProvider } from "./contexts/FileManagerContext";import { DomEditProvider } from "./contexts/DomEditContext";@@ -51,6 +52,7 @@ import {import { trackStudioSessionStart } from "./telemetry/events";import { hasFiredSessionStart, markSessionStartFired } from "./telemetry/config";+// fallow-ignore-next-line complexityexport function StudioApp() {const { projectId, resolving, waitingForServer } = useServerConnection();const initialUrlStateRef = useRef(readStudioUrlStateFromWindow());@@ -184,6 +186,26 @@ export function StudioApp() {uploadProjectFiles: fileManager.uploadProjectFiles,});+ const blockCtx = useMemo(+ () => ({+ activeCompPath,+ timelineElements,+ readProjectFile: fileManager.readProjectFile,+ writeProjectFile: fileManager.writeProjectFile,+ recordEdit: editHistory.recordEdit,+ refreshFileTree: fileManager.refreshFileTree,+ reloadPreview,+ showToast,+ }),+ [+ activeCompPath,+ timelineElements,+ fileManager,+ editHistory.recordEdit,+ reloadPreview,+ showToast,+ ],+ );const handleAddBlock = useCallback((blockName: string) => {if (!projectId) return;@@ -191,16 +213,9 @@ export function StudioApp() {const result = await addBlockToProject({projectId,blockName,- activeCompPath,+ ...blockCtx,previewIframe: previewIframeRef.current,currentTime: usePlayerStore.getState().currentTime,- timelineElements,- readProjectFile: fileManager.readProjectFile,- writeProjectFile: fileManager.writeProjectFile,- recordEdit: editHistory.recordEdit,- refreshFileTree: fileManager.refreshFileTree,- reloadPreview,- showToast,});const params = result?.block.type === "hyperframes:block" ? result.block.params : undefined;if (params?.length) {@@ -215,82 +230,35 @@ export function StudioApp() {}})();},- [- projectId,- activeCompPath,- timelineElements,- fileManager.readProjectFile,- fileManager.writeProjectFile,- fileManager.refreshFileTree,- editHistory.recordEdit,- reloadPreview,- showToast,- panelLayout,- ],+ [projectId, blockCtx, panelLayout],);-const handleTimelineBlockDrop = useCallback((blockName: string, placement: { start: number; track: number }) => {if (!projectId) return;void addBlockToProject({projectId,blockName,- activeCompPath,placement,+ ...blockCtx,previewIframe: previewIframeRef.current,currentTime: usePlayerStore.getState().currentTime,- timelineElements,- readProjectFile: fileManager.readProjectFile,- writeProjectFile: fileManager.writeProjectFile,- recordEdit: editHistory.recordEdit,- refreshFileTree: fileManager.refreshFileTree,- reloadPreview,- showToast,});},- [- projectId,- activeCompPath,- timelineElements,- fileManager.readProjectFile,- fileManager.writeProjectFile,- fileManager.refreshFileTree,- editHistory.recordEdit,- reloadPreview,- showToast,- ],+ [projectId, blockCtx],);-const handlePreviewBlockDrop = useCallback((blockName: string, position: { left: number; top: number }) => {if (!projectId) return;void addBlockToProject({projectId,blockName,- activeCompPath,visualPosition: position,+ ...blockCtx,previewIframe: previewIframeRef.current,currentTime: usePlayerStore.getState().currentTime,- timelineElements,- readProjectFile: fileManager.readProjectFile,- writeProjectFile: fileManager.writeProjectFile,- recordEdit: editHistory.recordEdit,- refreshFileTree: fileManager.refreshFileTree,- reloadPreview,- showToast,});},- [- projectId,- activeCompPath,- timelineElements,- fileManager.readProjectFile,- fileManager.writeProjectFile,- fileManager.refreshFileTree,- editHistory.recordEdit,- reloadPreview,- showToast,- ],+ [projectId, blockCtx],);const clearDomSelectionRef = useRef<() => void>(() => {});@@ -414,30 +382,22 @@ export function StudioApp() {resetErrors: resetConsoleErrors,} = useConsoleErrorCapture(previewIframe);- const [globalDragOver, setGlobalDragOver] = useState(false);- const dragCounterRef = useRef(0);+ const dragOverlay = useDragOverlay(fileManager.handleImportFiles);- const { syncPreviewTimelineHotkey, syncPreviewHistoryHotkey } = appHotkeys;const handlePreviewIframeRef = useCallback((iframe: HTMLIFrameElement | null) => {previewIframeRef.current = iframe;setPreviewIframe(iframe);- syncPreviewTimelineHotkey(iframe);- syncPreviewHistoryHotkey(iframe);+ appHotkeys.syncPreviewTimelineHotkey(iframe);+ appHotkeys.syncPreviewHistoryHotkey(iframe);resetConsoleErrors();refreshPreviewDocumentVersion();},- [- refreshPreviewDocumentVersion,- resetConsoleErrors,- syncPreviewHistoryHotkey,- syncPreviewTimelineHotkey,- ],+ [appHotkeys, resetConsoleErrors, refreshPreviewDocumentVersion],);-const handleSelectComposition = useCallback((comp: string) => {- setActiveCompPath(comp === "index.html" || comp.startsWith("compositions/") ? comp : null);+ setActiveCompPath(comp.endsWith(".html") ? comp : null);fileManager.setEditingFile({ path: comp, content: null });fetch(`/api/projects/${projectId}/files/${comp}`).then((r) => r.json())@@ -447,23 +407,19 @@ export function StudioApp() {[projectId, fileManager],);- const selectedStudioMotion =- STUDIO_INSPECTOR_PANELS_ENABLED && domEditSession.domEditSelection- ? readStudioMotionFromElement(domEditSession.domEditSelection.element)- : null;- const layersPanelActive =- STUDIO_INSPECTOR_PANELS_ENABLED && panelLayout.rightPanelTab === "layers";- const designPanelActive =- STUDIO_INSPECTOR_PANELS_ENABLED && panelLayout.rightPanelTab === "design";- const motionPanelActive =- STUDIO_INSPECTOR_PANELS_ENABLED &&- STUDIO_MOTION_PANEL_ENABLED &&- panelLayout.rightPanelTab === "motion";- const inspectorPanelActive = layersPanelActive || designPanelActive || motionPanelActive;- const shouldShowSelectedDomBounds =- inspectorPanelActive && !panelLayout.rightCollapsed && !isPlaying;- const inspectorButtonActive =- STUDIO_INSPECTOR_PANELS_ENABLED && !panelLayout.rightCollapsed && inspectorPanelActive;+ const {+ selectedStudioMotion,+ designPanelActive,+ motionPanelActive,+ inspectorPanelActive,+ inspectorButtonActive,+ shouldShowSelectedDomBounds,+ } = useInspectorState(+ panelLayout.rightPanelTab,+ panelLayout.rightCollapsed,+ isPlaying,+ domEditSession.domEditSelection,+ );useStudioUrlState({projectId,@@ -484,8 +440,7 @@ export function StudioApp() {initialState: initialUrlStateRef.current,});- // StudioProvider performs its own useMemo — no need for a second memo here.- const studioCtxValue: StudioContextValue = {+ const studioCtxValue = buildStudioContextValue({projectId: projectId!,activeCompPath,setActiveCompPath,@@ -498,12 +453,7 @@ export function StudioApp() {currentTime,timelineElements,isPlaying,- editHistory: {- canUndo: editHistory.canUndo,- canRedo: editHistory.canRedo,- undoLabel: editHistory.undoLabel,- redoLabel: editHistory.redoLabel,- },+ editHistory,handleUndo: appHotkeys.handleUndo,handleRedo: appHotkeys.handleRedo,renderQueue: {@@ -519,7 +469,7 @@ export function StudioApp() {refreshPreviewDocumentVersion,timelineVisible,toggleTimelineVisibility,- };+ });if (resolving || waitingForServer || !projectId) {return <StudioSplash waiting={waitingForServer} />;@@ -533,28 +483,10 @@ export function StudioApp() {<DomEditProvider value={domEditSession}><divclassName="flex flex-col h-full w-full bg-neutral-950 relative"- onDragOver={(e) => {- if (!e.dataTransfer.types.includes("Files")) return;- e.preventDefault();- }}- onDragEnter={(e) => {- if (!e.dataTransfer.types.includes("Files")) return;- e.preventDefault();- dragCounterRef.current++;- setGlobalDragOver(true);- }}- onDragLeave={() => {- dragCounterRef.current--;- if (dragCounterRef.current === 0) setGlobalDragOver(false);- }}- onDrop={(e) => {- dragCounterRef.current = 0;- setGlobalDragOver(false);- if (e.defaultPrevented) return;- e.preventDefault();- if (e.dataTransfer.files.length)- fileManager.handleImportFiles(e.dataTransfer.files);- }}+ onDragOver={dragOverlay.onDragOver}+ onDragEnter={dragOverlay.onDragEnter}+ onDragLeave={dragOverlay.onDragLeave}+ onDrop={dragOverlay.onDrop}><StudioHeadercaptureFrameHref={frameCapture.captureFrameHref}@@ -620,6 +552,10 @@ export function StudioApp() {{domEditSession.agentModalOpen && domEditSession.domEditSelection && (<AskAgentModalselectionLabel={domEditSession.domEditSelection.label}+ contextPreview={buildAgentContextPreview(+ domEditSession.domEditSelection,+ activeCompPath,+ )}anchorPoint={domEditSession.agentModalAnchorPoint}onSubmit={domEditSession.handleAgentModalSubmit}onClose={() => {@@ -630,7 +566,7 @@ export function StudioApp() {/>)}- {globalDragOver && <StudioGlobalDragOverlay />}+ {dragOverlay.active && <StudioGlobalDragOverlay />}{appToast && (<divdiff --git a/packages/studio/src/components/AskAgentModal.tsx b/packages/studio/src/components/AskAgentModal.tsxindex 8293c33cc8..2f70965606 100644--- a/packages/studio/src/components/AskAgentModal.tsx+++ b/packages/studio/src/components/AskAgentModal.tsx@@ -26,11 +26,13 @@ function getAgentModalPositionStyle(export function AskAgentModal({selectionLabel,+ contextPreview,anchorPoint = null,onSubmit,onClose,}: {selectionLabel: string;+ contextPreview?: string;anchorPoint?: AgentModalAnchorPoint | null;onSubmit: (instruction: string) => void;onClose: () => void;@@ -66,7 +68,7 @@ export function AskAgentModal({><div className="flex items-center justify-between px-5 py-4 border-b border-neutral-800/60"><div>- <h3 className="text-sm font-medium text-neutral-200">Ask agent</h3>+ <h3 className="text-sm font-medium text-neutral-200">Copy prompt to AI agent</h3><p className="text-xs text-neutral-500 mt-0.5">{selectionLabel.length > 50 ? `${selectionLabel.slice(0, 49)}…` : selectionLabel}</p>@@ -89,7 +91,7 @@ export function AskAgentModal({</svg></button></div>- <div className="px-5 py-4">+ <div className="px-5 py-4 space-y-3"><textarearef={inputRef}className="w-full h-24 px-3 py-2 rounded-lg border border-neutral-800 bg-neutral-900/60 text-sm text-neutral-200 placeholder-neutral-600 resize-none focus:outline-none focus:border-studio-accent/60 focus:ring-1 focus:ring-studio-accent/30"@@ -101,6 +103,16 @@ export function AskAgentModal({if (e.key === "Escape") onClose();}}/>+ {contextPreview && (+ <details className="group">+ <summary className="text-[11px] text-neutral-500 cursor-pointer select-none hover:text-neutral-400">+ Context included in prompt+ </summary>+ <pre className="mt-2 max-h-40 overflow-auto rounded-lg bg-neutral-900/80 px-3 py-2 text-[11px] leading-relaxed text-neutral-500 whitespace-pre-wrap break-words border border-neutral-800/50">+ {contextPreview}+ </pre>+ </details>+ )}</div><div className="flex items-center justify-between px-5 py-3 border-t border-neutral-800/60"><span className="text-[11px] text-neutral-600">diff --git a/packages/studio/src/components/StudioRightPanel.tsx b/packages/studio/src/components/StudioRightPanel.tsxindex 1120a07c26..39409046c9 100644--- a/packages/studio/src/components/StudioRightPanel.tsx+++ b/packages/studio/src/components/StudioRightPanel.tsx@@ -34,6 +34,7 @@ export interface StudioRightPanelProps {onCloseBlockParams?: () => void;}+// fallow-ignore-next-line complexityexport function StudioRightPanel({selectedStudioMotion,designPanelActive,diff --git a/packages/studio/src/components/editor/AnimationCard.tsx b/packages/studio/src/components/editor/AnimationCard.tsxindex 7a5b03c6e5..3849ce0483 100644--- a/packages/studio/src/components/editor/AnimationCard.tsx+++ b/packages/studio/src/components/editor/AnimationCard.tsx@@ -8,23 +8,49 @@ import {EASE_LABELS,METHOD_LABELS,METHOD_TOOLTIPS,+ PERCENT_PROPS,PROP_LABELS,PROP_TOOLTIPS,PROP_UNITS,} from "./gsapAnimationConstants";+import { buildTweenSummary } from "./gsapAnimationHelpers";import { EaseCurveSection } from "./EaseCurveSection";+const BOOLEAN_PROPS = new Set(["visibility"]);-const PERCENT_PROPS = new Set(["opacity", "autoAlpha"]);function isPercentProp(prop: string): boolean {return PERCENT_PROPS.has(prop);}function displayValue(prop: string, val: number | string): string {- return isPercentProp(prop) ? String(Math.round(Number(val) * 100)) : String(val);+ if (isPercentProp(prop)) return String(Math.round(Math.max(0, Math.min(1, Number(val))) * 100));+ return String(val);}function adjustedValue(prop: string, raw: string): string {- return isPercentProp(prop) ? String(Number(raw) / 100) : raw;+ if (isPercentProp(prop)) return String(Math.max(0, Math.min(1, Number(raw) / 100)));+ return raw;+}++function RemoveButton({ onClick, title }: { onClick: () => void; title: string }) {+ return (+ <button+ type="button"+ onClick={onClick}+ className="flex-shrink-0 rounded p-0.5 text-neutral-600 transition-colors hover:bg-neutral-800 hover:text-red-400"+ title={title}+ >+ <svg+ width="12"+ height="12"+ viewBox="0 0 12 12"+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5"+ >+ <path d="M3 3l6 6M9 3l-6 6" />+ </svg>+ </button>+ );}function PropertyRow({@@ -40,6 +66,30 @@ function PropertyRow({onRemove: () => void;removeTitle: string;}) {+ if (BOOLEAN_PROPS.has(prop)) {+ const isVisible = val === "visible" || val === 1;+ return (+ <div className="flex items-center gap-1">+ <div className="min-w-0 flex-1 flex items-center gap-2 px-2 py-1 rounded-lg bg-neutral-900 border border-neutral-800">+ <span className="flex-1 text-[11px] font-medium text-neutral-500">+ {PROP_LABELS[prop] ?? prop}+ </span>+ <button+ type="button"+ onClick={() => onCommit(isVisible ? "hidden" : "visible")}+ className={`flex-shrink-0 w-7 h-4 rounded-full transition-colors relative ${isVisible ? "bg-emerald-500/30" : "bg-neutral-700"}`}+ title={isVisible ? "Visible — click to hide" : "Hidden — click to show"}+ >+ <span+ className={`absolute top-0.5 h-3 w-3 rounded-full transition-transform ${isVisible ? "bg-emerald-400 translate-x-3.5" : "bg-neutral-500 translate-x-0.5"}`}+ />+ </button>+ </div>+ <RemoveButton onClick={onRemove} title={removeTitle} />+ </div>+ );+ }+return (<div className="flex items-center gap-1"><div className="min-w-0 flex-1">@@ -53,23 +103,7 @@ function PropertyRow({onCommit={(raw) => onCommit(adjustedValue(prop, raw))}/></div>- <button- type="button"- onClick={onRemove}- className="flex-shrink-0 rounded p-0.5 text-neutral-600 transition-colors hover:bg-neutral-800 hover:text-red-400"- title={removeTitle}- >- <svg- width="12"- height="12"- viewBox="0 0 12 12"- fill="none"- stroke="currentColor"- strokeWidth="1.5"- >- <path d="M3 3l6 6M9 3l-6 6" />- </svg>- </button>+ <RemoveButton onClick={onRemove} title={removeTitle} /></div>);}@@ -124,36 +158,6 @@ function AddPropertyTrigger({);}-// fallow-ignore-next-line complexity-function buildTweenSummary(animation: GsapAnimation): string {- const easeName = animation.ease ?? "none";- const ease = EASE_LABELS[easeName] ?? easeName;- const props = Object.entries(animation.properties);- const target = animation.targetSelector;- const dur = animation.duration ?? 0;- const pos = animation.position;- const propDescs = props.map(([p, v]) => {- const label = (PROP_LABELS[p] ?? p).toLowerCase();- const unit = PROP_UNITS[p] ?? "";- return `${label} to ${v}${unit}`;- });- const propText = propDescs.length > 0 ? propDescs.join(", ") : "no properties yet";- if (animation.method === "set") return `At ${pos}s, instantly set ${target}'s ${propText}.`;- if (animation.method === "from")- return `Starting at ${pos}s, over ${dur}s, ${target} enters from ${propText} using a ${ease.toLowerCase()} curve.`;- if (animation.method === "fromTo") {- const fromProps = Object.entries(animation.fromProperties ?? {});- const fromDescs = fromProps.map(([p, v]) => {- const label = (PROP_LABELS[p] ?? p).toLowerCase();- const unit = PROP_UNITS[p] ?? "";- return `${label} ${v}${unit}`;- });- const fromText = fromDescs.length > 0 ? fromDescs.join(", ") : "—";- return `Starting at ${pos}s, over ${dur}s, ${target} animates from [${fromText}] to [${propText}] using a ${ease.toLowerCase()} curve.`;- }- return `Starting at ${pos}s, over ${dur}s, animate ${target}'s ${propText} using a ${ease.toLowerCase()} curve.`;-}-function parseNumericOrString(raw: string): number | string {const num = Number(raw);return Number.isFinite(num) ? num : raw;@@ -201,8 +205,11 @@ export const AnimationCard = memo(function AnimationCard({[animation.properties],);const availableProps = useMemo(- () => SUPPORTED_PROPS.filter((p) => !usedProps.has(p)),- [usedProps],+ () =>+ SUPPORTED_PROPS.filter(+ (p) => !usedProps.has(p) && (animation.method === "set" || !BOOLEAN_PROPS.has(p)),+ ),+ [usedProps, animation.method],);const usedFromProps = useMemo(@@ -210,7 +217,7 @@ export const AnimationCard = memo(function AnimationCard({[animation.fromProperties],);const availableFromProps = useMemo(- () => SUPPORTED_PROPS.filter((p) => !usedFromProps.has(p)),+ () => SUPPORTED_PROPS.filter((p) => !usedFromProps.has(p) && !BOOLEAN_PROPS.has(p)),[usedFromProps],);diff --git a/packages/studio/src/components/editor/EaseCurveSection.tsx b/packages/studio/src/components/editor/EaseCurveSection.tsxindex 07995c3369..88e6b81f8b 100644--- a/packages/studio/src/components/editor/EaseCurveSection.tsx+++ b/packages/studio/src/components/editor/EaseCurveSection.tsx@@ -118,11 +118,14 @@ export function EaseCurveSection({{progress !== null ? "Playing…" : "Preview"}</button></div>- <div className="overflow-hidden rounded pt-[72px] -mt-[72px]">+ <div+ className="overflow-hidden rounded pt-[72px] -mt-[72px]"+ style={{ aspectRatio: `${w}/${h}` }}+ ><svgref={svgRef}width="100%"- height={h}+ height="100%"viewBox={`0 0 ${w} ${h}`}preserveAspectRatio="none"style={{ overflow: "visible" }}diff --git a/packages/studio/src/components/editor/PropertyPanel.tsx b/packages/studio/src/components/editor/PropertyPanel.tsxindex c230fdd5de..e93d2c1cd7 100644--- a/packages/studio/src/components/editor/PropertyPanel.tsx+++ b/packages/studio/src/components/editor/PropertyPanel.tsx@@ -135,6 +135,7 @@ function TimingSection({/* PropertyPanel *//* ------------------------------------------------------------------ */+// fallow-ignore-next-line complexityexport const PropertyPanel = memo(function PropertyPanel({projectId,projectDir,@@ -229,6 +230,7 @@ export const PropertyPanel = memo(function PropertyPanel({});};+ // fallow-ignore-next-line complexityconst commitManualSize = (axis: "width" | "height", nextValue: string) => {const parsed = parsePxMetricValue(nextValue);if (parsed == null || parsed <= 0) return;@@ -281,7 +283,7 @@ export const PropertyPanel = memo(function PropertyPanel({className="inline-flex h-8 items-center justify-center gap-2 rounded-xl border border-neutral-700 bg-neutral-950 px-3.5 text-[11px] font-medium text-neutral-100 transition-colors hover:border-studio-accent/40 hover:text-studio-accent"><MessageSquare size={15} />- <span>{copiedAgentPrompt ? "Prompt copied" : "Ask agent"}</span>+ <span>{copiedAgentPrompt ? "Prompt copied" : "Copy prompt to AI agent"}</span></button></div></div>diff --git a/packages/studio/src/components/editor/domEditingAgentPrompt.ts b/packages/studio/src/components/editor/domEditingAgentPrompt.tsindex 79830eab32..2be7155c1c 100644--- a/packages/studio/src/components/editor/domEditingAgentPrompt.ts+++ b/packages/studio/src/components/editor/domEditingAgentPrompt.ts@@ -95,3 +95,17 @@ export function buildElementAgentPrompt({return lines.join("\n");}++export function buildAgentContextPreview(+ selection: DomEditSelection,+ activeCompPath: string | null,+): string {+ return [+ `Composition: ${selection.compositionPath}`,+ `Source: ${selection.sourceFile || activeCompPath || "index.html"}`,+ `Selector: ${selection.selector ?? "(none)"} Tag: <${selection.tagName}>`,+ selection.textContent ? `Text: ${selection.textContent}` : "",+ ]+ .filter(Boolean)+ .join("\n");+}diff --git a/packages/studio/src/components/editor/domEditingElement.ts b/packages/studio/src/components/editor/domEditingElement.tsindex 7d986234ab..b081d64982 100644--- a/packages/studio/src/components/editor/domEditingElement.ts+++ b/packages/studio/src/components/editor/domEditingElement.ts@@ -153,31 +153,49 @@ export function resolveVisualDomEditSelectionTarget(elementsFromPoint: Iterable<Element | null | undefined>,options: Pick<DomEditContextOptions, "activeCompositionPath">,): HTMLElement | null {- const candidates: HTMLElement[] = [];+ const candidates = resolveAllVisualDomEditTargets(elementsFromPoint, options);+ return candidates[0] ?? null;+}++/**+ * Returns all independently-selectable elements at the given point, in paint+ * order (topmost first). Used for click-cycling through stacked layers.+ *+ * Each entry in the returned array is an independent "layer" — an element+ * that is not an ancestor of an earlier entry. This gives one result per+ * z-stacked element rather than one per DOM node.+ */+export function resolveAllVisualDomEditTargets(+ elementsFromPoint: Iterable<Element | null | undefined>,+ options: Pick<DomEditContextOptions, "activeCompositionPath">,+): HTMLElement[] {+ const raw: HTMLElement[] = [];for (const entry of elementsFromPoint) {if (!isHtmlElement(entry)) continue;if (hasRenderedBox(entry) && getDomLayerPatchTarget(entry, options.activeCompositionPath)) {- candidates.push(entry);+ raw.push(entry);}}- if (candidates.length === 0) return null;-- // candidates are in visual stacking order (topmost first, from elementsFromPoint).- // Start with the topmost and only replace with a descendant that is more- // specific within the same visual subtree. Never jump to an unrelated- // element that happens to be painted behind the current pick.- let best = candidates[0];-- for (let i = 1; i < candidates.length; i++) {- const candidate = candidates[i];- if (best.contains(candidate)) {- best = candidate;+ if (raw.length === 0) return [];++ // First pass: for each contiguous ancestor-descendant run, keep only the+ // deepest (most specific) element, matching the original single-pick logic.+ const layers: HTMLElement[] = [];+ let best = raw[0];+ for (let i = 1; i < raw.length; i++) {+ const el = raw[i];+ if (best.contains(el)) {+ best = el; // go deeper in this subtree+ } else {+ layers.push(best);+ best = el;}}+ layers.push(best);- return best;+ return layers;}// ─── Raster detection ────────────────────────────────────────────────────────@@ -248,6 +266,7 @@ export function findElementForSelection(return matches[0] ?? null;}+// fallow-ignore-next-line complexityexport function findElementForTimelineElement(doc: Document,element: TimelineElementDomTarget,diff --git a/packages/studio/src/components/editor/gsapAnimationConstants.ts b/packages/studio/src/components/editor/gsapAnimationConstants.tsindex be64832fc2..425c0b8509 100644--- a/packages/studio/src/components/editor/gsapAnimationConstants.ts+++ b/packages/studio/src/components/editor/gsapAnimationConstants.ts@@ -4,7 +4,7 @@ export const METHOD_LABELS: Record<string, string> = {set: "Set",to: "Animate",from: "Animate In",- fromTo: "Animate",+ fromTo: "From → To",};export const METHOD_TOOLTIPS: Record<string, string> = {@@ -121,6 +121,8 @@ export function parseCustomEaseFromString(ease: string): {return { x1: nums[2], y1: nums[3], x2: nums[4], y2: nums[5] };}+export const PERCENT_PROPS = new Set(["opacity", "autoAlpha"]);+export const ADD_METHODS = ["to", "from", "fromTo", "set"] as const;export const ADD_METHOD_LABELS: Record<string, string> = {diff --git a/packages/studio/src/components/editor/gsapAnimationHelpers.test.ts b/packages/studio/src/components/editor/gsapAnimationHelpers.test.tsnew file mode 100644index 0000000000..aaeb254f61--- /dev/null+++ b/packages/studio/src/components/editor/gsapAnimationHelpers.test.ts@@ -0,0 +1,67 @@+import { describe, expect, it } from "vitest";+import { buildTweenSummary } from "./gsapAnimationHelpers";+import type { GsapAnimation } from "@hyperframes/core/gsap-parser";++function anim(overrides: Partial<GsapAnimation>): GsapAnimation {+ return {+ id: "a1",+ method: "to",+ targetSelector: "#box",+ properties: {},+ position: 0,+ duration: 1,+ ease: "power2.out",+ ...overrides,+ } as GsapAnimation;+}++describe("buildTweenSummary", () => {+ it("describes a to tween", () => {+ const s = buildTweenSummary(anim({ properties: { opacity: 1, x: 100 } }));+ expect(s).toContain("#box");+ expect(s).toContain("opacity");+ expect(s).toContain("move x");+ });++ it("describes a from tween", () => {+ const s = buildTweenSummary(anim({ method: "from", properties: { opacity: 0 } }));+ expect(s).toContain("enters from");+ expect(s).toContain("opacity");+ });++ it("describes a set tween", () => {+ const s = buildTweenSummary(anim({ method: "set", properties: { opacity: 0 } }));+ expect(s).toMatch(/^At 0s, instantly set/);+ expect(s).toContain("opacity");+ });++ it("describes a fromTo tween with both from and to sections", () => {+ const s = buildTweenSummary(+ anim({+ method: "fromTo",+ fromProperties: { opacity: 0, x: -50 },+ properties: { opacity: 1, x: 0 },+ position: 0.5,+ duration: 1.5,+ ease: "expo.out",+ }),+ );+ expect(s).toContain("animates from");+ expect(s).toContain("[opacity 0%");+ expect(s).toContain("move x -50px");+ expect(s).toContain("opacity to 100%");+ expect(s).toContain("very snappy stop");+ });++ it("handles fromTo with empty fromProperties", () => {+ const s = buildTweenSummary(+ anim({ method: "fromTo", fromProperties: {}, properties: { scale: 2 } }),+ );+ expect(s).toContain("from [—]");+ });++ it("handles no properties", () => {+ const s = buildTweenSummary(anim({ properties: {} }));+ expect(s).toContain("no properties yet");+ });+});diff --git a/packages/studio/src/components/editor/gsapAnimationHelpers.ts b/packages/studio/src/components/editor/gsapAnimationHelpers.tsnew file mode 100644index 0000000000..87cfca5456--- /dev/null+++ b/packages/studio/src/components/editor/gsapAnimationHelpers.ts@@ -0,0 +1,36 @@+import type { GsapAnimation } from "@hyperframes/core/gsap-parser";+import { EASE_LABELS, PERCENT_PROPS, PROP_LABELS, PROP_UNITS } from "./gsapAnimationConstants";++function formatPropValue(prop: string, v: number | string): string {+ const unit = PROP_UNITS[prop] ?? "";+ if (PERCENT_PROPS.has(prop)) return `${Math.round(Number(v) * 100)}${unit}`;+ return `${v}${unit}`;+}++// fallow-ignore-next-line complexity+export function buildTweenSummary(animation: GsapAnimation): string {+ const easeName = animation.ease ?? "none";+ const ease = EASE_LABELS[easeName] ?? easeName;+ const props = Object.entries(animation.properties);+ const target = animation.targetSelector;+ const dur = animation.duration ?? 0;+ const pos = animation.position;+ const propDescs = props.map(([p, v]) => {+ const label = (PROP_LABELS[p] ?? p).toLowerCase();+ return `${label} to ${formatPropValue(p, v)}`;+ });+ const propText = propDescs.length > 0 ? propDescs.join(", ") : "no properties yet";+ if (animation.method === "set") return `At ${pos}s, instantly set ${target}'s ${propText}.`;+ if (animation.method === "from")+ return `Starting at ${pos}s, over ${dur}s, ${target} enters from ${propText} using a ${ease.toLowerCase()} curve.`;+ if (animation.method === "fromTo") {+ const fromProps = Object.entries(animation.fromProperties ?? {});+ const fromDescs = fromProps.map(([p, v]) => {+ const label = (PROP_LABELS[p] ?? p).toLowerCase();+ return `${label} ${formatPropValue(p, v)}`;+ });+ const fromText = fromDescs.length > 0 ? fromDescs.join(", ") : "—";+ return `Starting at ${pos}s, over ${dur}s, ${target} animates from [${fromText}] to [${propText}] using a ${ease.toLowerCase()} curve.`;+ }+ return `Starting at ${pos}s, over ${dur}s, animate ${target}'s ${propText} using a ${ease.toLowerCase()} curve.`;+}diff --git a/packages/studio/src/components/editor/propertyPanelPrimitives.tsx b/packages/studio/src/components/editor/propertyPanelPrimitives.tsxindex 449bad38e6..32e0ff0cca 100644--- a/packages/studio/src/components/editor/propertyPanelPrimitives.tsx+++ b/packages/studio/src/components/editor/propertyPanelPrimitives.tsx@@ -29,7 +29,7 @@ function CommitField({const el = inputRef.current;if (!el) return;const handler = (e: WheelEvent) => {- if (disabled) return;+ if (disabled || document.activeElement !== el) return;const delta = e.deltaY === 0 ? e.deltaX : e.deltaY;if (delta === 0) return;const nextDraft = adjustNumericToken(draftRef.current, delta < 0 ? 1 : -1, e);diff --git a/packages/studio/src/components/nle/NLELayout.tsx b/packages/studio/src/components/nle/NLELayout.tsxindex 068603f12a..07562e113f 100644--- a/packages/studio/src/components/nle/NLELayout.tsx+++ b/packages/studio/src/components/nle/NLELayout.tsx@@ -97,6 +97,7 @@ export function shouldDisableTimelineWhileCompositionLoading(compositionLoading:return compositionLoading;}+// fallow-ignore-next-line complexityexport const NLELayout = memo(function NLELayout({projectId,portrait,@@ -367,7 +368,7 @@ export const NLELayout = memo(function NLELayout({{/* Preview + player controls */}<div className="flex-1 min-h-0 flex flex-col"><div- className="flex-1 min-h-0 relative"+ className="flex-1 min-h-0 relative overflow-hidden"data-preview-pan-surface="true"onDragOver={handlePreviewDragOver}onDragLeave={handlePreviewDragLeave}diff --git a/packages/studio/src/hooks/useDomEditSession.ts b/packages/studio/src/hooks/useDomEditSession.tsindex 9b7d0c5364..5df74874c7 100644--- a/packages/studio/src/hooks/useDomEditSession.ts+++ b/packages/studio/src/hooks/useDomEditSession.ts@@ -67,6 +67,7 @@ export interface UseDomEditSessionParams {// ── Hook ──+// fallow-ignore-next-line complexityexport function useDomEditSession({projectId,activeCompPath,@@ -129,6 +130,7 @@ export function useDomEditSession({clearDomSelection,buildDomSelectionFromTarget,resolveDomSelectionFromPreviewPoint,+ resolveAllDomSelectionsFromPreviewPoint,updateDomEditHoverSelection,buildDomSelectionForTimelineElement,handleTimelineElementSelect,@@ -187,6 +189,7 @@ export function useDomEditSession({showToast,applyDomSelection,resolveDomSelectionFromPreviewPoint,+ resolveAllDomSelectionsFromPreviewPoint,updateDomEditHoverSelection,onClickToSource,});@@ -343,6 +346,7 @@ export function useDomEditSession({useEffect(() => {if (!previewIframe) return;+ // fallow-ignore-next-line complexityconst syncSelectionFromDocument = async () => {if (!STUDIO_INSPECTOR_PANELS_ENABLED || captionEditMode) return;const currentSelection = domEditSelectionRef.current;@@ -402,16 +406,20 @@ export function useDomEditSession({// not when openSourceForSelection is recreated due to editingFile content updates.const openSourceRef = useRef(openSourceForSelection);openSourceRef.current = openSourceForSelection;- useEffect(() => {- if (!domEditSelection || !openSourceRef.current || !getSidebarTab) return;- if (!domEditSelection.sourceFile) return;- if (getSidebarTab() !== "code") return;- openSourceRef.current(domEditSelection.sourceFile, {- id: domEditSelection.id,- selector: domEditSelection.selector,- selectorIndex: domEditSelection.selectorIndex,- });- }, [domEditSelection, getSidebarTab]);+ useEffect(+ // fallow-ignore-next-line complexity+ () => {+ if (!domEditSelection || !openSourceRef.current || !getSidebarTab) return;+ if (!domEditSelection.sourceFile) return;+ if (getSidebarTab() !== "code") return;+ openSourceRef.current(domEditSelection.sourceFile, {+ id: domEditSelection.id,+ selector: domEditSelection.selector,+ selectorIndex: domEditSelection.selectorIndex,+ });+ },+ [domEditSelection, getSidebarTab],+ );return {// Statediff --git a/packages/studio/src/hooks/useDomSelection.ts b/packages/studio/src/hooks/useDomSelection.tsindex 0eba293ce6..2554d1b661 100644--- a/packages/studio/src/hooks/useDomSelection.ts+++ b/packages/studio/src/hooks/useDomSelection.ts@@ -1,6 +1,9 @@import { useState, useCallback, useRef, useEffect } from "react";import type { TimelineElement } from "../player";-import { getPreviewTargetFromPointer } from "../utils/studioPreviewHelpers";+import {+ getAllPreviewTargetsFromPointer,+ getPreviewTargetFromPointer,+} from "../utils/studioPreviewHelpers";import { findMatchingTimelineElementId, type RightPanelTab } from "../utils/studioHelpers";import {domEditSelectionsTargetSame,@@ -67,6 +70,10 @@ export interface UseDomSelectionReturn {clientY: number,options?: { preferClipAncestor?: boolean },) => Promise<DomEditSelection | null>;+ resolveAllDomSelectionsFromPreviewPoint: (+ clientX: number,+ clientY: number,+ ) => Promise<DomEditSelection[]>;updateDomEditHoverSelection: (selection: DomEditSelection | null) => void;buildDomSelectionForTimelineElement: (element: TimelineElement,@@ -113,6 +120,7 @@ export function useDomSelection({// ── Callbacks ──const applyDomSelection = useCallback(+ // fallow-ignore-next-line complexity(selection: DomEditSelection | null,options?: {@@ -212,6 +220,7 @@ export function useDomSelection({);const resolveDomSelectionFromPreviewPoint = useCallback(+ // fallow-ignore-next-line complexityasync (clientX: number,clientY: number,@@ -234,6 +243,27 @@ export function useDomSelection({[activeCompPath, buildDomSelectionFromTarget, captionEditMode, previewIframeRef],);+ const resolveAllDomSelectionsFromPreviewPoint = useCallback(+ // fallow-ignore-next-line complexity+ async (clientX: number, clientY: number): Promise<DomEditSelection[]> => {+ const iframe = previewIframeRef.current;+ if (!iframe || captionEditMode) return [];+ try {+ if (iframe.contentDocument) reapplyPositionEditsAfterSeek(iframe.contentDocument);+ } catch {+ /* cross-origin guard */+ }+ const targets = getAllPreviewTargetsFromPointer(iframe, clientX, clientY, activeCompPath);+ const results: DomEditSelection[] = [];+ for (const target of targets) {+ const sel = await buildDomSelectionFromTarget(target, { skipSourceProbe: true });+ if (sel) results.push(sel);+ }+ return results;+ },+ [activeCompPath, buildDomSelectionFromTarget, captionEditMode, previewIframeRef],+ );+const updateDomEditHoverSelection = useCallback((selection: DomEditSelection | null) => {if (domEditSelectionsTargetSame(domEditHoverSelectionRef.current, selection)) return;domEditHoverSelectionRef.current = selection;@@ -241,6 +271,7 @@ export function useDomSelection({}, []);const buildDomSelectionForTimelineElement = useCallback(+ // fallow-ignore-next-line complexityasync (element: TimelineElement): Promise<DomEditSelection | null> => {const iframe = previewIframeRef.current;let doc: Document | null = null;@@ -282,6 +313,7 @@ export function useDomSelection({);const refreshDomEditSelectionFromPreview = useCallback(+ // fallow-ignore-next-line complexityasync (selection: DomEditSelection) => {const iframe = previewIframeRef.current;let doc: Document | null = null;@@ -307,6 +339,7 @@ export function useDomSelection({);const refreshDomEditGroupSelectionsFromPreview = useCallback(+ // fallow-ignore-next-line complexityasync (selections: DomEditSelection[]) => {const iframe = previewIframeRef.current;let doc: Document | null = null;@@ -430,6 +463,7 @@ export function useDomSelection({clearDomSelection,buildDomSelectionFromTarget,resolveDomSelectionFromPreviewPoint,+ resolveAllDomSelectionsFromPreviewPoint,updateDomEditHoverSelection,buildDomSelectionForTimelineElement,handleTimelineElementSelect,diff --git a/packages/studio/src/hooks/useFileManager.ts b/packages/studio/src/hooks/useFileManager.tsindex 2dc18c52c5..caef9eeb91 100644--- a/packages/studio/src/hooks/useFileManager.ts+++ b/packages/studio/src/hooks/useFileManager.ts@@ -38,6 +38,7 @@ export function useFileManager({const [editingFile, setEditingFile] = useState<EditingFile | null>(null);const [projectDir, setProjectDir] = useState<string | null>(null);const [fileTree, setFileTree] = useState<string[]>([]);+ const [compositionPaths, setCompositionPaths] = useState<string[]>([]);const [fileTreeLoaded, setFileTreeLoaded] = useState(false);const [revealSourceOffset, setRevealSourceOffset] = useState<number | null>(null);@@ -65,8 +66,9 @@ export function useFileManager({setFileTreeLoaded(false);fetch(`/api/projects/${projectId}`).then((r) => r.json())- .then((data: { files?: string[]; dir?: string }) => {+ .then((data: { files?: string[]; dir?: string; compositions?: string[] }) => {if (!cancelled && data.files) setFileTree(data.files);+ if (!cancelled && data.compositions) setCompositionPaths(data.compositions);if (!cancelled) setProjectDir(typeof data.dir === "string" ? data.dir : null);}).catch(() => {@@ -417,10 +419,7 @@ export function useFileManager({// ── Derived state ──- const compositions = useMemo(- () => fileTree.filter((f) => f === "index.html" || f.startsWith("compositions/")),- [fileTree],- );+ const compositions = compositionPaths;const assets = useMemo(() =>diff --git a/packages/studio/src/hooks/useGsapScriptCommits.ts b/packages/studio/src/hooks/useGsapScriptCommits.tsindex fdcb8acdf1..b8db3ed78e 100644--- a/packages/studio/src/hooks/useGsapScriptCommits.ts+++ b/packages/studio/src/hooks/useGsapScriptCommits.ts@@ -105,6 +105,7 @@ export function useGsapScriptCommits({/** Send a mutation and record the edit in undo history. */const commitMutation = useCallback(+ // fallow-ignore-next-line complexityasync (selection: DomEditSelection,mutation: Record<string, unknown>,@@ -210,6 +211,7 @@ export function useGsapScriptCommits({);const addGsapAnimation = useCallback(+ // fallow-ignore-next-line complexityasync (selection: DomEditSelection,method: "to" | "from" | "set" | "fromTo",@@ -268,6 +270,7 @@ export function useGsapScriptCommits({);const addGsapProperty = useCallback(+ // fallow-ignore-next-line complexity(selection: DomEditSelection, animationId: string, property: string) => {let defaultValue = PROPERTY_DEFAULTS[property] ?? 0;const el = selection.element;diff --git a/packages/studio/src/hooks/usePreviewInteraction.ts b/packages/studio/src/hooks/usePreviewInteraction.tsindex 25d6a97442..d3887ff713 100644--- a/packages/studio/src/hooks/usePreviewInteraction.ts+++ b/packages/studio/src/hooks/usePreviewInteraction.ts@@ -1,4 +1,4 @@-import { useCallback } from "react";+import { useCallback, useRef } from "react";import { liveTime, usePlayerStore } from "../player";import { pauseStudioPreviewPlayback } from "../utils/studioPreviewHelpers";import { STUDIO_PREVIEW_SELECTION_ENABLED } from "../components/editor/manualEditingAvailability";@@ -22,11 +22,26 @@ export interface UsePreviewInteractionParams {clientY: number,options?: { preferClipAncestor?: boolean; skipSourceProbe?: boolean },) => Promise<DomEditSelection | null>;+ resolveAllDomSelectionsFromPreviewPoint: (+ clientX: number,+ clientY: number,+ ) => Promise<DomEditSelection[]>;updateDomEditHoverSelection: (selection: DomEditSelection | null) => void;onClickToSource?: (selection: DomEditSelection) => void;}+interface ClickCycleState {+ x: number;+ y: number;+ candidates: DomEditSelection[];+ index: number;+ at: number;+}++const CYCLE_RADIUS_PX = 6;+const CYCLE_WINDOW_MS = 600;+// ── Hook ──export function usePreviewInteraction({@@ -36,36 +51,85 @@ export function usePreviewInteraction({showToast,applyDomSelection,resolveDomSelectionFromPreviewPoint,+ resolveAllDomSelectionsFromPreviewPoint,updateDomEditHoverSelection,onClickToSource,}: UsePreviewInteractionParams) {+ const cycleRef = useRef<ClickCycleState | null>(null);+const handlePreviewCanvasMouseDown = useCallback(+ // fallow-ignore-next-line complexityasync (e: React.MouseEvent<HTMLDivElement>, options?: { preferClipAncestor?: boolean }) => {if (!STUDIO_PREVIEW_SELECTION_ENABLED || captionEditMode || compositionLoading) return;++ const now = Date.now();+ const prev = cycleRef.current;+ const dx = prev ? e.clientX - prev.x : Infinity;+ const dy = prev ? e.clientY - prev.y : Infinity;+ const sameSpot =+ prev !== null &&+ Math.sqrt(dx * dx + dy * dy) < CYCLE_RADIUS_PX &&+ now - prev.at < CYCLE_WINDOW_MS;++ if (e.shiftKey) {+ // Additive selection — no cycling+ cycleRef.current = null;+ const nextSelection = await resolveDomSelectionFromPreviewPoint(e.clientX, e.clientY, {+ preferClipAncestor: options?.preferClipAncestor ?? false,+ });+ if (!nextSelection) return;+ e.preventDefault();+ e.stopPropagation();+ applyDomSelection(nextSelection, { additive: true });+ return;+ }++ if (sameSpot && prev) {+ // Cycle to next candidate in z-stack+ const nextIndex = (prev.index + 1) % prev.candidates.length;+ const nextSel = prev.candidates[nextIndex];+ cycleRef.current = { ...prev, index: nextIndex, at: now };+ e.preventDefault();+ e.stopPropagation();+ applyDomSelection(nextSel);+ return;+ }++ // Fresh click — resolve topmost elementconst nextSelection = await resolveDomSelectionFromPreviewPoint(e.clientX, e.clientY, {preferClipAncestor: options?.preferClipAncestor ?? false,});if (!nextSelection) {- if (!e.shiftKey) applyDomSelection(null, { revealPanel: false });+ cycleRef.current = null;+ applyDomSelection(null, { revealPanel: false });return;}e.preventDefault();e.stopPropagation();- applyDomSelection(nextSelection, { additive: e.shiftKey });+ applyDomSelection(nextSelection);+if (!e.shiftKey && e.altKey && onClickToSource) {onClickToSource(nextSelection);}++ // Resolve all stacked candidates so a subsequent click at the same+ // position can cycle to the next layer (issues #1124, #1125).+ const all = await resolveAllDomSelectionsFromPreviewPoint(e.clientX, e.clientY);+ cycleRef.current =+ all.length > 1 ? { x: e.clientX, y: e.clientY, candidates: all, index: 0, at: now } : null;},[applyDomSelection,captionEditMode,compositionLoading,onClickToSource,+ resolveAllDomSelectionsFromPreviewPoint,resolveDomSelectionFromPreviewPoint,],);const handlePreviewCanvasPointerMove = useCallback(+ // fallow-ignore-next-line complexityasync (e: React.PointerEvent<HTMLDivElement>, options?: { preferClipAncestor?: boolean }) => {if (!STUDIO_PREVIEW_SELECTION_ENABLED || captionEditMode || compositionLoading) {updateDomEditHoverSelection(null);diff --git a/packages/studio/src/hooks/useStudioContextValue.ts b/packages/studio/src/hooks/useStudioContextValue.tsnew file mode 100644index 0000000000..985025bbd1--- /dev/null+++ b/packages/studio/src/hooks/useStudioContextValue.ts@@ -0,0 +1,138 @@+import { useCallback, useMemo, useRef, useState, type DragEvent } from "react";+import {+ STUDIO_INSPECTOR_PANELS_ENABLED,+ STUDIO_MOTION_PANEL_ENABLED,+} from "../components/editor/manualEditingAvailability";+import { readStudioMotionFromElement } from "../components/editor/studioMotion";+import type { StudioContextValue } from "../contexts/StudioContext";+import type { DomEditSelection } from "../components/editor/domEditing";++interface StudioContextInput {+ projectId: string;+ activeCompPath: string | null;+ setActiveCompPath: (path: string | null) => void;+ showToast: (message: string, tone?: "error" | "info") => void;+ previewIframeRef: React.MutableRefObject<HTMLIFrameElement | null>;+ captionEditMode: boolean;+ compositionLoading: boolean;+ refreshKey: number;+ setRefreshKey: React.Dispatch<React.SetStateAction<number>>;+ currentTime: number;+ timelineElements: StudioContextValue["timelineElements"];+ isPlaying: boolean;+ editHistory: { canUndo: boolean; canRedo: boolean; undoLabel: string; redoLabel: string };+ handleUndo: StudioContextValue["handleUndo"];+ handleRedo: StudioContextValue["handleRedo"];+ renderQueue: {+ jobs: unknown[];+ isRendering: boolean;+ deleteRender: (id: string) => void;+ clearCompleted: () => void;+ startRender: (options: unknown) => Promise<void>;+ };+ compositionDimensions: { width: number; height: number } | null;+ waitForPendingDomEditSaves: () => Promise<void>;+ handlePreviewIframeRef: (iframe: HTMLIFrameElement | null) => void;+ refreshPreviewDocumentVersion: () => void;+ timelineVisible: boolean;+ toggleTimelineVisibility: () => void;+}++// fallow-ignore-next-line complexity+export function buildStudioContextValue(input: StudioContextInput): StudioContextValue {+ return {+ projectId: input.projectId,+ activeCompPath: input.activeCompPath,+ setActiveCompPath: input.setActiveCompPath,+ showToast: input.showToast,+ previewIframeRef: input.previewIframeRef,+ captionEditMode: input.captionEditMode,+ compositionLoading: input.compositionLoading,+ refreshKey: input.refreshKey,+ setRefreshKey: input.setRefreshKey,+ currentTime: input.currentTime,+ timelineElements: input.timelineElements,+ isPlaying: input.isPlaying,+ editHistory: input.editHistory,+ handleUndo: input.handleUndo,+ handleRedo: input.handleRedo,+ renderQueue: input.renderQueue,+ compositionDimensions: input.compositionDimensions,+ waitForPendingDomEditSaves: input.waitForPendingDomEditSaves,+ handlePreviewIframeRef: input.handlePreviewIframeRef,+ refreshPreviewDocumentVersion: input.refreshPreviewDocumentVersion,+ timelineVisible: input.timelineVisible,+ toggleTimelineVisibility: input.toggleTimelineVisibility,+ };+}++export interface InspectorState {+ selectedStudioMotion: ReturnType<typeof readStudioMotionFromElement> | null;+ layersPanelActive: boolean;+ designPanelActive: boolean;+ motionPanelActive: boolean;+ inspectorPanelActive: boolean;+ inspectorButtonActive: boolean;+ shouldShowSelectedDomBounds: boolean;+}++export function useInspectorState(+ rightPanelTab: string,+ rightCollapsed: boolean,+ isPlaying: boolean,+ domEditSelection: DomEditSelection | null,+): InspectorState {+ // fallow-ignore-next-line complexity+ return useMemo(() => {+ const selectedStudioMotion =+ STUDIO_INSPECTOR_PANELS_ENABLED && domEditSelection+ ? readStudioMotionFromElement(domEditSelection.element)+ : null;+ const layersPanelActive = STUDIO_INSPECTOR_PANELS_ENABLED && rightPanelTab === "layers";+ const designPanelActive = STUDIO_INSPECTOR_PANELS_ENABLED && rightPanelTab === "design";+ const motionPanelActive =+ STUDIO_INSPECTOR_PANELS_ENABLED && STUDIO_MOTION_PANEL_ENABLED && rightPanelTab === "motion";+ const inspectorPanelActive = layersPanelActive || designPanelActive || motionPanelActive;+ return {+ selectedStudioMotion,+ layersPanelActive,+ designPanelActive,+ motionPanelActive,+ inspectorPanelActive,+ inspectorButtonActive:+ STUDIO_INSPECTOR_PANELS_ENABLED && !rightCollapsed && inspectorPanelActive,+ shouldShowSelectedDomBounds: inspectorPanelActive && !rightCollapsed && !isPlaying,+ };+ }, [rightPanelTab, rightCollapsed, isPlaying, domEditSelection]);+}++// fallow-ignore-next-line complexity+export function useDragOverlay(onImportFiles: (files: FileList) => void) {+ const [active, setActive] = useState(false);+ const counterRef = useRef(0);+ const onDragOver = useCallback((e: DragEvent) => {+ if (!e.dataTransfer.types.includes("Files")) return;+ e.preventDefault();+ }, []);+ const onDragEnter = useCallback((e: DragEvent) => {+ if (!e.dataTransfer.types.includes("Files")) return;+ e.preventDefault();+ counterRef.current++;+ setActive(true);+ }, []);+ const onDragLeave = useCallback(() => {+ counterRef.current--;+ if (counterRef.current === 0) setActive(false);+ }, []);+ const onDrop = useCallback(+ (e: DragEvent) => {+ counterRef.current = 0;+ setActive(false);+ if (e.defaultPrevented) return;+ e.preventDefault();+ if (e.dataTransfer.files.length) onImportFiles(e.dataTransfer.files);+ },+ [onImportFiles],+ );+ return { active, onDragOver, onDragEnter, onDragLeave, onDrop };+}diff --git a/packages/studio/src/utils/studioPreviewHelpers.ts b/packages/studio/src/utils/studioPreviewHelpers.tsindex 6540165392..6bb8cb8a5e 100644--- a/packages/studio/src/utils/studioPreviewHelpers.ts+++ b/packages/studio/src/utils/studioPreviewHelpers.ts@@ -3,6 +3,7 @@ import { resolveVisualDomEditSelectionTarget } from "../components/editor/domEdiimport {getDomLayerPatchTarget,isElementComputedVisible,+ resolveAllVisualDomEditTargets,} from "../components/editor/domEditingElement";import { getEventTargetElement } from "./studioHelpers";@@ -58,6 +59,7 @@ function removePointerEventsOverride(style: HTMLStyleElement | null): void {}}+// fallow-ignore-next-line complexityexport function getPreviewTargetFromPointer(iframe: HTMLIFrameElement,clientX: number,@@ -98,6 +100,42 @@ export function getPreviewTargetFromPointer(}}+/** Returns all independently-selectable elements at the pointer (topmost first). */+export function getAllPreviewTargetsFromPointer(+ iframe: HTMLIFrameElement,+ clientX: number,+ clientY: number,+ activeCompositionPath: string | null,+): HTMLElement[] {+ let doc: Document | null = null;+ let win: Window | null = null;+ try {+ doc = iframe.contentDocument;+ win = iframe.contentWindow;+ } catch {+ return [];+ }+ if (!doc || !win) return [];++ const localPointer = resolvePreviewLocalPointer(iframe, doc, win, clientX, clientY);+ if (!localPointer) return [];++ const overrideStyle = forcePointerEventsAuto(doc);+ try {+ if (typeof doc.elementsFromPoint === "function") {+ return resolveAllVisualDomEditTargets(doc.elementsFromPoint(localPointer.x, localPointer.y), {+ activeCompositionPath,+ });+ }+ const fallback = getEventTargetElement(doc.elementFromPoint(localPointer.x, localPointer.y));+ if (!fallback || !getDomLayerPatchTarget(fallback, activeCompositionPath)) return [];+ if (!isElementComputedVisible(fallback)) return [];+ return [fallback];+ } finally {+ removePointerEventsOverride(overrideStyle);+ }+}+function objectLike(value: unknown): object | null {return value && (typeof value === "object" || typeof value === "function") ? value : null;}