Skip to content

Conversation

@ewalid
Copy link
Owner

@ewalid ewalid commented Jan 13, 2026

Summary

  • Add Server-Sent Events (SSE) streaming for real-time translation progress updates
  • Display cell count estimation before translation starts
  • Implement automatic fallback to regular endpoint for corporate networks that block SSE
  • Add /count and /preview REST endpoints for API completeness

Changes

  • Backend: New /translate-stream SSE endpoint that streams progress updates during translation
  • Frontend: Updated useTranslate hook to consume SSE with smart fallback detection
  • UI: Progress bar now shows actual translation percentage and stage details

Test plan

  • Upload an Excel file and verify cell count is displayed before translation
  • Start translation and verify progress bar updates in real-time
  • Test with corporate proxy/VPN to verify fallback works
  • Verify file downloads correctly after translation completes

🤖 Generated with Claude Code

- Add /translate-stream SSE endpoint for real-time progress updates
- Add cell count estimation display before translation starts
- Implement SSE progress tracking in useTranslate hook with automatic
  fallback to regular endpoint for corporate networks
- Update ProgressIndicator to show actual translation percentage
- Add /count and /preview REST endpoints for API completeness
- Add sse-starlette dependency for server-sent events support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ewalid ewalid self-assigned this Jan 13, 2026
@ewalid ewalid merged commit ecadf59 into master Jan 13, 2026
2 checks passed
@ewalid ewalid deleted the feature/sse-progress-tracking branch January 13, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants