feat(viewer): add context-aware series collapse functionality (#2073)

- Introduced support for context-specific series collapse preferences for libraries, shelves, and magic shelves.
- Improved backward compatibility with legacy preference structures.
- Added JSON aliasing for `seriesCollapse` to maintain API compatibility.
- Extended entity selection in view preferences to include magic shelves.
- Enhanced error handling in app settings service to filter null values.
- Optimized series collapse preference management, ensuring local and global overrides persist accurately.

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
Balázs Szücs
2026-01-01 00:38:46 -07:00
committed by GitHub
parent ff86a93a9f
commit a72f6e285c
7 changed files with 150 additions and 22 deletions
@@ -21,7 +21,7 @@ export interface EntityViewPreference {
}
export interface EntityViewPreferenceOverride {
entityType: 'LIBRARY' | 'SHELF';
entityType: 'LIBRARY' | 'SHELF' | 'MAGIC_SHELF';
entityId: number;
preferences: EntityViewPreference;
}