Add a 14-day history retention option

This commit is contained in:
Sucukdeluxe committed 2026-09-26 10:19:16 +02:00
1 parent 461712b6bc
commit a26b00c425
4 files changed
+9 -1

No files matched your search

+2 -1
View File
@@ -68,7 +68,7 @@ const DEFAULTS = {
webhookMention: '', // optional Discord ping target: user-id, role:id, @here, @everyone
autoRetryRounds: 0, // 0 = off; 1-5 automatic retry rounds for transient failures after batch end
autoRetryDelayMin: 5, // base delay in minutes between auto-retry rounds (linear backoff: round N waits N*delay)
historyRetention: 'all', // 'all' | '7d' | '30d' | '90d' | '1000' | '100' — storage cap for upload history
historyRetention: 'all', // 'all' | '7d' | '14d' | '30d' | '90d' | '1000' | '100' — storage cap for upload history
// NOTE: logMode is intentionally NOT in DEFAULTS. If it were, the deep-merge
// would seed logMode='single' for every load, which would beat (and silently
// erase) the legacy sessionLog:true → "daily" migration. normalizeLogMode in
@@ -132,6 +132,7 @@ const DEFAULTS = {
const HISTORY_RETENTION_OPTIONS = [
{ value: 'all', label: 'Alles behalten' },
{ value: '7d', label: 'Letzte 7 Tage' },
{ value: '14d', label: 'Letzte 14 Tage' },
{ value: '30d', label: 'Letzte 30 Tage' },
{ value: '90d', label: 'Letzte 90 Tage' },
{ value: '1000', label: 'Letzte 1000 Uploads' },
+2
View File
@@ -5924,6 +5924,7 @@ function updateHistorySidebarSummary() {
const labels = {
all: 'Alles behalten',
'7d': 'Letzte 7 Tage',
'14d': 'Letzte 14 Tage',
'30d': 'Letzte 30 Tage',
'90d': 'Letzte 90 Tage',
'1000': 'Letzte 1000 Uploads',
@@ -8595,6 +8596,7 @@ function syncHistoryRetentionPicker() {
const labels = {
all: 'Alles behalten',
'7d': 'Letzte 7 Tage',
'14d': 'Letzte 14 Tage',
'30d': 'Letzte 30 Tage',
'90d': 'Letzte 90 Tage',
'1000': 'Letzte 1000 Uploads',
+3
View File
@@ -61,6 +61,9 @@
['Letzte 100 Uploads', 'Last 100 uploads'],
['Letzte 1000 Uploads', 'Last 1,000 uploads'],
['Letzte 7 Tage', 'Last 7 days'],
['Letzte 14 Tage', 'Last 14 days'],
['Wird erstellt…', 'Creating…'],
['Anzahl weiterer Versuche pro Datei, bevor der Upload als fehlgeschlagen gilt.', 'Number of additional attempts per file before the upload is marked as failed.'],
['Letzte 30 Tage', 'Last 30 days'],
['Letzte 90 Tage', 'Last 90 days'],
['Max. parallele Uploads', 'Max. parallel uploads'],
+2
View File
@@ -609,6 +609,7 @@
<div class="history-retention-menu" id="historyRetentionMenu" role="listbox" aria-labelledby="historyRetentionTrigger" style="display:none">
<button type="button" class="history-retention-option" role="option" data-history-retention="all" aria-selected="true">Alles behalten</button>
<button type="button" class="history-retention-option" role="option" data-history-retention="7d" aria-selected="false">Letzte 7 Tage</button>
<button type="button" class="history-retention-option" role="option" data-history-retention="14d" aria-selected="false">Letzte 14 Tage</button>
<button type="button" class="history-retention-option" role="option" data-history-retention="30d" aria-selected="false">Letzte 30 Tage</button>
<button type="button" class="history-retention-option" role="option" data-history-retention="90d" aria-selected="false">Letzte 90 Tage</button>
<button type="button" class="history-retention-option" role="option" data-history-retention="100" aria-selected="false">Letzte 100 Uploads</button>
@@ -618,6 +619,7 @@
<select id="historyRetentionSelect" class="history-retention-select" hidden aria-hidden="true" tabindex="-1">
<option value="all">Alles behalten</option>
<option value="7d">Letzte 7 Tage</option>
<option value="14d">Letzte 14 Tage</option>
<option value="30d">Letzte 30 Tage</option>
<option value="90d">Letzte 90 Tage</option>
<option value="100">Letzte 100 Uploads</option>