docs(copy): 全局状态标签、导航说明与账户菜单文案按 human-copy 重写

- 状态统一写「排队中」;「待审批」改「等你批准」,「其它」改「其他」
- 整理结果原因用「已整理 / 部分整理」;去掉引擎旧状态的「(旧)」
- 导航说明去掉「偏好标签」「留痕」等旧称与重复

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 01:46:30 +08:00
1 parent 542f107566
commit 8918fc268e
5 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -18,6 +18,6 @@ export function revealFirstError(root?: HTMLElement | null) {
/** toast 用的一句话:"有 3 处需要修改:填写模板名称" */
export function formErrorSummary(errors: Record<string, string>): string {
const msgs = Object.values(errors).filter(Boolean);
if (msgs.length === 0) return "表单有错误";
if (msgs.length === 0) return "有内容需要修改";
return msgs.length === 1 ? `需要修改:${msgs[0]}` : `有 ${msgs.length} 处需要修改:${msgs[0]}`;
}
+10 -10
View File
@@ -24,7 +24,7 @@ const HEALTH: Record<string, Labeled> = {
export const healthLabel = (v: string | null | undefined) => pick(HEALTH, v);
const DOWNLOAD: Record<string, Labeled> = {
queued: { label: "排队", tone: "neutral" },
queued: { label: "排队中", tone: "neutral" },
submitting: { label: "提交中", tone: "neutral" },
downloading: { label: "下载中", tone: "neutral" },
paused: { label: "已暂停", tone: "warning" },
@@ -46,17 +46,17 @@ const DECISION_KIND: Record<string, string> = {
download_failed: "下载失败",
path_conflict: "整理冲突",
space_insufficient: "空间不足",
approval_required: "待审批",
approval_required: "等你批准",
metadata_conflict: "元数据冲突",
source_unreachable: "来源不可达",
source_unreachable: "来源连不上",
downloader_offline: "下载器连不上",
cache_volume_unknown: "下载目录读不到容量",
other: "其它",
other: "其他",
};
export const decisionKindLabel = (v: string) => DECISION_KIND[v] ?? v;
const ORG: Record<string, Labeled> = {
queued: { label: "排队", tone: "neutral" },
queued: { label: "排队中", tone: "neutral" },
running: { label: "进行中", tone: "neutral" },
succeeded: { label: "成功", tone: "success" },
partial: { label: "部分成功", tone: "warning" },
@@ -91,8 +91,8 @@ export const agentRunLabel = (v: string | null | undefined) => pick(AGENT_RUN, v
const ENGINE_RUN: Record<string, Labeled> = {
pending: { label: "待执行", tone: "neutral" },
running: { label: "运行中", tone: "neutral" },
sleeping: { label: "休眠(旧)", tone: "neutral" },
succeeded: { label: "完成(旧)", tone: "success" },
sleeping: { label: "休眠", tone: "neutral" },
succeeded: { label: "完成", tone: "success" },
completed: { label: "完成", tone: "success" },
failed: { label: "失败", tone: "destructive" },
canceled: { label: "已取消", tone: "warning" },
@@ -156,11 +156,11 @@ export const actorTypeLabel = (t: string) => ACTOR_TYPES.find((a) => a.value ===
/** 计划 statusReason(`added`、`organize:succeeded` 等)→ 中文;不认识的原样显示 */
const PLAN_REASON: Record<string, string> = {
added: "已添加到下载器",
"organize:succeeded": "整理成功",
"organize:partial": "部分整理成功",
"organize:succeeded": "已整理",
"organize:partial": "部分整理",
"organize:failed": "整理失败",
authorized: "已批准",
"reserved:agent": "智能体已预留空间",
"reserved:agent": "智能体已批准下载",
};
/** 不认识的内部码走原因码表,仍不认识就不显示(原码在技术信息里) */
export const planReasonText = (v: string | null | undefined) =>