Media Library: Video subtitles, improved authentication handling, and asset visibility fixes

This release introduces video subtitles management, improved authentication handling, and several navigation and asset visibility bugfixes.

Video subtitles

You can now manage subtitles directly within the Media Library for your video assets. The new Subtitles view in the video sidebar lets you generate AI-powered subtitles in 22 languages, upload your own VTT or SRT files, and preview subtitle segments with timestamps. Generated subtitles are clearly marked so you can distinguish them from manually uploaded files.

Improved authentication handling

The Media Library now handles token refreshes more gracefully. Previously, if your authentication token expired (for example, after your laptop woke from sleep), you might see authorization errors with no recovery. Now tokens are refreshed automatically, and any failed requests retry with the fresh token.

Consistent asset visibility

Changing an asset's visibility between public and private now works correctly even when the asset has unpublished draft changes. The visibility setting is always read from and applied to the published document, preventing drafts from accidentally overwriting your visibility preferences.

🐛 Notable bugfixes

Fixed the navigation menu not closing automatically after navigating on mobile devices

Fixed the menu toggle icon being inconsistent across pages, it now shows a hamburger on narrow screens and a panel icon on wider screens

Fixed the navigation panel not being reopenable when viewing an asset in preview mode

Fixed an issue where dragging files over an empty collection caused the upload overlay to flash repeatedly instead of staying visible

Fixed error and loading screens appearing flush against the viewport edges with no padding

Fixed debug logging being enabled for all users in production, which was flooding browser consoles with internal messages