refactor(pipelines): simplify connection status copy

This commit is contained in:
RockChinQ
2026-08-26 00:24:37 +08:00
parent 8380bfc7d4
commit 94fd3d274c
9 changed files with 20 additions and 16 deletions
+2 -2
View File
@@ -1365,8 +1365,8 @@ const enUS = {
atTips: 'Mention the bot', atTips: 'Mention the bot',
streaming: 'Streaming', streaming: 'Streaming',
streamOutput: 'Stream', streamOutput: 'Stream',
connected: 'WebSocket connected', connected: 'Connected',
disconnected: 'WebSocket disconnected', disconnected: 'Disconnected',
connectionError: 'WebSocket connection error', connectionError: 'WebSocket connection error',
connectionFailed: 'WebSocket connection failed', connectionFailed: 'WebSocket connection failed',
notConnected: 'WebSocket not connected, please try again later', notConnected: 'WebSocket not connected, please try again later',
+2 -2
View File
@@ -1135,8 +1135,8 @@ const esES = {
atTips: 'Mencionar al Bot', atTips: 'Mencionar al Bot',
streaming: 'Transmisión', streaming: 'Transmisión',
streamOutput: 'Transmisión', streamOutput: 'Transmisión',
connected: 'WebSocket conectado', connected: 'Conectado',
disconnected: 'WebSocket desconectado', disconnected: 'Desconectado',
connectionError: 'Error de conexión WebSocket', connectionError: 'Error de conexión WebSocket',
connectionFailed: 'Conexión WebSocket fallida', connectionFailed: 'Conexión WebSocket fallida',
notConnected: 'WebSocket no conectado, por favor inténtalo más tarde', notConnected: 'WebSocket no conectado, por favor inténtalo más tarde',
+2 -2
View File
@@ -1329,8 +1329,8 @@ const jaJP = {
atTips: 'ボットをメンション', atTips: 'ボットをメンション',
streaming: 'ストリーミング', streaming: 'ストリーミング',
streamOutput: 'ストリーム', streamOutput: 'ストリーム',
connected: 'WebSocket接続済み', connected: '接続済み',
disconnected: 'WebSocket未接続', disconnected: '未接続',
connectionError: 'WebSocket接続エラー', connectionError: 'WebSocket接続エラー',
connectionFailed: 'WebSocket接続に失敗しました', connectionFailed: 'WebSocket接続に失敗しました',
notConnected: notConnected:
+2 -2
View File
@@ -1124,8 +1124,8 @@ const ruRU = {
atTips: 'Упомянуть бота', atTips: 'Упомянуть бота',
streaming: 'Потоковая передача', streaming: 'Потоковая передача',
streamOutput: 'Поток', streamOutput: 'Поток',
connected: 'WebSocket подключён', connected: 'Подключено',
disconnected: 'WebSocket отключён', disconnected: 'Отключено',
connectionError: 'Ошибка подключения WebSocket', connectionError: 'Ошибка подключения WebSocket',
connectionFailed: 'Ошибка подключения WebSocket', connectionFailed: 'Ошибка подключения WebSocket',
notConnected: 'WebSocket не подключён, повторите попытку позже', notConnected: 'WebSocket не подключён, повторите попытку позже',
+2 -2
View File
@@ -1099,8 +1099,8 @@ const thTH = {
atTips: 'กล่าวถึง Bot', atTips: 'กล่าวถึง Bot',
streaming: 'สตรีมมิ่ง', streaming: 'สตรีมมิ่ง',
streamOutput: 'สตรีม', streamOutput: 'สตรีม',
connected: 'เชื่อมต่อ WebSocket แล้ว', connected: 'เชื่อมต่อแล้ว',
disconnected: 'ยกเลิกการเชื่อมต่อ WebSocket', disconnected: 'ไม่ได้เชื่อมต่อ',
connectionError: 'ข้อผิดพลาดการเชื่อมต่อ WebSocket', connectionError: 'ข้อผิดพลาดการเชื่อมต่อ WebSocket',
connectionFailed: 'เชื่อมต่อ WebSocket ล้มเหลว', connectionFailed: 'เชื่อมต่อ WebSocket ล้มเหลว',
notConnected: 'ยังไม่ได้เชื่อมต่อ WebSocket กรุณาลองใหม่ภายหลัง', notConnected: 'ยังไม่ได้เชื่อมต่อ WebSocket กรุณาลองใหม่ภายหลัง',
+2 -2
View File
@@ -1116,8 +1116,8 @@ const viVN = {
atTips: 'Nhắc đến Bot', atTips: 'Nhắc đến Bot',
streaming: 'Đang truyền', streaming: 'Đang truyền',
streamOutput: 'Luồng', streamOutput: 'Luồng',
connected: 'WebSocket đã kết nối', connected: 'Đã kết nối',
disconnected: 'WebSocket đã ngắt kết nối', disconnected: 'Đã ngắt kết nối',
connectionError: 'Lỗi kết nối WebSocket', connectionError: 'Lỗi kết nối WebSocket',
connectionFailed: 'Kết nối WebSocket thất bại', 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', notConnected: 'WebSocket chưa kết nối, vui lòng thử lại sau',
+2 -2
View File
@@ -1306,8 +1306,8 @@ const zhHans = {
atTips: '提及机器人', atTips: '提及机器人',
streaming: '流式传输', streaming: '流式传输',
streamOutput: '流式', streamOutput: '流式',
connected: 'WebSocket已连接', connected: '已连接',
disconnected: 'WebSocket未连接', disconnected: '未连接',
connectionError: 'WebSocket连接错误', connectionError: 'WebSocket连接错误',
connectionFailed: 'WebSocket连接失败', connectionFailed: 'WebSocket连接失败',
notConnected: 'WebSocket未连接,请稍后重试', notConnected: 'WebSocket未连接,请稍后重试',
+2 -2
View File
@@ -1066,8 +1066,8 @@ const zhHant = {
atTips: '提及機器人', atTips: '提及機器人',
streaming: '串流傳輸', streaming: '串流傳輸',
streamOutput: '串流', streamOutput: '串流',
connected: 'WebSocket已連接', connected: '已連接',
disconnected: 'WebSocket未連接', disconnected: '未連接',
connectionError: 'WebSocket連接錯誤', connectionError: 'WebSocket連接錯誤',
connectionFailed: 'WebSocket連接失敗', connectionFailed: 'WebSocket連接失敗',
notConnected: 'WebSocket未連接,請稍後重試', notConnected: 'WebSocket未連接,請稍後重試',
@@ -248,6 +248,10 @@ test.describe('processor detail workbench', () => {
const configPanel = page.getByRole('region', { name: 'Configuration' }); const configPanel = page.getByRole('region', { name: 'Configuration' });
await expect(debugPanel).toBeVisible(); await expect(debugPanel).toBeVisible();
await expect(configPanel).toBeVisible(); await expect(configPanel).toBeVisible();
await expect(
debugPanel.getByText('Connected', { exact: true }),
).toBeVisible();
await expect(debugPanel.getByText('WebSocket connected')).toHaveCount(0);
await expect( await expect(
debugPanel.getByRole('button', { name: 'Private Chat' }), debugPanel.getByRole('button', { name: 'Private Chat' }),
).toBeVisible(); ).toBeVisible();