feat(icons): Made icons for libraries and shelves optional with no default icons. (#2599)

* feat(icons): Made icons for libraries and shelves optional with no default icon displayed.

* Added tests for making sure the API handles nullable icons for Shelves and Libraries.

* Fixed some issues identified during PR review.

* Rebased on develop.
This commit is contained in:
Giroux Arthur
2026-02-07 08:25:34 -07:00
committed by GitHub
parent 07cbf89e4c
commit 14236299f2
28 changed files with 817 additions and 90 deletions
@@ -4,8 +4,8 @@ import {BookType} from './book.model';
export interface Library {
id?: number;
name: string;
icon: string;
iconType?: 'PRIME_NG' | 'CUSTOM_SVG';
icon?: string | null;
iconType?: 'PRIME_NG' | 'CUSTOM_SVG' | null;
watch: boolean;
fileNamingPattern?: string;
sort?: SortOption;
@@ -3,8 +3,8 @@ import {SortOption} from './sort.model';
export interface Shelf {
id?: number;
name: string;
icon: string;
iconType?: 'PRIME_NG' | 'CUSTOM_SVG';
icon?: string | null;
iconType?: 'PRIME_NG' | 'CUSTOM_SVG' | null;
sort?: SortOption;
publicShelf?: boolean;
userId?: number;