diff --git a/frontend/src/components/admin/BackupHistory.jsx b/frontend/src/components/admin/BackupHistory.jsx index 07611789..e079eb57 100644 --- a/frontend/src/components/admin/BackupHistory.jsx +++ b/frontend/src/components/admin/BackupHistory.jsx @@ -281,7 +281,16 @@ export const BackupHistory = () => { - {/* Content Backed Up */} + {/* Content Backed Up + Stage B's config-driven walker covers 7 path categories + (events/active, events/archived, thumbnails, previews, + heroes, uploads, business-docs). This pane historically + only counted 2 of them (photos + archives), so the + per-row sums never matched the total — Ralf 2026-05-30 + flagged a 3 files total with 0+0 visible breakdown. + Adds an explicit Total + an "Other" bucket so the + arithmetic adds up even when the backend doesn't yet + expose per-path counts. */}

{t('backup.history.details.contentBackedUp')}

@@ -301,6 +310,28 @@ export const BackupHistory = () => { Archives ({stats.archives_backed_up || 0})
+ {(() => { + const total = Number(stats.files_processed) || 0; + const accounted = + (Number(stats.photos_backed_up) || 0) + + (Number(stats.archives_backed_up) || 0); + const other = Math.max(total - accounted, 0); + return ( + <> +
+ 0 ? 'text-green-500' : 'text-neutral-300 dark:text-neutral-600'}`} /> + + {t('backup.history.details.otherFiles', 'Business documents & other')} ({other}) + +
+
+ + {t('backup.history.details.totalFiles', 'Total files')}: {total} + +
+ + ); + })()}
diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json index e30ed666..d54a183c 100644 --- a/frontend/src/i18n/locales/de.json +++ b/frontend/src/i18n/locales/de.json @@ -475,7 +475,9 @@ "completed": "Abgeschlossen", "contentBackedUp": "Gesicherter Inhalt", "errorDetails": "Fehlerdetails", - "manifest": "Manifest" + "manifest": "Manifest", + "otherFiles": "Geschäftsdokumente & sonstige", + "totalFiles": "Gesamtdateien" }, "pagination": { "showing": "Zeige {{from}}-{{to}} von {{total}} Backups", diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index 7d6831c5..8ede6f4c 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -2366,7 +2366,9 @@ "completed": "Completed", "contentBackedUp": "Content Backed Up", "errorDetails": "Error Details", - "manifest": "Manifest" + "manifest": "Manifest", + "otherFiles": "Business documents & other", + "totalFiles": "Total files" }, "pagination": { "showing": "Showing {{from}}-{{to}} of {{total}} backups",