feat: Add Export as .txt file option#8
Open
HuiNeng6 wants to merge 1 commit intoSappymukherjee214:mainfrom
Open
feat: Add Export as .txt file option#8HuiNeng6 wants to merge 1 commit intoSappymukherjee214:mainfrom
HuiNeng6 wants to merge 1 commit intoSappymukherjee214:mainfrom
Conversation
- Update backend exportController to handle txt format - Add txt format with text/plain content type - Update frontend handleExport to support txt format - Add Export TXT button in header Fixes: Sappymukherjee214#5
Review Summary by QodoAdd TXT export format alongside PDF and DOCX
WalkthroughsDescription• Add TXT export format support to backend with text/plain content type • Update frontend handleExport function to accept txt format parameter • Add Export TXT button in header with consistent styling • Update error message to reflect all supported export formats Diagramflowchart LR
User["User clicks Export TXT"] -->|txt format| Frontend["Frontend handleExport"]
Frontend -->|POST /api/export| Backend["Backend exportController"]
Backend -->|Buffer.from utf-8| TxtHandler["TXT Handler"]
TxtHandler -->|text/plain| Download["Download .txt file"]
File Changes1. backend/src/controllers/exportController.ts
|
Code Review by Qodo
1. TXT charset not specified
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add TXT export option alongside PDF and DOCX.
Backend: Added txt format handling with text/plain content type
Frontend: Added Export TXT button and updated handleExport
Fixes: #5