Library page: search UX — debounce, highlight, URL state, keyboard nav #68

Closed
opened 2026-03-21 19:27:39 +00:00 by kert · 0 comments
Owner

Problem

The library page search works but has UX gaps:

  • No search debounce — filters on every keystroke (6,597 items × 3 fields = laggy)
  • No result highlighting — hard to see why a result matched
  • No URL state — refreshing loses search/filter state
  • No keyboard shortcuts — can't Cmd+K to focus search
  • Tag counts in sidebar don't update when search text is active (fixed for collections but not search)

Improvements:

  1. Debounce — 200ms delay on search input
  2. Highlight — bold the matching substring in title/abstract
  3. URL params — persist ?q=text&collection=KEY&tags=a,b in URL
  4. Keyboard — Cmd+K / Ctrl+K focuses search input
  5. Result count — show match count per tag in sidebar when search is active
  6. Empty state — show helpful message when no results match

Files

  • docs/src/pages/library.tsx
## Problem The library page search works but has UX gaps: - No search debounce — filters on every keystroke (6,597 items × 3 fields = laggy) - No result highlighting — hard to see why a result matched - No URL state — refreshing loses search/filter state - No keyboard shortcuts — can't Cmd+K to focus search - Tag counts in sidebar don't update when search text is active (fixed for collections but not search) ## Improvements: 1. **Debounce** — 200ms delay on search input 2. **Highlight** — bold the matching substring in title/abstract 3. **URL params** — persist `?q=text&collection=KEY&tags=a,b` in URL 4. **Keyboard** — Cmd+K / Ctrl+K focuses search input 5. **Result count** — show match count per tag in sidebar when search is active 6. **Empty state** — show helpful message when no results match ## Files - `docs/src/pages/library.tsx`
kert added this to the P13: Docs Search — local search, library data, broken links, tests milestone 2026-03-21 19:27:39 +00:00
kert added the docs label 2026-03-21 19:27:39 +00:00
kert closed this issue 2026-03-21 19:34:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#68