perf(shipping-notice): 优化发货任务性能,修复上传流程与终态问题

This commit is contained in:
hugo committed 2026-08-27 19:25:16 +08:00
1 parent 434c04ed2d
commit bcdd8285ae
29 files changed
+1074 -128

No files matched your search

@@ -153,6 +153,26 @@ describe('useShippingNoticeWorkflow helpers', () => {
history: [],
})).toBe(true);
});
it('keeps polling after an RPA upload succeeds while a later task step is processing', () => {
expect(shouldContinueProcessingPolling({
summary: { total_tasks: 1, processing: 1, needs_action: 0, history: 0 },
processing: [{
user_task_no: 'OT-RPA-SUCCEEDED',
group: 'processing',
can_append: false,
status_label: 'processing',
ui_state: {
status: 'running',
stage: 'post_upload_processing',
lifecycle_stage: 'freight_upload',
},
facts: { upload_state: 'succeeded' },
}],
needs_action: [],
history: [],
})).toBe(true);
});
});
describe('useShippingNoticeWorkflow', () => {