Skip to content

A new design for GitHub Desktop TNG:9000 #549

Closed

Description

@donokuda

Last week, we (@niik and @donokuda) focused on the next design for GitHub Desktop. We wanted to iterate on the things that worked in the previous apps (including the alpha) while improving the things that didn't.

Initial problems, constraints and goals

The biggest shortcoming of the current design is its three pane approach which doesn't work unless you have a really wide resolution. There's several ways of addressing this and we explored most if not all of them. We were mindful of the fact that any approach which required showing several diffs at once (in a big scrollable container) would potentially add significant engineering burden so we wanted to avoid that if at all possible.

The second biggest question was what to do with common action such as sync, publish etc. The current design relied on overflow menus for several of these actions but had no affordance in the UI for the most common ones. Here we wanted to maintain a scaled down approach and avoid clutter as much as possible. On macOS we've gotten away with not having a solution here for longer than we should have thanks to the global menu which does not exist on Windows.

Lastly, one area that the current designs had no answers for was the initial welcome flow as well as post-launch sign in.

The mockups contained in this document are all drawn to a 1000px wide window which is what we envision will be the minimum width of the app.

Before

For reference, here's what the current apps look like today:

GitHub Desktop for Mac
image

GitHub Desktop for Windows
image

GitHub Desktop TNG:9000 Alpha
image

After

The most noticable change by far is that the sidebar is gone. We've rolled up the repository selection into a new, tall toolbar. The sidebar served as a visually anchoring element in the previous design and the new toolbar serves the same purpose while incorporating much more than repository selection. The changes and history tabs have been moved from the center of the application to the top of the list of commits and uncommitted files (in the case of changes). This to model the fact that navigation flows from these lists. Everything to the right of the list is essentially a details view of the selected list item, be it a commit or a changed file.

history view macos

History

We've improved on viewing individual commits by showing a list of files changed alongside a diff. We also improved the layout for viewing commit details by giving the header more horizontal room. This also visually groups the commit information, which was something lacking in the alpha's 3-pane layout.

Changes

The changes experience is the same as it exists in Desktop.

changes view macos 2x

Repositories

We removed the repository sidebar into its own dropdown. Creating a new repo will also be accessible here. By removing the sidebar, we gain more space for viewing diffs while simultaneously grouping all repository actions in one location.

repository view

Note that by default only the repository list will be visible when clicking on the repo button in the toolbar. The add/create/clone operations are accessible through the faux menu item at the top of the list.

Branches

The view for managing and adding branches is similar to repositories.

branch view

Comparison graph

We 🔥 it.

While the comparison graph did a great job giving of how far your branch has diverged from master, we felt that we could solve this problem without the use of a graph (and free up more space for more activities!)

Instead of a graph, we now show how far or behind your branch is from the remote. One thing that we haven't carried over (yet) is the concept of a compare branch. While primarily important in the context of pull request creation we do feel that the concept of 'Updating from master' has a lot of value and we'll explore ways of incorporating that outside of the comparison graph.

Magic sync button

A very common feedback with the current clients has been that the sync button is scary. We believe that it currently serves two groups of users very well, the first being those who deeply understand Git and realize what it's doing and the second is those users who have deep trust in the app and doesn't care all that much about its inner workings. It doesn't work so well for the remainder of users and various suggestions have been made over the years on how to address this. The most current thinking being that we'd keep it but with some sort of combo/dropdown so that users could explicitly pull or explicitly push.

We've taken another approach by replacing the ambiguous sync button with a contextual button that changes from “Push,” “Pull,” and “Publish” based on how far or ahead you are from the remote branch. In essense we'll present the action that would be taken by a sync button.

We've opted for using Git terminology primarily so that the button text is something users can throw into Google in order to understand what the action does. Additionally in the case of errors we'll be able to present the underlying error as received from Git to the user (for them to Google). Note that this concept assumes that we keep background fetching in TNG:9000 as we'll need to reflect changes to the remote.

If your branch has commits not yet on the remote we’ll give you the option to push. If this fails (non-fast-forward) we'll present the user with information about why and offer to do a pull. If the user opts out the sync button state will have updated to reflect the now-known fact that the remote is ahead.

