global search - BevvyTech/BrewskiDocs GitHub Wiki

Global Search Palette

Purpose

  • Provide a keyboard-driven quick search across orders, clients, beers, batches, announcements, and docs without leaving the current view.
  • Respect the operator’s active team so cross-brewery data never leaks into the results.

Data & Dependencies

  • Calls GET /search with the current active team id plus optional dataset filters and per-section limits.
  • Requires a valid access token; the modal blocks queries until authentication and team context are available.

Key Interactions

  • Triggered via the header search button or ⌘/Ctrl + K, opening a modal with filter chips and debounced query input.
  • Results automatically scope to the active team; switching teams clears cached results and re-queries with the new team id.
  • Supports optional dataset filters, section-specific rendering, and links directly to the relevant detail screens for each result.
⚠️ **GitHub.com Fallback** ⚠️