Commit Graph
2 Commits
Author SHA1 Message Date
Pat TeruelandCopilot 3783392524 Fix WebSocket message delivery - improve error handling and logging
- Refactored WebSocket handler to distinguish between queue.Empty and actual errors
- Added detailed logging for message send confirmation
- Better exception handling to prevent silent failures
- All fraud detection messages now confirmed sent to clients

Co-authored-by: Copilot <[email protected]>
2026-05-01 19:51:50 +08:00
Pat TeruelandCopilot 0387900954 Add real-time consumer panel and paginated transaction results
- Implement WebSocket endpoint (/ws/fraud-results) in API for real-time fraud detection updates
- Add Redis pub/sub listener in API to broadcast consumer results to connected WebSocket clients
- Update consumer to publish fraud detection results to Redis 'fraud_results' channel with transaction details
- Add WebSocket connection logic in frontend with auto-reconnect (exponential backoff)
- Display real-time consumer status panel with fraud score color coding and decision status
- Implement client-side transaction results pagination (10/25/50 items per page)
- Add pagination controls: Previous/Next buttons, page indicator, page size selector
- Newest-first transaction sorting (DESC by timestamp)
- Add comprehensive styling for consumer panel and pagination controls
- All frontend components tested and builds successfully

Co-authored-by: Copilot <[email protected]>
2026-05-01 19:29:31 +08:00