feat: 同步视觉风格与主体身份母版工作区

对齐后端 dev 059e597,新增项目风格编辑锁定、身份文本生成、身份参考图与母版切换。
整理六个工作区入口,接通人物及场景母版继承说明、形态图片来源追溯。
补充草稿保护、正式 ID 校验、费用确认及部分失败回执,67 项测试和静态检查、构建通过。
未修改后端,未调用真实模型;本环境未完成浏览器视觉验收。
This commit is contained in:
GouJ committed 2026-08-28 19:28:27 +08:00
1 parent 47443c0efe
commit 669f4d9df0
34 files changed
+2273 -22

No files matched your search

@@ -0,0 +1,39 @@
import type { IdentityImage, SubjectIdentity } from '../types'
/** 身份文本测试数据;subjectId 使用正式数据库主体 ID。 */
export function identityFixture(overrides: Partial<SubjectIdentity> = {}): SubjectIdentity {
return {
id: 'identity-db-1',
subjectId: 'subject-db-1',
description: '稳定面部特征',
generationPrompt: '保持相同五官与骨相',
isLocked: false,
images: [],
createdAt: '2026-08-28T00:00:00Z',
updatedAt: '2026-08-28T00:00:00Z',
...overrides
}
}
/** 专用身份图库查询包含 isAnchor,辅助视角即使启用也不是母版。 */
export function identityImageFixture(overrides: Partial<IdentityImage> = {}): IdentityImage {
return {
id: 'identity-image-1',
identityId: 'identity-db-1',
source: 'generated',
viewType: 'primary',
provider: 'seedream',
model: 'configured-model',
prompt: '<script>不执行</script>',
imageUrl: '/storage/identity.png',
width: 2048,
height: 2048,
status: 'completed',
enabled: true,
isAnchor: true,
error: null,
createdAt: '2026-08-28T00:00:00Z',
updatedAt: '2026-08-28T00:00:00Z',
...overrides
}
}