Wire frontend to real API endpoints

Dashboard page:
- Fetch top clients from /api/dashboard/by-client
- Show loading state while fetching
- Display empty state when no client data
- Show real client_id, job count, and success rate

Scrapers page:
- Fetch versions from /api/admin/scrapers
- Wire promote/deprecate buttons to real API calls
- Wire add version form to POST /api/admin/scrapers
- Wire traffic allocation to PUT /api/admin/scrapers/{id}/traffic
- Add loading and error states

Dockerfile:
- Add COPY commands for new directories (api/, core/, scrapers/, etc.)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-01-24 16:05:29 +00:00
parent 39c80fc8be
commit 3317553658
3 changed files with 277 additions and 145 deletions

View File

@@ -55,6 +55,12 @@ RUN pip install --no-cache-dir -r requirements-production.txt
# Copy application code
COPY modules/ ./modules/
COPY api/ ./api/
COPY core/ ./core/
COPY scrapers/ ./scrapers/
COPY services/ ./services/
COPY utils/ ./utils/
COPY workers/ ./workers/
COPY api_server_production.py .
COPY config.yaml .