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:
@@ -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 .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user