feat(shelf): add shelf filtering options and integrate into book processing (#2268)

* feat(shelf): add shelf filtering options and integrate into book processing

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* fix(book-rule-evaluator): normalize array values to lowercase for rule comparisons

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(filter): enhance library and shelf filtering logic for 'or' and 'and' modes

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* feat(shelf): implement support for multiple shelf IDs in book retrieval and filtering

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
Balázs Szücs
2026-01-15 19:58:30 -07:00
committed by GitHub
parent 869bea9ca5
commit 775887b55f
13 changed files with 545 additions and 28 deletions
@@ -96,6 +96,10 @@ export class ShelfService {
return this.shelfStateSubject.value.shelves?.find(s => s.id === id);
}
getShelvesFromState(): Shelf[] {
return this.shelfStateSubject.value.shelves ?? [];
}
getBookCount(shelfId: number): Observable<number> {
return this.bookService.bookState$.pipe(
map(state =>