## Summary
Add a prominent search box to quickly find spools/filaments by name, color, material, etc.
## Upstream Issues
- https://github.com/Donkie/Spoolman/issues/598 (4 reactions)
- https://github.com/Donkie/Spoolman/issues/356 (9 reactions) - Fuzzy search
## Problem
With large inventories, scrolling through filtered lists is tedious. Users want to quickly type and find items.
## Proposed Solution
### 1. Search Box on List Pages
- Prominent search input at top of spool/filament lists
- Searches across multiple fields: name, material, color, vendor, notes
- Real-time filtering as you type
### 2. Fuzzy Search
- Tolerate spelling variations and typos
- Use libraries like fuse.js for fuzzy matching
- Category-aware filtering based on current page context
### 3. Global Search (Header)
- Search icon in header/nav
- Opens search modal or dropdown
- Search across ALL resources (spools, filaments, vendors, locations)
- Keyboard shortcut: Cmd/Ctrl+K
### 4. Search Results
- Group by resource type
- Show color swatch, name, key details
- Click to navigate to item
## Implementation
```tsx
// Fuzzy search with fuse.js
const fuse = new Fuse(items, {
keys: ["name", "material", "vendor.name", "color_hex"],
threshold: 0.4
});
```
## Related
- #16 Filter by Color
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Add a prominent search box to quickly find spools/filaments by name, color, material, etc.
Upstream Issues
Problem
With large inventories, scrolling through filtered lists is tedious. Users want to quickly type and find items.
Proposed Solution
1. Search Box on List Pages
2. Fuzzy Search
3. Global Search (Header)
4. Search Results
Implementation
Related