Repository navigation
Add new repo button in repository dropdown - #5878
Conversation
The field itself (i.e. the textbox) used to have a padding but that was from before we had a wrapper around it so let's use that instead and add a margin, that way we don't have to special case additional row components such as the new branch button
|
@niik I love that we're doing this! ❤️ In looking at the branch dropdown where "New" is next to the input for filtering, @ampinsk called out that it could be confusing because the two can be conflated. I wonder if similarly here there would be value in separating the filter input from the "Add" button, which might also give a bit more real estate to allow the button to say something more explicit (like "Add repository" instead of "Add"). Thoughts? |
|
The UI was tested for this change, and overall it functions well. Two notes:
Build/OS: 1.4.3-beta0, mac |
My feedback was primarily on this. That seems like it might theoretically be nice, but I'm concerned about the conflation of creating a new repo with filter among existing repos. I think they're separate concerns and while it's a slick implementation to type in a new one, I think separating different actions would help prevent confusion for beginners. |
I'd rather keep this change focused on the button and flow, and if we notice a theme of feedback in this vein we can iterate on the UX later. |
shiftkey
left a comment
There was a problem hiding this comment.
Everything looks great, just one suggestion
| className="new-repository-button" | ||
| onClick={this.onNewRepositoryButtonClick} | ||
| > | ||
| {__DARWIN__ ? 'Add' : 'Add'} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I think in this instance, with the added dropdown, I don't think this is as easily conflated.
@niik and I chatted through this in Slack, and we had some concerns about exposing all of the actions since it really crowded the menu in a way that made everything harder to parse, and might be confused for a tab menu. These menus weren't really designed to accommodate exposing multiple actions like this so we're in a little bit of a bind until we can maybe redesign these areas more holistically
I don't feel too strongly either way here. I don't think it's necessarily confusing, but if we feel strongly that it's conflating concerns I would be fine not having that behavior. Have we heard of anyone being blocked or confused by this behavior? |
It's definitely an assumption I hold because I've always been confused by it. Traditionally an input field next to a button means that the button is a submit for that input field, so that's the source of my confusion. But if y'all disagree with that assumption, I'm fine to continue as is now and test it later.
I also don't think we should expose all the options individually, but rather I was suggesting that the verbiage on the dropdown button could be more explicit potentially. So instead of "Add" we might be able to use "Add repository" with the same three options available in the dropdown. Totally fine if we don't think that's better, but just wanted to clarify. 😄 |
@billygriffin I think we're constrained by the available horizontal space here, so I'm fine with just using "Add" for now until we can think about this area more broadly, like @ampinsk suggested. |
shiftkey
left a comment
There was a problem hiding this comment.
Code is fine. I'm going to let this sit until Wednesday am PST to ensure we're all on the same page about the UX discussion.
|
Nothing further raised here, and it's Thursday, so I'm gonna take this in. |
101010431
left a comment
There was a problem hiding this comment.
/app/src/ui/repositories-list/repositories-list.tsx
|
/app/styles/ui/_repository-list.scss |
We've heard in research and feedback that users often look in the repository dropdown for a way to add repositories. This adds an "add" dropdown button to the repository sidebar similar to what we have in the branches dropdown to hopefully alleviate that problem.
This addresses one part of #5566 and I plan to tackle the blank slate view when filtering in a follow-up PR.