Skip to content

Add stack traces to Composition and improve studio menu bar#6950

Merged
JonnyBurger merged 2 commits intomainfrom
feat/composition-stack-traces-and-menu-improvements
Mar 31, 2026
Merged

Add stack traces to Composition and improve studio menu bar#6950
JonnyBurger merged 2 commits intomainfrom
feat/composition-stack-traces-and-menu-improvements

Conversation

@JonnyBurger
Copy link
Copy Markdown
Member

Summary

  • Add stack field to TComposition and register <Composition> with addSequenceStackTraces so the bundler JSX proxy injects stack traces at mount time
  • Rework the studio menu bar to show project / composition with the project name as a clickable link (replacing the old external-link icon) and the composition name linking to its source location when the stack trace resolves
  • Extract MenuCompositionName into its own component that resolves the composition's stack trace via source maps and opens the editor at the original position
  • Use textDecoration: underline with textUnderlineOffset: 2 for hover states consistently across the menu bar and timeline

Test plan

  • Verify studio menu bar shows project / composition when a composition is selected
  • Verify clicking the project name opens the editor (or git repo)
  • Verify clicking the composition name opens the editor at the <Composition> source location
  • Verify hover underline appears on both project name and composition name
  • Verify timeline hover underline uses text-decoration instead of border-bottom
  • Verify bun run build passes

🤖 Generated with Claude Code

- Add `stack` field to `TComposition` and register `Composition` with
  `addSequenceStackTraces` so the bundler proxy injects stack traces
- Show composition name in the menu bar as `project / composition`
- Make project name a clickable link (opens editor or git repo),
  replacing the old `OpenEditorButton` icon
- Extract `MenuCompositionName` component that resolves the composition
  stack trace and links to the source location when resolvable
- Style slash separator with `LIGHT_TEXT` color
- Use `textDecoration: underline` with `textUnderlineOffset: 2` for
  hover states consistently (menu bar + timeline)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pullfrog
Copy link
Copy Markdown
Contributor

pullfrog bot commented Mar 31, 2026

Reviewed PR #6950 — no actionable issues found. The stack trace injection for <Composition>, menu bar rework, and OpenEditorButton removal are all clean. Approved.

Task list (4/4 completed)
  • Read the PR diff and identify major areas of change
  • Review each changed file in depth
  • Run impact analysis for removed OpenEditorButton
  • Self-critique and submit review

Pullfrog  | View workflow run | Triggered by Pullfrog | Using Big Pickle (free) | 𝕏

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 31, 2026

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

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Mar 31, 2026 2:42pm
remotion Ready Ready Preview, Comment Mar 31, 2026 2:42pm

Request Review

Copy link
Copy Markdown
Contributor

@pullfrog pullfrog bot left a comment

Choose a reason for hiding this comment

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

Clean PR. The stack field is correctly threaded through TComposition and all fixtures, the JSX proxy injection via addSequenceStackTraces(Composition) follows the established pattern, OpenEditorButton is fully removed with no dangling references, and MenuCompositionName properly resolves stack traces via source maps. No issues found.

Pullfrog  | View workflow run | Using Big Pickle (free) | 𝕏

- Make `stack` prop readonly in InnerComposition
- Extract stack from compProps before useEffect to satisfy exhaustive-deps
- Use Boolean() instead of !! for no-implicit-coercion rule

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JonnyBurger JonnyBurger enabled auto-merge March 31, 2026 14:40
@JonnyBurger JonnyBurger merged commit 05de9a0 into main Mar 31, 2026
17 of 18 checks passed
@JonnyBurger JonnyBurger deleted the feat/composition-stack-traces-and-menu-improvements branch March 31, 2026 14:49
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