fix: harden offline fallback and track visitable pages
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 1m36s

This commit is contained in:
2026-03-01 18:33:11 +01:00
parent c704e24a53
commit e6fe5ac27f
6 changed files with 518 additions and 119 deletions

View File

@@ -36,6 +36,7 @@ interface CacheStats {
images: { size: number; entries: number };
books: { size: number; entries: number };
total: number;
visitablePages: number;
}
interface CacheEntry {
@@ -376,6 +377,9 @@ export function CacheSettings() {
<p className="text-xs text-muted-foreground text-right">
{t("settings.cache.imagesQuota", { used: Math.round(usagePercent) })}
</p>
<p className="text-xs text-muted-foreground">
{t("settings.cache.visitablePages", { count: stats.visitablePages })}
</p>
</div>
)}