From f397687a5f2137802ec918b8b3b1e3b35f9fdf06 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Oct 2026 18:25:20 +0800 Subject: [PATCH] =?UTF-8?q?chore(web):=20=E5=90=88=E5=B9=B6=20U=20/=20V=20?= =?UTF-8?q?/=20W=20=E5=90=8E=E7=9A=84=E6=94=B6=E5=B0=BE=E2=80=94=E2=80=94?= =?UTF-8?q?=E5=89=A9=E4=BD=99=E3=80=8C=E5=85=A5=E5=BA=93=E3=80=8D=E6=96=87?= =?UTF-8?q?=E6=A1=88=E3=80=81=E8=AE=BE=E7=BD=AE=E6=96=B0=E5=88=86=E5=8C=BA?= =?UTF-8?q?=E6=B7=B1=E9=93=BE=E3=80=81=E5=86=92=E7=83=9F=E9=94=9A=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei --- apps/web/app/api/tasks.ts | 2 +- apps/web/app/components/console/nav.test.ts | 2 +- apps/web/app/components/console/nav.ts | 15 +++++++++------ .../components/downloads/business-tasks.tsx | 4 ++-- .../app/components/downloads/cache-volumes.tsx | 2 +- .../app/components/status/storage-section.tsx | 2 +- apps/web/app/components/tasks/labels.ts | 2 +- apps/web/app/routes/console/home.tsx | 18 +++++++++--------- apps/web/app/routes/console/tasks.$id.tsx | 2 +- apps/web/scripts/smoke.mjs | 8 +++++--- scripts/check-copy-punctuation.mjs | 10 ---------- 11 files changed, 31 insertions(+), 36 deletions(-) diff --git a/apps/web/app/api/tasks.ts b/apps/web/app/api/tasks.ts index b654a292..44b3d5a0 100644 --- a/apps/web/app/api/tasks.ts +++ b/apps/web/app/api/tasks.ts @@ -110,7 +110,7 @@ const TASK_STATUS_TEXT: Record = { const TASK_KIND_LABEL: Partial> = { submitDownload: "提交下载", - verifyAndImport: "核验入库", + verifyAndImport: "核验整理", evaluateAcquisition: "评估候选", cleanupDownloadCache: "清理缓存", resolveDecision: "处理待处理事项", diff --git a/apps/web/app/components/console/nav.test.ts b/apps/web/app/components/console/nav.test.ts index b5037f67..6aa25a87 100644 --- a/apps/web/app/components/console/nav.test.ts +++ b/apps/web/app/components/console/nav.test.ts @@ -88,7 +88,7 @@ describe("控制台导航", () => { }); it("settingsPath 只认新分区名", () => { - expect(settingsPath("automation", "cache")).toBe("/console/settings#automation/cache"); + expect(settingsPath("downloaders", "cache")).toBe("/console/settings#downloaders/cache"); expect(settingsPath("agent")).toBe("/console/settings#agent"); }); }); diff --git a/apps/web/app/components/console/nav.ts b/apps/web/app/components/console/nav.ts index ba8f07b3..e5b63e39 100644 --- a/apps/web/app/components/console/nav.ts +++ b/apps/web/app/components/console/nav.ts @@ -51,7 +51,7 @@ export const NAV_GROUPS: NavGroup[] = [ to: "/console", label: "首页", icon: House, - description: "在忙什么、要我处理什么、最近入库了什么", + description: "在忙什么、要我处理什么、最近整理了什么", }, { to: "/console/agent", @@ -139,15 +139,18 @@ export const NAV_ITEMS = NAV_GROUPS.flatMap((g) => g.items); /** 设置页深链(IA-2):`/console/settings#分区[/节]`。调用方只认新分区名 */ export type SettingsSection = - | "automation" - | "sites" | "downloaders" - | "library" | "media-servers" + | "sites" | "metadata" + | "acquire" + | "library" + | "organize" | "agent" - | "api-keys" - | "account"; + | "system" + | "cache" + | "account" + | "interface"; export function settingsPath(section: SettingsSection, anchor?: string): string { return `${CONSOLE_BASE}/settings#${section}${anchor ? `/${anchor}` : ""}`; } diff --git a/apps/web/app/components/downloads/business-tasks.tsx b/apps/web/app/components/downloads/business-tasks.tsx index 3b02d5fc..941a58ad 100644 --- a/apps/web/app/components/downloads/business-tasks.tsx +++ b/apps/web/app/components/downloads/business-tasks.tsx @@ -28,7 +28,7 @@ export const TASK_KIND_LABEL: Record = { resolveObservation: "识别资源", evaluateAcquisition: "评估候选", submitDownload: "提交下载", - verifyAndImport: "核验入库", + verifyAndImport: "核验整理", refreshMetadata: "刷新元数据", reconcileLibrary: "文件核对", cleanupDownloadCache: "清理缓存", @@ -246,7 +246,7 @@ export function BusinessTasks() { empty={{ icon: ListTodo, title: f.active ? "没有符合筛选的任务" : "还没有业务任务", - description: f.active ? undefined : "提交下载、核验入库、清理缓存、对账等后台任务会出现在这里。", + description: f.active ? undefined : "提交下载、核验整理、清理缓存、对账等后台任务会出现在这里。", }} /> 下载盘