From f2cfc5fdc3542bccb3e03ae651bd601114253aea Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 3 Jun 2026 15:41:45 +0800 Subject: [PATCH] refactor(knowledge-processing): streamline cancel parse functionality and enhance user confirmation dialogs - Refactored the cancel parse logic in `knowledge-processing-timeline.vue` to remove the dialog dependency, directly handling cancellation confirmation within the function. - Introduced a `t-popconfirm` component for confirming cancellation actions in both `DocumentListView.vue` and `DocumentBatchBar.vue`, improving user experience with clear confirmation prompts. - Updated the `KnowledgeBase.vue` to utilize new confirmation methods for reparse and delete actions, ensuring consistent user interactions across the application. - Enhanced localization strings for better clarity in confirmation messages, supporting a more intuitive user experience. --- .../knowledge-processing-timeline.vue | 57 ++-- .../src/views/knowledge/KnowledgeBase.vue | 301 +++++------------- .../knowledge/components/DocumentBatchBar.vue | 29 +- .../knowledge/components/DocumentListView.vue | 59 +++- 4 files changed, 171 insertions(+), 275 deletions(-) diff --git a/frontend/src/components/knowledge-processing-timeline.vue b/frontend/src/components/knowledge-processing-timeline.vue index cd411811..20676f82 100644 --- a/frontend/src/components/knowledge-processing-timeline.vue +++ b/frontend/src/components/knowledge-processing-timeline.vue @@ -1,6 +1,6 @@