Skip to content

refactor(studio): split oversized files to pass 600-line check#1313

Merged
miguel-heygen merged 1 commit into
mainfrom
fix/studio-file-sizes
Jun 9, 2026
Merged

refactor(studio): split oversized files to pass 600-line check#1313
miguel-heygen merged 1 commit into
mainfrom
fix/studio-file-sizes

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

Summary

  • 7 Studio files exceeded the 600-line CI limit after the keyframe system was merged
  • Extracted logical chunks into new modules: helper functions, sub-components, sub-hooks
  • No behavior changes — pure code organization

Files split

File Before After Extracted to
App.tsx 747 578 useGestureCommit.ts, useBlockHandlers.ts
PropertyPanel.tsx 682 557 propertyPanel3dTransform.tsx, helpers in propertyPanelHelpers.ts
gsapRuntimeBridge.ts 647 281 gsapDragCommit.ts, gsapRuntimeReaders.ts
useDomEditSession.ts 643 577 useDomEditPreviewSync.ts
useGsapScriptCommits.ts 640 567 gsapKeyframeCacheHelpers.ts
useTimelineEditing.ts 617 495 timelineEditingHelpers.ts
manualEditsDom.ts 611 563 gsapAnimatesProperty.ts

Test plan

  • All 7 target files are under 600 lines
  • tsc --noEmit passes clean

@miguel-heygen miguel-heygen merged commit 81416ab into main Jun 9, 2026
11 of 12 checks passed
@miguel-heygen miguel-heygen deleted the fix/studio-file-sizes branch June 9, 2026 23:53
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