Skip to content

Conversation

@ewalid
Copy link
Owner

@ewalid ewalid commented Jan 2, 2026

Here's the PR content in markdown:
Add Feedback System, Progress Indicator, and Comprehensive Tests
Summary
Add Typeform-style feedback modal with 3-step flow (rating, improvements, text feedback)
Add progress indicator showing translation stages (uploading, translating, complete)
Add feedback button to footer
Add backend /feedback endpoint with email support
Add comprehensive test coverage for both backend and frontend
Changes
Backend:
New /feedback POST endpoint in app.py for submitting user feedback
Email support via SMTP when configured (falls back to console logging)
Pydantic model for feedback validation
Frontend Components:
FeedbackModal - 3-step modal with emoji rating, improvement chips, and text input
ProgressIndicator - Visual progress bar with stage indicators during translation
Updated Footer with feedback button
Frontend Tests (57 tests):
API client tests (getSheets, translateFile, submitFeedback)
Utility function tests (cn, formatFileSize, getFileExtension, isValidExcelFile, generateOutputFilename)
ProgressIndicator component tests
FeedbackModal component tests
Backend Tests (14 new tests):
/sheets endpoint tests (5 tests)
/feedback endpoint tests (9 tests)
Test plan
Run backend tests: python -m pytest tests/test_api.py -v (26 tests pass)
Run frontend tests: npm run test:run (57 tests pass)
Build frontend: npm run build (no TypeScript errors)
Manual test: Upload file and verify progress indicator appears during translation
Manual test: Click feedback button in footer and complete 3-step flow
Manual test: Verify feedback is logged to console (or sent via email if SMTP configured)

ewalid and others added 4 commits January 3, 2026 00:18
The lib/ pattern in .gitignore was ignoring all lib directories including
frontend/src/lib/ which contains utils.ts needed by the application.

Changed lib/ to /lib/ to only ignore lib at the root level.

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

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@ewalid ewalid merged commit a068fc1 into master Jan 2, 2026
2 checks passed
@ewalid ewalid deleted the frontend/tests branch January 2, 2026 23:36
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