Skip to content

Clear repository filter text when switching tabs - #3787

Merged
shiftkey merged 2 commits into
desktop:masterfrom
reyronald:clear-filter-on-tab-switch
Feb 8, 2018
Merged

shiftkey merged 2 commits into
desktop:masterfrom
reyronald:clear-filter-on-tab-switch

Conversation

@reyronald

Copy link
Copy Markdown
Contributor

... in the Clone Repository modal.

Addressing issue #3739


The issue was labeled with help-wanted so I decided to give it a go, hope you guys don't mind me interfering.

This is a first approach using @tierninho 's suggestion in #3739 (comment), so it doesn't take into account my own inquiry in #3739 (comment).
Would have no problem in changing the implementation if a different behavior is desired by the team.

Let me know what you guys think.

Current behavior:

clear-filter-before

Pull request behavior:

clear-filter

reyronald added a commit to reyronald/desktop that referenced this pull request Jan 13, 2018
...in the Clone Repository modal.
Improvement over desktop#3787

Addresses issue desktop#3739
@reyronald

Copy link
Copy Markdown
Contributor Author

I just commited reyronald@c71f6f3 on another branch. Here the filter text is remember when switching tabs, which is a better user experience in my opinion. Just another behavior to consider as a solution:

clear-filter-improved

... in the Clone Repository modal.

Closes issue desktop#3739
@reyronald
reyronald force-pushed the clear-filter-on-tab-switch branch from a3a8f1e to d8dec18 Compare January 13, 2018 22:40
@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jan 15, 2018
@shiftkey shiftkey self-assigned this Jan 30, 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.

Nice work @reyronald! A couple of clean-up suggestions, but aside from that this works nicely on my machine! ✨

/** Called when a repository is selected. */
readonly onGitHubRepositorySelected: (url: string) => void

/** Should we clear the filterText on render? */

This comment was marked as spam.

}

public componentWillReceiveProps(nextProps: ICloneGithubRepositoryProps) {
if (nextProps.shouldClearFilter) {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

*/
readonly lastParsedIdentifier: IRepositoryIdentifier | null

/** Should we clear the filterText on render? */

This comment was marked as spam.

To address pull request suggestions

Co-Authored-By: shiftkey <[email protected]>
@shiftkey shiftkey added this to the 1.1 milestone Feb 7, 2018
@shiftkey
shiftkey merged commit 381f879 into desktop:master Feb 8, 2018
@reyronald

Copy link
Copy Markdown
Contributor Author

@shiftkey By the way, just wanted to congratulate you and the team, you have a really elegant and clean code base and architecture in this project! It was a pleasant experience going through it! 🌟

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.

2 participants