From 94fd3d274c2a6c6b42b6796f90b668f532282afd Mon Sep 17 00:00:00 2001 From: RockChinQ Date: Wed, 26 Aug 2026 00:24:37 +0800 Subject: [PATCH] refactor(pipelines): simplify connection status copy --- web/src/i18n/locales/en-US.ts | 4 ++-- web/src/i18n/locales/es-ES.ts | 4 ++-- web/src/i18n/locales/ja-JP.ts | 4 ++-- web/src/i18n/locales/ru-RU.ts | 4 ++-- web/src/i18n/locales/th-TH.ts | 4 ++-- web/src/i18n/locales/vi-VN.ts | 4 ++-- web/src/i18n/locales/zh-Hans.ts | 4 ++-- web/src/i18n/locales/zh-Hant.ts | 4 ++-- web/tests/e2e/processor-detail-workbench.spec.ts | 4 ++++ 9 files changed, 20 insertions(+), 16 deletions(-) diff --git a/web/src/i18n/locales/en-US.ts b/web/src/i18n/locales/en-US.ts index 30c459ee8..4ede514c9 100644 --- a/web/src/i18n/locales/en-US.ts +++ b/web/src/i18n/locales/en-US.ts @@ -1365,8 +1365,8 @@ const enUS = { atTips: 'Mention the bot', streaming: 'Streaming', streamOutput: 'Stream', - connected: 'WebSocket connected', - disconnected: 'WebSocket disconnected', + connected: 'Connected', + disconnected: 'Disconnected', connectionError: 'WebSocket connection error', connectionFailed: 'WebSocket connection failed', notConnected: 'WebSocket not connected, please try again later', diff --git a/web/src/i18n/locales/es-ES.ts b/web/src/i18n/locales/es-ES.ts index 32824d546..4fbe72f12 100644 --- a/web/src/i18n/locales/es-ES.ts +++ b/web/src/i18n/locales/es-ES.ts @@ -1135,8 +1135,8 @@ const esES = { atTips: 'Mencionar al Bot', streaming: 'Transmisión', streamOutput: 'Transmisión', - connected: 'WebSocket conectado', - disconnected: 'WebSocket desconectado', + connected: 'Conectado', + disconnected: 'Desconectado', connectionError: 'Error de conexión WebSocket', connectionFailed: 'Conexión WebSocket fallida', notConnected: 'WebSocket no conectado, por favor inténtalo más tarde', diff --git a/web/src/i18n/locales/ja-JP.ts b/web/src/i18n/locales/ja-JP.ts index 59e0c24de..0c54cac00 100644 --- a/web/src/i18n/locales/ja-JP.ts +++ b/web/src/i18n/locales/ja-JP.ts @@ -1329,8 +1329,8 @@ const jaJP = { atTips: 'ボットをメンション', streaming: 'ストリーミング', streamOutput: 'ストリーム', - connected: 'WebSocket接続済み', - disconnected: 'WebSocket未接続', + connected: '接続済み', + disconnected: '未接続', connectionError: 'WebSocket接続エラー', connectionFailed: 'WebSocket接続に失敗しました', notConnected: diff --git a/web/src/i18n/locales/ru-RU.ts b/web/src/i18n/locales/ru-RU.ts index 3372b2f93..e678daade 100644 --- a/web/src/i18n/locales/ru-RU.ts +++ b/web/src/i18n/locales/ru-RU.ts @@ -1124,8 +1124,8 @@ const ruRU = { atTips: 'Упомянуть бота', streaming: 'Потоковая передача', streamOutput: 'Поток', - connected: 'WebSocket подключён', - disconnected: 'WebSocket отключён', + connected: 'Подключено', + disconnected: 'Отключено', connectionError: 'Ошибка подключения WebSocket', connectionFailed: 'Ошибка подключения WebSocket', notConnected: 'WebSocket не подключён, повторите попытку позже', diff --git a/web/src/i18n/locales/th-TH.ts b/web/src/i18n/locales/th-TH.ts index cdd291886..a5799581f 100644 --- a/web/src/i18n/locales/th-TH.ts +++ b/web/src/i18n/locales/th-TH.ts @@ -1099,8 +1099,8 @@ const thTH = { atTips: 'กล่าวถึง Bot', streaming: 'สตรีมมิ่ง', streamOutput: 'สตรีม', - connected: 'เชื่อมต่อ WebSocket แล้ว', - disconnected: 'ยกเลิกการเชื่อมต่อ WebSocket', + connected: 'เชื่อมต่อแล้ว', + disconnected: 'ไม่ได้เชื่อมต่อ', connectionError: 'ข้อผิดพลาดการเชื่อมต่อ WebSocket', connectionFailed: 'เชื่อมต่อ WebSocket ล้มเหลว', notConnected: 'ยังไม่ได้เชื่อมต่อ WebSocket กรุณาลองใหม่ภายหลัง', diff --git a/web/src/i18n/locales/vi-VN.ts b/web/src/i18n/locales/vi-VN.ts index 66d3791c5..20a37f4e3 100644 --- a/web/src/i18n/locales/vi-VN.ts +++ b/web/src/i18n/locales/vi-VN.ts @@ -1116,8 +1116,8 @@ const viVN = { atTips: 'Nhắc đến Bot', streaming: 'Đang truyền', streamOutput: 'Luồng', - connected: 'WebSocket đã kết nối', - disconnected: 'WebSocket đã ngắt kết nối', + connected: 'Đã kết nối', + disconnected: 'Đã ngắt kết nối', connectionError: 'Lỗi kết nối WebSocket', connectionFailed: 'Kết nối WebSocket thất bại', notConnected: 'WebSocket chưa kết nối, vui lòng thử lại sau', diff --git a/web/src/i18n/locales/zh-Hans.ts b/web/src/i18n/locales/zh-Hans.ts index c68e5a8c3..87b5aff90 100644 --- a/web/src/i18n/locales/zh-Hans.ts +++ b/web/src/i18n/locales/zh-Hans.ts @@ -1306,8 +1306,8 @@ const zhHans = { atTips: '提及机器人', streaming: '流式传输', streamOutput: '流式', - connected: 'WebSocket已连接', - disconnected: 'WebSocket未连接', + connected: '已连接', + disconnected: '未连接', connectionError: 'WebSocket连接错误', connectionFailed: 'WebSocket连接失败', notConnected: 'WebSocket未连接,请稍后重试', diff --git a/web/src/i18n/locales/zh-Hant.ts b/web/src/i18n/locales/zh-Hant.ts index bb70881a7..ddcb29d7b 100644 --- a/web/src/i18n/locales/zh-Hant.ts +++ b/web/src/i18n/locales/zh-Hant.ts @@ -1066,8 +1066,8 @@ const zhHant = { atTips: '提及機器人', streaming: '串流傳輸', streamOutput: '串流', - connected: 'WebSocket已連接', - disconnected: 'WebSocket未連接', + connected: '已連接', + disconnected: '未連接', connectionError: 'WebSocket連接錯誤', connectionFailed: 'WebSocket連接失敗', notConnected: 'WebSocket未連接,請稍後重試', diff --git a/web/tests/e2e/processor-detail-workbench.spec.ts b/web/tests/e2e/processor-detail-workbench.spec.ts index f5d61158b..cf6934f1f 100644 --- a/web/tests/e2e/processor-detail-workbench.spec.ts +++ b/web/tests/e2e/processor-detail-workbench.spec.ts @@ -248,6 +248,10 @@ test.describe('processor detail workbench', () => { const configPanel = page.getByRole('region', { name: 'Configuration' }); await expect(debugPanel).toBeVisible(); await expect(configPanel).toBeVisible(); + await expect( + debugPanel.getByText('Connected', { exact: true }), + ).toBeVisible(); + await expect(debugPanel.getByText('WebSocket connected')).toHaveCount(0); await expect( debugPanel.getByRole('button', { name: 'Private Chat' }), ).toBeVisible();