You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Confusion between "Discard all changes" and "Discard changes" leading to unintentionally discarding all #5690
Just now I wanted to discard one local file change. I opened the right mouse click and chose discard changes. Unfortunately I chose "discard all" because "discard one" is close to "discard all". I didn't have a careful look at confirmation dialog and confirmed the action. Then all work I have done today was discarded.
Thanks God. I restored them from recycle bin on windows. I guess I'm not the first that discard changes wrongly.
My complain is that the two discard changes are too close and easily choose by mistake.
My idea is to separate them within an apparent distance.
Thanks for the feedback about this @bill1234567890abc. When you select Discard all changes a confirmation dialog appears that explicitly states the number of files that will have discarded changes, which should help reduce cases where all changes are accidentally discarded. However I can understand how this could be missed if you are assuming you clicked the correct option.
Would changing the title of the Discard Changes confirmation button to Discard All Changes be helpful in this scenario?
Hi Steve,
Thanks for your quick response. It's fine to change button text of confirmation and change confirmation dialog title as well.
I also would like to see a confirmation again dialog for discard all changes. As you know, people are always insensitive to text message. If you provide one confirmation chance to change one file change, and two chances for all file changes, that's big difference that can be felt easily.
- bill
I can certainly see the potential confusion here. I definitely see where changing the dialog title and/or button text can be useful.
Here are two possible iterations.
Change dialog title & confirm button text.
Change dialog title solely.
I think that at a bare minimum the dialog title should be changed as it is the largest and most apparent change. However, the button gives the user a final chance to notice.
Thanks for the feedback @graemeworthy. There is an discussion about improving the UX around the Discard functionality in #5342. I'm going to drop your feedback in there.
changed the title [-]discard all local changes wrongly[/-][+]Confusion between "Discard all changes" and "Discard changes" leading to unintentionally discarding all[/+]on Nov 1, 2018
Activity
[-]discard all local changes wronglly[/-][+]discard all local changes wrongly[/+]steveward commentedon Sep 20, 2018
Thanks for the feedback about this @bill1234567890abc. When you select
Discard all changesa confirmation dialog appears that explicitly states the number of files that will have discarded changes, which should help reduce cases where all changes are accidentally discarded. However I can understand how this could be missed if you are assuming you clicked the correct option.Would changing the title of the
Discard Changesconfirmation button toDiscard All Changesbe helpful in this scenario?bill1234567890abc commentedon Sep 21, 2018
Daniel-McCarthy commentedon Sep 25, 2018
I can certainly see the potential confusion here. I definitely see where changing the dialog title and/or button text can be useful.
Here are two possible iterations.
Change dialog title & confirm button text.

Change dialog title solely.

I think that at a bare minimum the dialog title should be changed as it is the largest and most apparent change. However, the button gives the user a final chance to notice.
graemeworthy commentedon Nov 1, 2018
This has happened a few times, and the dialog doesn't seem to stop it from happening.
It seems like the context dropdown is the wrong place for this item.
Right clicking a file is for actions related to that file
Lets look at the rest of the items in that list
steveward commentedon Nov 1, 2018
Thanks for the feedback @graemeworthy. There is an discussion about improving the UX around the
Discardfunctionality in #5342. I'm going to drop your feedback in there.[-]discard all local changes wrongly[/-][+]Confusion between "Discard all changes" and "Discard changes" leading to unintentionally discarding all[/+]billygriffin commentedon Nov 1, 2018
Thanks for dropping that in @steveward, I'm going to close this issue in favor of looking at it holistically in #5342.