Enhance file upload UX with previews and detailed parsing progress#5
Open
Enhance file upload UX with previews and detailed parsing progress#5
Conversation
- Add image thumbnail preview for uploaded files - Add PDF icon placeholder for PDF documents - Show file size in the upload queue - Add detailed analysis step indicators (uploading, parsing, extracting) - Add progress bar during file analysis - Show parsed summary with extracted entries and hours - Update Flight Plan Upload modal with: - Image preview alongside file info - Step-by-step parsing progress visualization - Success banner with confidence score - Better extracted data display cards https://claude.ai/code/session_01WHYJMpXoao72STGmWxpWYS
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.
Summary
Improved the file upload experience across the files and flights pages by adding file previews, detailed parsing step indicators, and better visual feedback during document analysis.
Key Changes
Files Page (
app/files/page.tsx)ANALYSIS_STEPSconstant with granular step descriptions (queued, uploading, parsing_init, parsing_ocr, parsing_ai, parsing_extract, parsing_validate, completed, failed)previewUrlfor image file previewsanalysisStepto track current parsing stageparsedSummaryto display extracted data (entries count, hours, document type)Flights Page (
app/flights/page.tsx)PARSING_STEPSconstant with 4-step parsing workflow (upload, ocr, extract, match)Implementation Details
URL.createObjectURL()for image files onlysetTimeoutintervals (500ms-4000ms) for better perceived responsivenessmax-h-[90vh] overflow-y-autofor better mobile experiencehttps://claude.ai/code/session_01WHYJMpXoao72STGmWxpWYS