Skip to content

@remotion/drag-and-drop: Add Install in Studio interface - #9576

Merged
JonnyBurger merged 1 commit into
mainfrom
codex/drag-and-drop-install-in-studio
Jul 24, 2026
Merged

@remotion/drag-and-drop: Add Install in Studio interface#9576
JonnyBurger merged 1 commit into
mainfrom
codex/drag-and-drop-install-in-studio

Conversation

@JonnyBurger

Copy link
Copy Markdown
Member

Summary

  • add a shared installInStudio() transport to @remotion/drag-and-drop
  • expose typed Studio target and install result metadata
  • refactor the Elements gallery to use the shared interface
  • cover target selection and install failures with tests

Testing

  • bun run build
  • bun run stylecheck
  • bun test packages/drag-and-drop/src/test

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Jul 24, 2026 12:03pm
remotion Ready Ready Preview, Comment Jul 24, 2026 12:03pm

Request Review

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed changes — extracts the “Install in Studio” logic from the docs ElementPage into @remotion/drag-and-drop as a shared installInStudio() transport, exposes typed StudioInstallTarget and InstallInStudioResult, and refactors the Elements gallery caller.

  • New installInStudio() function with dependency injection (fetchFn, now, ports) so it can be tested without making real network calls.
  • New StudioInstallTarget and InstallInStudioResult types exported from @remotion/drag-and-drop, with the origin field promoted into the target type (previously assembled ad-hoc by the caller).
  • Runtime response validation via isStudioInstallTarget() and isRecord() — the old code used a bare as ElementInstallTarget cast.
  • Simplified ElementPage.tsx caller from ~70 lines of inline probing/fetching/error-handling logic to a single DragAndDropInternals.installInStudio(dragData) call.
  • 3 tests covering most-recently-focused target selection, no-available-studio error, and rejected-install error propagation.
`@remotion/drag-and-drop`: Add Install in Studio interface

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) (Claude Opus not used — the program covers this model; add its provider key to run your pick) | 𝕏

@JonnyBurger
JonnyBurger merged commit 06f2fd7 into main Jul 24, 2026
19 checks passed
@JonnyBurger
JonnyBurger deleted the codex/drag-and-drop-install-in-studio branch July 24, 2026 12:28
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