Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

fix(studio): contain playhead and show audio file extensions

open-design-crew[bot]65d1ba6f7b73
diff --git a/docs/product/architecture.md b/docs/product/architecture.md
index 1d67c5ef..8e9552bf 100644
--- a/docs/product/architecture.md
+++ b/docs/product/architecture.md
@@ -21,7 +21,7 @@ Model Gateway remains a shared media-generation backend for MCP, using local Cod
- An empty, loaded root composition shows a centered import/drop prompt over the mounted preview and hides transport controls, including the placeholder duration. The empty state requires both no timeline clips and no authored preview content; loading, failed previews and nested compositions retain their existing states. Import uses the existing timeline gateway and file-drop pipeline. The empty timeline retains its drop target and ruler, with a muted dashed track sketch instead of a duplicate import prompt or button. Empty timelines disable zoom controls. A confirmed empty composition blocks new exports at both the settings button and the shared editor render-start handler, while existing export history remains available. Properties distinguish no content from no selection; small panel empty states share muted text and icon sizing. Preview zoom percentage and Fit sit in the MVP preview header, outside the picture. Clicking the percentage opens 50%, 75%, 100%, 150% and 200% presets in a compact opaque menu. The MVP hides the corner position navigator; existing zoom gestures and Fit remain available. Browser fullscreen is unavailable in the MVP, including its playback button and keyboard entry; workspace preview expansion remains available. Playback controls respond to their own container width: secondary-button gaps narrow below 420px, and speed/loop controls hide below 420px so timecode, play/pause and volume remain on one row. Preview and track volume use upward floating vertical sliders, opened by hover or keyboard focus; clicking the speaker still toggles mute.
- The composition list places the full video first, preserves the remaining clip order, and marks the live preview target. Queued, loading, missing and failed covers share a muted gray OD placeholder without failure text; decoded covers replace it automatically. A confirmed empty root is omitted from this list using the same loaded-preview content check; when no clips remain, the panel shows a brief empty state. The MVP omits the duplicate preview breadcrumb; composition switching and existing return shortcuts remain available.
- The editor header keeps the OpenDesign logo, drawer toggle and template library on the left, centers the editable project name, and places undo/redo and export on the right. Clearing the title and committing with blur or Enter saves the localized Untitled default; Escape cancels. A logo-only community link sits immediately before Export and opens the public Discord community in every interface language, with a localized accessible tooltip; external links open separately from the editor. Transient save/error status remains available. Workspace and export failures show concise causes and available next steps, with raw diagnostics behind expandable, copyable details. Workspace connection failures use a persistent single-line feedback toast at the top center with a Reconnecting status and no buttons or diagnostic details. The Reconnecting ellipsis animates without changing the toast width; reduced-motion preferences keep it static. Automatic polling waits 1.8 seconds after each completed attempt and removes the toast on recovery; it has no overall retry limit or explicit per-request timeout and does not start a stopped service. Other notice dismissal does not bypass write guards. Toasts stack at the top center of the editor; identical notices replace their previous instance. Error toasts use the compact neutral feedback surface and concise recognized causes, with a dismiss button and no details icon or expandable diagnostics. Detailed error panels retain their diagnostic controls. Informational toasts disappear after three seconds without a close control; actionable error notices remain dismissible and do not auto-expire. Save-queue pauses use a brief, localized feedback toast without paths, diagnostics or a retry action; it expires after three seconds without clearing the write guard or claiming that failed edits were saved. The template library reuses the website catalog layout: brand/use-case/video-type facets, configured featured templates, search and sorting, without site navigation, promotional hero or footer. Prism metadata and local cache updates drive the list. The catalog selects the editor locale from a shared multilingual publication, falling back to English and then the Resource default; template-copy prompts support the same eleven UI languages. Previews, author/source links and editable-project opening remain available. The detail view keeps the motion.md download action (`motionDocumentUrl`) above its guide content (`styleDescription`, `reviewFocus`, `motionGuideUrl`). Recreate opens a separate prompt dialog; copied instructions never occupy the guide area.
-- The asset panel shows only the current project, with compact search/import controls, type filters, and a dedicated scrollable list. Usage filtering is omitted; used assets still sort first within each type. In both My assets and the official animation library, hover plays only the card thumbnail, while clicking opens a centered modal preview over a gray full-editor backdrop. The modal reuses Studio-styled playback, volume and speed controls; its play button stays centered, and speed/loop controls hide below 420px to avoid overlap. Volume and loop icons are 16px inside 28px buttons, and playback speed text is 12px; closing it restores access to the paused composition; previewing media does not add it to the project. The global cache view remains in source but has no editor entry in the MVP.
+- The asset panel shows only the current project, with compact search/import controls, type filters, and a dedicated scrollable list. User-uploaded audio rows in My assets show full filenames with their original extensions and wrap long names within the panel; the generic Audio label is omitted, while duration and specific BGM/SFX/Voice labels remain when available. Official library sources and presentation are unchanged. Usage filtering is omitted; used assets still sort first within each type. In both My assets and the official animation library, hover plays only the card thumbnail, while clicking opens a centered modal preview over a gray full-editor backdrop. The modal reuses Studio-styled playback, volume and speed controls; its play button stays centered, and speed/loop controls hide below 420px to avoid overlap. Volume and loop icons are 16px inside 28px buttons, and playback speed text is 12px; closing it restores access to the paused composition; previewing media does not add it to the project. The global cache view remains in source but has no editor entry in the MVP.
- Panel positions are fixed. Export settings and render history live in a compact popover below the header Export button, outside the right panel. Both side groups can temporarily collapse into 48px vertical icon rails, giving their width to preview; the rail toggle restores the previous width and tab, while a module icon opens that module. Collapse does not remove panels or remount the player. Opening the MVP starts both sides collapsed and the timeline at 30% of the available dock height (subject to minimum sizes); users can then drag the divider to enlarge or reduce it. The fixed layout reserves at least 360px for preview, 260px for each expanded side panel. Side availability retains the existing conservative breakpoints, independently of the resizable minimums: below 740px both side groups and rails hide; from 740px to 1011px only one side can expand; wider hosts allow both only when their requested widths leave the preview floor intact. Opening a side through a toggle, module shortcut or programmatic activation uses the same fit check and closes the opposite side when necessary. Shrinking the host collapses expanded sides when they no longer fit; widening restores collapsed rails without automatically reopening panels. At widths smaller than the preview floor, preview uses the available workspace. Remembered expanded side widths remain available when reopening a side. Divider hover and drag change only the thin line to green. Divider resizing and per-project expanded-size persistence remain; panel movement, closing and layout presets are absent. Preview alone can temporarily expand within the editor workspace, keeping the host chat visible and the player mounted. Its header button or Escape restores the previous layout and playback position; expansion is not persisted across reloads.
- MVP controls share a locally bundled Remix Icon 4.9.1 set with the reference design system. Menu selections consistently use check icons, and the language menu is 180px wide. Expanded side-panel tabs remain text-only; collapsed rails use the corresponding panel icons. Brand artwork and timeline geometry are separate from control icons.
- The editor startup shell and project/editor loading boundaries share a centered, theme-aware OD symbol without adding a minimum loading delay. Below 700px of workspace content width, the editor header stays on one row: undo/redo and version history hide, the template library becomes icon-only, the project title truncates, and Export stays at the right edge.
diff --git a/docs/reviews/motion-mvp-ui-followup/audio-full-filenames.png b/docs/reviews/motion-mvp-ui-followup/audio-full-filenames.png
new file mode 100644
index 00000000..2e89d97c
Binary files /dev/null and b/docs/reviews/motion-mvp-ui-followup/audio-full-filenames.png differ
diff --git a/docs/reviews/motion-mvp-ui-followup/interaction-update.md b/docs/reviews/motion-mvp-ui-followup/interaction-update.md
index b8657fe2..031e406c 100644
--- a/docs/reviews/motion-mvp-ui-followup/interaction-update.md
+++ b/docs/reviews/motion-mvp-ui-followup/interaction-update.md
@@ -52,3 +52,22 @@ The Reconnecting ellipsis now cycles the three dots without changing toast width
Browser verification used the production toast and built styles in an isolated harness, without disconnecting the real project: 45 computed-style samples captured three distinct dot-opacity states and a constant 220.4766px toast width. Simulated recovery unmounted the indicator. See [animation samples](reconnecting-animation-samples.json) and [one visual frame](reconnecting-animated.png). The real 4173 editor was rebuilt. During refresh, its service was found stopped; after restoring it with the existing interaction-workspace data directory, the original project reopened with no connection notice and Undo still disabled. No project content was changed.
`check`, Studio typecheck and both working/publish builds passed. Five targeted suites cover 89 tests: 88 initially passed, and the existing connection-feedback text assertion was updated for the static screen-reader text plus aria-hidden animated dots; all 20 host tests passed on rerun. The other four suites were unchanged.
+
+
+## Playhead boundary and uploaded audio filenames (2026-11-12)
+
+The reported recording showed the green playhead crossing the left track-name/audio-control column during horizontal scrolling. `TimelinePlayheadLayer` previously removed its clip while scrolling and restored it only after settling. It now keeps the same boundary throughout scrolling, updating only the layer style rather than rerendering the clip tree. The existing half-glow allowance at time zero is retained; playhead time and playback-follow logic are unchanged.
+
+My assets now shows each uploaded audio file's full name, including its original extension. Long Chinese/English names wrap within the row, keeping the file type and adjacent actions visible. The repeated generic Audio label is omitted; duration and specific BGM/SFX/Voice labels remain when available. Official library sources, components and styles are unchanged. Display fixtures use only the supported MP3, WAV, OGG, M4A, AAC and FLAC formats; no fixture was imported into a real project. These are filename/layout fixtures, not a six-codec playback acceptance test.
+
+| Check | Result | Evidence / boundary |
+| --- | --- | --- |
+| Active and settled scroll, repeated scroll, return to origin | Pass | Updated integration regression; 100 browser animation-frame samples kept the clip edge exactly fixed, with no intermediate React commits. [Samples](playhead-scroll-samples.json). |
+| Real editor zoom and horizontal scroll | Pass | Production build refreshed on 4173; an offscreen playhead whose geometric position was inside the header remained clipped. [Header remains clear](playhead-header-clipped.png), [playhead visible again](playhead-visible-after.png). |
+| Same-stem names, long Chinese/English names, narrow layout | Pass | Production AudioRow fixtures at 260px and 400px; all names and suffixes visible without row overflow. [Six supported formats](audio-full-filenames.png). |
+| Accessible file identity, preview/rename/filter behavior | Pass | Existing and updated deterministic cases retain the original asset path and distinguish extensions in accessible labels. |
+| Source edits, undo, playback preferences | Pass | Real project remained paused near 12.406s with its selection and disabled Undo; no source/media/volume changes, and no 4173 restart. Timeline scroll/zoom were exercised as view controls. |
+| Loading, empty, network failure, destructive operations, official library | Not applicable | No changes to data loading, mutation, import, or official-library behavior. |
+| Remote WorkBuddy and six-codec playback | Unverified | Local rendering tests only; no claims of remote or codec acceptance. |
+
+Validation: 47 cases in five targeted files passed in the assembled PR checkout; `npm run check`, Studio typecheck, production build and scoped diff whitespace checks passed. The main checkout was also rebuilt and browser-checked. Existing uncommitted work and other contributors' commits remain preserved.
diff --git a/docs/reviews/motion-mvp-ui-followup/playhead-header-clipped.png b/docs/reviews/motion-mvp-ui-followup/playhead-header-clipped.png
new file mode 100644
index 00000000..19a71d18
Binary files /dev/null and b/docs/reviews/motion-mvp-ui-followup/playhead-header-clipped.png differ
diff --git a/docs/reviews/motion-mvp-ui-followup/playhead-scroll-samples.json b/docs/reviews/motion-mvp-ui-followup/playhead-scroll-samples.json
new file mode 100644
index 00000000..b1f7d6d8
--- /dev/null
+++ b/docs/reviews/motion-mvp-ui-followup/playhead-scroll-samples.json
@@ -0,0 +1,605 @@
+{
+ "samples": [
+ {
+ "scroll": 731.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 989px)"
+ },
+ {
+ "scroll": 762.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1020px)"
+ },
+ {
+ "scroll": 793.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1051px)"
+ },
+ {
+ "scroll": 824.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1082px)"
+ },
+ {
+ "scroll": 854.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1112px)"
+ },
+ {
+ "scroll": 884,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1141.5px)"
+ },
+ {
+ "scroll": 913,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1170.5px)"
+ },
+ {
+ "scroll": 941,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1198.5px)"
+ },
+ {
+ "scroll": 968,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1225.5px)"
+ },
+ {
+ "scroll": 994,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1251.5px)"
+ },
+ {
+ "scroll": 1018.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1276px)"
+ },
+ {
+ "scroll": 1042.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1300px)"
+ },
+ {
+ "scroll": 1064.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1322px)"
+ },
+ {
+ "scroll": 1085.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1343px)"
+ },
+ {
+ "scroll": 1104.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1362px)"
+ },
+ {
+ "scroll": 1122,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1379.5px)"
+ },
+ {
+ "scroll": 1138,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1395.5px)"
+ },
+ {
+ "scroll": 1152.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1410px)"
+ },
+ {
+ "scroll": 1165,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1422.5px)"
+ },
+ {
+ "scroll": 1175.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1433px)"
+ },
+ {
+ "scroll": 1184.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1442px)"
+ },
+ {
+ "scroll": 1191,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1448.5px)"
+ },
+ {
+ "scroll": 1196,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1453.5px)"
+ },
+ {
+ "scroll": 1199,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1456.5px)"
+ },
+ {
+ "scroll": 1200,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1457.5px)"
+ },
+ {
+ "scroll": 1199,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1456.5px)"
+ },
+ {
+ "scroll": 1196,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1453.5px)"
+ },
+ {
+ "scroll": 1191,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1448.5px)"
+ },
+ {
+ "scroll": 1184.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1442px)"
+ },
+ {
+ "scroll": 1175.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1433px)"
+ },
+ {
+ "scroll": 1165,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1422.5px)"
+ },
+ {
+ "scroll": 1152.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1410px)"
+ },
+ {
+ "scroll": 1138,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1395.5px)"
+ },
+ {
+ "scroll": 1122,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1379.5px)"
+ },
+ {
+ "scroll": 1104.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1362px)"
+ },
+ {
+ "scroll": 1085.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1343px)"
+ },
+ {
+ "scroll": 1064.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1322px)"
+ },
+ {
+ "scroll": 1042.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1300px)"
+ },
+ {
+ "scroll": 1018.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1276px)"
+ },
+ {
+ "scroll": 994,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1251.5px)"
+ },
+ {
+ "scroll": 968,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1225.5px)"
+ },
+ {
+ "scroll": 941,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1198.5px)"
+ },
+ {
+ "scroll": 913,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1170.5px)"
+ },
+ {
+ "scroll": 884,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1141.5px)"
+ },
+ {
+ "scroll": 854.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1112px)"
+ },
+ {
+ "scroll": 824.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1082px)"
+ },
+ {
+ "scroll": 793.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1051px)"
+ },
+ {
+ "scroll": 762.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 1020px)"
+ },
+ {
+ "scroll": 731.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 989px)"
+ },
+ {
+ "scroll": 700,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 957.5px)"
+ },
+ {
+ "scroll": 668.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 926px)"
+ },
+ {
+ "scroll": 637.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 895px)"
+ },
+ {
+ "scroll": 606.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 864px)"
+ },
+ {
+ "scroll": 575.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 833px)"
+ },
+ {
+ "scroll": 545.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 803px)"
+ },
+ {
+ "scroll": 516,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 773.5px)"
+ },
+ {
+ "scroll": 487,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 744.5px)"
+ },
+ {
+ "scroll": 459,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 716.5px)"
+ },
+ {
+ "scroll": 432,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 689.5px)"
+ },
+ {
+ "scroll": 406,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 663.5px)"
+ },
+ {
+ "scroll": 381.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 639px)"
+ },
+ {
+ "scroll": 357.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 615px)"
+ },
+ {
+ "scroll": 335.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 593px)"
+ },
+ {
+ "scroll": 314.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 572px)"
+ },
+ {
+ "scroll": 295.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 553px)"
+ },
+ {
+ "scroll": 278,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 535.5px)"
+ },
+ {
+ "scroll": 262,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 519.5px)"
+ },
+ {
+ "scroll": 247.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 505px)"
+ },
+ {
+ "scroll": 235,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 492.5px)"
+ },
+ {
+ "scroll": 224.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 482px)"
+ },
+ {
+ "scroll": 215.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 473px)"
+ },
+ {
+ "scroll": 209,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 466.5px)"
+ },
+ {
+ "scroll": 204,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 461.5px)"
+ },
+ {
+ "scroll": 201,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 458.5px)"
+ },
+ {
+ "scroll": 200,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 457.5px)"
+ },
+ {
+ "scroll": 201,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 458.5px)"
+ },
+ {
+ "scroll": 204,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 461.5px)"
+ },
+ {
+ "scroll": 209,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 466.5px)"
+ },
+ {
+ "scroll": 215.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 473px)"
+ },
+ {
+ "scroll": 224.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 482px)"
+ },
+ {
+ "scroll": 235,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 492.5px)"
+ },
+ {
+ "scroll": 247.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 505px)"
+ },
+ {
+ "scroll": 262,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 519.5px)"
+ },
+ {
+ "scroll": 278,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 535.5px)"
+ },
+ {
+ "scroll": 295.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 553px)"
+ },
+ {
+ "scroll": 314.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 572px)"
+ },
+ {
+ "scroll": 335.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 593px)"
+ },
+ {
+ "scroll": 357.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 615px)"
+ },
+ {
+ "scroll": 381.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 639px)"
+ },
+ {
+ "scroll": 406,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 663.5px)"
+ },
+ {
+ "scroll": 432,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 689.5px)"
+ },
+ {
+ "scroll": 459,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 716.5px)"
+ },
+ {
+ "scroll": 487,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 744.5px)"
+ },
+ {
+ "scroll": 516,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 773.5px)"
+ },
+ {
+ "scroll": 545.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 803px)"
+ },
+ {
+ "scroll": 575.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 833px)"
+ },
+ {
+ "scroll": 606.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 864px)"
+ },
+ {
+ "scroll": 637.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 895px)"
+ },
+ {
+ "scroll": 668.5,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 926px)"
+ },
+ {
+ "scroll": 700,
+ "clipLeft": 281.5,
+ "expected": 281.5,
+ "css": "inset(0px 0px 0px 957.5px)"
+ }
+ ],
+ "commits": 2
+}
\ No newline at end of file
diff --git a/docs/reviews/motion-mvp-ui-followup/playhead-visible-after.png b/docs/reviews/motion-mvp-ui-followup/playhead-visible-after.png
new file mode 100644
index 00000000..a5c2b651
Binary files /dev/null and b/docs/reviews/motion-mvp-ui-followup/playhead-visible-after.png differ
diff --git a/studio/src/components/sidebar/AssetCard.test.tsx b/studio/src/components/sidebar/AssetCard.test.tsx
index 919b14d3..1f1da86e 100644
--- a/studio/src/components/sidebar/AssetCard.test.tsx
+++ b/studio/src/components/sidebar/AssetCard.test.tsx
@@ -131,6 +131,18 @@ describe("AudioRow click behavior", () => {
copyFeedback: null,
};
+ it("distinguishes matching audio names by their full filename without repeating Audio", () => {
+ const names = ["qa.mp3", "qa.wav", "qa.ogg", "qa (2).m4a", "qa.aac", "qa.flac"];
+ const host = mount(<>{names.map(name => <AudioRow key={name} {...rowProps} asset={`assets/${name}`} used={false} meta={{ duration: 2 }} />)}</>);
+ const rows = [...host.querySelectorAll('.motion-audio-row')];
+ expect(rows).toHaveLength(names.length);
+ rows.forEach((row, index) => {
+ expect(row.textContent).toBe(`${names[index]}2s`);
+ expect(row.getAttribute('aria-label')).toContain(names[index]);
+ expect(row.querySelector('button')?.getAttribute('aria-label')).toContain(names[index]);
+ });
+ });
+
it("clears an open preview overlay when clicking an already-added audio asset (reveal branch)", () => {
usePlayerStore
.getState()
diff --git a/studio/src/components/sidebar/AudioRow.tsx b/studio/src/components/sidebar/AudioRow.tsx
index 335f0a38..d329f5a8 100644
--- a/studio/src/components/sidebar/AudioRow.tsx
+++ b/studio/src/components/sidebar/AudioRow.tsx
@@ -5,7 +5,7 @@ import { useState, useRef, useEffect, useCallback } from "react";
import { classifyWebAudioMediaRoute } from "@hyperframes/core/runtime/web-audio-route";
import { InlineAssetRename } from "./InlineAssetRename";
import { ContextMenu } from "./AssetContextMenu";
-import { basename, getAudioSubtype, type CopyFeedback } from "./assetHelpers";
+import { filename, getAudioSubtype, type CopyFeedback } from "./assetHelpers";
import { TIMELINE_ASSET_MIME } from "../../utils/timelineAssetDrop";
import { usePlayerStore } from "../../player/store/playerStore";
import { useAssetPreviewStore } from "../../utils/assetPreviewStore";
@@ -48,8 +48,9 @@ export function AudioRow({
const analyserRef = useRef<AnalyserNode | null>(null);
const sourceRef = useRef<MediaElementAudioSourceNode | null>(null);
const animRef = useRef<number>(0);
- const name = basename(asset);
+ const name = filename(asset);
const subtype = getAudioSubtype(asset);
+ const subtypeLabel = subtype === "Audio" ? "" : t(subtype);
const serveUrl = resolveMediaPreviewUrl(asset, projectId);
const isCopied = copyFeedback?.path === asset && copyFeedback.ok;
const copyFailed = copyFeedback?.path === asset && !copyFeedback.ok;
@@ -261,16 +262,16 @@ export function AudioRow({
)}
</button>
<div className="min-w-0 flex-1">
- <div className="flex items-center gap-1.5">
+ <div className="flex flex-wrap items-center gap-x-1.5 gap-y-0.5">
{renaming && onRename ? <InlineAssetRename asset={asset} onRename={onRename} onDone={() => setRenaming(false)} /> : <span
- className={`text-[12px] font-medium truncate ${used ? "text-panel-text-1" : "text-panel-text-3"}`}
+ className={`min-w-0 max-w-full text-[12px] font-medium [overflow-wrap:anywhere] ${used ? "text-panel-text-1" : "text-panel-text-3"}`}
>
{name}
</span>}
- {!playing && (
+ {!playing && (meta?.duration || subtypeLabel) && (
<span className="text-[11px] text-panel-text-5 shrink-0">
- {meta?.duration ? `${meta.duration}s · ` : ""}
- {t(subtype)}
+ {meta?.duration ? `${meta.duration}s${subtypeLabel ? " · " : ""}` : ""}
+ {subtypeLabel}
</span>
)}
{used && (
diff --git a/studio/src/player/components/Timeline.virtualization.test.tsx b/studio/src/player/components/Timeline.virtualization.test.tsx
index 659fe3ac..6ad3f2d6 100644
--- a/studio/src/player/components/Timeline.virtualization.test.tsx
+++ b/studio/src/player/components/Timeline.virtualization.test.tsx
@@ -431,21 +431,25 @@ describe("Timeline without row virtualization", { timeout: 30_000 }, () => {
};
}
- it("clips a scrolled-off playhead at the track headers once the scroll settles", async () => {
+ it("keeps a scrolled-off playhead clipped throughout scrolling and after settling", async () => {
const { host, dispose } = await renderUnvirtualizedTimeline();
try {
const scroller = host.querySelector<HTMLElement>("[data-timeline-scroll-viewport]")!;
const layer = () => host.querySelector<HTMLElement>("[data-timeline-playhead-layer]");
await scrollTimelineHorizontally(scroller, 166);
- expect(layer()?.style.clipPath).toBe("");
- await act(async () => {
- await new Promise((resolve) => setTimeout(resolve, TIMELINE_SCROLL_SETTLE_MS + 20));
- });
// The ruler's corner is as wide as the track headers; the glow may overhang by 6.5px.
const headerWidth = parseFloat(
host.querySelector<HTMLElement>(".sticky.left-0")!.style.width,
);
expect(layer()?.style.clipPath).toContain(`${166 + headerWidth - 6.5}px)`);
+ await scrollTimelineHorizontally(scroller, 320);
+ expect(layer()?.style.clipPath).toContain(`${320 + headerWidth - 6.5}px)`);
+ await act(async () => {
+ await new Promise((resolve) => setTimeout(resolve, TIMELINE_SCROLL_SETTLE_MS + 20));
+ });
+ expect(layer()?.style.clipPath).toContain(`${320 + headerWidth - 6.5}px)`);
+ await scrollTimelineHorizontally(scroller, 0);
+ expect(layer()?.style.clipPath).toContain(`${headerWidth - 6.5}px)`);
} finally {
dispose();
}
diff --git a/studio/src/player/components/TimelinePlayheadLayer.tsx b/studio/src/player/components/TimelinePlayheadLayer.tsx
index 5af1bd13..bc27fccc 100644
--- a/studio/src/player/components/TimelinePlayheadLayer.tsx
+++ b/studio/src/player/components/TimelinePlayheadLayer.tsx
@@ -1,10 +1,9 @@
-import type { ReactNode, RefObject } from "react";
+import { useEffect, useRef, type ReactNode, type RefObject } from "react";
import { PLAYHEAD_GLOW_W } from "./PlayheadIndicator";
-import { useSettledScrollLeft } from "./useSettledScrollLeft";
-// Clips the playhead at the track headers' edge once a scroll settles, so one scrolled off to
-// the left does not draw over the track names. Half the glow may pass the edge so 00:00 looks
-// as before; mid-scroll it is not clipped.
+// Keep the header boundary clipped even during scrolling. Update only this layer's
+// style, without re-rendering the timeline or its clips on every scroll frame.
+// Half the glow may pass the edge so the head at 00:00 remains fully visible.
export function TimelinePlayheadLayer({
scrollRef,
contentOrigin,
@@ -14,17 +13,27 @@ export function TimelinePlayheadLayer({
contentOrigin: number;
children: ReactNode;
}) {
- const settledScrollLeft = useSettledScrollLeft(scrollRef);
+ const layerRef = useRef<HTMLDivElement>(null);
+ // The ancestor viewport's ref is attached after child layout effects.
+ useEffect(() => {
+ const scroll = scrollRef.current;
+ const layer = layerRef.current;
+ if (!scroll || !layer) return;
+ const syncClip = () => {
+ layer.style.clipPath = `inset(0 0 0 ${scroll.scrollLeft + contentOrigin - PLAYHEAD_GLOW_W / 2}px)`;
+ };
+ syncClip();
+ scroll.addEventListener("scroll", syncClip, { passive: true });
+ return () => scroll.removeEventListener("scroll", syncClip);
+ }, [scrollRef, contentOrigin]);
return (
<div
+ ref={layerRef}
data-timeline-playhead-layer=""
className="absolute inset-0 pointer-events-none"
style={{
zIndex: 100,
- clipPath:
- settledScrollLeft === null
- ? undefined
- : `inset(0 0 0 ${settledScrollLeft + contentOrigin - PLAYHEAD_GLOW_W / 2}px)`,
+ clipPath: `inset(0 0 0 ${contentOrigin - PLAYHEAD_GLOW_W / 2}px)`,
}}
>
{children}