Skip to content

"no repositories" view in repositories list lacks ability to quickly add a repository #6474

Closed

Description

@shiftkey

Please describe the problem you think should be solved

In #5878 we added the ability to quickly add a new repository when looking at the repository list:

private renderPostFilter = () => {
return (
<Button
className="new-repository-button"
onClick={this.onNewRepositoryButtonClick}
>
Add
<Octicon symbol={OcticonSymbol.triangleDown} />
</Button>
)
}

One limitation of this feature is that it's baked into the FilterList:

<FilterList<IRepositoryListItem>
rowHeight={RowHeight}
selectedItem={selectedItem}
filterText={this.props.filterText}
onFilterTextChanged={this.props.onFilterTextChanged}
renderItem={this.renderItem}
renderGroupHeader={this.renderGroupHeader}
onItemClick={this.onItemClick}
renderPostFilter={this.renderPostFilter}

This is only rendered when there are repositories to display:

public render() {
if (this.props.repositories.length < 1) {
return this.noRepositories()
}

This means our "no repositories" view lacks the ability to quickly add repositories, so users will have to go back to the old way of opening the File menu to find these options:

[Optional] Do you have any potential solutions in mind?

I'm not sure if this came up as part of the research behind the blank slate changes coming in 1.6, so cc @niik for any extra context before we start thinking about solutions

Activity

  1. changed the title [-]"no repositories" view in list lacks ability to quickly add a repository[/-] [+]"no repositories" view in repositories list lacks ability to quickly add a repository[/+] on Dec 21, 2018
  2. niik commented on Dec 21, 2018

    @niik
    Member

    I'm not sure if this came up as part of the research behind the blank slate changes coming in 1.6, so cc @niik for any extra context before we start thinking about solutions

    Yeah, this should be part of the onboarding work. I've already solved a very similar case for the clone filter list. I can take this and apply the same solution here.

  3. self-assigned this
    on Dec 21, 2018
  4. added this to the 1.6.0 milestone on Dec 21, 2018
  5. niik commented on Dec 21, 2018

    @niik
    Member

    This means our "no repositories" view lacks the ability to quickly add repositories, so users will have to go back to the old way of opening the File menu to find these options:

    Reading this again, this is actually already fixed by #6365 since the repository sidebar won't be visible if there are no repositories. I'll add a closes to that PR.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions