Improve editor timeline and media UX (#14)

Co-authored-by: haixin.yang <haixin.yang@weimob.com>
This commit is contained in:
Martin Delophyandhaixin.yang authored and GitHub committed 2026-07-17 13:49:40 +08:00
1 parent a6b7a9e51b
commit 00c454dbb7
31 files changed
+981 -172

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { describe, expect, it } from "vitest";
import { shouldShowStickerTrack } from "./timelineViewModel.js";
describe("sticker track visibility", () => {
it("hides an empty sticker track even if it was previously selected", () => {
expect(shouldShowStickerTrack({ stickerSegments: [] })).toBe(false);
});
it("shows the sticker track for content and active sticker drags", () => {
expect(shouldShowStickerTrack({ stickerSegments: [{ id: "one" }] })).toBe(true);
expect(shouldShowStickerTrack({ assetDragPreview: { type: "sticker" } })).toBe(true);
});
});