Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show current PR on status bar and allow navigation to PR details MVP #1102

Merged
merged 18 commits into from Dec 18, 2017

Conversation

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Aug 1, 2017

This adds some UI that displays information about any PR associated with the current branch. At the moment it simply shows the PR number and has a tooltop for its title. This was to show what data it is currently populated with.

Maybe we could allow navigation the the PR details pane or let the user toggle modes for adding comments?

This primarily a branch for experimenting with different UI ideas.

image

Fixes #1097

@jcansdale
Copy link
Collaborator Author

@jcansdale jcansdale commented Aug 3, 2017

@donokuda I'm going to try making this UI do something when clicked on. It will the PR detail pane for the active PR and ideally select the corresponding file in the PR that's currently being edited. We could get even more fancy and navigate to the exact same line (giving the user an easy way to comment).

Please feel free to hack on the UI. I'll work on the wiring up. If I touch the XAML, it's just an example to show the wiring working. Otherwise, the XAML is all yours. Does that make sense? 😄

@donokuda
Copy link
Member

@donokuda donokuda commented Aug 3, 2017

@jcansdale Yup! I'm currently working on #1080 and once that's in a good place I'll hop over in on here.

@donokuda
Copy link
Member

@donokuda donokuda commented Aug 7, 2017

I tested this branch out but it looks like it's not showing the PR information for me. Is there anything I should do to get it to show? I'm on VS2017 fwiw.

image

@jcansdale
Copy link
Collaborator Author

@jcansdale jcansdale commented Aug 8, 2017

@donokuda Thanks for the heads up.

I'm on VS2017 fwiw.

Ah, it seems it doesn't work on VS 2017. 😭 At least it degrades gracefully! 😉

@jcansdale jcansdale force-pushed the ui/pr-context branch from 594ab29 to 10e70eb Aug 9, 2017
@jcansdale jcansdale changed the base branch from master to feature/open-current-pr-command Aug 9, 2017
@jcansdale jcansdale changed the base branch from feature/open-current-pr-command to master Aug 9, 2017
@jcansdale
Copy link
Collaborator Author

@jcansdale jcansdale commented Aug 9, 2017

@donokuda,

I tested this branch out but it looks like it's not showing the PR information for me.

I've added a workaround that will hopefully fix this issue.

The code isn't pretty, but should at least put the UI where it's supposed to be. I'll do it properly when I get the chance. 😄

@shana shana force-pushed the master branch from 49ba6cf to a82bce9 Aug 16, 2017
}

void ShowPullRequestStatus()
{

This comment has been minimized.

@jcansdale

jcansdale Sep 8, 2017
Author Collaborator

This should be in its own package, no piggy backing off InlineReviewsPackage.

@jcansdale jcansdale force-pushed the ui/pr-context branch from e7b77dc to 6362790 Sep 12, 2017
</Button>
<Grid.ToolTip>
<TextBlock Text="{Binding Title}" />
</Grid.ToolTip>

This comment has been minimized.

@jcansdale

jcansdale Sep 12, 2017
Author Collaborator

@donokuda here's the UI, if you can call it that. ;-)

jcansdale added 3 commits Dec 12, 2017
@jcansdale jcansdale changed the title [wip] Show context for current PR branch on status bar [WIP] Show context for current PR branch on status bar Dec 12, 2017
@jcansdale
Copy link
Collaborator Author

@jcansdale jcansdale commented Dec 12, 2017

This is now merged with master and should be working again. Not sure why the CI build just failed.

@jcansdale jcansdale changed the title [WIP] Show context for current PR branch on status bar [WIP] Show PR branch on status bar and allow navigation to PR details Dec 12, 2017
@jcansdale jcansdale changed the title [WIP] Show PR branch on status bar and allow navigation to PR details Show current PR on status bar and allow navigation to PR details MVP Dec 15, 2017
@jcansdale jcansdale changed the base branch from master to feature/show-current-pr Dec 15, 2017
@jcansdale
Copy link
Collaborator Author

@jcansdale jcansdale commented Dec 15, 2017

Starting off the feature branch with an MVP version.

@jcansdale jcansdale closed this Dec 15, 2017
@jcansdale jcansdale reopened this Dec 18, 2017
@jcansdale jcansdale merged commit 1209998 into feature/show-current-pr Dec 18, 2017
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
GitHub CLA @jcansdale has accepted the GitHub Contributor License Agreement.
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
@jcansdale jcansdale deleted the ui/pr-context branch Dec 18, 2017
@jcansdale jcansdale mentioned this pull request Dec 18, 2017
8 of 9 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.