diff --git a/webui/src/components/thread/ThreadComposer.tsx b/webui/src/components/thread/ThreadComposer.tsx index 3c67a4f2f..f9fda503c 100644 --- a/webui/src/components/thread/ThreadComposer.tsx +++ b/webui/src/components/thread/ThreadComposer.tsx @@ -1216,7 +1216,7 @@ export function ThreadComposer({ )); }, [activeTurnId, isStreaming, pendingQueueKey, setQueuedPrompt]); - const resolvedPlaceholder = placeholder ?? t("thread.composer.placeholderThread"); + const resolvedPlaceholder = placeholder ?? t("thread.composer.placeholder"); const maxAttachments = ingressLimits?.attachments.max_count ?? MAX_ATTACHMENTS_PER_MESSAGE; diff --git a/webui/src/components/thread/ThreadShell.tsx b/webui/src/components/thread/ThreadShell.tsx index 65014aaea..7756e94a2 100644 --- a/webui/src/components/thread/ThreadShell.tsx +++ b/webui/src/components/thread/ThreadShell.tsx @@ -1313,11 +1313,6 @@ export function ThreadShell({ activeTurnId={turnActive && chatId ? client.getRunTurnId(chatId) ?? historyActiveTurnId : null} completedTurnIds={messagesReady && !recoveryNeedsDecision && chatId && !client.hasUnsettledRun(chatId) ? queueCompletedTurnIds : undefined} - placeholder={ - composerVariant === "hero" - ? t("thread.composer.placeholderHero") - : t("thread.composer.placeholderThread") - } modelLabel={modelBadgeLabel} modelDetail={modelBadge.model} modelPreset={activeModelPreset} @@ -1371,11 +1366,7 @@ export function ThreadShell({ disabled={booting} inputAriaLabel={composerInputAriaLabel} isStreaming={turnActive} - placeholder={ - booting - ? t("thread.composer.placeholderOpening") - : t("thread.composer.placeholderHero") - } + placeholder={booting ? t("thread.composer.placeholderOpening") : undefined} modelLabel={modelBadgeLabel} modelDetail={modelBadge.model} modelPreset={activeModelPreset} diff --git a/webui/src/i18n/locales/en/common.json b/webui/src/i18n/locales/en/common.json index 7a50e6019..a1ca0aa8a 100644 --- a/webui/src/i18n/locales/en/common.json +++ b/webui/src/i18n/locales/en/common.json @@ -2090,8 +2090,7 @@ } }, "composer": { - "placeholderThread": "Type your message…", - "placeholderHero": "Describe what you’d like to do", + "placeholder": "Type / for commands, @ for chats or apps, $ for skills", "placeholderOpening": "Opening a new topic…", "inputAria": "Message input", "goalStateStrip": "Goal: {{label}}", diff --git a/webui/src/i18n/locales/es/common.json b/webui/src/i18n/locales/es/common.json index e6a0d6bf3..2a79795db 100644 --- a/webui/src/i18n/locales/es/common.json +++ b/webui/src/i18n/locales/es/common.json @@ -1885,8 +1885,7 @@ } }, "composer": { - "placeholderThread": "Escribe tu mensaje…", - "placeholderHero": "Describe lo que quieres hacer", + "placeholder": "Escribe / para ver comandos, @ para mencionar conversaciones o aplicaciones y $ para elegir habilidades", "placeholderOpening": "Abriendo un nuevo tema…", "inputAria": "Entrada de mensaje", "goalStateStrip": "Objetivo: {{label}}", diff --git a/webui/src/i18n/locales/fr/common.json b/webui/src/i18n/locales/fr/common.json index e45998b45..a5096c304 100644 --- a/webui/src/i18n/locales/fr/common.json +++ b/webui/src/i18n/locales/fr/common.json @@ -1884,8 +1884,7 @@ } }, "composer": { - "placeholderThread": "Saisissez votre message…", - "placeholderHero": "Décrivez ce que vous souhaitez faire", + "placeholder": "Tapez / pour voir les commandes, @ pour les conversations ou les applis, $ pour les compétences", "placeholderOpening": "Ouverture d’un nouveau sujet…", "inputAria": "Champ de message", "goalStateStrip": "Objectif: {{label}}", diff --git a/webui/src/i18n/locales/id/common.json b/webui/src/i18n/locales/id/common.json index 9191dfad6..210351372 100644 --- a/webui/src/i18n/locales/id/common.json +++ b/webui/src/i18n/locales/id/common.json @@ -1884,8 +1884,7 @@ } }, "composer": { - "placeholderThread": "Ketik pesan Anda…", - "placeholderHero": "Jelaskan apa yang ingin Anda lakukan", + "placeholder": "Ketik / untuk melihat perintah, @ untuk memilih percakapan atau aplikasi, $ untuk memilih keterampilan", "placeholderOpening": "Membuka topik baru…", "inputAria": "Input pesan", "goalStateStrip": "Tujuan: {{label}}", diff --git a/webui/src/i18n/locales/ja/common.json b/webui/src/i18n/locales/ja/common.json index 16588a142..bfb9dd3d5 100644 --- a/webui/src/i18n/locales/ja/common.json +++ b/webui/src/i18n/locales/ja/common.json @@ -1884,8 +1884,7 @@ } }, "composer": { - "placeholderThread": "メッセージを入力…", - "placeholderHero": "やりたいことを入力", + "placeholder": "/ でコマンド、@ で会話やアプリ、$ でスキルを選択", "placeholderOpening": "新しいトピックを開いています…", "inputAria": "メッセージ入力欄", "goalStateStrip": "目標: {{label}}", diff --git a/webui/src/i18n/locales/ko/common.json b/webui/src/i18n/locales/ko/common.json index 934193efd..33c6bd99f 100644 --- a/webui/src/i18n/locales/ko/common.json +++ b/webui/src/i18n/locales/ko/common.json @@ -1884,8 +1884,7 @@ } }, "composer": { - "placeholderThread": "메시지를 입력하세요…", - "placeholderHero": "하고 싶은 일을 알려 주세요", + "placeholder": "/로 명령어 보기, @로 대화나 앱 선택, $로 스킬 선택", "placeholderOpening": "새 주제를 여는 중…", "inputAria": "메시지 입력", "goalStateStrip": "목표: {{label}}", diff --git a/webui/src/i18n/locales/pt-BR/common.json b/webui/src/i18n/locales/pt-BR/common.json index 29a423da0..99a3c6ac8 100644 --- a/webui/src/i18n/locales/pt-BR/common.json +++ b/webui/src/i18n/locales/pt-BR/common.json @@ -1898,8 +1898,7 @@ } }, "composer": { - "placeholderThread": "Digite sua mensagem…", - "placeholderHero": "Descreva o que você quer fazer", + "placeholder": "Digite / para ver comandos, @ para mencionar conversas ou aplicativos e $ para escolher habilidades", "placeholderOpening": "Abrindo um novo tópico…", "inputAria": "Campo de mensagem", "goalStateStrip": "Objetivo: {{label}}", diff --git a/webui/src/i18n/locales/vi/common.json b/webui/src/i18n/locales/vi/common.json index c0ead703c..6b78d18dd 100644 --- a/webui/src/i18n/locales/vi/common.json +++ b/webui/src/i18n/locales/vi/common.json @@ -1884,8 +1884,7 @@ } }, "composer": { - "placeholderThread": "Nhập tin nhắn…", - "placeholderHero": "Mô tả điều bạn muốn làm", + "placeholder": "Nhập / để xem lệnh, @ để chọn cuộc trò chuyện hoặc ứng dụng, $ để chọn kỹ năng", "placeholderOpening": "Đang mở chủ đề mới…", "inputAria": "Ô nhập tin nhắn", "goalStateStrip": "Mục tiêu: {{label}}", diff --git a/webui/src/i18n/locales/zh-CN/common.json b/webui/src/i18n/locales/zh-CN/common.json index 3b0e003da..8edb2c912 100644 --- a/webui/src/i18n/locales/zh-CN/common.json +++ b/webui/src/i18n/locales/zh-CN/common.json @@ -2090,8 +2090,7 @@ } }, "composer": { - "placeholderThread": "输入消息…", - "placeholderHero": "描述你想做的事", + "placeholder": "输入 / 查看命令,@ 引用会话或应用,$ 选择技能", "placeholderOpening": "正在打开新话题…", "inputAria": "消息输入框", "goalStateStrip": "目标:{{label}}", diff --git a/webui/src/i18n/locales/zh-TW/common.json b/webui/src/i18n/locales/zh-TW/common.json index 60a03ac2c..17ea1740a 100644 --- a/webui/src/i18n/locales/zh-TW/common.json +++ b/webui/src/i18n/locales/zh-TW/common.json @@ -1884,8 +1884,7 @@ } }, "composer": { - "placeholderThread": "輸入訊息…", - "placeholderHero": "描述你想做的事", + "placeholder": "輸入 / 查看命令,@ 引用對話或應用程式,$ 選擇技能", "placeholderOpening": "正在開啟新話題…", "inputAria": "訊息輸入框", "goalStateStrip": "目標:{{label}}", diff --git a/webui/src/tests/i18n.test.tsx b/webui/src/tests/i18n.test.tsx index fe86f9760..a818515db 100644 --- a/webui/src/tests/i18n.test.tsx +++ b/webui/src/tests/i18n.test.tsx @@ -508,7 +508,7 @@ describe("webui i18n", () => { ); expect( - screen.getByPlaceholderText("Type your message…"), + screen.getByPlaceholderText("Type / for commands, @ for chats or apps, $ for skills"), ).toBeInTheDocument(); expect(document.documentElement.lang).toBe("en"); @@ -519,7 +519,7 @@ describe("webui i18n", () => { expect(document.documentElement.lang).toBe("zh-CN"); }); expect(localStorage.getItem("nanobot.locale")).toBe("zh-CN"); - expect(screen.getByPlaceholderText("输入消息…")).toBeInTheDocument(); + expect(screen.getByPlaceholderText("输入 / 查看命令,@ 引用会话或应用,$ 选择技能")).toBeInTheDocument(); }); it("updates the composer aria label when the language changes", async () => { diff --git a/webui/src/tests/thread-shell.test.tsx b/webui/src/tests/thread-shell.test.tsx index ceb1c0d70..92749392c 100644 --- a/webui/src/tests/thread-shell.test.tsx +++ b/webui/src/tests/thread-shell.test.tsx @@ -2458,7 +2458,7 @@ describe("ThreadShell", () => { expect(screen.getByRole("textbox")).toBeInTheDocument(), ); const input = screen.getByRole("textbox"); - expect(input).toHaveAttribute("placeholder", "Describe what you’d like to do"); + expect(input).toHaveAttribute("placeholder", "Type / for commands, @ for chats or apps, $ for skills"); expect(input.className).toContain("min-h-[78px]"); expect(screen.queryByText("old answer")).not.toBeInTheDocument(); });