fix(admin-web): map missing publish statuses and normalize lookup
Publish records with statuses like queued, pending, running, cancelled, or unknown fell through the display map and rendered as raw enum values. - Add queued/pending/running/cancelled/canceled/unknown entries to the publish status map with matching zh-CN and en-US translations - Normalize status keys (trim + lowercase) before lookup so backend casing variants still resolve Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -798,7 +798,10 @@ const enUS = {
|
||||
},
|
||||
publish: {
|
||||
unpublished: 'Unpublished',
|
||||
queued: 'Waiting to publish',
|
||||
pending: 'Waiting to publish',
|
||||
publishing: 'Publishing',
|
||||
running: 'Publishing',
|
||||
success: 'Published',
|
||||
failed: 'Failed',
|
||||
partial_success: 'Partially Published',
|
||||
@@ -806,7 +809,9 @@ const enUS = {
|
||||
publish_success: 'Published',
|
||||
publish_failed: 'Failed',
|
||||
pending_review: 'Pending Review',
|
||||
cancelled: 'Cancelled',
|
||||
blocked_by_compliance: 'Blocked by compliance',
|
||||
unknown: 'Unknown result',
|
||||
},
|
||||
sourceType: {
|
||||
template: 'Template generation',
|
||||
|
||||
@@ -774,7 +774,10 @@ const zhCN = {
|
||||
},
|
||||
publish: {
|
||||
unpublished: '未发布',
|
||||
queued: '等待发布',
|
||||
pending: '等待发布',
|
||||
publishing: '发布中',
|
||||
running: '发布中',
|
||||
success: '发布成功',
|
||||
failed: '发布失败',
|
||||
partial_success: '部分发布',
|
||||
@@ -782,7 +785,9 @@ const zhCN = {
|
||||
publish_success: '发布成功',
|
||||
publish_failed: '发布失败',
|
||||
pending_review: '待审核',
|
||||
cancelled: '已取消',
|
||||
blocked_by_compliance: '合规阻断',
|
||||
unknown: '结果异常',
|
||||
},
|
||||
sourceType: {
|
||||
template: '模版单次生成',
|
||||
|
||||
Reference in New Issue
Block a user