Skip to content

surface network error when fetching repositories in clone dialog #2796

Closed

Description

@tierninho

We should surface errors in the clone repo modal if there is no internet connection. The loading icon attempts to load repos and then eventually stops when it realizes there is no connection, however the user is not notified.

screen shot 2017-09-20 at 13 37 10

This applies to the Github and Enterprise tabs, as the URL shows the following error, which isn't too user-friendly either:

screen shot 2017-09-20 at 13 37 46

tested v1.0.0, mac

Activity

  1. changed the title [-]Show errors when cloning repos with no internet[/-] [+]surface network error when fetching repositories in clone dialog[/+] on Sep 21, 2017
  2. shiftkey commented on Sep 21, 2017

    @shiftkey
    Member

    Tweaked the title to indicate it's related to listing repositories, not the actual clone step

  3. shiftkey commented on Sep 21, 2017

    @shiftkey
    Member

    @tierninho could you open a separate issue for the clone failing due to a network issue? That's going to require some work with our error handlers to surface a better message, which is different to a network issue when looking up repositories for the user.

  4. added
    design-input-needed
    on Sep 24, 2017
  5. shiftkey commented on Sep 24, 2017

    @shiftkey
    Member

    Hey @desktop/design, want to give some input on what a friendly network error might look like here in the list/dialog? Or should we just salmon-pink brutalism up the place for now?

  6. ampinsk commented on Nov 21, 2018

    @ampinsk
    Contributor

    screen shot 2018-11-21 at 12 43 13 pm

    How's something like this?

    cc @billygriffin @donokuda

  7. donokuda commented on Nov 21, 2018

    @donokuda
    Contributor

    @ampinsk Looks good to me!

  8. billygriffin commented on Nov 26, 2018

    @billygriffin
    Contributor

    Looks good to me as well @ampinsk! My only question would be what happens when the user clicks "Try again?"

  9. added
    help wanted
    and removed
    design-input-needed
    on Nov 26, 2018
  10. ampinsk commented on Nov 26, 2018

    @ampinsk
    Contributor

    I was thinking it would try reloading the list. Not totally necessary functionality, so that link could be removed.

  11. billygriffin commented on Nov 26, 2018

    @billygriffin
    Contributor

    Sounds great @ampinsk, thanks. For whomever picks this up, if there's a nice and fairly simple way to implement the "Try again?" piece of this to attempt to reload the list, that's a nice to have. But implementing it without that would still be a nice step in the right direction and sufficient to close this issue.

  12. Daniel-McCarthy commented on Nov 26, 2018

    @Daniel-McCarthy
    Member

    I would love to give this a try. I took a swing at it and have the functionality working and am now starting to style it to be like the proposed design, and then I can clean up the implementation a bit.

    I believe the Try Again? should not be a problem. I seem to have that working as expected.

  13. billygriffin commented on Nov 27, 2018

    @billygriffin
    Contributor

    Awesome, thanks @Daniel-McCarthy! ❤️

  14. billygriffin commented on Mar 12, 2019

    @billygriffin
    Contributor

    Closing this issue along with the associated PR because we haven't seen evidence from users that this is a very common problem, and the current remedy for it isn't bad. #6297 (comment)

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