Problem: Search results are a flat list. When a term appears in many books, users can't quickly see the distribution — is this a Genesis concept or a Psalms concept? How many results are in each book?
Solution: Group search results under book headers with counts (e.g., "Genesis — 12 results", "Psalms — 8 results"). Each group can be collapsed or expanded.
Not included: Filtering by book or testament. Just visual grouping with counts.
Expected user flow:
Book headers: Bold text with count right-aligned. Chevron icon for collapse/expand.
Collapse animation: 200ms ease-out height transition.
Implementation:
book_id from search resultsBOOK_NAMES constantFiles:
apps/web/src/routes/(app)/search/+page.svelte (modify)Current: PLANNED Milestone: v1 Priority: Medium — improves search result navigation
Dependencies: