feat(shipping-notice): 落地 XFA 统一视觉拆分确认门禁与处理投影收敛
闭合拆分预览令牌单次消费、样本 checksum 绑定与确认审计;正式提取改为 bindings-only。 同步统一标注工作台交互,并补齐进度投影/任务中心与迁移文档。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d2b3d74def
commit
84a881b554
195 files changed
+20269
-3463
No files matched your search
@@ -35,6 +35,7 @@ describe('normalizeShippingProcessingProjection', () => {
|
||||
source_summary: {
|
||||
email_subject: null,
|
||||
filename: 'a.pdf',
|
||||
document_id: 17,
|
||||
document_count: 1,
|
||||
parsed_document_count: 1,
|
||||
candidate_count: 1,
|
||||
@@ -53,10 +54,27 @@ describe('normalizeShippingProcessingProjection', () => {
|
||||
expect(normalized!.currentGate?.gateCode).toBe('field_conflict_resolution');
|
||||
expect(normalized!.currentGate?.attemptNo).toBe(1);
|
||||
expect(normalized!.sourceSummary.filename).toBe('a.pdf');
|
||||
expect(normalized!.sourceSummary.documentId).toBe(17);
|
||||
expect(normalized!.sourceSummary.assetStatus).toBe('ready');
|
||||
expect(normalized!.availableActions).toEqual(['open_review']);
|
||||
});
|
||||
|
||||
it('normalizes stage_nodes from backend', () => {
|
||||
const normalized = normalizeShippingProcessingProjection({
|
||||
work_item_no: 'OT-2',
|
||||
work_item_type: 'order_task',
|
||||
status: 'processing',
|
||||
stage: 'document_parsing',
|
||||
stage_nodes: [
|
||||
{ stage: 'upload_received', absolute_index: 0, status: 'passed' },
|
||||
{ stage: 'document_parsing', absolute_index: 2, status: 'running' },
|
||||
],
|
||||
});
|
||||
expect(normalized?.stageNodes).toHaveLength(2);
|
||||
expect(normalized?.stageNodes?.[1]?.status).toBe('running');
|
||||
expect(normalized?.stageNodes?.[1]?.absoluteIndex).toBe(2);
|
||||
});
|
||||
|
||||
it('returns null when work_item_no missing', () => {
|
||||
expect(normalizeShippingProcessingProjection({ status: 'processing' })).toBeNull();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user