From 3b587c401d62eead592c46c97560f64507ae3fbc Mon Sep 17 00:00:00 2001 From: Binks Riverton Date: Mon, 13 Jul 2026 20:08:45 +0800 Subject: [PATCH] fix(frontend): add cancelled, finalizing, draft statuses to parse-status dropdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The '全部状态' (All Statuses) filter dropdown on the knowledge base documents page was missing the 'cancelled', 'finalizing', and 'draft' status options, even though documents can reach these states (e.g. cancelled via the '停止解析' button). Added all three status options and their i18n translations for zh-CN, en-US, ru-RU, and ko-KR. --- frontend/src/i18n/locales/en-US.ts | 3 +++ frontend/src/i18n/locales/ko-KR.ts | 3 +++ frontend/src/i18n/locales/ru-RU.ts | 3 +++ frontend/src/i18n/locales/zh-CN.ts | 3 +++ frontend/src/views/knowledge/KnowledgeBase.vue | 3 +++ 5 files changed, 15 insertions(+) diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 4a59c197..15fdab24 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -654,7 +654,10 @@ export default { parseStatusPending: 'Pending', parseStatusProcessing: 'Processing', parseStatusCompleted: 'Completed', + parseStatusFinalizing: 'Optimizing', parseStatusFailed: 'Failed', + parseStatusCancelled: 'Cancelled', + parseStatusDraft: 'Draft', sourceFilter: 'Source', allSources: 'All Sources', sourceWeb: 'Web', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index 5aeda503..176cb2e1 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -660,7 +660,10 @@ export default { parseStatusPending: "대기 중", parseStatusProcessing: "처리 중", parseStatusCompleted: "완료됨", + parseStatusFinalizing: "최적화 중", parseStatusFailed: "실패", + parseStatusCancelled: "취소됨", + parseStatusDraft: "초안", sourceFilter: "출처", allSources: "모든 출처", sourceWeb: "웹", diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index c66c25d6..04b5a69c 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -578,7 +578,10 @@ export default { parseStatusPending: 'Ожидание', parseStatusProcessing: 'Обработка', parseStatusCompleted: 'Завершено', + parseStatusFinalizing: 'Оптимизация', parseStatusFailed: 'Ошибка', + parseStatusCancelled: 'Отменено', + parseStatusDraft: 'Черновик', sourceFilter: 'Источник', allSources: 'Все источники', sourceWeb: 'Веб', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 35bba61b..b9d40647 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -658,7 +658,10 @@ export default { parseStatusPending: "等待中", parseStatusProcessing: "处理中", parseStatusCompleted: "已完成", + parseStatusFinalizing: "整理优化中", parseStatusFailed: "失败", + parseStatusCancelled: "已取消", + parseStatusDraft: "草稿", sourceFilter: "来源", allSources: "全部来源", sourceWeb: "网页", diff --git a/frontend/src/views/knowledge/KnowledgeBase.vue b/frontend/src/views/knowledge/KnowledgeBase.vue index fa309a1e..bc8fd3f4 100644 --- a/frontend/src/views/knowledge/KnowledgeBase.vue +++ b/frontend/src/views/knowledge/KnowledgeBase.vue @@ -528,6 +528,9 @@ const parseStatusOptions = computed(() => [ { label: t('knowledgeBase.parseStatusProcessing'), value: 'processing' }, { label: t('knowledgeBase.parseStatusCompleted'), value: 'completed' }, { label: t('knowledgeBase.parseStatusFailed'), value: 'failed' }, + { label: t('knowledgeBase.parseStatusCancelled'), value: 'cancelled' }, + { label: t('knowledgeBase.parseStatusFinalizing'), value: 'finalizing' }, + { label: t('knowledgeBase.parseStatusDraft'), value: 'draft' }, ]); const selectedSource = ref(''); // Source filter combines ingestion channels and the "manual"/"url" virtual