feat: filtre de recherche dans la sidebar Historique IA (#98) + menus '@' et '/' depuis le menu '+' (BUG-048)
CI / lint (push) Successful in 1m28s
CI / security (push) Successful in 58s
CI / test (push) Successful in 2m19s
CI / build (push) Successful in 54s
CI / e2e (push) Successful in 10m44s

This commit is contained in:
2026-09-16 16:11:54 -04:00
parent c9e3240ae2
commit 8e2b6203a1
19 changed files with 376 additions and 18 deletions
+9 -1
View File
@@ -2,7 +2,7 @@ import { state } from './state.js';
import { safeCreateIcons, getFileIcon, flushIcons } from './utils.js';
import { api } from './auth.js';
import { populateCustomDropdown, TabManager, closeMobileSidebar, ContextMenuManager } from './ui.js';
import { _populateRecentVaultFilter, switchSidebarTab } from './config.js';
import { _populateRecentVaultFilter, switchSidebarTab, filterAIHistory } from './config.js';
import { el, icon, getVaultIcon, smallBadge, attachTreeItemActionButton, attachTreeItemLongPress, showWelcome, appendHighlightedText } from './viewer.js';
import { performAdvancedSearch } from './search.js';
import { t } from './i18n.js';
@@ -709,12 +709,16 @@ function initSidebarFilter() {
if (hasText) {
if (state.activeSidebarTab === "vaults") {
await performTreeSearch(q);
} else if (state.activeSidebarTab === "ai") {
filterAIHistory(q);
} else {
filterTagCloud(q);
}
} else {
if (state.activeSidebarTab === "vaults") {
await restoreSidebarTree();
} else if (state.activeSidebarTab === "ai") {
filterAIHistory("");
} else {
filterTagCloud("");
}
@@ -729,6 +733,8 @@ function initSidebarFilter() {
if (input.value.trim()) {
if (state.activeSidebarTab === "vaults") {
await performTreeSearch(q);
} else if (state.activeSidebarTab === "ai") {
filterAIHistory(q);
} else {
filterTagCloud(q);
}
@@ -743,6 +749,8 @@ function initSidebarFilter() {
clearTimeout(state.filterDebounce);
if (state.activeSidebarTab === "vaults") {
await restoreSidebarTree();
} else if (state.activeSidebarTab === "ai") {
filterAIHistory("");
} else {
filterTagCloud("");
}