-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow selecting multiple files from left menu for deleting #426
Conversation
guergana
commented
Jun 14, 2024
•
edited
Loading
edited
- fixes Problem selecting multiple files on the left menu #341
Deploying opendataeditor with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guergana
Great it works for deletion!
I'm not sure if it's related to this change or non-related regression but when you add a new file it doesn't open it
This task confirms that we need to start adding tests soon. Thanks for checking it. I will look into it. |
I have tested and in the |
Hi @guergana, have you pushed the commit to the remote branch? |
Oh. I was having problems with my connection yesterday. Will try again. Thanks for the heads up |
@guergana this is working properly in my machine. I would suggest one extra change in the confirm dialog: Maybe it is worth to list all files? Or changing it to something like: Are you sure you want to delete all selected files? When we are about to delete multiple ones. cc @romicolman |
Hi all! Let's go with @pdelboca's option: "Are you sure you want to delete all selected files?" - When selecting more than one. I also tested the message when deleting folders and it's OK: "Are you sure you want to delete this folder?" However, I think we will have a problem whenever the user selects a folder an let's say a couple of files outside the folder. The message should be: Are you sure you want to delete all selected elements? @guergana let me know if I should create a separate ticket to adjust all messages. |
@romicolman No, I think changing the messages belongs in this change. Will do it later. :) |
729a637
to
e6f8c4f
Compare
@romicolman one final test, please. I have changed some things. I have tested but could you make a final test? |
@pdelboca could you check the code again? I have rewritten the PR since your approval because deleting a folder and a file at the same time wasn't working, so now I have unified the logic into one dialog. 🙏 |
Attempt with new approach Add selectedMultiplePaths state variable Add selected case Clear selectedMultiPaths when only a file is selected Fix expanding folder Remove leftover changes Add case for when selectedFile is a string, not an array Fix style errors
ee2601f
to
6eead5e
Compare
Hello, @roll the recent store migration has created problems for me to merge this issue. Could you help me fix the merge errors? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @guergana !
I'm going to test it now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally-wise -- works for me 👍