diff --git a/webui/src/components/ChatList.tsx b/webui/src/components/ChatList.tsx index 32df70ed4..2ba6b3d45 100644 --- a/webui/src/components/ChatList.tsx +++ b/webui/src/components/ChatList.tsx @@ -590,11 +590,13 @@ function TemporaryChatSection({ onCloseAutoFocus={(event) => event.preventDefault()} > onClose(session.key)} > - {t("temporaryChat.closeAction")} + {t("common.close")} diff --git a/webui/src/i18n/locales/en/common.json b/webui/src/i18n/locales/en/common.json index 1f801d9bb..d5688ab17 100644 --- a/webui/src/i18n/locales/en/common.json +++ b/webui/src/i18n/locales/en/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "Temporary chat", "description": "Not saved to history or memory. Reloading, closing, or losing the connection ends these chats. Requests still go to your model provider, and tool actions may leave changes.", - "notSaved": "Not saved", "clear": "Clear temporary chat", "sectionTitle": "Temporary chats", "closeAction": "Close temporary chat" diff --git a/webui/src/i18n/locales/es/common.json b/webui/src/i18n/locales/es/common.json index 9fba68682..562444df8 100644 --- a/webui/src/i18n/locales/es/common.json +++ b/webui/src/i18n/locales/es/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "Chat temporal", "description": "No se guarda en el historial ni en la memoria. Recargar, cerrar o perder la conexión finaliza estos chats. Las solicitudes siguen llegando al proveedor del modelo y las herramientas pueden dejar cambios.", - "notSaved": "No se guarda", "clear": "Borrar chat temporal", "sectionTitle": "Chats temporales", "closeAction": "Cerrar chat temporal" diff --git a/webui/src/i18n/locales/fr/common.json b/webui/src/i18n/locales/fr/common.json index 0eb621fc6..1733bd5f5 100644 --- a/webui/src/i18n/locales/fr/common.json +++ b/webui/src/i18n/locales/fr/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "Discussion temporaire", "description": "Elle n’est enregistrée ni dans l’historique ni dans la mémoire. Recharger, fermer ou perdre la connexion met fin à ces discussions. Les requêtes sont tout de même envoyées au fournisseur du modèle et les outils peuvent laisser des modifications.", - "notSaved": "Non enregistrée", "clear": "Effacer la discussion temporaire", "sectionTitle": "Discussions temporaires", "closeAction": "Fermer la discussion temporaire" diff --git a/webui/src/i18n/locales/id/common.json b/webui/src/i18n/locales/id/common.json index 68df3e319..c43353812 100644 --- a/webui/src/i18n/locales/id/common.json +++ b/webui/src/i18n/locales/id/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "Obrolan sementara", "description": "Tidak disimpan ke riwayat atau memori. Memuat ulang, menutup, atau kehilangan koneksi akan mengakhiri obrolan ini. Permintaan tetap dikirim ke penyedia model dan tindakan alat dapat meninggalkan perubahan.", - "notSaved": "Tidak disimpan", "clear": "Hapus obrolan sementara", "sectionTitle": "Obrolan sementara", "closeAction": "Tutup obrolan sementara" diff --git a/webui/src/i18n/locales/ja/common.json b/webui/src/i18n/locales/ja/common.json index 26e86e031..1e5adaa42 100644 --- a/webui/src/i18n/locales/ja/common.json +++ b/webui/src/i18n/locales/ja/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "一時チャット", "description": "履歴やメモリには保存されません。再読み込み、ページを閉じる操作、接続切断で一時チャットは終了します。リクエストは引き続きモデルプロバイダーに送信され、ツール操作による変更は残る場合があります。", - "notSaved": "保存されません", "clear": "一時チャットを消去", "sectionTitle": "一時チャット", "closeAction": "一時チャットを閉じる" diff --git a/webui/src/i18n/locales/ko/common.json b/webui/src/i18n/locales/ko/common.json index 4d42e5807..0e06b109b 100644 --- a/webui/src/i18n/locales/ko/common.json +++ b/webui/src/i18n/locales/ko/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "임시 채팅", "description": "기록이나 메모리에 저장되지 않습니다. 새로고침, 페이지 닫기 또는 연결 끊김 시 임시 채팅이 종료됩니다. 요청은 계속 모델 제공업체로 전송되며 도구 작업의 변경 사항은 남을 수 있습니다.", - "notSaved": "저장 안 함", "clear": "임시 채팅 지우기", "sectionTitle": "임시 채팅", "closeAction": "임시 채팅 닫기" diff --git a/webui/src/i18n/locales/pt-BR/common.json b/webui/src/i18n/locales/pt-BR/common.json index 434cdc65d..09db79d5f 100644 --- a/webui/src/i18n/locales/pt-BR/common.json +++ b/webui/src/i18n/locales/pt-BR/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "Chat temporário", "description": "Não é salvo no histórico nem na memória. Recarregar, fechar ou perder a conexão encerra estes chats. As solicitações ainda são enviadas ao provedor do modelo, e as ações das ferramentas podem deixar alterações.", - "notSaved": "Não salvo", "clear": "Limpar chat temporário", "sectionTitle": "Chats temporários", "closeAction": "Fechar chat temporário" diff --git a/webui/src/i18n/locales/vi/common.json b/webui/src/i18n/locales/vi/common.json index 956666100..c80022993 100644 --- a/webui/src/i18n/locales/vi/common.json +++ b/webui/src/i18n/locales/vi/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "Trò chuyện tạm thời", "description": "Không được lưu vào lịch sử hoặc bộ nhớ. Tải lại, đóng trang hoặc mất kết nối sẽ kết thúc các cuộc trò chuyện này. Yêu cầu vẫn được gửi đến nhà cung cấp mô hình và thao tác công cụ có thể để lại thay đổi.", - "notSaved": "Không lưu", "clear": "Xóa trò chuyện tạm thời", "sectionTitle": "Trò chuyện tạm thời", "closeAction": "Đóng trò chuyện tạm thời" diff --git a/webui/src/i18n/locales/zh-CN/common.json b/webui/src/i18n/locales/zh-CN/common.json index 62eee3762..f480e5e3d 100644 --- a/webui/src/i18n/locales/zh-CN/common.json +++ b/webui/src/i18n/locales/zh-CN/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "临时聊天", "description": "不会保存到历史记录或记忆。刷新、关闭页面或连接中断后,临时聊天会结束。请求仍会发送给模型提供商,工具操作也可能留下更改。", - "notSaved": "不保存", "clear": "清空临时聊天", "sectionTitle": "临时聊天", "closeAction": "关闭临时聊天" diff --git a/webui/src/i18n/locales/zh-TW/common.json b/webui/src/i18n/locales/zh-TW/common.json index 55555beee..224d84a7a 100644 --- a/webui/src/i18n/locales/zh-TW/common.json +++ b/webui/src/i18n/locales/zh-TW/common.json @@ -52,7 +52,6 @@ "temporaryChat": { "title": "臨時聊天", "description": "不會儲存至歷史記錄或記憶。重新載入、關閉頁面或連線中斷後,臨時聊天會結束。請求仍會傳送給模型供應商,工具操作也可能留下變更。", - "notSaved": "不儲存", "clear": "清空臨時聊天", "sectionTitle": "臨時聊天", "closeAction": "關閉臨時聊天" diff --git a/webui/src/tests/chat-list.test.tsx b/webui/src/tests/chat-list.test.tsx index d7f0b8621..e3d184554 100644 --- a/webui/src/tests/chat-list.test.tsx +++ b/webui/src/tests/chat-list.test.tsx @@ -183,7 +183,10 @@ describe("ChatList", () => { within(section).getByRole("button", { name: "Topic actions for Private planning" }), { button: 0 }, ); - fireEvent.click(await screen.findByRole("menuitem", { name: "Close temporary chat" })); + const closeItem = await screen.findByRole("menuitem", { name: "Close temporary chat" }); + expect(closeItem).toHaveTextContent("Close"); + expect(closeItem).toHaveClass("whitespace-nowrap"); + fireEvent.click(closeItem); expect(onClose).toHaveBeenCalledWith("temporary:temporary-one"); });