@@ -27,6 +29,12 @@ export function SeriesCover({
.filter(Boolean)
.join(" ")}
/>
+ {showProgressUi && missingCount != null && missingCount > 0 && (
+
+
+ {missingCount}
+
+ )}
{showProgress ?
: null}
);
diff --git a/src/i18n/messages/en/common.json b/src/i18n/messages/en/common.json
index 3ba0969..4ce593e 100644
--- a/src/i18n/messages/en/common.json
+++ b/src/i18n/messages/en/common.json
@@ -263,6 +263,7 @@
},
"showMore": "Show more",
"showLess": "Show less",
+ "missing": "{{count}} missing",
"toggleSidebar": "Toggle sidebar",
"toggleTheme": "Toggle theme"
}
diff --git a/src/i18n/messages/fr/common.json b/src/i18n/messages/fr/common.json
index 9d531c1..d5d75d3 100644
--- a/src/i18n/messages/fr/common.json
+++ b/src/i18n/messages/fr/common.json
@@ -262,7 +262,8 @@
"remove": "Retiré des favoris"
},
"showMore": "Voir plus",
- "showLess": "Voir moins"
+ "showLess": "Voir moins",
+ "missing": "{{count}} manquant(s)"
}
},
"books": {
diff --git a/src/lib/providers/stripstream/stripstream.adapter.ts b/src/lib/providers/stripstream/stripstream.adapter.ts
index 679c2a1..5ba798f 100644
--- a/src/lib/providers/stripstream/stripstream.adapter.ts
+++ b/src/lib/providers/stripstream/stripstream.adapter.ts
@@ -79,6 +79,7 @@ export class StripstreamAdapter {
genres: [],
tags: [],
createdAt: null,
+ missingCount: series.missing_count ?? null,
};
}
diff --git a/src/lib/providers/types.ts b/src/lib/providers/types.ts
index d581315..57f9ee8 100644
--- a/src/lib/providers/types.ts
+++ b/src/lib/providers/types.ts
@@ -25,6 +25,7 @@ export interface NormalizedSeries {
genres?: string[];
tags?: string[];
createdAt?: string | null;
+ missingCount?: number | null;
}
export interface NormalizedBook {
diff --git a/src/types/stripstream.ts b/src/types/stripstream.ts
index 03437c5..d116728 100644
--- a/src/types/stripstream.ts
+++ b/src/types/stripstream.ts
@@ -49,6 +49,7 @@ export interface StripstreamSeriesItem {
books_read_count: number;
first_book_id: string;
library_id: string;
+ missing_count?: number | null;
}
export interface StripstreamSeriesPage {