diff --git a/src/renderer/src/i18n/en-us.json b/src/renderer/src/i18n/en-us.json
index 4f212462..d4344585 100644
--- a/src/renderer/src/i18n/en-us.json
+++ b/src/renderer/src/i18n/en-us.json
@@ -180,6 +180,7 @@
"search.placeholder": "Search topics or messages...",
"continue_chat": "Continue Chatting",
"search.topics.empty": "No topics found, press Enter to search all messages",
+ "search.messages": "Search All Messages",
"locate.message": "Locate the message"
},
"provider": {
diff --git a/src/renderer/src/i18n/zh-cn.json b/src/renderer/src/i18n/zh-cn.json
index 9c64d37b..1b4cc573 100644
--- a/src/renderer/src/i18n/zh-cn.json
+++ b/src/renderer/src/i18n/zh-cn.json
@@ -179,6 +179,7 @@
"search.placeholder": "搜索话题或消息...",
"continue_chat": "继续聊天",
"search.topics.empty": "没有找到相关话题, 点击回车键搜索所有消息",
+ "search.messages": "搜索所有消息",
"locate.message": "定位到消息"
},
"provider": {
diff --git a/src/renderer/src/i18n/zh-tw.json b/src/renderer/src/i18n/zh-tw.json
index 1f7d0674..a3377989 100644
--- a/src/renderer/src/i18n/zh-tw.json
+++ b/src/renderer/src/i18n/zh-tw.json
@@ -179,6 +179,7 @@
"search.placeholder": "搜尋話題或訊息...",
"continue_chat": "繼續聊天",
"search.topics.empty": "沒有找到相關話題, 點擊回車鍵搜尋所有訊息",
+ "search.messages": "搜尋所有訊息",
"locate.message": "定位到訊息"
},
"provider": {
diff --git a/src/renderer/src/pages/history/HistoryPage.tsx b/src/renderer/src/pages/history/HistoryPage.tsx
index 50ddfd9e..405770e4 100644
--- a/src/renderer/src/pages/history/HistoryPage.tsx
+++ b/src/renderer/src/pages/history/HistoryPage.tsx
@@ -82,7 +82,12 @@ const TopicsPage: FC = () => {
/>
-
+
void
+ onSearch: () => void
} & React.HTMLAttributes
-const TopicsHistory: React.FC = ({ keywords, onClick, ...props }) => {
+const TopicsHistory: React.FC = ({ keywords, onClick, onSearch, ...props }) => {
const { assistants } = useAssistants()
const { t } = useTranslation()
const { handleScroll, containerRef } = useScrollPosition('TopicsHistory')
@@ -31,9 +33,12 @@ const TopicsHistory: React.FC = ({ keywords, onClick, ...props }) => {
if (isEmpty(filteredTopics)) {
return (
-
+
-
+
+
)
}