Skip to content

Add new repo button in repository dropdown - #5878

Merged
shiftkey merged 6 commits into
masterfrom
add-new-repo-button
Oct 18, 2018
Merged

shiftkey merged 6 commits into
masterfrom
add-new-repo-button

Conversation

@niik

@niik niik commented Oct 11, 2018

Copy link
Copy Markdown
Member

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.

screen shot 2018-10-11 at 16 59 58

This addresses one part of #5566 and I plan to tackle the blank slate view when filtering in a follow-up PR.

niik added 5 commits October 10, 2018 18:56
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 niik added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Oct 11, 2018
@billygriffin

billygriffin commented Oct 11, 2018 •

Copy link
Copy Markdown
Contributor

@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?

@tierninho

Copy link
Copy Markdown
Contributor

The UI was tested for this change, and overall it functions well.

Two notes:

  • Should we arrange the list to mimic the order in the File menu?
  • If the user enters text in the filter, should the text be carried through to the repo name (as adding a new branch does this).

Build/OS: 1.4.3-beta0, mac

@billygriffin

Copy link
Copy Markdown
Contributor

If the user enters text in the filter, should the text be carried through to the repo name (as adding a new branch does this).

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.

@shiftkey

Copy link
Copy Markdown
Member

If the user enters text in the filter, should the text be carried through to the repo name (as adding a new branch does this).

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
shiftkey previously approved these changes Oct 12, 2018

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ampinsk

ampinsk commented Oct 12, 2018

Copy link
Copy Markdown
Contributor

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 think in this instance, with the added dropdown, I don't think this is as easily 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?

@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

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 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?

@billygriffin

Copy link
Copy Markdown
Contributor

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.

@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 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. 😄

@shiftkey shiftkey self-assigned this Oct 13, 2018
@shiftkey

Copy link
Copy Markdown
Member

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 shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@outofambit outofambit added this to the 1.4.x milestone Oct 16, 2018
@shiftkey shiftkey modified the milestones: 1.4.x, 1.4.4 Oct 17, 2018
@shiftkey

Copy link
Copy Markdown
Member

Nothing further raised here, and it's Thursday, so I'm gonna take this in.

@shiftkey
shiftkey merged commit b39a8c6 into master Oct 18, 2018
@shiftkey
shiftkey deleted the add-new-repo-button branch October 18, 2018 14:37
@outofambit outofambit modified the milestones: 1.4.4, 1.5.0 Oct 24, 2018

@101010431 101010431 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/app/src/ui/repositories-list/repositories-list.tsx

@101010431

Copy link
Copy Markdown

/app/styles/ui/_repository-list.scss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants