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
@@ -139,6 +139,22 @@ describe('useShippingNoticeWorkflow', () => {
|
||||
ctl.stop();
|
||||
});
|
||||
|
||||
it('coalesces concurrent refreshes for the same conversation', async () => {
|
||||
const pending = deferred<ReturnType<typeof buildUnifiedProcessing>>();
|
||||
api.getShippingProcessing.mockImplementation(() => pending.promise);
|
||||
|
||||
const ctl = useShippingNoticeWorkflow({ conversationId: ref('conv-1') });
|
||||
const manualRefresh = ctl.refresh();
|
||||
await nextTick();
|
||||
|
||||
// 首轮恢复、页面刷新和可见性触发命中同一会话时只能产生一个网络请求。
|
||||
expect(api.getShippingProcessing).toHaveBeenCalledTimes(1);
|
||||
pending.resolve(buildUnifiedProcessing());
|
||||
await manualRefresh;
|
||||
expect(ctl.processing.value?.summary.needs_action).toBe(1);
|
||||
ctl.stop();
|
||||
});
|
||||
|
||||
it('records recoverable error without throwing', async () => {
|
||||
const conversationId = ref('conv-1');
|
||||
const ctl = useShippingNoticeWorkflow({ conversationId });
|
||||
|
||||
Reference in new issue
Block a user