feat(search-dialog): show active folder in search popup header
This commit is contained in:
@@ -175,11 +175,25 @@ export function SearchCommandDialog({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<CommandDialog
|
<CommandDialog
|
||||||
title={t("dialogTitle")}
|
title={
|
||||||
|
folder
|
||||||
|
? t("dialogTitleWithFolder", { name: folder.name })
|
||||||
|
: t("dialogTitle")
|
||||||
|
}
|
||||||
open={open}
|
open={open}
|
||||||
onOpenChange={onOpenChange}
|
onOpenChange={onOpenChange}
|
||||||
shouldFilter={activeTab === "conversations"}
|
shouldFilter={activeTab === "conversations"}
|
||||||
>
|
>
|
||||||
|
{/* Folder context header */}
|
||||||
|
{folder && (
|
||||||
|
<div className="flex items-center gap-2 border-b px-4 py-2.5">
|
||||||
|
<Folder className="w-4 h-4 shrink-0 text-muted-foreground" />
|
||||||
|
<span className="text-sm font-medium truncate">
|
||||||
|
{t("dialogTitleWithFolder", { name: folder.name })}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Tabs */}
|
{/* Tabs */}
|
||||||
<div className="flex items-center gap-0 border-b px-3">
|
<div className="flex items-center gap-0 border-b px-3">
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "بحث",
|
"dialogTitle": "بحث",
|
||||||
|
"dialogTitleWithFolder": "بحث — {name}",
|
||||||
"tabConversations": "المحادثات",
|
"tabConversations": "المحادثات",
|
||||||
"tabFiles": "الملفات",
|
"tabFiles": "الملفات",
|
||||||
"placeholder": "البحث في المحادثات...",
|
"placeholder": "البحث في المحادثات...",
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "Suchen",
|
"dialogTitle": "Suchen",
|
||||||
|
"dialogTitleWithFolder": "Suchen — {name}",
|
||||||
"tabConversations": "Konversationen",
|
"tabConversations": "Konversationen",
|
||||||
"tabFiles": "Dateien",
|
"tabFiles": "Dateien",
|
||||||
"placeholder": "Konversationen suchen...",
|
"placeholder": "Konversationen suchen...",
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "Search",
|
"dialogTitle": "Search",
|
||||||
|
"dialogTitleWithFolder": "Search — {name}",
|
||||||
"tabConversations": "Conversations",
|
"tabConversations": "Conversations",
|
||||||
"tabFiles": "Files",
|
"tabFiles": "Files",
|
||||||
"placeholder": "Search conversations...",
|
"placeholder": "Search conversations...",
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "Buscar",
|
"dialogTitle": "Buscar",
|
||||||
|
"dialogTitleWithFolder": "Buscar — {name}",
|
||||||
"tabConversations": "Conversaciones",
|
"tabConversations": "Conversaciones",
|
||||||
"tabFiles": "Archivos",
|
"tabFiles": "Archivos",
|
||||||
"placeholder": "Buscar conversaciones...",
|
"placeholder": "Buscar conversaciones...",
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "Rechercher",
|
"dialogTitle": "Rechercher",
|
||||||
|
"dialogTitleWithFolder": "Rechercher — {name}",
|
||||||
"tabConversations": "Conversations",
|
"tabConversations": "Conversations",
|
||||||
"tabFiles": "Fichiers",
|
"tabFiles": "Fichiers",
|
||||||
"placeholder": "Rechercher des conversations...",
|
"placeholder": "Rechercher des conversations...",
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "検索",
|
"dialogTitle": "検索",
|
||||||
|
"dialogTitleWithFolder": "検索 — {name}",
|
||||||
"tabConversations": "会話",
|
"tabConversations": "会話",
|
||||||
"tabFiles": "ファイル",
|
"tabFiles": "ファイル",
|
||||||
"placeholder": "会話を検索...",
|
"placeholder": "会話を検索...",
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "검색",
|
"dialogTitle": "검색",
|
||||||
|
"dialogTitleWithFolder": "검색 — {name}",
|
||||||
"tabConversations": "대화",
|
"tabConversations": "대화",
|
||||||
"tabFiles": "파일",
|
"tabFiles": "파일",
|
||||||
"placeholder": "대화 검색...",
|
"placeholder": "대화 검색...",
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "Buscar",
|
"dialogTitle": "Buscar",
|
||||||
|
"dialogTitleWithFolder": "Buscar — {name}",
|
||||||
"tabConversations": "Conversas",
|
"tabConversations": "Conversas",
|
||||||
"tabFiles": "Arquivos",
|
"tabFiles": "Arquivos",
|
||||||
"placeholder": "Buscar conversas...",
|
"placeholder": "Buscar conversas...",
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "搜索",
|
"dialogTitle": "搜索",
|
||||||
|
"dialogTitleWithFolder": "搜索 — {name}",
|
||||||
"tabConversations": "会话",
|
"tabConversations": "会话",
|
||||||
"tabFiles": "文件",
|
"tabFiles": "文件",
|
||||||
"placeholder": "搜索会话...",
|
"placeholder": "搜索会话...",
|
||||||
|
|||||||
@@ -881,6 +881,7 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"dialogTitle": "搜尋",
|
"dialogTitle": "搜尋",
|
||||||
|
"dialogTitleWithFolder": "搜尋 — {name}",
|
||||||
"tabConversations": "會話",
|
"tabConversations": "會話",
|
||||||
"tabFiles": "檔案",
|
"tabFiles": "檔案",
|
||||||
"placeholder": "搜尋會話...",
|
"placeholder": "搜尋會話...",
|
||||||
|
|||||||
Reference in New Issue
Block a user