Merge pull request #2068 from heygen-com/worktree-fix-timeline-zindex-reorder

feat(studio): lane-model timeline — vertical drag restacks via z-index
This commit is contained in:
Miguel Ángel
2026-07-09 17:37:46 -04:00
committed by GitHub
59 changed files with 4510 additions and 628 deletions
@@ -192,9 +192,12 @@ function domSiblingClips(
start: host.start,
duration: host.duration,
track: host.track,
zIndex: 0,
stackingContextId: host.stackingContextId ?? host.domId ?? host.id ?? null,
kind: "element",
tagName: null,
compositionId: null,
compositionAncestors: host.compositionAncestors ?? [],
parentCompositionId: host.id ?? null,
compositionSrc: host.compositionSrc ?? null,
assetUrl: null,
@@ -243,7 +243,10 @@ describe("buildStandaloneRootTimelineElement", () => {
iframeSrc: "http://127.0.0.1:4173/api/projects/demo/preview/comp/scenes/hero.html?_t=123",
selector: '[data-composition-id="hero"]',
}),
).toEqual({
// toMatchObject (not toEqual): asserts the selector/source metadata this
// test is about, without re-pinning the full element shape (stacking
// metadata like hasExplicitZIndex is covered in timelineDOM.test.ts).
).toMatchObject({
id: "hero",
label: "hero",
key: 'scenes/hero.html:[data-composition-id="hero"]:0',