the new dangerous 'Discard All Changes' option
See original GitHub issueDescription
‘Discard All Changes’ option is not safe at the moment, because of the following:
-
It is very easy to click it instead of ‘Discard Changes’ (single file)
-
No confirmation dialog appears when we click ‘Discard All Changes’ (provided that we’ve chosen to avoid these confirmation dialogs)
Version
- GitHub Desktop: version 1.1.1
- Operating system: Windows 10 64 bit
Steps to Reproduce
- when you have uncommitted changes - click on ‘Changes’ tab on the left
- right click on any file
- you can see the standard ‘Discard Changes’ option
- you can also see the dangerous ‘Discard All Changes’ option which is located extremely close to the previous one.
- discard single file by clicking ‘Discard Changes’ option
- confirmation dialog appears - you can see ‘Do Not Show This Message Again’ checkbox
- tick the checkbox and click on ‘Discard Changes’ button
- try discarding all files by clicking ‘Discard All Changes’ option
- result - you’ve lost all your changes (perhaps even the important ones) which could be easily avoided if confirmation dialog was mandatory when discarding all changes.
Expected Behavior
Even if we’ve chosen to avoid confirmation dialog when reverting single file (‘Discard Changes’ option), the ‘Discard All Changes’ one is supposed to cause the confirmation dialog to appear anyway, because we risk losing all uncommitted changes.
Secondly, the ‘Discard All Changes’ option should be located a few menu items away from the ‘Discard Changes’ one.
Actual Behavior
If we’ve chosen to avoid the confirmation dialog, when reverting single file - the dialog also does not appear when reverting all changes, thus the new functionality is kind of a trap both for novice and experienced GitHub Desktop users.
Additional Information
The ‘Discard All Changes’ option is absolutely necessary, so please do not remove it.
Thanks in advance!
Logs
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:5 (4 by maintainers)
Top GitHub Comments
@desktop/design How do you all feel about forcing the confirmation dialog to appear, irrespective of the preference being set to not show them, when discarding all changes?
@ideaguy3d The changed files should be in the Trash/Recycle Bin.