diff --git a/webui/src/App.tsx b/webui/src/App.tsx index 5fdfddf47..2959cdfad 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -2892,9 +2892,9 @@ function Shell({ setPendingTabRename(null)} onConfirm={onConfirmTabRename} /> diff --git a/webui/src/components/RenameChatDialog.tsx b/webui/src/components/RenameChatDialog.tsx index d935bacb0..e62b677d1 100644 --- a/webui/src/components/RenameChatDialog.tsx +++ b/webui/src/components/RenameChatDialog.tsx @@ -44,33 +44,41 @@ export function RenameChatDialog({ { if (!next) onCancel(); }}> - +
{ event.preventDefault(); if (!trimmed) return; onConfirm(trimmed); }} > - - {dialogTitle ?? t("chat.renameTitle")} - + + + {dialogTitle ?? t("chat.renameTitle")} + + {description ?? t("chat.renameDescription")} setValue(event.target.value)} placeholder={placeholder ?? t("chat.renamePlaceholder")} autoFocus maxLength={160} /> - - - diff --git a/webui/src/i18n/locales/en/common.json b/webui/src/i18n/locales/en/common.json index 60a0dce5e..b108a01e6 100644 --- a/webui/src/i18n/locales/en/common.json +++ b/webui/src/i18n/locales/en/common.json @@ -1458,9 +1458,9 @@ "dropPane": "Move {{pane}} into {{tab}}", "createGroup": "Create group", "moveTo": "Move to", - "renameTabTitle": "Rename tab", - "renameTabDescription": "Give this tab a name for organizing its panes.", - "renameTabPlaceholder": "Tab name", + "renameGroupTitle": "Rename group", + "renameGroupDescription": "Give this group a name.", + "renameGroupPlaceholder": "Group name", "dissolveTab": "Dissolve group", "layout": "Pane layout", "addPane": "Add pane", diff --git a/webui/src/i18n/locales/es/common.json b/webui/src/i18n/locales/es/common.json index c673d1573..fd8ab197e 100644 --- a/webui/src/i18n/locales/es/common.json +++ b/webui/src/i18n/locales/es/common.json @@ -1445,9 +1445,9 @@ "dropPane": "Mover {{pane}} a {{tab}}", "createGroup": "Crear grupo", "moveTo": "Mover a", - "renameTabTitle": "Renombrar pestaña", - "renameTabDescription": "Ponle un nombre a esta pestaña para organizar sus paneles.", - "renameTabPlaceholder": "Nombre de la pestaña", + "renameGroupTitle": "Renombrar grupo", + "renameGroupDescription": "Ponle un nombre a este grupo.", + "renameGroupPlaceholder": "Nombre del grupo", "dissolveTab": "Disolver grupo", "layout": "Diseño de paneles", "addPane": "Añadir panel", diff --git a/webui/src/i18n/locales/fr/common.json b/webui/src/i18n/locales/fr/common.json index 05c18899c..822397e50 100644 --- a/webui/src/i18n/locales/fr/common.json +++ b/webui/src/i18n/locales/fr/common.json @@ -1444,9 +1444,9 @@ "dropPane": "Déplacer {{pane}} dans {{tab}}", "createGroup": "Créer un groupe", "moveTo": "Déplacer vers", - "renameTabTitle": "Renommer l’onglet", - "renameTabDescription": "Donnez un nom à cet onglet pour organiser ses volets.", - "renameTabPlaceholder": "Nom de l’onglet", + "renameGroupTitle": "Renommer le groupe", + "renameGroupDescription": "Donnez un nom à ce groupe.", + "renameGroupPlaceholder": "Nom du groupe", "dissolveTab": "Dissoudre le groupe", "layout": "Disposition des volets", "addPane": "Ajouter un volet", diff --git a/webui/src/i18n/locales/id/common.json b/webui/src/i18n/locales/id/common.json index 84a019a6b..f25a2767f 100644 --- a/webui/src/i18n/locales/id/common.json +++ b/webui/src/i18n/locales/id/common.json @@ -1444,9 +1444,9 @@ "dropPane": "Pindahkan {{pane}} ke {{tab}}", "createGroup": "Buat grup", "moveTo": "Pindahkan ke", - "renameTabTitle": "Ganti nama tab", - "renameTabDescription": "Beri nama tab ini untuk mengatur panelnya.", - "renameTabPlaceholder": "Nama tab", + "renameGroupTitle": "Ganti nama grup", + "renameGroupDescription": "Beri nama untuk grup ini.", + "renameGroupPlaceholder": "Nama grup", "dissolveTab": "Bubarkan grup", "layout": "Tata letak panel", "addPane": "Tambah panel", diff --git a/webui/src/i18n/locales/ja/common.json b/webui/src/i18n/locales/ja/common.json index 4693ebe99..0b67d35cb 100644 --- a/webui/src/i18n/locales/ja/common.json +++ b/webui/src/i18n/locales/ja/common.json @@ -1444,9 +1444,9 @@ "dropPane": "{{pane}} を {{tab}} に移動", "createGroup": "グループを作成", "moveTo": "移動先", - "renameTabTitle": "タブ名を変更", - "renameTabDescription": "ペインを整理するため、このタブに名前を付けます。", - "renameTabPlaceholder": "タブ名", + "renameGroupTitle": "グループ名を変更", + "renameGroupDescription": "このグループに名前を付けます。", + "renameGroupPlaceholder": "グループ名", "dissolveTab": "グループを解除", "layout": "ペインレイアウト", "addPane": "ペインを追加", diff --git a/webui/src/i18n/locales/ko/common.json b/webui/src/i18n/locales/ko/common.json index 3b93b924f..88a56346c 100644 --- a/webui/src/i18n/locales/ko/common.json +++ b/webui/src/i18n/locales/ko/common.json @@ -1444,9 +1444,9 @@ "dropPane": "{{pane}}을(를) {{tab}}으로 이동", "createGroup": "그룹 만들기", "moveTo": "이동", - "renameTabTitle": "탭 이름 바꾸기", - "renameTabDescription": "창을 정리할 수 있도록 이 탭에 이름을 지정하세요.", - "renameTabPlaceholder": "탭 이름", + "renameGroupTitle": "그룹 이름 바꾸기", + "renameGroupDescription": "이 그룹에 이름을 지정하세요.", + "renameGroupPlaceholder": "그룹 이름", "dissolveTab": "그룹 해제", "layout": "창 레이아웃", "addPane": "창 추가", diff --git a/webui/src/i18n/locales/pt-BR/common.json b/webui/src/i18n/locales/pt-BR/common.json index d25c0f49a..9e6bbd0a1 100644 --- a/webui/src/i18n/locales/pt-BR/common.json +++ b/webui/src/i18n/locales/pt-BR/common.json @@ -1458,9 +1458,9 @@ "dropPane": "Mover {{pane}} para {{tab}}", "createGroup": "Criar grupo", "moveTo": "Mover para", - "renameTabTitle": "Renomear aba", - "renameTabDescription": "Dê um nome a esta aba para organizar seus painéis.", - "renameTabPlaceholder": "Nome da aba", + "renameGroupTitle": "Renomear grupo", + "renameGroupDescription": "Dê um nome a este grupo.", + "renameGroupPlaceholder": "Nome do grupo", "dissolveTab": "Desfazer grupo", "layout": "Layout de painéis", "addPane": "Adicionar painel", diff --git a/webui/src/i18n/locales/vi/common.json b/webui/src/i18n/locales/vi/common.json index 92444c1df..3bad5d74d 100644 --- a/webui/src/i18n/locales/vi/common.json +++ b/webui/src/i18n/locales/vi/common.json @@ -1444,9 +1444,9 @@ "dropPane": "Di chuyển {{pane}} vào {{tab}}", "createGroup": "Tạo nhóm", "moveTo": "Di chuyển đến", - "renameTabTitle": "Đổi tên thẻ", - "renameTabDescription": "Đặt tên cho thẻ này để sắp xếp các khung.", - "renameTabPlaceholder": "Tên thẻ", + "renameGroupTitle": "Đổi tên nhóm", + "renameGroupDescription": "Đặt tên cho nhóm này.", + "renameGroupPlaceholder": "Tên nhóm", "dissolveTab": "Giải tán nhóm", "layout": "Bố cục khung", "addPane": "Thêm khung", diff --git a/webui/src/i18n/locales/zh-CN/common.json b/webui/src/i18n/locales/zh-CN/common.json index 7fa85cbe4..07c90d081 100644 --- a/webui/src/i18n/locales/zh-CN/common.json +++ b/webui/src/i18n/locales/zh-CN/common.json @@ -1458,9 +1458,9 @@ "dropPane": "将 {{pane}} 移入 {{tab}}", "createGroup": "创建分组", "moveTo": "移动到", - "renameTabTitle": "重命名标签页", - "renameTabDescription": "为这个标签页命名,以便组织其中的窗格。", - "renameTabPlaceholder": "标签页名称", + "renameGroupTitle": "重命名分组", + "renameGroupDescription": "为这个分组命名。", + "renameGroupPlaceholder": "分组名称", "dissolveTab": "解散分组", "layout": "窗格布局", "addPane": "添加窗格", diff --git a/webui/src/i18n/locales/zh-TW/common.json b/webui/src/i18n/locales/zh-TW/common.json index 925faa1ad..eef3d8401 100644 --- a/webui/src/i18n/locales/zh-TW/common.json +++ b/webui/src/i18n/locales/zh-TW/common.json @@ -1444,9 +1444,9 @@ "dropPane": "將 {{pane}} 移入 {{tab}}", "createGroup": "建立群組", "moveTo": "移動到", - "renameTabTitle": "重新命名分頁", - "renameTabDescription": "為這個分頁命名,以便整理其中的窗格。", - "renameTabPlaceholder": "分頁名稱", + "renameGroupTitle": "重新命名群組", + "renameGroupDescription": "為這個群組命名。", + "renameGroupPlaceholder": "群組名稱", "dissolveTab": "解散群組", "layout": "窗格佈局", "addPane": "新增窗格", diff --git a/webui/src/tests/app-layout.test.tsx b/webui/src/tests/app-layout.test.tsx index f35112248..adb863655 100644 --- a/webui/src/tests/app-layout.test.tsx +++ b/webui/src/tests/app-layout.test.tsx @@ -3246,6 +3246,15 @@ describe("App layout", () => { }), }), )); + + fireEvent.pointerDown(within(tabGroup).getByRole("button", { + name: "Topic actions for Solo pane", + }), { button: 0, ctrlKey: false }); + fireEvent.click(await screen.findByRole("menuitem", { name: "Rename" })); + + const renameDialog = await screen.findByRole("dialog", { name: "Rename group" }); + expect(within(renameDialog).getByText("Give this group a name.")).toBeInTheDocument(); + expect(within(renameDialog).getByPlaceholderText("Group name")).toHaveValue("Solo pane"); }); it("restores a created pane group from gateway state after remount", async () => {