Skip to content

improve "discard all changes" UX #7394

Closed

Description

@shiftkey

Please describe the problem you think should be solved

For the longest time we've had the ability to discard all changes by right-clicking the "Changes" header:

This was available on at least the classic Windows app, and it came over in #1647 because we needed somewhere to keep this functionality. Context menus for non-interactive elements like headers aren't very intuitive, but we marched on.

Then we added it to the context menu for a changed file in #4188 (requested in #4314):

This has lead to some confusion in #5342 because it is right next to the "Discard Change" menu item, and if a user doesn't have the "Confirm Discard Changes..." setting enabled they could accidentally move all the files to the trash.

This combination of "header context menu" and "item context menu" makes me think that neither place is the right place for this functionality.

[Optional] Do you have any potential solutions in mind?

in #5342 (comment) we identified a list of changes that will help us to improve this area:

I think we can solve this through implementing these four things, I believe in this order:

  1. Remove Discard All Changes from file context menu
  2. Add Discard All Changes as a top menu item
  3. Remove Discard All Changes from the header context menu
  4. Add a UI menu to the changes top bar (containing Discard All Changes and potential future actions)

For anyone who picks this up:

For 2, I think Discard All Changes should live in Branch > Discard All Changes in a new section between the first and the second section.

For 4, I think we can wait and see how 1-3 feels first before implementing.

Activity

  1. changed the title [-]"discard all changes" context menu is not discoverable[/-] [+]"discard all changes" header context menu is not discoverable[/+] on Apr 24, 2019
  2. shiftkey commented on Apr 24, 2019

    @shiftkey
    MemberAuthor

    We've made this point before but it got buried in a more complex issue: #5342 (comment)

  3. tierninho commented on Apr 25, 2019

    @tierninho
    Contributor

    One option is to combine the Discard all Changes and the check all toggle under one cog icon that opens a drop down. This opens the door to add other functionality if needed, like potentially adding the Undo commit button.

    56692795-5c000980-66b9-11e9-8020-d9e0cfedae12

  4. changed the title [-]"discard all changes" header context menu is not discoverable[/-] [+]improve "discard all changes" UX[/+] on Apr 25, 2019
  5. shiftkey commented on Apr 25, 2019

    @shiftkey
    MemberAuthor

    I've updated the issue body to mention the list of changes we proposed, and I'm going to mark this as help-wanted for someone to pick up.

  6. added
    help wanted
    on Apr 25, 2019
  7. ahuth commented on Apr 26, 2019

    @ahuth
    Contributor

    Should be resolved in #7415, with the Discard All Changes item moved to the Branches menu.

  8. karimcambridge commented on Jun 7, 2019

    @karimcambridge

    WHY?

    There was nothing wrong with the placement of this, both could've existed. The place where it was before actually made alot of sense. But... OK.

  9. kylefox commented on Jun 9, 2019

    @kylefox

    I miss the "Discard all changes..." context menu 😕I never would've thought to look under the "Branch" menu item.

  10. xv commented on Jun 9, 2019

    @xv

    This is such a 💩 change. It doesn't make any sense having this option hidden in the Branch menu. I wasted a good five minutes trying to find the damn option, in which I still didn't and had to come here only to know where it is by reading @kylefox's comment. Bring the old stuff back. Terrible UX choice.

  11. shiftkey commented on Jun 10, 2019

    @shiftkey
    MemberAuthor

    Please follow along with our discussion about this in #7696

  12. JosephTLyons commented on Jun 10, 2019

    @JosephTLyons
    Contributor

    Bring back the old functionality or add the gear icon as a button for a drop-down menu. Putting this ONLY in a menu has completely screwed with how quickly and efficiently I can work with Desktop.

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

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions