Skip to content

Confusion between "Discard all changes" and "Discard changes" leading to unintentionally discarding all #5690

Closed

Description

@bill1234567890abc

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,
Bill

Activity

  1. changed the title [-]discard all local changes wronglly[/-] [+]discard all local changes wrongly[/+] on Sep 20, 2018
  2. steveward commented on Sep 20, 2018

    @steveward
    Contributor

    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?

  3. added
    more-info-needed
    on Sep 20, 2018
  4. bill1234567890abc commented on Sep 21, 2018

    @bill1234567890abc
    Author
  5. Daniel-McCarthy commented on Sep 25, 2018

    @Daniel-McCarthy
    Member

    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.
      image

    • Change dialog title solely.
      image

    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.

  6. added
    priority-3
    and removed
    more-info-needed
    on Sep 27, 2018
  7. graemeworthy commented on Nov 1, 2018

    @graemeworthy

    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

    Action Context
    Discard Changes... This file... destructive
    Discard All Changes... All Files... destructive
    Ignore File This file
    Ignore All .js files Project wide, using this file as an example
    Reveal in finder This file
    Open in Atom This file
    Open with Default Program This File
  8. steveward commented on Nov 1, 2018

    @steveward
    Contributor

    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.

  9. 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
  10. billygriffin commented on Nov 1, 2018

    @billygriffin
    Contributor

    Thanks for dropping that in @steveward, I'm going to close this issue in favor of looking at it holistically in #5342.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions