Skip to content

refactor: remove legacy manual edits JSON manifest render script#869

Closed
miguel-heygen wants to merge 1 commit into
mainfrom
cleanup/remove-legacy-manifest-and-motion-panel
Closed

refactor: remove legacy manual edits JSON manifest render script#869
miguel-heygen wants to merge 1 commit into
mainfrom
cleanup/remove-legacy-manifest-and-motion-panel

Conversation

@miguel-heygen
Copy link
Copy Markdown
Collaborator

@miguel-heygen miguel-heygen commented May 15, 2026

Summary

Removes the deprecated .hyperframes/studio-manual-edits.json sidecar approach — the old system that read a JSON manifest and injected a runtime into rendered HTML to apply position/rotation/size edits. This was replaced by the seek-reapply script that reads positions directly from HTML data attributes and CSS custom properties (shipped in v0.6.7).

~850 lines removed across 9 files. Motion panel code is not touched — it will be re-architected separately to persist GSAP motion directly to HTML (same approach as manual position edits).

What was removed

  • createStudioManualEditsRenderBodyScript() and the ~350-line studioManualEditsRenderRuntime() from core
  • STUDIO_MANUAL_EDITS_PATH constant and all references to .hyperframes/studio-manual-edits.json
  • Manifest reading/injection in CLI studio server (readStudioManualEditManifestContent, applyStudioManualEditsToThumbnailPage, reapplyStudioManualEditsToThumbnailPage)
  • Manual edits script generation in vite.studioMotion.ts and vite.browser.ts
  • Manual edits cache key in thumbnail route
  • Related test coverage

What was kept

  • createStudioPositionSeekReapplyScript() / studioPositionSeekReapplyRuntime() — the active render script
  • All motion panel code (MotionPanel, EaseCurveEditor, studioMotion*, studioMotionRenderScript)
  • All manual edits DOM code (manualEdits.ts, manualEditsDom.ts, manualEditsParsing.ts)
  • useManifestPersistence hook (unchanged)

Test plan

  • bun run build passes
  • Affected tests pass (core studio-api routes, render script tests)
  • Pre-commit hooks pass (lint, format, typecheck)

Remove the old `.hyperframes/studio-manual-edits.json` sidecar approach
that injected a manifest-based runtime into rendered HTML to apply
position/rotation/size edits. This was replaced by the seek-reapply
script that reads positions directly from HTML data attributes and CSS
custom properties (shipped in v0.6.7).

Removed: `createStudioManualEditsRenderBodyScript`,
`studioManualEditsRenderRuntime`, `STUDIO_MANUAL_EDITS_PATH`, and all
references in CLI server, studio vite plugins, and thumbnail routes.

Kept: `createStudioPositionSeekReapplyScript` (active render script),
all motion panel code, all manual edits DOM code.
@miguel-heygen miguel-heygen force-pushed the cleanup/remove-legacy-manifest-and-motion-panel branch from f6b6ac3 to a1fe2b1 Compare May 15, 2026 17:48
@miguel-heygen miguel-heygen changed the title refactor: remove legacy manual edits manifest and studio motion panel refactor: remove legacy manual edits JSON manifest render script May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant