Skip to content

@remotion/studio: Show asset info when asset is selected in sidebar#6536

Merged
JonnyBurger merged 5 commits intomainfrom
feat/asset-info-sidebar
Feb 17, 2026
Merged

@remotion/studio: Show asset info when asset is selected in sidebar#6536
JonnyBurger merged 5 commits intomainfrom
feat/asset-info-sidebar

Conversation

@JonnyBurger
Copy link
Member

Summary

  • Add a CurrentAsset info panel that appears above the asset list when an asset is selected in the sidebar
  • Displays the file name and formatted file size, mirroring the existing CurrentComposition pattern
  • Adjusts asset list height to account for the info bar

Test plan

  • Open Remotion Studio, go to Assets tab
  • Click on an asset — info bar should appear showing file name and size
  • Select a composition — asset info bar should disappear
  • Verify the asset list scrolls correctly with the info bar visible

🤖 Generated with Claude Code

Display file name and size in a panel above the asset list when an asset is selected, mirroring the CurrentComposition pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 17, 2026 08:46
@vercel
Copy link
Contributor

vercel bot commented Feb 17, 2026

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

Project Deployment Actions Updated (UTC)
bugs Canceled Canceled Feb 17, 2026 10:03am
remotion Error Error Feb 17, 2026 10:03am

Request Review

@JonnyBurger JonnyBurger changed the title Show asset info when asset is selected in sidebar @remotion/studio: Show asset info when asset is selected in sidebar Feb 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a “current asset” info bar to Remotion Studio’s Assets sidebar, similar to the existing “current composition” header, and adjusts the asset list height when the header is visible.

Changes:

  • Introduces CurrentAsset panel showing selected asset filename and formatted size.
  • Updates AssetSelector to render CurrentAsset when an asset is selected.
  • Adjusts the scrollable asset list height via calc(100% - CURRENT_ASSET_HEIGHT).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/studio/src/components/CurrentAsset.tsx New header component that reads current selected asset and shows name + size.
packages/studio/src/components/AssetSelector.tsx Renders the new header and updates list sizing to account for it.

JonnyBurger and others added 4 commits February 17, 2026 10:01
Replace direct getStaticFiles() call with a useStaticFiles() hook
that subscribes to watchPublicFolder, so the asset panel updates
reactively when the public folder changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JonnyBurger JonnyBurger merged commit cb5e0d5 into main Feb 17, 2026
12 of 14 checks passed
@JonnyBurger JonnyBurger deleted the feat/asset-info-sidebar branch February 17, 2026 09:43
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

Comments