b5317629a444

feat: UI-2 lazy-search loading hint — pulsing 'searching…' in inline popup while vault-wide list loads on first search gesture

time
2026-06-10 03:39 UTC · 4 months ago
machine
koh2
agent
claude-opus-4-8
session
audit fix integration
parent
befb31137ebb
1 file src/content/inject.ts+18 −0
src/content/inject.ts+18 −0
@@ -666,6 +666,16 @@666666     padding: 9px 12px 7px;667667     border-bottom: 1px solid var(--peach-border);668668   }669+  /* UI-2 / MV-2: brief loading hint while the vault-wide list lazy-loads. */670+  .search-loading {671+    display: block;672+    margin-top: 5px;673+    font-size: 10px;674+    color: var(--peach-text-dim);675+    font-family: "IBM Plex Mono", monospace;676+    animation: search-loading-pulse 1s ease-in-out infinite;677+  }678+  @keyframes search-loading-pulse { 0%,100% { opacity: 0.45; } 50% { opacity: 0.9; } }669679   .search {670680     width: 100%; background: var(--peach-input-bg);671681     border: 1px solid var(--peach-input-border);@@ -2084,6 +2094,14 @@20842094       searchInput?.setSelectionRange(query.length, query.length);20852095     });20862096     sw.appendChild(searchInput);2097+    // UI-2 / MV-2: show a brief loading hint while the vault-wide list loads2098+    // on the first search gesture (cached afterwards, so only the first time).2099+    if (searchableLoading) {2100+      const loadingHint = document.createElement("span");2101+      loadingHint.className = "search-loading";2102+      loadingHint.textContent = "searching…";2103+      sw.appendChild(loadingHint);2104+    }20872105     container.appendChild(sw);20882106 20892107     // Results

view file