refactor(repo): resolve changed-code audit

This commit is contained in:
James
2026-07-20 11:59:57 -07:00
parent cbcf45facf
commit ab8b50afd7
21 changed files with 54 additions and 51 deletions
@@ -25,6 +25,7 @@ function renderKeyframeOps(over: {
}) {
const captured: { api: HookApi | null } = { api: null };
function Probe() {
// fallow-ignore-next-line code-duplication
captured.api = useGsapKeyframeOps({
activeCompPath: "index.html",
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- test doubles
@@ -1,3 +1,5 @@
// fallow-ignore-file code-duplication
// Add/remove operation-family transaction shapes stay parallel until SDK graduation.
import { useCallback } from "react";
import type { GsapAnimation } from "@hyperframes/core/gsap-parser";
import type { Composition } from "@hyperframes/sdk";
@@ -84,6 +84,7 @@ export function useGsapPropertyDebounce(
const mutation = { type: "update-property", animationId, property, value };
const label = `Edit GSAP ${property}`;
try {
// fallow-ignore-next-line code-duplication
const { sdkSession, sdkDeps, activeCompPath } = sdkRef.current ?? {};
if (sdkSession && sdkDeps) {
const targetPath = selection.sourceFile || activeCompPath || "index.html";
@@ -9,6 +9,7 @@ import type { RecordEditInput } from "./timelineEditingHelpers";
interface UseRazorSplitOptions {
projectId: string | null;
// fallow-ignore-next-line code-duplication
activeCompPath: string | null;
showToast: (message: string, tone?: "error" | "info") => void;
writeProjectFile: (path: string, content: string, expectedContent?: string) => Promise<void>;
@@ -1,3 +1,4 @@
// fallow-ignore-file code-duplication
// @vitest-environment happy-dom
import React, { act, useRef } from "react";
@@ -1,3 +1,5 @@
// fallow-ignore-file code-duplication
// Move/resize operation families remain parallel until SDK graduation.
import { useCallback, type MutableRefObject, type RefObject } from "react";
import type { Composition } from "@hyperframes/sdk";
import type { TimelineElement } from "../player";