From 144d17da61cd43fce8c89bc042fd25396f2c312e Mon Sep 17 00:00:00 2001 From: chengyongru Date: Tue, 22 Sep 2026 14:35:13 +0800 Subject: [PATCH] fix(webui): remove queued send hint --- webui/src/components/thread/ThreadComposer.tsx | 4 ---- webui/src/i18n/locales/en/common.json | 1 - webui/src/i18n/locales/es/common.json | 1 - webui/src/i18n/locales/fr/common.json | 1 - webui/src/i18n/locales/id/common.json | 1 - webui/src/i18n/locales/ja/common.json | 1 - webui/src/i18n/locales/ko/common.json | 1 - webui/src/i18n/locales/pt-BR/common.json | 1 - webui/src/i18n/locales/vi/common.json | 1 - webui/src/i18n/locales/zh-CN/common.json | 1 - webui/src/i18n/locales/zh-TW/common.json | 1 - webui/src/tests/thread-composer.test.tsx | 4 ++-- 12 files changed, 2 insertions(+), 16 deletions(-) diff --git a/webui/src/components/thread/ThreadComposer.tsx b/webui/src/components/thread/ThreadComposer.tsx index bfb32d903..38e5e9ed3 100644 --- a/webui/src/components/thread/ThreadComposer.tsx +++ b/webui/src/components/thread/ThreadComposer.tsx @@ -2379,7 +2379,6 @@ export function ThreadComposer({ prompts={queuedPrompts} isHero={isHero} label={t("thread.composer.queued.label")} - hint={t("thread.composer.queued.hint")} guideLabel={t("thread.composer.queued.guide")} deleteLabel={t("thread.composer.queued.delete")} dragLabel={t("thread.composer.queued.drag")} @@ -2689,7 +2688,6 @@ function QueuedPromptStack({ prompts, isHero, label, - hint, guideLabel, deleteLabel, dragLabel, @@ -2704,7 +2702,6 @@ function QueuedPromptStack({ prompts: QueuedPrompt[]; isHero: boolean; label: string; - hint: string; guideLabel: string; deleteLabel: string; dragLabel: string; @@ -2737,7 +2734,6 @@ function QueuedPromptStack({ >
{label} - {hint}
{prompts.map((prompt) => ( diff --git a/webui/src/i18n/locales/en/common.json b/webui/src/i18n/locales/en/common.json index 1956d7eab..2fad73b29 100644 --- a/webui/src/i18n/locales/en/common.json +++ b/webui/src/i18n/locales/en/common.json @@ -1606,7 +1606,6 @@ }, "queued": { "label": "Waiting to send", - "hint": "Send now, or wait for the current response to finish.", "guide": "Send now", "delete": "Delete guidance", "edit": "Edit guidance", diff --git a/webui/src/i18n/locales/es/common.json b/webui/src/i18n/locales/es/common.json index 68de03e93..2c82a1716 100644 --- a/webui/src/i18n/locales/es/common.json +++ b/webui/src/i18n/locales/es/common.json @@ -1407,7 +1407,6 @@ }, "queued": { "label": "Pendiente de envío", - "hint": "Envía ahora o espera a que termine la respuesta actual.", "guide": "Enviar ahora", "delete": "Eliminar guía", "edit": "Editar guía", diff --git a/webui/src/i18n/locales/fr/common.json b/webui/src/i18n/locales/fr/common.json index bf6fb7c2e..000ca3853 100644 --- a/webui/src/i18n/locales/fr/common.json +++ b/webui/src/i18n/locales/fr/common.json @@ -1406,7 +1406,6 @@ }, "queued": { "label": "En attente d’envoi", - "hint": "Envoyez maintenant ou attendez la fin de la réponse en cours.", "guide": "Envoyer", "delete": "Supprimer le guidage", "edit": "Modifier le guidage", diff --git a/webui/src/i18n/locales/id/common.json b/webui/src/i18n/locales/id/common.json index 4bd66d9ef..c02892e3d 100644 --- a/webui/src/i18n/locales/id/common.json +++ b/webui/src/i18n/locales/id/common.json @@ -1406,7 +1406,6 @@ }, "queued": { "label": "Menunggu dikirim", - "hint": "Kirim sekarang atau tunggu hingga respons saat ini selesai.", "guide": "Kirim sekarang", "delete": "Hapus panduan", "edit": "Ubah panduan", diff --git a/webui/src/i18n/locales/ja/common.json b/webui/src/i18n/locales/ja/common.json index e7ec5774a..b541d82f6 100644 --- a/webui/src/i18n/locales/ja/common.json +++ b/webui/src/i18n/locales/ja/common.json @@ -1406,7 +1406,6 @@ }, "queued": { "label": "送信待ち", - "hint": "今すぐ送信するか、現在の応答が終わるまで待ちます。", "guide": "今すぐ送信", "delete": "ガイドを削除", "edit": "ガイドを編集", diff --git a/webui/src/i18n/locales/ko/common.json b/webui/src/i18n/locales/ko/common.json index 222433cb5..91ddcdf10 100644 --- a/webui/src/i18n/locales/ko/common.json +++ b/webui/src/i18n/locales/ko/common.json @@ -1406,7 +1406,6 @@ }, "queued": { "label": "전송 대기 중", - "hint": "지금 보내거나 현재 응답이 끝날 때까지 기다리세요.", "guide": "지금 보내기", "delete": "안내 삭제", "edit": "안내 수정", diff --git a/webui/src/i18n/locales/pt-BR/common.json b/webui/src/i18n/locales/pt-BR/common.json index 5de40f377..d7e493f84 100644 --- a/webui/src/i18n/locales/pt-BR/common.json +++ b/webui/src/i18n/locales/pt-BR/common.json @@ -1420,7 +1420,6 @@ }, "queued": { "label": "Aguardando envio", - "hint": "Envie agora ou aguarde a resposta atual terminar.", "guide": "Enviar agora", "delete": "Excluir guia", "edit": "Editar guia", diff --git a/webui/src/i18n/locales/vi/common.json b/webui/src/i18n/locales/vi/common.json index 78eaa52e3..f08a1b4dd 100644 --- a/webui/src/i18n/locales/vi/common.json +++ b/webui/src/i18n/locales/vi/common.json @@ -1406,7 +1406,6 @@ }, "queued": { "label": "Đang chờ gửi", - "hint": "Gửi ngay hoặc chờ phản hồi hiện tại hoàn tất.", "guide": "Gửi ngay", "delete": "Xóa hướng dẫn", "edit": "Sửa hướng dẫn", diff --git a/webui/src/i18n/locales/zh-CN/common.json b/webui/src/i18n/locales/zh-CN/common.json index c845dba53..97b845efd 100644 --- a/webui/src/i18n/locales/zh-CN/common.json +++ b/webui/src/i18n/locales/zh-CN/common.json @@ -1605,7 +1605,6 @@ }, "queued": { "label": "等待发送", - "hint": "立即发送,或等待当前回复结束。", "guide": "立即发送", "delete": "删除引导", "edit": "编辑引导", diff --git a/webui/src/i18n/locales/zh-TW/common.json b/webui/src/i18n/locales/zh-TW/common.json index 8652f12e1..7da57f805 100644 --- a/webui/src/i18n/locales/zh-TW/common.json +++ b/webui/src/i18n/locales/zh-TW/common.json @@ -1406,7 +1406,6 @@ }, "queued": { "label": "等待傳送", - "hint": "立即傳送,或等待目前回覆結束。", "guide": "立即傳送", "delete": "刪除引導", "edit": "編輯引導", diff --git a/webui/src/tests/thread-composer.test.tsx b/webui/src/tests/thread-composer.test.tsx index 4fb225067..115c69fec 100644 --- a/webui/src/tests/thread-composer.test.tsx +++ b/webui/src/tests/thread-composer.test.tsx @@ -2892,9 +2892,9 @@ describe("ThreadComposer", () => { expect(input).toHaveValue(""); expect(screen.getByText("keep the UI minimal")).toBeInTheDocument(); expect(screen.getByText("Waiting to send")).toBeInTheDocument(); - expect(screen.getByText( + expect(screen.queryByText( "Send now, or wait for the current response to finish.", - )).toBeInTheDocument(); + )).not.toBeInTheDocument(); fireEvent.click(screen.getByRole("button", { name: "Send now" }));