From acd0cce3f8701da797783612b072213448d6ec50 Mon Sep 17 00:00:00 2001 From: Froidefond Julien Date: Thu, 19 Mar 2026 22:17:49 +0100 Subject: [PATCH] fix: reorder Prowlarr button, add collection progress bar, remove redundant missing badge - Move Prowlarr search button before Metadata button - Add amber collection progress bar showing owned/expected books ratio - Remove yellow missing count badge from MetadataSearchModal (now shown in progress bar) - Fix i18n plural parameter for series read count Co-Authored-By: Claude Opus 4.6 --- .../app/components/MetadataSearchModal.tsx | 7 ----- .../app/libraries/[id]/series/[name]/page.tsx | 26 +++++++++++++++---- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/apps/backoffice/app/components/MetadataSearchModal.tsx b/apps/backoffice/app/components/MetadataSearchModal.tsx index e329d4e..ad9a5d1 100644 --- a/apps/backoffice/app/components/MetadataSearchModal.tsx +++ b/apps/backoffice/app/components/MetadataSearchModal.tsx @@ -683,13 +683,6 @@ export function MetadataSearchModal({ {existingLink && existingLink.status === "approved" ? t("metadata.metadataButton") : t("metadata.searchButton")} - {/* Inline badge when linked */} - {existingLink && existingLink.status === "approved" && initialMissing && initialMissing.missing_count > 0 && ( - - {t("series.missingCount", { count: initialMissing.missing_count, plural: initialMissing.missing_count !== 1 ? "s" : "" })} - - )} - {existingLink && existingLink.status === "approved" && ( diff --git a/apps/backoffice/app/libraries/[id]/series/[name]/page.tsx b/apps/backoffice/app/libraries/[id]/series/[name]/page.tsx index 5c0a0a0..5a37ce5 100644 --- a/apps/backoffice/app/libraries/[id]/series/[name]/page.tsx +++ b/apps/backoffice/app/libraries/[id]/series/[name]/page.tsx @@ -142,7 +142,7 @@ export default async function SeriesDetailPage({ {t("series.readCount", { read: String(booksReadCount), total: String(booksPage.total), plural: booksPage.total !== 1 ? "s" : "" })} - {/* Progress bar */} + {/* Reading progress bar */}
+ + {/* Collection progress bar (owned / expected) */} + {missingData && missingData.total_external > 0 && ( + <> + + + {booksPage.total}/{missingData.total_external} — {t("series.missingCount", { count: missingData.missing_count, plural: missingData.missing_count !== 1 ? "s" : "" })} + +
+
+
+ + )}
@@ -172,16 +188,16 @@ export default async function SeriesDetailPage({ currentStatus={seriesMeta?.status ?? null} currentLockedFields={seriesMeta?.locked_fields ?? {}} /> + -