From c7ad02dbe456d2906427ae3c496744b3febeb37d Mon Sep 17 00:00:00 2001 From: Jaime Idolpx Date: Tue, 16 Jun 2026 15:48:10 -0400 Subject: [PATCH] feat(SearchComponents): enhance search UI with loading states and clear button functionality --- src/app/components/SearchAssembly64.tsx | 35 ++++++++++++----------- src/app/components/SearchCSDbNG.tsx | 28 +++++++++--------- src/app/components/SearchCommoServe.tsx | 35 ++++++++++++----------- src/app/components/SearchLocal.tsx | 38 +++++++++++++------------ 4 files changed, 71 insertions(+), 65 deletions(-) diff --git a/src/app/components/SearchAssembly64.tsx b/src/app/components/SearchAssembly64.tsx index b0b208a..79f6d77 100644 --- a/src/app/components/SearchAssembly64.tsx +++ b/src/app/components/SearchAssembly64.tsx @@ -365,7 +365,10 @@ export default function SearchAssembly64({ config, setConfig, onClose }: SearchA
- + {isSearching + ? + : + } - + {query && ( + + )}
{hasSearched && ( + } + {query && ( + + )}
- {hasSearched && ( + } - + {query && ( + + )}
{hasSearched && ( + } setQuery(e.target.value)} onKeyDown={e => e.key === 'Enter' && !busy && handleSearch()} placeholder="Search… (* any chars, ? one char)" - className="w-full pl-9 pr-3 py-2.5 bg-neutral-100 border-0 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:bg-white transition-colors" + className="w-full pl-9 pr-9 py-2.5 bg-neutral-100 border-0 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:bg-white transition-colors" autoFocus disabled={busy} /> + {query && ( + + )} - - {dbPhase === 'ready' && !busy && ( + {/* {dbPhase === 'ready' && !busy && ( - )} + )} */} {hasSearched && (