feat(shipping-notice): 落地 XFA 统一视觉拆分确认门禁与处理投影收敛

闭合拆分预览令牌单次消费、样本 checksum 绑定与确认审计;正式提取改为 bindings-only。
同步统一标注工作台交互,并补齐进度投影/任务中心与迁移文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-08-06 10:21:25 +08:00
1 parent d2b3d74def
commit 84a881b554
195 files changed
+20269 -3463

No files matched your search

@@ -13,23 +13,15 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { BusinessError } from '@/shared/api/client';
import {
isBuildConfirmBlocked,
isDraftVersionMismatchError,
isReviewCaseHistorical,
isReviewReadOnly,
isReviewWorkItemClosed,
lineNeedsManualInventorySelection,
lineHasPendingRoutingSuggestion,
lineNeedsInventoryRoutingRecovery,
mapReviewContextLifecycleStatus,
REVIEW_BUILD_ELIGIBILITY_BLOCKED,
REVIEW_DRAFT_VERSION_MISMATCH,
@@ -231,6 +223,14 @@ describe('useShippingOrderReview historical readonly', () => {
)).toBe(true);
});
it('maps confirmed case to non-closed lifecycle for post-confirm automation', () => {
// 关键断言:confirmed 不得映射 closed,否则统一进度轨道会被误判为终态。
expect(mapReviewContextLifecycleStatus('confirmed', null)).toBe('building_order');
expect(mapReviewContextLifecycleStatus('confirmed', 'inventory_matching')).toBe('inventory_matching');
expect(mapReviewContextLifecycleStatus('closed', null)).toBe('closed');
expect(mapReviewContextLifecycleStatus('quality_issue', null)).toBe('closed');
});
});