feat(publish): unify image fetch failure message across adapters
Deployment Config CI / Deployment Config (push) Successful in 30s
Desktop Client Build / Resolve Build Metadata (push) Successful in 17s
Frontend CI / Frontend (push) Successful in 3m35s
Backend CI / Backend (push) Successful in 16m50s
Desktop Client Build / Build Desktop Client (push) Successful in 24m2s
Desktop Client Build / Publish Client Artifacts to NAS (push) Successful in 30s

Consolidate per-platform cover/image fetch failure prompts into a single
PUBLISH_IMAGE_FETCH_FAILED_MESSAGE constant shared by baijiahao, bilibili,
dongchedi, qiehao, smzdm, and zol adapters, and generalize the normalizer
to match any *_image_fetch_failed / *_cover_fetch_failed code. Also split
desktop publish list loading into initial vs manual-refresh states so the
refresh button no longer blanks the table, and fix admin-web active-task
detection to cover all pending statuses.
This commit is contained in:
2026-05-26 18:53:36 +08:00
parent 78fb9c42e2
commit fa52d4ca60
10 changed files with 67 additions and 34 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import type { JsonValue } from '@geo/shared-types'
import { PUBLISH_IMAGE_FETCH_FAILED_MESSAGE } from '../../shared/publisher-errors'
import type { PublishAdapter, PublishAdapterContext } from './base'
import {
extractImageSources,
@@ -488,7 +489,7 @@ function failureResult(
if (message.startsWith('zol_cover_fetch_failed')) {
return {
status: 'failed',
summary: '中关村在线封面文件读取失败,请重新上传封面图后重试。',
summary: PUBLISH_IMAGE_FETCH_FAILED_MESSAGE,
error: {
code: 'zol_cover_fetch_failed',
message,