Add progress indicator while loading patches and directories - #24
Merged
Conversation
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds progress indicator functionality while loading patches and directories, providing visual feedback to users during potentially time-consuming operations. The changes refactor the patch loading system to support asynchronous generators and introduce a progress bar component.
- Refactored patch loading to use async generators with progress tracking
- Added a progress bar component with spinning and percentage-based states
- Updated directory selection to show loading indicators
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| OpenDiffDialog.svelte | Refactored patch loading functions to use async generators and progress indicators |
| +page.svelte | Added progress bar overlay display |
| util.ts | Added animation frame promise utility |
| github.svelte.ts | Updated GitHub API functions to return response text instead of parsed files |
| diff-viewer-multi-file.svelte.ts | Major refactoring of loadPatches method to support async generators and progress tracking |
| components/progress-bar/index.svelte.ts | New progress bar state management class |
| components/progress-bar/ProgressBar.svelte | New progress bar component with spinner animation |
| components/files/index.svelte.ts | Added directory input state management with loading support |
| components/files/DirectorySelect.svelte | Added spinner display during directory loading |
| components/files/DirectoryInput.svelte | Refactored to use new state management pattern |
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.
No description provided.