feat(task-board): 手动刷新铺满全部 16 个任务面板页

用户点名「只要是任务的功能都要加上」:TaskCenterPanel 的 on-refresh 按各自骨架接线
——useLiveTaskBoard 两页强拉 history+dashboard+进度;手写 fetch 五页 allSettled
(history+dashboard+refreshTaskBatch);useHistoryPolling 三页 refreshTaskViews+活跃进度;
useTaskProgressLoop 两页加 progressLoop.refreshOnce;一次性拉取三页直挂各自 load 函数;
品牌检测复用既有 syncTasksAndResumePolling。接线守卫测试扩到 16 页。
This commit is contained in:
2026-10-22 15:48:44 +08:00
parent 6d52b95d85
commit aa7e17f95c
15 changed files with 84 additions and 1 deletions
@@ -37,7 +37,22 @@ test('轮询异常必须吞掉并重试,propagate 模式不得回流', () => {
'轮询成功后必须清零失败计数,否则一次抖动会把间隔永久拉长')
})
test('两个任务面板页都接了手动刷新', () => {
test('全部任务面板页都接了手动刷新(用户点名:只要是任务的功能都要有)', () => {
const PANELS_DIR = join(ROOT, 'src/pages/brand/components')
const PAGES = [
'BrandAppearancePatentTab.vue', 'BrandSimilarAsinTab.vue', 'BrandShopMatchTab.vue',
'BrandProductRiskTab.vue', 'BrandCollectDataTab.vue', 'BrandPriceTrackTab.vue',
'BrandQueryAsinTab.vue', 'BrandPatrolDeleteTab.vue', 'BrandDeleteBrandTab.vue',
'BrandShopDataCrawlTab.vue', 'BrandPublishTab.vue', 'BrandWithdrawTab.vue',
'BrandSplitTab.vue', 'BrandDedupeTab.vue', 'BrandConvertTab.vue', 'BrandBrandTab.vue',
]
for (const page of PAGES) {
const source = readFileSync(join(PANELS_DIR, page), 'utf8')
assert.ok(source.includes(':on-refresh="'), `${page} 没有给 TaskCenterPanel 传 on-refresh`)
}
})
test('两个 live 任务面板页的 refreshBoard 实现符合骨架契约', () => {
for (const [rel, name] of [[PATENT, '外观专利'], [SIMILAR, '货源查询']] as const) {
const source = sourceOf(rel)
assert.ok(source.includes(':on-refresh="refreshBoard"'), `${name} 页没有给 TaskCenterPanel 传 on-refresh`)