feat(brand): 失败任务「重新提交」入口+排队期显示执行方人话文案(3700 客户端半边)
- brand.ts:resubmitBrandTask 走桥 resubmit_brand_task(重跑必须本机客户端建单执行, 线上 15126 无从替用户重跑;老客户端 available=false 提示升级);BrandLocalBridge 登记 桥形状;BrandLineProgressInfo 补 progress_text 与 queued 档注释。 - BrandBrandTab.vue:failed/cancelled 行出「重新提交」按钮(确认框点名沿用策略与通道); 排队期 extraLines 显示 progress_text(已等待 N 秒;同机 M/K 槽在用),countLabel 不再 摆恒 0 的「0/265」——用户从「排队中/0 行」无从分辨排队与卡死。 - pywebview.ts:open_jd_login 注释改按自动链路口径(见下一笔,桥本身零改动)。 - 判据:brand-resubmit-entry.test.ts(桥形状+入口 wiring+源码绊线)+ task-progress-view-wiring.test.ts +排队文案透出绊线+catch-silence 台账 blocks 334→335 (resubmitTask 的 try/catch 有用户可见出口,非静默,silent 与 perFile 未动)。
This commit is contained in:
@@ -73,3 +73,19 @@ test('light 白名单与后端 VO 的进度三字段同名同形', () => {
|
||||
assert.ok(polling.includes(`${field}: item.${field} ?? null`), `task-progress-polling.ts 归一时丢了 ${field}`)
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 2026-11-23 任务 3700:品牌单排队 120 分钟后判死,界面全程只有「排队中 / 已处理 0 行」。
|
||||
* 客户端心跳一直带着人话文案(progressText),后端 2026-11-23 起把它透出成 progress_text,
|
||||
* 任务卡必须把它显示出来——否则用户无法分辨「在排队」还是「卡死」。
|
||||
*/
|
||||
test('品牌任务卡必须显示后端透出的排队文案 progress_text', () => {
|
||||
const src = readFileSync(join(COMPONENTS, 'BrandBrandTab.vue'), 'utf8')
|
||||
assert.match(src, /progress_text/, 'BrandBrandTab 必须读取 line_progress.info.progress_text')
|
||||
assert.match(src, /phase === 'queued'/, '排队文案只在 queued 阶段替代行数行')
|
||||
const types = readFileSync(
|
||||
join(import.meta.dirname, '..', 'src', 'shared', 'api', 'types', 'modules', 'brand.ts'),
|
||||
'utf8',
|
||||
)
|
||||
assert.match(types, /progress_text\?: string/, 'BrandLineProgressInfo 必须声明 progress_text')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user