revert(web): drop duplicates display until the server reports them

The upload-import path never increments duplicates (a dedup hit
returns Ok and counts as success), so the counter and the progress
math addition could only ever render dead zeros. The display returns
together with the server-side fix; the client-side aggregation of the
duplicates field stays, as issue #2 specifies.
This commit is contained in:
sripwoud
2026-08-18 18:34:02 +02:00
parent 350ec8da1e
commit c067655171
2 changed files with 4 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ import { useMutation, useQuery } from '@tanstack/react-query';
import {
Upload, FileText, X, CheckCircle2, AlertTriangle,
Sparkles, PenLine, ListTree, ChevronsUpDown, Check,
Clock, ChevronRight, Copy,
Clock, ChevronRight,
} from 'lucide-react';
import { Button } from '@/components/ui/button';
@@ -659,16 +659,16 @@ export default function ImportPage() {
<div className="space-y-1.5">
<div className="flex justify-between text-xs text-muted-foreground">
<span>
{t('import.processed', { current: progress.success + progress.failed + progress.duplicates, total: progress.total })}
{t('import.processed', { current: progress.success + progress.failed, total: progress.total })}
</span>
<span>
{progress.total > 0
? Math.round(((progress.success + progress.failed + progress.duplicates) / progress.total) * 100)
? Math.round(((progress.success + progress.failed) / progress.total) * 100)
: 0}%
</span>
</div>
<Progress
value={progress.total > 0 ? ((progress.success + progress.failed + progress.duplicates) / progress.total) * 100 : 0}
value={progress.total > 0 ? ((progress.success + progress.failed) / progress.total) * 100 : 0}
className="h-2"
/>
</div>
@@ -684,12 +684,6 @@ export default function ImportPage() {
<AlertTriangle className="h-3.5 w-3.5 text-amber-600" />
{t('import.failedCount', { count: progress.failed })}
</span>
{progress.duplicates > 0 && (
<span className="flex items-center gap-1">
<Copy className="h-3.5 w-3.5 text-muted-foreground" />
{t('import.duplicateCount', { count: progress.duplicates })}
</span>
)}
</div>
)}

View File

@@ -739,7 +739,6 @@
"detectedFolder": "Detected",
"detectedFrom": "Detected from",
"dropHere": "Drop .eml / .mbox / .pst files here",
"duplicateCount": "{{count}} duplicates skipped",
"failed": "Import failed",
"failedCount": "{{count}} failed",
"failedDetails": "Failed items",