Refactor frontend JS and improve UX - #1
Open
espi wants to merge 1 commit into
Open
Conversation
This commit introduces several improvements to the frontend: - Modernized JavaScript: - Refactored `upload.js` and `file-manager.js` to use the Fetch API with async/await instead of XMLHttpRequest. - Improved error handling in these scripts to provide more specific feedback to you. - Enhanced User Experience (UX): - Added a slide-out animation for smoother visual feedback when deleting files. - Implemented a "No files uploaded yet" message on the main page if no files are present. - Added a dynamic "This batch is empty" message that appears if all files within an upload batch are deleted. - Recommendations: - Provided detailed recommendations for future frontend optimization using Flask-Assets for minification, bundling, and cache-busting.
espi
commented
May 23, 2025
espi
left a comment
Owner
Author
There was a problem hiding this comment.
i would like to see the result of a successful transfer in the file list. also prefer to see a loading animation when a transfer is in progress
Owner
Author
There was a problem hiding this comment.
remove references to the progress bar and instead add a progressive loading indicator to show that there is a transfer in progress
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.
This commit introduces several improvements to the frontend:
Modernized JavaScript:
upload.jsandfile-manager.jsto use the Fetch API with async/await instead of XMLHttpRequest.Enhanced User Experience (UX):
Recommendations: