copy(web): api 标签与整理状态统一

整理记录状态改为排队中 / 整理中 / 已整理 / 部分整理 / 整理失败(列表摘要、组汇总、队列面板同口径);
下载计划「等你批准」「准备提交」;资源评估「可下载」「信息不全」「已跳过」;任务状态带「中」;
识别等待提示改匹配「TMDB 结果在后台查询」。

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-07 02:10:19 +08:00
1 parent 148b12f279
commit 592f40ccf8
23 files changed
+58 -59

No files matched your search

+7 -7
View File
@@ -26,7 +26,7 @@ const DecisionPage = cursorPage(Decision);
const RESOLUTION_LABEL = {
unresolved: "未识别",
resolved: "已识别",
ambiguous: "有歧义,待确认",
ambiguous: "匹配到多部作品,待确认",
unidentifiable: "无法识别",
rejected: "已排除",
} as const;
@@ -99,9 +99,9 @@ export function useRecordsForDownload(downloadTaskId: string | undefined) {
}
const TASK_STATUS_TEXT: Record<string, string> = {
pending: "排队",
pending: "排队中",
running: "运行中",
waiting: "等待",
waiting: "等待中",
succeeded: "成功",
failed: "失败",
cancelled: "已取消",
@@ -111,9 +111,9 @@ const TASK_STATUS_TEXT: Record<string, string> = {
const TASK_KIND_LABEL: Partial<Record<TaskKind, string>> = {
submitDownload: "提交下载",
verifyAndImport: "核验整理",
evaluateAcquisition: "评估候选",
evaluateAcquisition: "评估资源",
cleanupDownloadCache: "清理缓存",
resolveDecision: "处理待处理事项",
resolveDecision: "处理需要处理的事项",
};
const TASK_STATUS_TONE: Record<TaskStatus, TimelineTone> = {
@@ -239,7 +239,7 @@ export function buildTimeline(input: {
key: `rec-${r.id}`,
stage: "organization",
at: r.startedAt ?? r.createdAt,
title: `整理 ${organizationActionLabel(r.action)}:${organizationLabel(r.status).label}`,
title: `整理 ${organizationActionLabel(r.action)}:${organizationLabel(r.status).label}`,
detail:
[
c.total ? `${c.succeeded}/${c.total} 个文件成功` : null,
@@ -259,7 +259,7 @@ export function buildTimeline(input: {
key: `dec-${d.id}`,
stage: "agent",
at: d.createdAt,
title: `待处理:${d.title}`,
title: `需要处理:${d.title}`,
detail: d.summary,
tone: d.severity === "critical" ? "destructive" : "warning",
href: "/console/inbox",