enh: folder filter

This commit is contained in:
Timothy Jaeryang Baek
2025-08-10 02:10:18 +04:00
parent 6497b46a78
commit 3f7d3def02
5 changed files with 122 additions and 10 deletions
+11 -3
View File
@@ -29,8 +29,7 @@
let searchDebounceTimeout;
let selectedIdx = 0;
let selectedIdx = null;
let selectedChat = null;
let selectedModels = [''];
@@ -42,7 +41,12 @@
}
const loadChatPreview = async (selectedIdx) => {
if (!chatList || chatList.length === 0 || chatList[selectedIdx] === undefined) {
if (
!chatList ||
chatList.length === 0 ||
selectedIdx === null ||
chatList[selectedIdx] === undefined
) {
selectedChat = null;
messages = null;
history = null;
@@ -217,6 +221,10 @@
on:input={searchHandler}
placeholder={$i18n.t('Search')}
showClearButton={true}
onFocus={() => {
selectedIdx = null;
messages = null;
}}
onKeydown={(e) => {
console.log('e', e);