fixing rolodex and search

This commit is contained in:
HotSwapp
2025-08-11 21:58:25 -05:00
parent 278eb7c5d4
commit c76b68d009
25 changed files with 1651 additions and 915 deletions

View File

@@ -443,7 +443,7 @@ function initializeAdvancedSearch() {
async function loadSearchFacets() {
try {
const response = await fetch('/api/search/facets');
const response = await window.http.wrappedFetch('/api/search/facets');
if (!response.ok) throw new Error('Failed to load search facets');
facetsData = await response.json();
@@ -576,7 +576,7 @@ function setupKeyboardShortcuts() {
async function loadSearchSuggestions(query) {
try {
const response = await fetch(`/api/search/suggestions?q=${encodeURIComponent(query)}&limit=10`);
const response = await window.http.wrappedFetch(`/api/search/suggestions?q=${encodeURIComponent(query)}&limit=10`);
if (!response.ok) throw new Error('Failed to load suggestions');
const data = await response.json();
@@ -631,11 +631,8 @@ async function performSearch(offset = 0) {
currentSearchCriteria = criteria;
try {
const response = await fetch('/api/search/advanced', {
const response = await window.http.wrappedFetch('/api/search/advanced', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(criteria)
});