feat(short-drama-agent-front): 完善分镜审核与制作准备流程

This commit is contained in:
GJ committed 2026-10-19 21:59:22 +08:00
1 parent c4b43b9725
commit 1da56e0d46
72 files changed
+2801 -528

No files matched your search

@@ -86,6 +86,14 @@ const catalog: GenerationModelCatalog = {
}
describe('项目配置保存前校验', () => {
it('项目竖屏画布允许目录支持的方形参考图尺寸,不把两者强制绑定', () => {
const draft = creativeProfileDraft(saved)
const squareCatalog = structuredClone(catalog)
squareCatalog.images[0]!.generationOptions[0]!.options = [{ label: '方形参考图', value: '2048*2048' }]
draft.imageOptions.size = '2048*2048'
expect(draft.aspectRatio).toBe('9:16')
expect(creativeProfileIssues(draft, squareCatalog)).toEqual([])
})
it('保留但提示不再支持的历史尺寸,选择有效尺寸后可保存', () => {
const draft = creativeProfileDraft(saved)
expect(creativeProfileIssues(draft, catalog)).toHaveLength(1)