talk2me/static/js/src
Adolfo Delorenzo 3804897e2b Implement proper error boundaries to prevent app crashes
Frontend Error Boundaries:
- Created ErrorBoundary class for centralized error handling
- Wraps critical functions (transcribe, translate, TTS) with error boundaries
- Global error handlers for unhandled errors and promise rejections
- Component-specific error recovery with fallback functions
- User-friendly error notifications with auto-dismiss
- Error logging to backend for monitoring
- Prevents cascading failures from component errors

Backend Error Handling:
- Added error boundary decorator for Flask routes
- Global Flask error handlers (404, 500, generic exceptions)
- Frontend error logging endpoint (/api/log-error)
- Structured error responses with component information
- Full traceback logging for debugging
- Production vs development error message handling

Features:
- Graceful degradation when components fail
- Automatic error recovery attempts
- Error history tracking (last 50 errors)
- Component-specific error handling
- Production error monitoring ready
- Prevents full app crashes from isolated errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-02 22:47:43 -06:00
..
app.ts Implement proper error boundaries to prevent app crashes 2025-06-02 22:47:43 -06:00
errorBoundary.ts Implement proper error boundaries to prevent app crashes 2025-06-02 22:47:43 -06:00
requestQueue.ts Add health check endpoints and automatic language detection 2025-06-02 22:37:38 -06:00
translationCache.ts Add offline translation caching for seamless offline experience 2025-06-02 21:56:31 -06:00
types.ts Add health check endpoints and automatic language detection 2025-06-02 22:37:38 -06:00