Skip to content

UX around Discard Changes is unclear #5342

Closed

Description

It is possible in 1.3.2 to Discard a single change (right-clicking on it), or "Discard All Changes...", but there is no way to discard only the changes that are selected (checkboxes).

The old version had this. It is almost a necessary feature. If you want to discard "all but one" from a long list, for example, you have to discard them one by one.

screen shot 2018-08-04 at 12 06 50 pm

Activity

  1. MichaelHillcox commented on Aug 4, 2018

    @MichaelHillcox

    Hi @5Acres I'd say this is more of a usability issue if you want to call it an issue but what you've described is more than possible but you have to do it slighly differently.

    Instead of using the checkboxes use ctr / command ( mac ) and click on the item's you'd like to discard. Once you have selected the ones you no longer want you can right click on any selected item and discard the changes. This will affect all highlighed items.

    Hopefully it should look like this

  2. MichaelHillcox commented on Aug 4, 2018

    @MichaelHillcox

    So, I understand your confusion but I'd also have to argue that Cmd+click is pretty native when being given a list of items like you are presented with within the client.

    The confusing part is when you don't know that the checkboxes are for staging and unstanging changes and nothing to do with the actual act of selecting an item to perform an action.

  3. MichaelHillcox commented on Aug 5, 2018

    @MichaelHillcox

    Unfortuantly I havent put any time into this application myself but there are many put falls, I might suggest using gitKracken for a much nicer interface but unfortuantly I think you'll find yourself in the same situation with the selection issue. ( To be clear, I completely agree its not great. )

    I think it's the best way of doing so far unless someone much better at UX comes along and figures something out. VS code kind of has the same issue, To perform an action on it you have to either use the things that show up at the side or use Ctr + Click to select multiple then rightclick. It's more of a flaw of having it all in the same list. I'm pretty sure google find themselves falling into this issue all the time, google drive in the browser comes to mind.

    If you think you can offer a better solution then I urge you to submit PR / Issue with a proposal for a better system.

    Either way, Hope this is the only issue you find.

  4. shiftkey commented on Aug 7, 2018

    @shiftkey
    Member

    @5Acres @MichaelHillcox thanks for the feedback on this area of the app.

    I'll confirm the two different flows here to ensure we're talking about the right thing:

    • the checkbox state indicates which items are to be included in the commit - I don't believe this affects the context menu items
    • selecting rows (using Shift to select a range of files, or Ctrl/Cmd to select single rows) is used to apply context menu actions to multiple items.

    The old version had this.

    Can you clarify which version you are referring to here? I pulled down the old macOS app to compare and it:

    • had no ability to select multiple rows in the list
    • "Discard Changes" only applied to the selected row, even when all entries were checked

    If you want to discard "all but one" from a long list, for example, you have to discard them one by one.

    #4509 added support to do "Select All" when the changes list has focus, and you can then unselect the row(s) you want to include before right-clicking to discard changes. That's the quickest way I can think of to achieve that today.

    Happy to discuss this further if there's ways to improve this flow, but using the checkboxes to represent the commit state is still something I consider to be very important to Desktop.

  5. added
    user-research
    on Aug 7, 2018
  6. MichaelHillcox commented on Aug 7, 2018

    @MichaelHillcox

    Hi @shiftkey

    From what I could understand and what I have found to be the case myself, it would appear that @5Acres is having and issue dealing with the two different ways of selecting files:

    • Check boxes for staging
    • And actual item selection.

    It adds this layer of complexity to the application some users may find hard to deal with if they haven't been presented with this kind of UX before. I'd some to provide the magic solution but everything I can think of would add more complexity than is already present.

  7. changed the title [-]No way to Discard Selected Changes...[/-] [+]UX around Discard Changes is unclear[/+] on Aug 10, 2018
  8. billygriffin commented on Aug 13, 2018

    @billygriffin
    Contributor

    @5Acres Thanks for the detailed screenshots and description. I think going back to the previous implementation would also be confusing because it would be unclear to people whether "Discard Changes to Selected Files" meant the file you have highlighted (third file down) or the two files with the checkboxes checked. The difference between the active state and the checkboxes exists either way. I think this is something we'll explore further in our usability testing to find out if it's unintuitive for others as well, and thanks for pointing it out.

  9. steveward commented on Nov 1, 2018

    @steveward
    Contributor

    Feedback from @graemeworthy in #5690:

    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
  10. wduquette commented on Jan 22, 2019

    @wduquette

    Got to say, I selected Discard All Changes by accident this morning and lost the morning's work. The dialog is no help at all; visually, if you're working quickly, it looks pretty much the same as the Discard Changes dialog. It was a bonehead thing to do. I'd move Discard All Changes somewhere else (I want to have it available, but not where it is).

    (Thanks for moving the deleted files to the Trash; was able to save everything. But my heart nearly stopped for a moment.)

  11. added and removed
    user-research
    on Jan 22, 2019
  12. billygriffin commented on Jan 23, 2019

    @billygriffin
    Contributor

    Thanks folks for weighing in on this. We discussed it internally, and based on the feedback we've seen from users, we're inclined to agree that the conflation of "Discard one" and "Discard all" is confusing and makes for a pretty dangerous situation, as @wduquette described above (thanks for explaining how it happened!).

    This came about from this issue (#4197), and we didn't fully appreciate how it might fall down as a result while improving discoverability. Our biggest question now is whether just removing "Discard all changes" from the context menu will just reintroduce the discoverability problem for people who want to discard everything, or if multi-select for files will solve the problem (along with the relatively undiscoverable existing context menu item for "Discard all changes" from the header area).

    @desktop/design When you have a chance, would you mind weighing in on this given that there is a previous issue around discoverability?

  13. wduquette commented on Jan 23, 2019

    @wduquette

    "the relatively undiscoverable existing context menu item for "Discard all changes" from the header area": I certainly didn't know that that was there, and it wouldn't have occurred to me to look for such a thing there. Now that I know it's there, I like it; that's the right place for it, much better than on the context menu for a single file.

    Maybe add a "cog" icon to the header, as an indicator that there's a menu? Or a downward pointing triangle icon? You don't need that on the files, because they are items in a list; context menus are expected. But the header isn't an item in the list, and needs a little extra help.

  14. graemeworthy commented on Jan 24, 2019

    @graemeworthy

    I think we should make it a little harder to throw out all of todays work.

    It's true, the context menu on the header is hard to discover (#4197), because you have to know to right-click the header to see it, and it only holds one item. So remove that context menu on the header.

    All of that, #4197 discussion occurred before #5187 landed, and @shiftkey got rid of the problem that was supposed to be solved by 'discard all'

    For everyday users looking for an easy way to get rid of all changes, @shiftkey in #5187 lets a user mass-select their changes (command-A), and call up the context menu: It suggests Discard {number} selected changes

    I propose, at the bare minimum:

    • Remove Discard All Changes from the context menu
    • Remove Context menu from header (the undiscoverable one)

    And if we still want a user to be able to have a one stop shop for throwing out all their work.
    Back in #4197, @mdiep suggested a menu item. It's still a good idea

    • Add an item to the top menu: Branch > Reset And Discard All Changes
  15. ampinsk commented on Jan 25, 2019

    @ampinsk
    Contributor

    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.

  16. billygriffin commented on Jan 25, 2019

    @billygriffin
    Contributor

    Thanks @ampinsk!

    I'm going to go ahead and add help wanted here since it's clear what the initial three steps are, but please let us know if you have questions. Agreed that we hold off on (4) unless it becomes more clearly needed, and I think with the first three we can close this issue.

    Please let us know if you're interested in picking this one up!

  17. added
    help wanted
    on Jan 25, 2019
  18. shiftkey commented on Apr 18, 2019

    @shiftkey
    Member

    @bamwu opened #7356 to propose removing this menu item, which is what we settled based on the recent comments in this discussion.

  19. shiftkey commented on Apr 25, 2019

    @shiftkey
    Member

    This issue has sat for a while without being acted upon, and I believe it's down to the discoverability of the task list. I've extracted this out to #7394, and to prevent further confusion now we know what changes we want to make I'm going to close this out.

  20. billygriffin commented on May 6, 2019

    @billygriffin
    Contributor

    Hi folks! @ampinsk's proposed changes 1-3 have now been merged and shipped to beta in #7415 (thanks @ahuth!), and should go out to production in one of the next two releases. Really appreciate the feedback here, and we'll continue to look at ways to improve it.

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

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions