LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
fix: localize ingest queue pause controls
nash_su0e97e2260cb8
diff --git a/src/components/layout/activity-panel.tsx b/src/components/layout/activity-panel.tsxindex 76109d18..cf0aade5 100644--- a/src/components/layout/activity-panel.tsx+++ b/src/components/layout/activity-panel.tsx@@ -4,6 +4,7 @@ import {FileText, Users, Lightbulb, BookOpen, GitMerge, BarChart3, HelpCircle, Layout,RotateCcw, X, Clock, TrendingUp, Target, Pause, Play,} from "lucide-react"+import { useTranslation } from "react-i18next"import { useActivityStore, type ActivityItem } from "@/stores/activity-store"import { useWikiStore } from "@/stores/wiki-store"import { useFileSyncStore } from "@/stores/file-sync-store"@@ -70,6 +71,7 @@ function getFileTypeInfo(path: string): { icon: typeof FileText; type: string }}export function ActivityPanel() {+ const { t } = useTranslation()const items = useActivityStore((s) => s.items)const clearDone = useActivityStore((s) => s.clearDone)const project = useWikiStore((s) => s.project)@@ -127,13 +129,9 @@ export function ActivityPanel() {if (!project) returnconst activeCount = queueSummary.pending + queueSummary.processingif (activeCount === 0) return- if (!window.confirm(- `Cancel all ${activeCount} queued/processing task${activeCount > 1 ? "s" : ""}? ` +- `Partial files from the in-progress task will be removed. ` +- `Failed tasks will be kept so you can retry them.`,- )) return+ if (!window.confirm(t("activity.cancelAllConfirm", { count: activeCount }))) returncancelAllTasks()- }, [project, queueSummary.pending, queueSummary.processing])+ }, [project, queueSummary.pending, queueSummary.processing, t])const handleTogglePause = useCallback(() => {if (!project) return@@ -264,9 +262,12 @@ export function ActivityPanel() {{hasQueue && (queueSummary.processing > 0 || queueSummary.pending > 0) && (<div className="px-3 py-1.5 border-b border-border/50"><div className="flex items-center justify-between text-[10px] text-muted-foreground mb-1 gap-2">- <span>{queueSummary.paused ? "Ingest Queue (paused)" : "Ingest Queue"}</span>+ <span>{queueSummary.paused ? t("activity.ingestQueuePaused") : t("activity.ingestQueue")}</span><span className="flex-1 text-right">- {queueSummary.completed + queueSummary.failed}/{queueSummary.total} complete+ {t("activity.queueCompleteCount", {+ done: queueSummary.completed + queueSummary.failed,+ total: queueSummary.total,+ })}</span>{(queueSummary.pending > 0 || queueSummary.paused) && (<button@@ -274,30 +275,30 @@ export function ActivityPanel() {className="flex items-center gap-0.5 rounded px-1.5 py-0.5 text-[10px] hover:bg-accent hover:text-foreground"title={queueSummary.paused- ? "Resume processing queued tasks"- : "Pause — let the current task finish, then stop before the next (no more LLM calls)"+ ? t("activity.resumeQueueTitle")+ : t("activity.pauseQueueTitle")}>{queueSummary.paused ? <Play className="h-2.5 w-2.5" /> : <Pause className="h-2.5 w-2.5" />}- {queueSummary.paused ? "Resume" : "Pause"}+ {queueSummary.paused ? t("activity.resumeQueue") : t("activity.pauseQueue")}</button>)}{queueSummary.pending + queueSummary.processing >= 2 && (<buttononClick={handleCancelAll}className="rounded px-1.5 py-0.5 text-[10px] text-destructive hover:bg-destructive/10"- title="Cancel all queued and in-progress tasks"+ title={t("activity.cancelAllTitle")}>- Cancel all+ {t("activity.cancelAll")}</button>)}{queueSummary.failed > 0 && (<buttononClick={handleRetryAllFailed}className="rounded px-1.5 py-0.5 text-[10px] hover:bg-accent hover:text-foreground"- title="Retry all failed ingest tasks"+ title={t("activity.retryFailedTitle")}>- Retry failed+ {t("activity.retryFailed")}</button>)}</div>@@ -313,16 +314,16 @@ export function ActivityPanel() {{hasQueue && queueSummary.processing === 0 && queueSummary.pending === 0 && queueSummary.failed > 0 && (<div className="px-3 py-1.5 border-b border-border/50"><div className="flex items-center justify-between text-[10px] text-muted-foreground gap-2">- <span>Ingest Queue</span>+ <span>{t("activity.ingestQueue")}</span><span className="flex-1 text-right">- {queueSummary.failed} failed+ {t("activity.failedCount", { count: queueSummary.failed })}</span><buttononClick={handleRetryAllFailed}className="rounded px-1.5 py-0.5 text-[10px] hover:bg-accent hover:text-foreground"- title="Retry all failed ingest tasks"+ title={t("activity.retryFailedTitle")}>- Retry failed+ {t("activity.retryFailed")}</button></div></div>diff --git a/src/i18n/en.json b/src/i18n/en.jsonindex ffc727ad..ee9ea8c3 100644--- a/src/i18n/en.json+++ b/src/i18n/en.json@@ -668,7 +668,20 @@"activity": {"processing": "Processing: {{title}}","done": "Done: {{title}}",- "clearCompleted": "Clear completed"+ "clearCompleted": "Clear completed",+ "ingestQueue": "Ingest Queue",+ "ingestQueuePaused": "Ingest Queue (paused)",+ "pauseQueue": "Pause",+ "resumeQueue": "Resume",+ "pauseQueueTitle": "Pause after the current task finishes. No new ingest tasks will start.",+ "resumeQueueTitle": "Resume processing queued ingest tasks",+ "queueCompleteCount": "{{done}}/{{total}} complete",+ "failedCount": "{{count}} failed",+ "cancelAll": "Cancel all",+ "cancelAllTitle": "Cancel all queued and in-progress tasks",+ "cancelAllConfirm": "Cancel all {{count}} queued/processing ingest tasks? Partial files from the in-progress task will be removed. Failed tasks will be kept so you can retry them.",+ "retryFailed": "Retry failed",+ "retryFailedTitle": "Retry all failed ingest tasks"},"fileTree": {"noProject": "No project open"diff --git a/src/i18n/zh.json b/src/i18n/zh.jsonindex 47466a73..b086878b 100644--- a/src/i18n/zh.json+++ b/src/i18n/zh.json@@ -668,7 +668,20 @@"activity": {"processing": "处理中:{{title}}","done": "已完成:{{title}}",- "clearCompleted": "清除已完成"+ "clearCompleted": "清除已完成",+ "ingestQueue": "摄取队列",+ "ingestQueuePaused": "摄取队列(已暂停)",+ "pauseQueue": "暂停",+ "resumeQueue": "继续",+ "pauseQueueTitle": "当前任务完成后暂停,不再启动新的摄取任务。",+ "resumeQueueTitle": "继续处理排队中的摄取任务",+ "queueCompleteCount": "{{done}}/{{total}} 已完成",+ "failedCount": "{{count}} 个失败",+ "cancelAll": "全部取消",+ "cancelAllTitle": "取消所有排队和正在处理的任务",+ "cancelAllConfirm": "要取消全部 {{count}} 个排队/处理中摄取任务吗?正在处理任务产生的部分文件会被移除;失败任务会保留,之后仍可重试。",+ "retryFailed": "重试失败项",+ "retryFailedTitle": "重试所有失败的摄取任务"},"fileTree": {"noProject": "未打开项目"