From 514b246c5347c0e779e4ad17e71addb979c6700d Mon Sep 17 00:00:00 2001 From: eust-w Date: Tue, 1 Sep 2026 12:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Show=20combined=20slice=20bounda?= =?UTF-8?q?ry=20tools?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/AnnotationOperations.tsx | 7 ++++--- tests/frontend/annotation-operations.test.mjs | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/AnnotationOperations.tsx b/src/pages/AnnotationOperations.tsx index 9fb881e2..967aa6f1 100644 --- a/src/pages/AnnotationOperations.tsx +++ b/src/pages/AnnotationOperations.tsx @@ -2883,9 +2883,10 @@ export default function AnnotationOperations() { ) : null} - {isV5Combined ? null : isV5CombinedQuality && - materializedDirectoryArtifact && - selectedMaterialization?.status === "completed" ? null : workspaceMode === "clip" || + {isV5CombinedQuality && + materializedDirectoryArtifact && + selectedMaterialization?.status === "completed" ? null : isV5Combined || + workspaceMode === "clip" || workspaceMode === "clip-quality" || isV5CombinedQuality ? (
diff --git a/tests/frontend/annotation-operations.test.mjs b/tests/frontend/annotation-operations.test.mjs index a4a7d5db..f43638b9 100644 --- a/tests/frontend/annotation-operations.test.mjs +++ b/tests/frontend/annotation-operations.test.mjs @@ -209,6 +209,7 @@ test("annotation operations uses the draggable video timeline and workflow deep assert.match(page, /const at = Number\(annotationPlayhead\.toFixed\(3\)\)/); assert.doesNotMatch(page, /\(current\.start \+ current\.end\) \/ 2/); assert.match(page, /在播放头 \$\{annotationPlayhead\.toFixed\(3\)\}s 拆分/); + assert.match(page, /completed" \? null : isV5Combined \|\|/); assert.match(timeline, /切片导航/); assert.match(timeline, /播放当前切片/); assert.match(timeline, /seekToTime\(segment\.start\)/);