Commit f458a07
committed
feat(search): group results into book cards with stable scrollbars
Group search results by book into one deduplicated card per book: the top hit
shown prominently, locations in a leading reference column, matched terms in
gold, and the remaining hits in a fixed-height, scrollable list. Reuse the book
pane's ContentAwareScrollbarShell so the expanded list and the main results list
both get a themed, stable scrollbar thumb (sized from the facet book count, so it
no longer shrinks as more pages load).
- ViewModel: expose bookFacetCountsFlow and loadAllHitsForBook(bookId)
- TabsContent: wire book counts and the per-book hit loader into the shell
- strings: add search_more_in_book / search_collapse
Signed-off-by: Elie Gambache <elyahou.hadass@gmail.com>1 parent 40f5a30 commit f458a07
4 files changed
Lines changed: 569 additions & 148 deletions
File tree
- SeforimApp/src
- commonMain/composeResources/values
- jvmMain/kotlin/io/github/kdroidfilter/seforimapp
- core/presentation/tabs
- features/search
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| 487 | + | |
| 488 | + | |
487 | 489 | | |
488 | 490 | | |
489 | 491 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| |||
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| 426 | + | |
| 427 | + | |
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
| |||
0 commit comments