-
Notifications
You must be signed in to change notification settings - Fork 278
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
Fix mozilla/thimble.mozilla.org#1887: File overwrites without notifying user #847
base: master
Are you sure you want to change the base?
Conversation
OK, this is ready for review. Here's what it does, and how to test:
|
Testing now. |
Use the upload file dialog and drag in a file that already exists. Then, select "Keep Existing". The upload dialog stays open with the "Uploading..." spinner visible, like this... I think we should just close the upload dialog once the "Choose what to do" dialog opens. Another small thing This is a bit different in terms of behavior because we rename instead of prompting about duplication. |
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 this is working great. Let's address...
- Popup content & buttons
- Fixing the "upload dialog" issue
Good catch on the upload spinner--I fixed that originally, but somehow lost that part of the commit, maybe in a rebase. It's fixed now.
I don't know what this means. How do you drag in two files with the same name (e.g. your OS won't allow it).
We should discuss this a bit. The idea of the |
^^^ What's up now @humphd ?!?!!? Anyway, let me revisit the popup actions with multiple duplicated files. I hadn't tried that. |
If I drag in two files, both of which are duplicates, the popup shows up twice. Cancel dismissed each popup, but doesn't cancel the entire import. If I drag in a ZIP file with two duplicated files, then I can cancel the entire upload process with the first click of Cancel - which also doesn't feel right, since it only references one file. For the case of multiple files being duplicated, we could list them all in the popup, or say, there are some duplicate files here, [overwrite all] or [keep existing] for all |
Talking with Luke, we're going to try doing this:
@flukeout to figure out the dialog strings. |
@humph Dialog strings... thoughts? We found a file with the same nameThere is already a file called coin.mp3 in your project. We can overwrite it with the new file or keep the existing file. [ Keep all existing files ] [ Use new files ] |
I think that we should be careful about mixing the idea of this specific file vs. all files. The dialog message and the buttons aren't aligned in that way. What about this: We found a file with the same nameThere is already a file called coin.mp3 in your project. We can keep the existing file(s), or overwrite with the new file(s). [ Keep all existing files ] [ Use new files ] |
Finishing work begun by @Simon66 in #712. I've rebased it and fixed some bugs, but I need to do another round of cleanup on this before it's ready for review, which I'll do soon.