8000 Show current PR on status bar and allow navigation to PR details MVP by jcansdale · Pull Request #1102 · github/VisualStudio · GitHub
[go: up one dir, main page]

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

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

@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
Contributor
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
Contributor
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
8000
Collaborator Author

@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 changed the base branch from master to feature/open-current-pr-command August 9, 2017 16:31
@jcansdale jcansdale changed the base branch from feature/open-current-pr-command to master August 9, 2017 16:40
@jcansdale
Copy link
Collaborator Author

@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. 😄

}

void ShowPullRequestStatus()
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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

</Button>
<Grid.ToolTip>
<TextBlock Text="{Binding Title}" />
</Grid.ToolTip>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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

@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

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 December 15, 2017 10:11
@jcansdale
Copy link
Collaborator Author

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
@jcansdale jcansdale deleted the ui/pr-context branch December 18, 2017 11:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0