perf(bulk-api-tester): resolve collections search lag with pre-indexing, debouncing, and token matching

This commit is contained in:
2026-10-27 16:58:46 +05:30
parent 5596c18aed
commit 9376e74846
4 changed files with 534 additions and 106 deletions
+115
View File
@@ -1058,6 +1058,121 @@ body.theme-light .aurora-wall {
}
.search-clear-btn:hover { color: var(--text-1); background: var(--glass-3); }
/* ── Ultra-Fast Obsidian Liquid Search Elements ── */
.search-highlight {
background: rgba(124, 77, 255, 0.35);
color: #ffffff;
border-radius: 3px;
padding: 0 3px;
font-weight: 700;
box-shadow: 0 0 10px rgba(124, 77, 255, 0.4);
text-decoration: none;
display: inline;
}
.search-results-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 12px;
margin-bottom: 8px;
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: var(--r-sm);
font-size: 11px;
color: var(--text-3);
animation: fadeIn 0.15s ease-out;
}
.search-results-count {
display: flex;
align-items: center;
gap: 6px;
font-weight: 600;
color: var(--text-2);
}
.search-results-clear {
background: transparent;
border: none;
color: var(--primary);
cursor: pointer;
font-size: 10.5px;
font-weight: 600;
padding: 2px 6px;
border-radius: var(--r-2xs);
transition: background var(--t-fast), color var(--t-fast);
}
.search-results-clear:hover {
background: rgba(124, 77, 255, 0.18);
color: #fff;
}
.search-empty-state {
padding: 36px 16px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
animation: fadeIn 0.2s ease-out;
}
.search-empty-icon-wrap {
width: 44px;
height: 44px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.07);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
}
.search-empty-icon-wrap i {
font-size: 17px;
color: var(--text-4);
opacity: 0.7;
}
.search-empty-title {
font-size: 13px;
font-weight: 600;
color: var(--text-2);
margin-bottom: 4px;
}
.search-empty-desc {
font-size: 11.5px;
color: var(--text-4);
line-height: 1.45;
max-width: 210px;
}
.search-empty-query {
color: var(--text-1);
font-weight: 600;
word-break: break-all;
}
.search-empty-clear-btn {
margin-top: 14px;
font-size: 11px;
padding: 5px 12px;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.search-more-reqs {
padding: 6px 10px;
font-size: 10.5px;
font-weight: 600;
color: var(--text-3);
text-align: center;
cursor: pointer;
transition: color var(--t-fast), background var(--t-fast);
border-top: 1px dashed rgba(255, 255, 255, 0.06);
border-radius: 0 0 var(--r-md) var(--r-md);
}
.search-more-reqs:hover {
color: var(--primary);
background: rgba(124, 77, 255, 0.06);
}
/* ── Collections tree ── */
.history-list {
flex: 1;