Global Search Box for Spools/Filaments #35

Closed
opened 2026-01-16 04:57:58 +00:00 by tonym · 0 comments
Owner

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

  • Prominent search input at top of spool/filament lists
  • Searches across multiple fields: name, material, color, vendor, notes
  • Real-time filtering as you type
  • 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

// Fuzzy search with fuse.js
const fuse = new Fuse(items, {
  keys: ["name", "material", "vendor.name", "color_hex"],
  threshold: 0.4
});
  • #16 Filter by Color
## 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
tonym closed this issue 2026-01-23 05:14:09 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tonym/spoolman2#35
No description provided.