UI improvements: Leadspeicher, Maps enrichment, exports

- Rename LeadVault → Leadspeicher throughout (sidebar, topbar, page)
- SidePanel: full lead detail view with contact, source, tags (read-only), Google Maps link for address
- Tags: kontaktiert stored as tag (toggleable), favorit tag toggle
- Remove Status column, StatusBadge dropdown, Priority feature
- Remove Aktualisieren button from Leadspeicher
- Bulk actions: remove status dropdown
- Export: LeadVault Excel-only, clean columns, freeze row + autofilter
- Export dropdown: click-based (fix overflow-hidden clipping)
- ExportButtons: remove CSV, Excel only everywhere
- Maps page: post-search Anymailfinder enrichment button
- ProgressCard: "Suche läuft..." instead of "Warte auf Anymailfinder-Server..."
- Quick SERP renamed to "Schnell neue Suche"
- Results page: Excel export, always-enabled download button
- Anymailfinder: fix bulk field names, array-of-arrays format
- Apify: fix countryCode lowercase
- API: sourceTerm search, contacted/favorite tag filters

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Timo Uttenweiler
2026-03-21 18:12:31 +01:00
parent f914ab6e47
commit 115cdacd08
26 changed files with 511 additions and 521 deletions

View File

@@ -72,9 +72,6 @@ export default function ResultsPage() {
window.open(`/api/export/${id}`, "_blank");
};
const hitRate = (job: Job) =>
job.totalLeads > 0 ? Math.round((job.emailsFound / job.totalLeads) * 100) : 0;
return (
<div className="space-y-6 max-w-6xl">
{/* Header */}
@@ -138,7 +135,6 @@ export default function ResultsPage() {
<th className="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Status</th>
<th className="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Leads</th>
<th className="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">E-Mails</th>
<th className="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Trefferquote</th>
<th className="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Aktionen</th>
</tr>
</thead>
@@ -172,21 +168,12 @@ export default function ResultsPage() {
</td>
<td className="px-4 py-3 text-white font-medium">{job.totalLeads.toLocaleString()}</td>
<td className="px-4 py-3 text-green-400 font-medium">{job.emailsFound.toLocaleString()}</td>
<td className="px-4 py-3">
<span className={cn(
"text-xs font-medium",
hitRate(job) >= 50 ? "text-green-400" : hitRate(job) >= 20 ? "text-yellow-400" : "text-red-400"
)}>
{hitRate(job)}%
</span>
</td>
<td className="px-4 py-3">
<div className="flex items-center gap-1.5">
<Button
variant="ghost"
size="sm"
onClick={() => downloadJob(job.id)}
disabled={job.status !== "complete"}
className="h-7 px-2 text-gray-400 hover:text-white hover:bg-[#1a1a28]"
>
<Download className="w-3.5 h-3.5" />