fix(filter): update filter options to use CountedOption for read statuses and file types (#448)

* fix(filter): update filter options to use CountedOption for read statuses and file types

* fix(specification): validate file types and read statuses, throwing APIException for invalid values
This commit is contained in:
brios
2026-04-22 17:27:10 -04:00
committed by Zach Yale
parent 2c26bd26fd
commit 4a68fa28f6
12 changed files with 194 additions and 66 deletions
@@ -318,7 +318,11 @@
></app-book-table>
}
@if (currentViewMode === 'grid') {
<virtual-scroller class="virtual-scroller" #scroll [items]="books" [bufferAmount]="16" (vsEnd)="onScrollEnd()">
<virtual-scroller class="virtual-scroller" #scroll
[items]="books"
[bufferAmount]="16"
[compareItems]="compareBookItems"
(vsEnd)="onScrollEnd()">
<div
class="grid"
#container
@@ -326,7 +330,7 @@
@for (book of scroll.viewPortItems; let i = $index; track book.id) {
<div
class="virtual-scroller-item"
[ngStyle]="{width: currentCardSize.width + 'px', height: getCardHeight(book) + 'px'}">
[ngStyle]="{width: currentCardSize.width + 'px', height: currentCardSize.height + 'px'}">
<app-book-card
[index]="bookIndexById().get(book.id) ?? i"
[book]="book"