From 49ad08a63e9a770075569faab7792470376faeef Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 16 Oct 2026 13:58:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(short-drama-agent-front):=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=AF=8A=E6=96=AD=E6=8A=BD=E5=B1=89=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=A1=B9=E7=9B=AE=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/AppDialog.vue | 8 +- src/features/breakdown/BreakdownPage.vue | 276 ++----- src/features/breakdown/api.ts | 60 +- .../components/StoryboardDiagnosis.vue | 766 ++++++++++++++++++ .../breakdown/components/StoryboardList.vue | 100 ++- src/features/breakdown/diagnosis.ts | 81 ++ src/features/breakdown/types.ts | 8 +- src/features/create-drama/CreateDramaPage.vue | 16 +- src/features/create-drama/EpisodeReader.vue | 12 +- .../components/CreateProjectDialog.vue | 77 +- .../components/DeleteProjectDialog.vue | 61 +- .../projects/components/EditProjectDialog.vue | 12 +- src/features/projects/types.ts | 15 +- src/features/storyboard/StoryboardPage.vue | 41 +- src/styles/admin.css | 7 + tests/components/ui/layout.test.ts | 7 +- .../features/breakdown/BreakdownPage.test.ts | 160 ++-- tests/features/breakdown/diagnosis.test.ts | 104 +++ .../create-drama/EpisodeReader.test.ts | 17 +- tests/features/projects/access.test.ts | 3 +- tests/features/workflows/pages.test.ts | 11 +- 21 files changed, 1479 insertions(+), 363 deletions(-) create mode 100644 src/features/breakdown/components/StoryboardDiagnosis.vue create mode 100644 src/features/breakdown/diagnosis.ts create mode 100644 tests/features/breakdown/diagnosis.test.ts diff --git a/src/components/ui/AppDialog.vue b/src/components/ui/AppDialog.vue index d28890a..96caf8c 100644 --- a/src/components/ui/AppDialog.vue +++ b/src/components/ui/AppDialog.vue @@ -90,10 +90,11 @@ onBeforeUnmount(() => { :close-on-esc="!busy" :style="{ width: `${width ?? (wide ? 1040 : 600)}px` }" class="app-dialog" + :class="{ 'app-dialog-title-only': !description && !$slots.description }" role="dialog" :aria-label="title" > - +
-
- {{ qualityPanelOpen ? '收起质量诊断' : '分镜质量诊断' }} -
-
-
分镜质量诊断
- -
-
-

结构化动作校验

- {{ handDiagnostics ? '刷新' : '查看诊断' }} -
-
- 镜头 {{ handDiagnostics.shotCount }} - 有效证据 {{ handDiagnostics.evidenceShotCount }} / {{ handDiagnostics.shotCount }} - 冲突 {{ handDiagnostics.warningCount }} - 证据不足 - 部分镜头缺少证据 -
-
-
- 第 {{ issue.episodeNo }} 集 / Beat {{ issue.beatNo }} / Shot {{ issue.shotNo }} / 阶段 {{ issue.phaseNo }}:{{ issue.suggestion }} -
-
-
-
-
-

历史镜头 AI 诊断

- 预览范围 -
-
- 单集 - 全项目 - Beat {{ legacyBeatNo }}{{ legacyDiagnosisScope === 'shot' ? ` / Shot ${legacyShotNo}` : '' }} - - 并发 - -
-
- 第 {{ legacyPreview.episodeNo }} 集:{{ legacyPreview.candidateCount }} 个镜头,{{ legacyPreview.needsEvidenceCount }} 个待补证据 -
-
- -
-
- 诊断结果 - 查看结果 -
-
-
- 总计 {{ legacyResults.counts.total }} - 冲突 {{ legacyResults.counts.conflict }} - 未发现冲突 {{ legacyResults.counts.clear }} - 证据不足 {{ legacyResults.counts.insufficient }} - 证据无效 {{ legacyResults.counts.invalid }} - 已过期 {{ legacyResults.counts.stale }} - 未诊断 {{ legacyResults.counts.pending }} -
-
- 第 {{ item.episodeNo }} 集 / Beat {{ item.beatNo }} / Shot {{ item.shotNo }} · {{ item.title }} - {{ ({ - conflict_found: '手部冲突', - insufficient_evidence: '证据不足', - invalid_evidence: '证据无效', - stale: '诊断过期', - not_diagnosed: '尚未诊断', - no_conflict_found: '未发现冲突' - } as const)[item.status] }} -
-
- -
-
-
-

局部修复候选

- - {{ handRepairPreview ? '刷新候选' : '查看候选' }} - -
-
-
-

第 {{ item.episodeNo }} 集 / Beat {{ item.beatNo }} / Shot {{ item.shotNo }} / 阶段 {{ item.phaseNo }}

-

{{ item.suggestion }}

-

{{ item.blockingReasons.join(';') }}

-
-
-
- -
- + + +