feat: implement PDF upload support and text extraction#126
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
📝 WalkthroughWalkthroughAdds PDF upload support across the interface and API. PDFs are validated, parsed into text, stored as resources with metadata, indexed asynchronously, and displayed with PDF-specific dashboard labels and styling. ChangesPDF resource upload
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant AddResource
participant PDFRoute
participant PDFExtractor
participant Firestore
participant Indexer
User->>AddResource: Select PDF and submit form
AddResource->>PDFRoute: Send authenticated FormData
PDFRoute->>PDFExtractor: Extract text and metadata
PDFExtractor-->>PDFRoute: Return cleaned PDF content
PDFRoute->>Firestore: Store resource and indexing state
PDFRoute->>Indexer: Start background indexing
PDFRoute-->>AddResource: Return stored resource
AddResource-->>User: Reset form and open share modal
Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Bug Fixes