From 4d0f529b76e34942049c0b2784fea72db197a154 Mon Sep 17 00:00:00 2001 From: ACX <8075870+acx10@users.noreply.github.com> Date: Sun, 22 Feb 2026 12:19:18 -0700 Subject: [PATCH] Redesign series page layout and book list tab (#2847) * fix: enlarge stacked covers and improve hero section spacing on series page * Redesign series page hero layout with single cover, colorful metadata cards, and metadata-viewer style description * Revamp book list tab with card layout, action buttons, progress bars, ratings, and format type colors --------- Co-authored-by: acx10 --- .../series-page/series-page.component.html | 600 +++++++++---- .../series-page/series-page.component.scss | 816 +++++++++++++++--- .../series-page/series-page.component.ts | 288 ++++++- booklore-ui/src/i18n/en/book.json | 24 + booklore-ui/src/i18n/es/book.json | 24 + 5 files changed, 1441 insertions(+), 311 deletions(-) diff --git a/booklore-ui/src/app/features/book/components/series-page/series-page.component.html b/booklore-ui/src/app/features/book/components/series-page/series-page.component.html index 9b7988e03..a52409550 100644 --- a/booklore-ui/src/app/features/book/components/series-page/series-page.component.html +++ b/booklore-ui/src/app/features/book/components/series-page/series-page.component.html @@ -7,6 +7,10 @@ {{ t('seriesDetailsTab') }} + + + {{ t('bookListTab') }} + @@ -15,214 +19,444 @@
-
- -
-
-

- {{ seriesTitle$ | async }} -

+ +
+ @if (coverBook$ | async; as coverBook) { +
+
+ } -

- @for (author of firstBook.metadata?.authors; track $index; let isLast = $last) { - - {{ author }} - - @if (!isLast) { - , +

+

{{ seriesTitle$ | async }}

+ + @if (allAuthors$ | async; as authors) { +

+ @for (author of authors; track $index; let isLast = $last) { + {{ author }} + @if (!isLast) {, } + } +

+ } + + @if (allCategories$ | async; as categories) { + @if (categories.length) { +
+
+ @for (category of categories; track category) { + + {{ category }} + + } +
+
+ } + } + + - - @if (firstBook.metadata?.categories?.length) { -
-
- @for (category of firstBook.metadata?.categories; track category) { - - - + + + {{ books.length }} {{ books.length === 1 ? t('book') : t('books') }} + + @if (yearsRange$ | async; as years) { + + + {{ years }} + + } + @if (seriesStats$ | async; as stats) { + @if (stats.totalPages > 0) { + + + {{ stats.totalPages | number }} {{ t('stats.totalPages') }} + + } + @if (stats.formatCounts.size > 0) { + + + @for (entry of stats.formatCounts | keyvalue; track entry.key) { + {{ entry.key }}{{ $last ? '' : ', ' }} + } + + } + @if (stats.totalAudioDurationSeconds > 0) { + + + {{ formatDuration(stats.totalAudioDurationSeconds) }} + + } + } + @if (allLanguages$ | async; as languages) { + @if (languages.length) { + + + {{ languages.join(', ') }} + + } + } + @if (seriesCompletion$ | async; as completion) { + + + {{ completion.owned }}/{{ completion.total }} {{ t('stats.owned') }} + }
-
- } - - -
-
-
-
- @if (isExpanded || isOverflowing) { - - - } -
+ + @if (seriesStats$ | async; as stats) { + @if (stats.avgPersonalRating != null || stats.avgGoodreads != null || stats.avgAmazon != null || stats.avgHardcover != null) { +
+ @if (stats.avgPersonalRating != null) { +
+ + {{ stats.avgPersonalRating | number:'1.1-1' }}/10 + {{ t('stats.avgPersonalRating') }} +
+ } + @if (stats.avgGoodreads != null) { +
+ + {{ getRatingPercent(stats.avgGoodreads) }}% + {{ t('stats.avgGoodreads') }} +
+ } + @if (stats.avgAmazon != null) { +
+ + {{ getRatingPercent(stats.avgAmazon) }}% + {{ t('stats.avgAmazon') }} +
+ } + @if (stats.avgHardcover != null) { +
+ + {{ getRatingPercent(stats.avgHardcover) }}% + {{ t('stats.avgHardcover') }} +
+ } +
+ } + } + + +
+ @if (nextUp$ | async; as nextUp) { +
+ +
+ + + {{ nextUp.isReading ? t('continueReading') : t('nextUp') }} + + {{ nextUp.book.metadata?.title || '' }} + @if (nextUp.isReading && nextUp.progressPercent != null) { +
+ + + {{ nextUp.progressPercent }}% +
+ } +
+
+ } + + @if (readStatusBreakdown$ | async; as segments) { + @if (segments.length) { +
+
+
+ @for (seg of segments; track seg.status) { +
+
+ } +
+
+ @for (seg of segments; track seg.status) { + + + {{ getStatusLabel(seg.status) }} ({{ seg.count }}) + + } + @let readProg = seriesReadProgress$ | async; + @if (readProg) { + + {{ t('readPercent', { progress: readProg }) }} + + } +
+
+
+ } + } +
-
- @for (book of books; track book; let i = $index) { -
- -
- } - @if (books.length === 0) { -
{{ t('noBooksFound') }}
- } +
+ +
+
+ + {{ t('synopsis') }} +
+
+
+
+
+ @if (isExpanded || isOverflowing) { + + } +
+
+ +

+ + {{ t('booksInSeries') }} +

+
+ @for (book of books; track book; let i = $index) { +
+ + +
+ } + @if (books.length === 0) { +
{{ t('noBooksFound') }}
+ } +
+
+ } -
-
- } + - - - -@if (selectedBooks.size > 0) { - @if (userService.userState$ | async; as userState) { -