Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Pull Request Filtering #1312

Merged
merged 21 commits into from Nov 20, 2017
Merged

Pull Request Filtering #1312

merged 21 commits into from Nov 20, 2017

Conversation

grokys
Copy link
Contributor

@grokys grokys commented Nov 13, 2017

Adds a filter box to the pull request list.

image

This PR supersedes #732 - moving it to a branch in this repository so we can get artifacts.

Fixes #722

StanleyGoldman and others added 17 commits December 16, 2016 08:21
…ience

# Conflicts:
#	src/GitHub.App/ViewModels/PullRequestListViewModel.cs
 Conflicts:
	src/GitHub.App/SampleData/PullRequestListViewModelDesigner.cs
	src/GitHub.App/ViewModels/PullRequestListViewModel.cs
	src/GitHub.Exports.Reactive/ViewModels/IPullRequestListViewModel.cs
 Conflicts:
	src/GitHub.App/ViewModels/PullRequestListViewModel.cs
Instead of displaying our own search box in the PR list, use the built-in search box provided by `ToolWindowPane`.
@meaghanlewis
Copy link
Contributor

These changes LGTM ✅ . The filter box is really nice.

@jcansdale
Copy link
Collaborator

I've been using this and it's really useful functionality!

One thing that feels a little wrong. I want to be able to enter a PR number and hit return to open it (like you can with some other VS search boxes). This functionality would also be useful when in the PR details view, where you can see the search box but can't use it. Would either of these be appropriate for this PR?

@grokys
Copy link
Contributor Author

grokys commented Nov 17, 2017

Yes the search could be useful in the PR details view too, but we'd need to decide what it did. Filter the changed files list? Highlight the search term in the description?

For these reasons I felt it best just to disable it in the PR details for now, we can address searching there in another PR.

Copy link
Collaborator

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

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

Works great! Support for hitting enter would be nice in a separate PR. 👍

@grokys
Copy link
Contributor Author

grokys commented Nov 17, 2017

Hmm, hitting enter should work - it works for me at least.

Ah I understand, sorry. Hitting enter submits the query immediately, instead of waiting for the throttle timeout. What other VS search boxes use hitting enter to navigate rather than submit the query immediately?

@jcansdale
Copy link
Collaborator

jcansdale commented Nov 17, 2017

@grokys,

What other VS search boxes use hitting enter to navigate rather than submit the query immediately?

image

  • The Quick Launch navigates to the item at the top of the list when you hit enter
  • The toolbar Search navigates to the active document when you hit enter

@grokys
Copy link
Contributor Author

grokys commented Nov 20, 2017

Hmm, ok. To me these search bars are slightly different, in that they're not filters, but lets discuss this separately I'd say.

@grokys grokys merged commit 51aedf2 into master Nov 20, 2017
@grokys grokys deleted the feature/pull-request-filtering branch November 20, 2017 17:27
@grokys grokys added this to Done in 2.4.0 Jan 16, 2018
@grokys grokys added the feature label Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
No open projects
2.4.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants