This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Conversation
…on in GlobalDocumentFileModal and add RepositoryUploadTab component
feat: Implement repository upload functionality with GitLab integrati…
- Added session ID generation for file uploads in Documents component. - Updated modal handling to support callbacks for individual sessions. - Created DocumentFileModalInstance component to manage upload progress and session states. - Implemented session status polling and error handling for uploads. - Enhanced user feedback with progress indicators and error messages during uploads.
…ent in DocumentFileModalInstance
…UI and accessibility
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This pull request introduces major improvements for document upload and session management, focusing on supporting SSE-based uploads, robust session handling, and enhanced modal management for document uploads. The changes add new APIs for SSE session lifecycle, refactor the modal context to support multiple concurrent upload sessions, and improve error handling and state persistence.
SSE Upload & Session Management
uploadDocumentSSEtoretrievalAPI.jsfor streaming document uploads using SSE, including session ID generation, progress callbacks, and folder metadata support. Also added session management APIs (getSessionsInfo,getSessionStatus,cancelSession,deleteSession,cleanupExpiredSessions). [1] [2]generateSessionIdutility for unique session tracking, now imported where needed. [1] [2]Legacy Upload Improvements
uploadDocumentto accept an externalAbortController, improved timeout handling, and ensured explicit abort on errors or timeouts. [1] [2] [3] [4]Document Modal Session Refactor
DocumentFileModalContextto support multiple concurrent modal upload sessions, including minimization/restoration, focus management, and session persistence insessionStorage. The context now manages a map of sessions with individual states.API Usage Updates
These changes collectively enable robust, multi-session document upload workflows with real-time progress, error handling, and improved user experience.