fix: MarketLeads zeigt 0 Leads — Provider liest live aus Mock-Daten

MockupFutureSignalProvider kopierte mockFutureSignals einmalig in einen
store-Array beim Modulload. Vite HMR und React Query Cache (staleTime 5min)
führten dazu, dass signalDirection-Feld in gecachten Resultaten fehlte.

Lösung: Provider liest jetzt immer direkt aus dem lebenden mockFutureSignals-
Import via resolve()-Helper. Mutationen (verify, updateStatus) werden in einer
Map gespeichert und beim Lesen überlagert. Damit sind HMR-Änderungen an
Mock-Daten sofort sichtbar ohne Browser-Neustart.

Ausserdem: irreführenden CircularProgress aus Empty-State entfernt.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Sutter
2026-05-20 16:02:32 +02:00
parent b0ad6643ff
commit 0dc04a14c5
2 changed files with 22 additions and 13 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
import {
Box,
Chip,
CircularProgress,
Divider,
Paper,
Skeleton,
@@ -283,8 +282,8 @@ export default function MarketLeads() {
</>
) : leads.length === 0 ? (
<Paper sx={{ p: 4, textAlign: 'center' }}>
<CircularProgress size={24} sx={{ mb: 2, color: '#94a3b8' }} />
<Typography variant="body1" color="text.secondary">Keine aktiven Markt-Leads gefunden.</Typography>
<Target size={32} color="#94a3b8" style={{ marginBottom: 12 }} />
<Typography variant="body1" color="text.secondary" sx={{ mb: 0.5 }}>Keine aktiven Markt-Leads gefunden.</Typography>
<Typography variant="caption" color="text.disabled">Signale werden laufend aus öffentlichen Quellen erkannt.</Typography>
</Paper>
) : (