Add “Unassigned” shelf view for books not in any shelf

This commit is contained in:
adityachandelgit
2025-05-15 21:11:33 -06:00
committed by Aditya Chandel
parent 22f10d0475
commit 4cb82d2ba7
6 changed files with 74 additions and 30 deletions
@@ -106,4 +106,12 @@ export class ShelfService {
)
);
}
getUnshelvedBookCount(): Observable<number> {
return this.bookService.bookState$.pipe(
map(state =>
(state.books || []).filter(book => !book.shelves || book.shelves.length === 0).length
)
);
}
}