From 1dd40d0bafc91b3e07fc121c54141d0e0a25052c Mon Sep 17 00:00:00 2001 From: xintaofei Date: Thu, 23 Apr 2026 15:21:18 +0800 Subject: [PATCH] feat(conversation-context-bar): show descriptive tooltips for folder and branch selectors --- src/components/chat/conversation-context-bar.tsx | 15 +++++++++++++-- src/i18n/messages/ar.json | 2 ++ src/i18n/messages/de.json | 2 ++ src/i18n/messages/en.json | 2 ++ src/i18n/messages/es.json | 2 ++ src/i18n/messages/fr.json | 2 ++ src/i18n/messages/ja.json | 2 ++ src/i18n/messages/ko.json | 2 ++ src/i18n/messages/pt.json | 2 ++ src/i18n/messages/zh-CN.json | 2 ++ src/i18n/messages/zh-TW.json | 2 ++ 11 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/components/chat/conversation-context-bar.tsx b/src/components/chat/conversation-context-bar.tsx index 3209e53..0f8a583 100644 --- a/src/components/chat/conversation-context-bar.tsx +++ b/src/components/chat/conversation-context-bar.tsx @@ -64,6 +64,7 @@ export const ConversationContextBar = memo(function ConversationContextBar({ folders={folders} currentFolderId={ownFolder.id} currentFolderName={ownFolder.name} + title={`${t("folderTitle")}: ${ownFolder.name}`} editable={isNewConversation} onSelect={async (folderId) => { const target = folders.find((f) => f.id === folderId) @@ -87,6 +88,7 @@ export const ConversationContextBar = memo(function ConversationContextBar({ folderId={ownFolder.id} folderPath={ownFolder.path} currentBranch={currentBranch} + title={`${t("branchTitle")}: ${currentBranch ?? t("noBranch")}`} onCheckout={async (branchName) => { const taskId = `checkout-${ownFolder.id}-${Date.now()}` addTask(taskId, tBd("tasks.checkoutTo", { branchName })) @@ -117,6 +119,7 @@ interface FolderPickerProps { folders: { id: number; name: string; path: string }[] currentFolderId: number currentFolderName: string + title: string editable: boolean onSelect: (folderId: number) => void | Promise labelEmpty: string @@ -127,6 +130,7 @@ const FolderPicker = memo(function FolderPicker({ folders, currentFolderId, currentFolderName, + title, editable, onSelect, labelEmpty, @@ -138,7 +142,7 @@ const FolderPicker = memo(function FolderPicker({