Skip to content

@remotion/studio: Add composition quick action - #9810

Merged
JonnyBurger merged 3 commits into
mainfrom
codex/add-composition-quick-action
Jul 28, 2026
Merged

@remotion/studio: Add composition quick action#9810
JonnyBurger merged 3 commits into
mainfrom
codex/add-composition-quick-action

Conversation

@JonnyBurger

Copy link
Copy Markdown
Member

Summary

  • add an "Add composition..." quick action to the composition inspector
  • let the quick switcher return a selected composition without navigating away
  • insert the selected composition through the existing canvas-drop insertion path

Verification

  • bun run build
  • bun run stylecheck
  • bunx turbo run test --filter='@remotion/studio' --no-update-notifier (534 tests)

Closes #9749

@vercel

vercel Bot commented Jul 28, 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 28, 2026 4:34pm
remotion Ready Ready Preview, Comment Jul 28, 2026 4:34pm

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 — adds an "Add composition..." quick action to the composition inspector that reuses the existing canvas-drop composition insertion path through insertComposition.

  • Add "Add composition..." button to CompositionInspector — visible under the same conditions as "Add asset..." (canShowInsertAsset), with a FilmIcon and loading guard (isAddingComposition).
  • Extend quick switcher with compositionSelection callback — when non-null, forces compositions mode, hides the mode selector, starts with an empty query, and calls onSelected instead of navigating to the composition.
  • Wire onCompositionSelected in useCompositionActions — resolves the selected composition's source file via stack trace or browserStudioOperations, constructs drag data, and delegates to the existing insertComposition from import-assets.
  • Add compositionSelection to ModalState type — threaded through QuickSwitcher, QuickSwitcherContent, and Modals; all existing call sites pass null.

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 4c7cb8c into main Jul 28, 2026
18 checks passed
@JonnyBurger
JonnyBurger deleted the codex/add-composition-quick-action branch July 28, 2026 16:39
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.

Composition inspector: New quick action: Add other composition

1 participant