From 910ce5a92ec5784c1a5a4d0b1c4f7a386311c79a Mon Sep 17 00:00:00 2001 From: neon <18559658+neonsolstice@users.noreply.github.com> Date: Thu, 9 Jul 2026 22:20:54 +0000 Subject: [PATCH] feat(smart-scope): add toggle to collapse series in smart scopes Provide a series-collapse toggle in the Smart Scopes view to reduce clutter from large series. Use the existing series collapse preferences logic to allow users to toggle this setting per Smart Scope, maintaining consistency with Library and Collection views. Closes #609 --- .../src/features/author/views/AuthorsView.vue | 2 + .../useSeriesCollapsePreference.test.ts | 35 +- .../useSeriesCollapsePreference.ts | 21 +- .../src/features/series/views/SeriesView.vue | 2 + .../settings/AppearanceBehaviorSettings.vue | 2 +- client/src/views/CollectionView.vue | 16 +- client/src/views/HomeView.vue | 4 + client/src/views/SmartScopeView.vue | 155 +- packages/types/src/series-collapse.ts | 10 +- .../src/db/migrations/meta/0040_snapshot.json | 1643 ++++------------- .../src/db/migrations/meta/0041_snapshot.json | 1643 ++++------------- .../book/book-query-builder.service.test.ts | 21 +- .../book/book-query-builder.service.ts | 6 +- server/src/modules/book/book.service.test.ts | 43 +- server/src/modules/book/book.service.ts | 4 +- .../book/series-collapse-prefs.test.ts | 7 + .../smart-scope/smart-scope.service.test.ts | 2 + ...te-series-collapse-preferences.dto.test.ts | 12 + .../update-series-collapse-preferences.dto.ts | 4 + server/src/modules/user/user.service.test.ts | 25 +- server/src/modules/user/user.service.ts | 11 +- 21 files changed, 1082 insertions(+), 2586 deletions(-) diff --git a/client/src/features/author/views/AuthorsView.vue b/client/src/features/author/views/AuthorsView.vue index 817fb43df..8fb9da3ae 100644 --- a/client/src/features/author/views/AuthorsView.vue +++ b/client/src/features/author/views/AuthorsView.vue @@ -509,6 +509,7 @@ defineOptions({ name: 'AuthorsView' })