From a23d037a1fbdafbf0741128194036c5c053f1365 Mon Sep 17 00:00:00 2001 From: Sekken Date: Tue, 1 Sep 2026 23:32:48 +0800 Subject: [PATCH] feat(webui): add toggle to show WebChat conversations in history list The conversation history pages hard-coded exclude_platforms='webchat' for every request, so WebChat conversations never appear in the history list (see #9474). This adds an opt-in 'Show WebChat conversations' switch to both the new workspace page and the legacy history page, keeping the default behavior unchanged. Includes zh-CN/en-US/ru-RU translations. --- .../locales/en-US/features/conversation.json | 4 +++- .../locales/ru-RU/features/conversation.json | 4 +++- .../locales/zh-CN/features/conversation.json | 4 +++- dashboard/src/views/ConversationPage.vue | 20 ++++++++++++---- .../ConversationWorkspacePage.vue | 23 +++++++++++++++++-- 5 files changed, 46 insertions(+), 9 deletions(-) diff --git a/dashboard/src/i18n/locales/en-US/features/conversation.json b/dashboard/src/i18n/locales/en-US/features/conversation.json index ac6179bd0f..0d1144f32e 100644 --- a/dashboard/src/i18n/locales/en-US/features/conversation.json +++ b/dashboard/src/i18n/locales/en-US/features/conversation.json @@ -6,7 +6,8 @@ "platform": "Platform", "type": "Type", "search": "Search Keywords", - "reset": "Reset" + "reset": "Reset", + "includeWebchat": "Show WebChat conversations" }, "history": { "title": "Conversation History", @@ -117,6 +118,7 @@ "types": "Conversation type", "umo": "UMO", "umoPlaceholder": "Enter a full or partial UMO", + "includeWebchat": "Show WebChat conversations", "sort": "Sort", "reset": "Clear filters", "close": "Close filters", diff --git a/dashboard/src/i18n/locales/ru-RU/features/conversation.json b/dashboard/src/i18n/locales/ru-RU/features/conversation.json index 8afda742bb..71723cac82 100644 --- a/dashboard/src/i18n/locales/ru-RU/features/conversation.json +++ b/dashboard/src/i18n/locales/ru-RU/features/conversation.json @@ -6,7 +6,8 @@ "platform": "ID бота", "type": "Тип", "search": "Поиск по ключевым словам", - "reset": "Сбросить" + "reset": "Сбросить", + "includeWebchat": "Показывать WebChat-диалоги" }, "history": { "title": "История", @@ -117,6 +118,7 @@ "types": "Тип диалога", "umo": "UMO", "umoPlaceholder": "Введите UMO полностью или частично", + "includeWebchat": "Показывать WebChat-диалоги", "sort": "Сортировка", "reset": "Сбросить фильтры", "close": "Закрыть фильтры", diff --git a/dashboard/src/i18n/locales/zh-CN/features/conversation.json b/dashboard/src/i18n/locales/zh-CN/features/conversation.json index ef7ae0d7b0..ce03529987 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/conversation.json +++ b/dashboard/src/i18n/locales/zh-CN/features/conversation.json @@ -6,7 +6,8 @@ "platform": "机器人 ID", "type": "类型", "search": "搜索关键词", - "reset": "重置" + "reset": "重置", + "includeWebchat": "显示 WebChat 对话" }, "history": { "title": "对话历史", @@ -117,6 +118,7 @@ "types": "对话类型", "umo": "UMO", "umoPlaceholder": "输入完整或部分 UMO", + "includeWebchat": "显示 WebChat 对话", "sort": "排序", "reset": "清除筛选", "close": "关闭筛选", diff --git a/dashboard/src/views/ConversationPage.vue b/dashboard/src/views/ConversationPage.vue index cb25012a37..da43b898f3 100644 --- a/dashboard/src/views/ConversationPage.vue +++ b/dashboard/src/views/ConversationPage.vue @@ -7,7 +7,7 @@ {{ tm('history.title') }} {{ pagination.total || 0 }} - + @@ -19,7 +19,7 @@ - +