open-webui/src
PVBLIC Foundation 4f8126d429 fix: restore working search functionality in Step 2
🐛 **Problem**: Refactoring broke search - showing 'No results' for valid queries
🔧 **Root Cause**: Replaced working on:input handler with reactive statement
 **Solution**: Restored on:input={handleInput} approach

**Why the reactive statement failed:**
- `$: performSearch(searchQuery)` runs before history prop is ready
- Svelte reactive statements execute immediately on component init
- History prop from parent may not be available yet, causing search to fail

**Why on:input works better:**
 Explicit user-triggered execution (only when typing)
 Ensures history prop is available when search runs
 Cleaner separation of concerns (input vs reactive computations)
 Matches existing OpenWebUI patterns

**Functionality restored:**
- Real-time search through chat messages 
- Accurate result counting 
- Case-insensitive matching 
- Navigation between results 

The search now works exactly as it did before the refactoring attempt.
2025-06-20 08:50:45 -07:00
..
lib fix: restore working search functionality in Step 2 2025-06-20 08:50:45 -07:00
routes feat: implement Step 1 - Basic Chat Search Overlay 2025-06-20 08:41:25 -07:00
app.css refac: styling 2025-06-04 02:51:42 +04:00
app.d.ts
app.html refac 2025-06-16 09:36:29 +04:00
tailwind.css