Repository navigation
Clear repository filter text when switching tabs - #3787
Conversation
...in the Clone Repository modal. Improvement over desktop#3787 Addresses issue desktop#3739
|
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: |
... in the Clone Repository modal. Closes issue desktop#3739
a3a8f1e to
d8dec18
Compare
shiftkey
left a comment
There was a problem hiding this comment.
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.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| public componentWillReceiveProps(nextProps: ICloneGithubRepositoryProps) { | ||
| if (nextProps.shouldClearFilter) { |
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.
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.
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.
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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| */ | ||
| readonly lastParsedIdentifier: IRepositoryIdentifier | null | ||
|
|
||
| /** Should we clear the filterText on render? */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
To address pull request suggestions Co-Authored-By: shiftkey <[email protected]>
|
@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! 🌟 |

... in the Clone Repository modal.
Addressing issue #3739
The issue was labeled with
help-wantedso 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:
Pull request behavior: