Improve file handling in UI#1036
Merged
tdruez merged 2 commits intoaboutcode-org:mainfrom Jun 30, 2025
Merged
Conversation
Contributor
|
@jayanth-kumar-morem I've noticed an issue while reviewing this PR, to reproduce:
|
- Enhance file input handling in the UI to avoid losing selected files when adding new inputs. - Introduce a `selectedFiles` array to store and manage selected files. - Display selected files in the UI with additional features, including a delete button. - Update the `removeFile` function to correctly remove files from both the UI and the `selectedFiles` array. Fixes: aboutcode-org#991 Signed-off-by: Jayanth Kumar <jknani111@gmail.com>
e7bf48a to
27b3927
Compare
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.
selectedFilesarray to store and manage selected files.removeFilefunction to correctly remove files from both the UI and theselectedFilesarray.Fixes: #991
UI Updates
Screen.Recording.2023-12-21.at.2.30.50.AM.mov