fix(dashboard): improve error handling and polling for live updates
Shinway Deploy+1: factory-droid[bot]
c3d1852
- Add fallback data when API calls fail (graceful degradation)
- Handle missing API key by falling back to polling
- Faster polling intervals (3s stats, 5s metrics/health)
- Show POLLING vs LIVE status indicator
- Fix TypeScript types for fallback MetricsResponse
- Add retry logic with retryDelay for failed requests
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
feat(dashboard): add SSE live updates and enhanced Gateway Overview UI
Shinway Deploy+1: factory-droid[bot]
ff74951
- Add /api/dashboard/stream/stats SSE endpoint for real-time streaming
- Create useLiveStats hook with EventSource for instant updates
- Redesign Gateway Overview with dark theme and glassmorphism
- Add live connection status indicator (Connected/Disconnected)
- Display uptime, requests, tokens, error rate in hero section
- Add latency progress bar with P50/P95/P99 percentiles
- Animated gradient backgrounds and hover effects
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
feat: Add enhanced dashboard with HF Spaces support
Shinway Deploy+1: Claude Sonnet 4.5
866dfb3
- Enhanced UI with modern animations and visual effects
- Dashboard accessible at /shin route on same port
- Multi-stage Docker build with dashboard included
- Configured for HF Spaces (port 7860)
- Added comprehensive documentation
Features:
- Modern animations (fade-in, slide-up, scale-in)
- Glass morphism effects with backdrop blur
- Enhanced charts with gradients
- Animated navigation and status indicators
- Real-time statistics and metrics
- Account management interface
- Configuration viewer
Integration:
- Static file serving at /shin route
- API endpoints at /api/dashboard/*
- SPA routing handled correctly
- No CORS issues (same origin)
HF Spaces:
- Port 7860 configured
- Multi-stage Dockerfile
- Health checks configured
- Non-root user for security
Documentation:
- START_HERE.md - Quick start guide
- FINAL_SUMMARY.md - Complete overview
- HF_SPACES_DEPLOYMENT.md - Deployment guide
- Plus 7+ additional guides
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>