feat: upload indicator for images#369
Open
justinedagreat wants to merge 2 commits intomasterfrom
Open
Conversation
del-ereno
approved these changes
May 1, 2026
Contributor
🛸 Orbit CodeReviewPR SummaryThe PR adds a Changes Overview
What's Good
Issues
Suggestions
Overall Score
🎋 Orbit's Farewell HaikuCanvas dims, spinner spins, |
harbassan
requested changes
May 7, 2026
Contributor
harbassan
left a comment
There was a problem hiding this comment.
awesome, just this one thing
Comment on lines
+4
to
+7
| const loading = useEditorStore((state) => state.loading); | ||
|
|
||
| if (!loading) return null; | ||
|
|
Contributor
There was a problem hiding this comment.
this overlay component should just be the jsx, so that it can be general purpose. The conditional rendering of it should be handled in the parent.
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.
Issue
To let the user know that an image is being uploaded, it needs a clear indication that something is happening. This prevents users from being misled into thinking nothing is happening and from uploading duplicates.
Solution
Introduced a
LoadingOverlayfunction that blurs the canvas and displays a loading animation while the image is being uploaded.loadingstates to represent that something is being uploaded. The default value isfalse, since it will only change to' true' when the user tries to upload.addNewImagefunction is being called, and it will then setloading=true. Then the actual upload process begins.loadingstate tofalseRisk
Checklist: