94 lines
3.1 KiB
TypeScript
94 lines
3.1 KiB
TypeScript
import type {
|
|
StoryboardRecheck,
|
|
ReviewBaselinePreview,
|
|
StoryboardApprovalState,
|
|
StoryboardApproval,
|
|
ProductionEntryReadiness
|
|
} from '@/features/storyboard-preparation/types'
|
|
import { policyReceipt } from '../../fixtures/quality-policy'
|
|
|
|
/**
|
|
* 创建符合真实路由形状的独立复检数据,canConfirm 始终为 false。
|
|
* @param projectId 当前测试项目
|
|
* @returns 可变化的只读回执与确认记录
|
|
*/
|
|
export function preparationFixture(projectId = 'p') {
|
|
const policy = policyReceipt(
|
|
projectId,
|
|
{
|
|
version: 1,
|
|
physicsMode: 'stylized',
|
|
allowExaggeratedMotion: true,
|
|
allowNonPhysicalActions: false,
|
|
allowSupernaturalAbilities: false,
|
|
customRules: []
|
|
},
|
|
{ confirmed: true, confirmedRevision: 2, confirmedAt: '2026-10-19T01:00:00Z' }
|
|
)
|
|
const quality: StoryboardRecheck = {
|
|
projectId,
|
|
status: 'insufficient_evidence',
|
|
structure: { hasValidation: true, valid: true, reason: null },
|
|
coverage: { episodeCount: 1, beatCount: 1, shotCount: 1, issueCount: 0 },
|
|
issues: [],
|
|
actionAudit: { projectId, shotCount: 1, issueCount: 0, blockedCount: 0, needsReviewCount: 0, issues: [] },
|
|
sourceAudit: { projectId, checkpointId: 'cp', shotCount: 1, valid: true, issues: [] },
|
|
provenance: {
|
|
checkpointId: 'cp',
|
|
sourceCommitted: true,
|
|
qualityPolicyConsistent: true,
|
|
qualityPolicyChecks: { projectConfirmed: true, checkpointSnapshotPresent: true },
|
|
baselineConsistent: false,
|
|
shotCountsConsistent: true,
|
|
checkpointConsistent: true
|
|
},
|
|
preflightEligible: true,
|
|
canConfirm: false
|
|
}
|
|
const record: StoryboardApproval = {
|
|
id: 'approval',
|
|
projectId,
|
|
checkpointId: 'cp',
|
|
qualityPolicyRevision: 2,
|
|
qualityPolicyFingerprint: 'a'.repeat(64),
|
|
shotCount: 1,
|
|
shotFingerprint: 'b'.repeat(64),
|
|
reviewer: '复核人',
|
|
reviewNote: '已逐镜核对动作与主体',
|
|
confirmedAt: '2026-10-19T01:00:00Z'
|
|
}
|
|
const approval: StoryboardApprovalState = {
|
|
valid: false,
|
|
confirmation: null,
|
|
evidence: {
|
|
valid: true,
|
|
checkpointId: 'cp',
|
|
qualityPolicyRevision: 2,
|
|
qualityPolicyFingerprint: 'a'.repeat(64),
|
|
shotCount: 1,
|
|
shotFingerprint: 'b'.repeat(64)
|
|
}
|
|
}
|
|
const baseline: ReviewBaselinePreview = {
|
|
eligible: false,
|
|
reasons: ['当前记录已有规则来源'],
|
|
checkpointId: 'cp',
|
|
shotCount: 1,
|
|
shotFingerprint: 'b'.repeat(64)
|
|
}
|
|
const entry: ProductionEntryReadiness = {
|
|
ready: false,
|
|
hasStoryboardValidation: true,
|
|
storyboardValid: true,
|
|
reason: '请先完成分镜审核',
|
|
derivedAssets: {
|
|
shotCount: 1,
|
|
directionCount: 0,
|
|
directionCoverage: 0,
|
|
visualStateCount: 0,
|
|
visualStateCoverage: 0
|
|
}
|
|
}
|
|
return { policy, quality, approval, baseline, entry, record }
|
|
}
|