Repository navigation
Description
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:
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
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.
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.
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.
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.
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.
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.
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.
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
shiftkey commentedon Oct 19, 2016
General fawing/gushing:
Actual thoughts:
niik commentedon Oct 19, 2016
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.
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'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.
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.
joshvera commentedon Oct 19, 2016
👍 This is awesome! Is there a reason the
Publish Repositoryaction 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?niik commentedon Oct 19, 2016
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
OkandCancelbuttons 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.joshvera commentedon Oct 19, 2016
Since the
Publish Repository/Sync/Pull Requestbuttons 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.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 👌.
joshaber commentedon Oct 19, 2016
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
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.
¿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.
niik commentedon Oct 19, 2016
Loving the feedback thus far ❤️
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 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
coand 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.
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.
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.
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.
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.
joshaber commentedon Oct 19, 2016
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.
Atom recently added the option to bring the theme into the titlebar:
Slack also unifies the titlebar:
donokuda commentedon Oct 19, 2016
I'm 👍 for trying out a dark header. Here's a mockup of what GHD TNG:9000 could look like with one:
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.
niik commentedon Oct 19, 2016
Ah, I misunderstood. Definitely open to tweaking the title bar color as long as we have a clear divider between titlebar and toolbar
haacked commentedon Oct 21, 2016
First of all, I agree with @joshaber. You're both beautiful people.
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.
joshaber commentedon Oct 27, 2016
A random thought. One of the things I liked about Gitbox was that it made it very clear what push and pull effected:
Pulling goes into the current branch, pushing goes into the remote branch. I wonder if we could do something similar:
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.
donokuda commentedon Oct 27, 2016
💯
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 origintext, maybe something likePush to origin/masterandPull from origin/super-duper-long-branch-name(albeit, possibly with truncating.)joshaber commentedon Nov 4, 2016
@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.
joshaber commentedon Dec 8, 2016
I think this has all been done or split into their own issues (#720, #730).
Any objections to closing this?
joshaber commentedon Dec 12, 2016
💥