If your branch has fallen behind the remote we’ll give you the option to pull.

If you’re both ahead and behind, we’ll make you do a pull before giving you the ability to push. This is similar to what Sync does today except we will do a pull and merge but we will not automatically push that merge commit. Instead we'll leave that action to the user so that we'll never push a result that they're not comfortable with. We might consider updating the button text in this state to something like 'Pull and merge'.

In the scenario where the client thinks you're neither ahead nor behind we'll offer to refresh the repository (a fetch). We've used 'Refresh' as the terminology here. We considered using 'fetch' but we then decided to add the 'Last fetched...' subtitle to all button states as a way of indicating that we do perform background fetches. It'll also give us a place to indicate that a background fetch is underway (we'll spin the sync arrows)

If you haven’t published a repository or branch, this is where you’ll complete that action.

If you aren’t logged into GitHub, then we’ll prompt for you to login.

publish repository github
publish repository enterprise step 1
publish repository enterprise step 2

Menus on Windows

We visually ended up with an OS-agnostic design which allows us to make minor UI adjustments depending on your operating system.

If you’re on Windows, you’ll get a hamburger menu that contains the menu items on macOS.

windows menu

Welcome experience

We’ll use the first launch as an opportunity to get users signed in with GitHub so they can immediately clone a repo and start committing code. We wanted something that felt inviting and friendly so we opted for illustrations. The exact illustration might very well change depending on whether we can score some time from the illustrators to make us something even better than this.

welcome start
welcome sign in

We’ll also help them set up their Git author information and display an example of what their commit will look like in order to hint at what the information is used for. This will be pre-filled with the real name and primary email from the user's GitHub profile.

welcome customize hubot
welcome customize niiiiik

Still TBD

Preferences

We did not have too much time to talk about a settings/preferences view but we imagine this will be a modal popover accessed through the menu.

Command palette

We're still really sold on this but we didn't have time to mock anything, we think this too will be a modal popover accessed through a keyboard shortcut or the menu.


Feedback wanted!

We would love to get feedback on the direction we headed towards and discuss anything we might've missed in our mocks.

🙇

Activity

  1. shiftkey commented on Oct 19, 2016

    @shiftkey
    Member

    General fawing/gushing:

    • the theme and colour selection are pretty great - some nods to GitHub The Website, while being our own thing.
    • love doing away with the repository list sidebar - will simplify a lot of things both for us devs and for users
    • bringing back the ahead/behind count is 💖
    • i'm glad "update from master" and comparing branches is still a thing. making that a standalone feature would be aces.
    • love the contextual "sync" button (and replacing the "sync" word with more context on what the app is planning to do)

    Actual thoughts:

    • repositioning the History tab makes me pause and question whether that's still the best name for it. I'm fine with how things are currently structured in the app, so perhaps it could be renamed to something like "Log" or "Commits" to align better with the Git model.
    • the commit view doesn't display a commit description of any sort - given this can be any length of text, how do you think we should render this without encountering the dual-scrollbar scenario (one for the whole commit, and one for the diff) that we talked about in commit summary panel is not scrollable #519?
    • the ability to filter branches hasn't made it to the mockup - is that a conscious decision, or just something overlooked?
    • we now have a consistent way to list repositories and branches in the app, and add/create is done at the header, which is ✨ - I think the last piece of this is removing items. Previously we had "delete current branch" menu items, and "remove" context menus for repositories. It'd be great to make this consistent for both (perhaps ala the slack "hover shows the remove icon" but that's not great for accessibility and keyboard usage) - not sure if that's on your radar.
      • Desktop (Windows) had the ability to import existing repositories into the app as part of the Welcome flow - is it worth mocking that out in the short-term?
  2. niik commented on Oct 19, 2016

    @niik
    Member

    the commit view doesn't display a commit description of any sort - given this can be any length of text, how do you think we should render this without encountering the dual-scrollbar scenario (one for the whole commit, and one for the diff) that we talked about in #519?

    We didn't have time to mock this but our thoughts is that we'll show the first five or so rows of a long commit message and then add a "Read more..." or "Expand" link button at the end if it still overflows. Clicking on that would expand the commit header to take over the diff and file list, essentially entering into a "zen-mode"-ish view for reading long messages.

    the ability to filter branches hasn't made it to the mockup - is that a conscious decision, or just something overlooked?

    What we said was that all lists should be keyboard searchable, meaning that you should be able to pop up either the repository selection or the branch selection and start typing and selection would move to the matched prefix. That may or may not be enough and we might have to add back a filter but let's flesh it out first and see. The command palette will be another way of autocompleting a branch name.

    we now have a consistent way to list repositories and branches in the app, and add/create is done at the header, which is ✨ - I think the last piece of this is removing items. Previously we had "delete current branch" menu items, and "remove" context menus for repositories. It'd be great to make this consistent for both (perhaps ala the slack "hover shows the remove icon" but that's not great for accessibility and keyboard usage) - not sure if that's on your radar.

    We're doing away with overflow menus for now, we talked about something similar to what you're describing, i.e. a remove button on hover. I don't think this necessarily hurts accessibility as it'll still be possible to remove the currently selected repository using the app menu (that's not going away) and it can be keyboard accessible by hitting the delete button while moving through the list.

    Desktop (Windows) had the ability to import existing repositories into the app as part of the Welcome flow - is it worth mocking that out in the short-term?

    My thoughts is that no, we shouldn't mock that out for now. It's never been a feature we've put much effort into on Windows, Mac has never had it and it's worth a lot to simplify the welcome flow.

  3. joshvera commented on Oct 19, 2016

    @joshvera

    👍 This is awesome! Is there a reason the Publish Repository action is left-aligned? Maybe if it were right-aligned then navigating a repository could be kept separate from the actions we take on a repository? Would that be strange on Windows?

  4. niik commented on Oct 19, 2016

    @niik
    Member

    Is there a reason the Publish Repository action is left-aligned? Maybe if it were right-aligned then navigating a repository could be kept separate from the actions we take on a repository? Would that be strange on Windows?

    Yeah, since we're trying to keep the window controls inline rather than having a title bar it would be awkward on Windows. Even if that weren't the case I think that it makes sense from an information hierarchy/flow perspective to have it next to the branch and repo selections. Users select a repository, create or pick a branch and then push their changes to the remote. If we decide to include repo creation at some point that'll be the next action after.

    The decision to put sync to the right in our current clients predates me but I imagine that was done (at least on Windows) to balance the UI a bit. I don't think that's a problem in this design.

    What do you think would be the biggest thing we'd gain by separating the sync button from the selectors?


    Unrelated
    Something that we forgot to include in the text above there's differences between platforms like the order of Ok and Cancel buttons and title casing instead of sentence casing for buttons. We are aware of these differences and we should stay consistent with the host operating systems but for practically reasons we might have strayed from convention in these mocks.

  5. joshvera commented on Oct 19, 2016

    @joshvera

    What do you think would be the biggest thing we'd gain by separating the sync button from the selectors?

    Since the Publish Repository/Sync/Pull Request buttons are modal actions, I think we gain spatial consistency on macOS. Making a distinction between where you go to navigate content and where you go to perform actions continues to be a general guideline on macOS and iOS. But if we're willing to 🔪 that for the sake of cross-platform consistency, the macOS mockup doesn't look quite as balanced as the Windows one to me.

    windows
    macos

    It also doesn't feel like there's anything to do on the right-side of the app. While the emphasis on information hierarchy is prevalent on Windows, toolbar controls on macOS are often organized into subsets and arranged according to functionality or frequency of use.

    P.S. I know the mockups are new but I'd ❤️ to see the current Desktop TNG toolbar on the Mac version as well. The seamless toolbar look is 👌.

  6. joshaber commented on Oct 19, 2016

    @joshaber
    Contributor

    Thanks for all the work you guys did on this 💖 I’m a big fan of rethinking how the app navigation works. Now TNG will actually look like a TNG 🤘

    Here are some thoughts by section. Some probably too specific and some more general.

    Repositories

    I love it. You’re both beautiful people.

    Branches

    the ability to filter branches hasn't made it to the mockup - is that a conscious decision, or just something overlooked?

    What we said was that all lists should be keyboard searchable, meaning that you should be able to pop up either the repository selection or the branch selection and start typing and selection would move to the matched prefix. That may or may not be enough and we might have to add back a filter but let's flesh it out first and see.

    This makes me a little uneasy with respect to discoverability. It’s not unheard of on macOS, but I also wouldn’t think of it without prompting. Switching branches is such a common function that it has to be fast an unobtrusive.

    The grayed-out window feels a bit … heavy? … to me? But I could see the argument that switch branches is a context switch. Food for thought, I guess.

    Comparison graph

    Yes 🔥 yes 🙏

    Magic sync button

    I love it. You’re both beautiful people.

    We considered using 'fetch' but we then decided to add the 'Last fetched...' subtitle to all button states as a way of indicating that we do perform background fetches.

    ¿Por que no ambos? If we’re using “Push” and “Pull” it seems maybe a little silly not to use “Fetch” while we’re at it.

    Menus on Windows

    I love it. You’re both beautiful people.

    Welcome experience

    I love it. You’re both beautiful people.

    General

    I agree with @joshvera that the right side of the toolbar feels unbalanced, especially on macOS. I don’t have any great suggestions.

    Was the choice to use the standard titlebar on macOS intentional or just Because Mocks? I prefer bringing the gray-blue up into the titlebar to make the app look more unified. The standard titlebar with a completely custom UI below creates some sad dissonance in my brain.

  7. niik commented on Oct 19, 2016

    @niik
    Member

    Loving the feedback thus far ❤️


    the macOS mockup doesn't look quite as balanced as the Windows one to me.

    Yeah, this is absolutely fair. We should explore ways of making this less noticeable but my initial reaction is that consistency is important here as far as button placements go. There could definitely be other ways of addressing it though.

    This makes me a little uneasy with respect to discoverability. It’s not unheard of on macOS, but I also wouldn’t think of it without prompting. Switching branches is such a common function that it has to be fast an unobtrusive.

    This is great context and something I wasn't quite aware of. It would be discoverable on Windows, expected behavior even. As for the 'fast' part I'm really hoping that the command palette becomes the preferred way of quickly switching branches (open palette, type co and first characters of branch name, hit enter, boom).

    The primary reason I got rid of the repo filter in the initial mocks was in part because our data tells us that most users don't have that many repositories as well as a way to declutter the interface. With branches the first take is no longer true and with our new dropdowns we have the screen estate to add explicit filtering.

    The grayed-out window feels a bit … heavy? … to me? But I could see the argument that switch branches is a context switch. Food for thought, I guess.

    Are you talking about the modal overlay? If so we can play with a different opacity but I think that an overlay is necessary since the branch and repository dropdown are primarily of the same background color as the rest of the app and we're going for a very flat look without shadows.

    ¿Por que no ambos? If we’re using “Push” and “Pull” it seems maybe a little silly not to use “Fetch” while we’re at it.

    Yeah, I feel like we had a good discussion about this at the time but I can't quite recall it. Perhaps @donokuda remembers. We can revisit this when once we've fleshed it out and have a sense of how it feels.

    Was the choice to use the standard titlebar on macOS intentional or just Because Mocks? I prefer bringing the gray-blue up into the titlebar to make the app look more unified.

    It was intentional since the actions in the toolbar coverts the entire vertical space and we didn't want the traffic lights intruding on the estate of the buttons. I think if we wanted to do away with the title bar we'd have to introduce some form of fake title bar ourselves in order to create an area where the traffic lights can live. It's definitely something we can play around with but that should provide some context as to why we made it that way.

    The standard titlebar with a completely custom UI below creates some sad dissonance in my brain.

    Interesting, is there any precedence for a non-native ui still using a normal title bar on macOS? On Windows this has gotten to be quite common lately with apps like Atom and Slack.

  8. joshaber commented on Oct 19, 2016

    @joshaber
    Contributor

    I think if we wanted to do away with the title bar we'd have to introduce some form of fake title bar ourselves in order to create an area where the traffic lights can live.

    Hmm, why's that? We have it unified in the current TNG and I think it works fine. To be clear, I'm advocating for maintaining the 22 pixels of title bar, but making it blue-gray like the toolbar.

    The standard titlebar with a completely custom UI below creates some sad dissonance in my brain.

    Interesting, is there any precedence for a non-native ui still using a normal title bar on macOS? On Windows this has gotten to be quite common lately with apps like Atom and Slack.

    Atom recently added the option to bring the theme into the titlebar:

    screen shot 2016-10-19 at 3 59 13 pm

    Slack also unifies the titlebar:

    screen shot 2016-10-19 at 3 58 46 pm

  9. donokuda commented on Oct 19, 2016

    @donokuda
    ContributorAuthor

    Hmm, why's that? We have it unified in the current TNG and I think it works fine. To be clear, I'm advocating for maintaining the 22 pixels of title bar, but making it blue-gray like the toolbar.

    I'm 👍 for trying out a dark header. Here's a mockup of what GHD TNG:9000 could look like with one:

    dark-header

    Yeah, I feel like we had a good discussion about this at the time but I can't quite recall it. Perhaps @donokuda remembers. We can revisit this when once we've fleshed it out and have a sense of how it feels.

    I'm not sure if the difference between "fetch" and "pull" is clear to someone new to git. I'm worried that someone would think the result of fetch was pulling down changes. By using "refresh," it's a little more clear what we're doing and introduce the term "fetch" in the description of the button.

    That said, I could be over thinking it. It might make more sense to start by using "fetch" and gather feedback around whether or not the resulting action is clear.

  10. niik commented on Oct 19, 2016

    @niik
    Member

    To be clear, I'm advocating for maintaining the 22 pixels of title bar, but making it blue-gray like the toolbar.

    Ah, I misunderstood. Definitely open to tweaking the title bar color as long as we have a clear divider between titlebar and toolbar

  11. haacked commented on Oct 21, 2016

    @haacked
    Contributor

    First of all, I agree with @joshaber. You're both beautiful people.

    It's never been a feature we've put much effort into on Windows, Mac has never had it and it's worth a lot to simplify the welcome flow.

    Yes to setting 🔥 to the import existing repositories feature. Perhaps instead, we should have the last screen of the Welcome wizard describe how to add repositories to the app. I love the drag and dropping of folders, but not sure how discoverable that is. If the welcome wizard described that, then that'd be aces. Maybe even with a visual animation showing it.

  12. joshaber commented on Oct 27, 2016

    @joshaber
    Contributor

    A random thought. One of the things I liked about Gitbox was that it made it very clear what push and pull effected:

    untitled

    Pulling goes into the current branch, pushing goes into the remote branch. I wonder if we could do something similar:

    untitled2

    So it's not just indicating up and down, it's pull into my current branch or pushing from the current branch to the remote.

  13. donokuda commented on Oct 27, 2016

    @donokuda
    ContributorAuthor

    A random thought. One of the things I liked about Gitbox was that it made it very clear what push and pull effected

    💯

    Just came back from product design review and one of the feedback around our sync replacement is that there's an opportunity to be more explicit with what the action is and what it affects.

    Another idea is to include the branch name in the Pull origin text, maybe something like Push to origin/master and Pull from origin/super-duper-long-branch-name (albeit, possibly with truncating.)

  14. joshaber commented on Nov 4, 2016

    @joshaber
    Contributor

    Just came back from product design review and one of the feedback around our sync replacement is that there's an opportunity to be more explicit with what the action is and what it affects.

    @donokuda, @niik I'm gonna start work on the button (see #598). I'm currently going off the original design, but let me know if there are any changes we wanna make.

  15. joshaber commented on Dec 8, 2016

    @joshaber
    Contributor

    I think this has all been done or split into their own issues (#720, #730).

    Any objections to closing this?

  16. joshaber commented on Dec 12, 2016

    @joshaber
    Contributor

    💥

  17. ghost closed this as completedon Dec 12, 2016
  18. ghost locked as resolved and limited conversation to collaborators on Jul 22, 2018
  19. ghost unlocked this conversation on Sep 26, 2018
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions