GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Pull Request conversation view by grokys · Pull Request #2017 · github/VisualStudio

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

Conversation

@grokys

@grokys grokys commented Oct 30, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Work in progress for attn of @donokuda.

To show the conversation view, right-click on an item in the PR list and select "Open Conversation" (note: this is just a temporary method to open the view, see Open Questions below)

Progress so far

2018-11-01_19-14-34

2018-11-01_19-18-45

Open Questions

  • I've added a button to close/reopen the pull request, but closing/reopening doesn't reflect the changes yet in the GitHub pane, and doesn't add/remove the entry from the PR list
    • Syncing with other parts of the UI will take a bit more work
    • Given that we don't have "Merge" yet shall we punt this?
  • We need to decide what to do with the PR description in the GitHub pane, and how to navigate to the conversation view from there
    • Remove the description from the GitHub pane? Display a summary with a link to the conversation view (summary being e.g. just the first paragraph?)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

donokuda and laurentkempe reacted with heart emoji
All reactions
  • ❤️ 2 reactions
grokys added 6 commits October 26, 2018 12:13
@grokys
Show document pane for PR conversation.
38cae06
It's currently empty, but it shows. Only supported method of showing is currently right-click on PR list.
@grokys
Display PR details in document pane.
50b04ac
Next need to refactor out a common base class and create 2 different PR detail view models.
@grokys
Initial implementation of PR conversation view.
cfb1dd3
@grokys
Display sample data in PR conversation page.
02bc4ee
@grokys
Load PR timeline from GraphQL.
102e337
And display its commits and comments in the conversation view.
@grokys
Show commit in TE when OID clicked.
424439d
@codecov

codecov Bot commented Oct 31, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@9b9a90a). Click here to learn what that means.
The diff coverage is 14.08%.

@@           Coverage Diff            @@
##             master   #2017   +/-   ##
========================================
  Coverage          ?   38.7%           
========================================
  Files             ?     423           
  Lines             ?   17940           
  Branches          ?    2451           
========================================
  Hits              ?    6944           
  Misses            ?   10444           
  Partials          ?     552
Impacted Files Coverage Δ
...rc/GitHub.App/ViewModels/CommentThreadViewModel.cs 83.67% <ø> (ø)
...dels/GitHubPane/PullRequestUserReviewsViewModel.cs 67.16% <ø> (ø)
src/GitHub.Exports/Models/CommentModel.cs 100% <ø> (ø)
...itHub.InlineReviews/Services/PullRequestSession.cs 77.24% <ø> (ø)
src/GitHub.App/Models/RemoteRepositoryModel.cs 59.25% <ø> (ø)
.../GitHub.Exports/Models/PullRequestListItemModel.cs 87.5% <0%> (ø)
src/GitHub.App/Services/FromGraphQlExtensions.cs 0% <0%> (ø)
src/GitHub.Exports/Commands/OpenIssueishParams.cs 0% <0%> (ø)
...p/ViewModels/Documents/PullRequestPageViewModel.cs 0% <0%> (ø)
src/GitHub.App/Models/PullRequestModel.cs 33.33% <0%> (ø)
... and 25 more
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

grokys added 3 commits November 1, 2018 09:27
@grokys
Display PR title as pane caption.
f976412
@grokys
Display an "Add comment" box at the bottom of a PR.
abeb1b8
@grokys
Change close issue caption when comment has body.
b724525
@jcansdale

jcansdale commented Nov 2, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

I'm excited so see this going in! 😃

Workflow wise, now I have the option to view using Open Conversation, the next most likely action I'll want to preform is Edit in Browser.

image

I'd almost be inclined to replace the Open in Browser option with an Edit in Browser option (that starts editing the MD - if such a thing is possible). Is there a URL for that?

For some reason I keep heading to the Open in Browser link at the bottom, rather than the Open Conversation link. @donokuda are users more likely to click the top/bottom commands on a menu? Or is it just me? 😉

Having links to individual commits is great! Could we make the text clickable as well, like on dotcom?

image

Once nice thing is, once you've drilled down to a file diff, you have to option to Open File in Solution and navigate to the change of interest (assuming it still exists).

image

I wonder how difficult would be to leverage a read-only Visual Studio editor component for syntax highlighting? Is markdig easily customization like this?

image

Maybe @jaredpar would give us a sanity check/tips on how to create a read-only editor component like this? 🙏

It would be nice if we could get links wired up to the Open from GitHub command, so the user can navigate to lines/ranges in the local solution!

image

I think this kind of integration is where we can add value when viewing PRs/issues inside Visual Studio.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jcansdale

jcansdale commented Nov 2, 2018

Copy link
Copy Markdown
Collaborator

Something I really miss is emoji support. Could we have a button or even just a reminder to click Windows Key + . to bring up the Windows 10 emoji picker? 😜

image

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jaredpar

jaredpar commented Nov 3, 2018

Copy link
Copy Markdown

Maybe @jaredpar would give us a sanity check/tips on how to create a read-only editor component like this

Not quite sure what you were looking for advice on here. Could you elaborate?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jcansdale

jcansdale commented Nov 5, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

@jaredpar,

Not quite sure what you were looking for advice on here. Could you elaborate?

I remembered you wrote the https://github.com/jaredpar/EditorUtils library for hosting the Visual Studio editor outside of VS. What I'm wondering about here is a potentially simpler scenario (hosting it inside VS).

At the moment we're using Markdig for rendering .md content inside Visual Studio. Unfortunately it doesn't have built in syntax highlighting.

I was wondering how feasible it would be to create a read-only WPF editor control with syntax highlighting, that corresponds to a markdown code block? We could then render any code blocks in pull request/issue in a similar way to Visual Studio. The highlighting and color themes would be the same as Visual Studio so it wouldn't look out of place.

Is this realistic or do you think there are performance/complexity issues that are likely to bite us?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

grokys added 9 commits November 5, 2018 11:04
@grokys
Implement posting PR comments.
d296739
@grokys
Disable comment view while submitting.
0b91c87
@grokys
Jiggled the comment thread hierachy a little.
1200c4c
Removed `Comments` from `ICommentThreadViewModel` beacuse the comments may be of different types.
@grokys
Merge branch 'master' into feature/pr-conversation
057c4e4
@grokys
Fix up comment view models after merge.
fe66df5
@grokys
Correctly add new comments.
a8d4da6
@grokys
Make PR conversation tool windows multi-instance.
d246ad2
@grokys
Fix UI for closed PRs.
6165f30
@grokys
Display commit count.
996aac3
@jaredpar

jaredpar commented Nov 5, 2018

Copy link
Copy Markdown

What I'm wondering about here is a potentially simpler scenario (hosting it inside VS).

Yes that is feasible. Within VS the editor is just there. You can grab all of the factory interfaces from the MEF container and just create the IWpfTextView instances directly.

jcansdale reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

grokys added 2 commits November 8, 2018 16:51
@grokys
Implement closing/reopening a PR.
6da33e6
This state is not synced with the PR details pane or the PR list currently though.
@grokys
Merge branch 'master' into feature/pr-conversation
c3f9778
@meaghanlewis meaghanlewis mentioned this pull request Nov 13, 2018
Development Sprint: December 10th release #2052
Closed
grokys and others added 3 commits November 14, 2018 16:43
@grokys
Implemented edit/delete of comments.
1308c0e
@donokuda
Append "commented" after author name
6e88e35
@donokuda
Tweak header spacing
8697cb7
@meaghanlewis

meaghanlewis commented Feb 11, 2019

Copy link
Copy Markdown
Contributor

Is it possible to linkify references to issues and PR's in the conversation view?

screen shot 2019-02-11 at 12 02 11 pm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@grokys

grokys commented Feb 11, 2019

Copy link
Copy Markdown
Contributor Author

@meaghanlewis yes, this is definitely a feature we should have! I did look into implementing it a while ago, but never finished it. It would involve writing a markdig extension, which shouldn't be too difficult; would just require the time to be allocated to it.

meaghanlewis reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@donokuda

donokuda commented Feb 11, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

One thing I noticed while testing. I'm not sure what the correct functionality should be here, Don says he expected to open the browser, I expected it to open the Detail page.

Floating this idea:

giphy

If I click on a link, I'd mostly expect the page that the action took place to update instead of something on the side. However, I probably expect that since the page itself looks and feels like closer to a webpage.

We could consider doing both: navigate the conversation view to the corresponding pull request and also navigate the GitHub panel to show the details view with relevant information to the PR.

There are a few risks that I anticipate (which we would want to consider validating with some folks): 😬

  1. When I'm focusing on a specific pull request, it's confusing to have the panel navigate without me interacting with it. If I'm not aware that the panel has updated, I might be disoriented or accidentally read irrelevant information.
  2. It's not clear how to get back to the previous screen in the pane. (The solution here would be to use the navigation bar above, so this would mostly be testing if that functionality is discoverable.)
  3. People don't expect the conversation page to change. 👈I doubt this is a problem, but I also understand that my hunch could be wrong.

I am leaning towards navigating both the conversation page and the GitHub panel to the pull request, but I'm open to feedback in case I'm missing something. 😄

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jcansdale
Limit to 100 repos per org (fix bad merge)
d8cf315
@jcansdale

jcansdale commented Feb 12, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

@donokuda I've been thinking about how I use the current View on GitHub link. I pretty much always use it after creating a PR to edit the markdown description and to add images. This is something the current conversation view doesn't allow and it would take a lot effort to get feature parity with dotcom. I think this is a pretty important use-case/workflow.

How about rather than replacing or combining the View on GitHub / View Conversation functionality, we keep the View on GitHub link and take inspiration from the comments icon on the dotcom PR list.

image

I link showing the number of comments gives people an incentive and invites them to click. It would also be clear that clicking on the comment link would show those comments.

I think we've always been pretty explicit about when a command will open an external browser (for both menus and links). I'd be hesitant to introduce a command that both opens an external browser and does an action inside Visual Studio.

image

In fact we should have a common command/keyboard shortcut to Open on GitHub no matter the context (if we don't already). 🤔

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@donokuda

donokuda commented Feb 12, 2019

Copy link
Copy Markdown
Contributor

@jcansdale 👍 Sure, let's try that idea out! 😄

My only concern is if the text isn't blue (like the links around it), then folks might assume they cannot interact with it (and that it's only informational.)

Would you be open to making it a blue link?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jcansdale

jcansdale commented Feb 12, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

@donokuda,

Would you be open to making it a blue link?

Absolutely! The main thing was the comment icon/number of comments. I copy/pasted from dotcom. 😉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@meaghanlewis meaghanlewis added this to the 2.8.0 milestone Feb 12, 2019
@donokuda
Stub out comment count and view on github links
d05a0ce
@jcansdale

jcansdale commented Feb 13, 2019

Copy link
Copy Markdown
Collaborator

@StanleyGoldman,

One thing I noticed while testing. I'm not sure what the correct functionality should be here, Don says he expected to open the browser, I expected it to open the Detail page.

Is this the link you're referring to above?

image

I'd expect the # link on the conversation view to open in a browser, just like the link in the the notification does on the left. In fact, could we include the owner/repo in the conversation view link as well to add a little more context?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

donokuda and others added 13 commits February 13, 2019 13:33
@donokuda
Add comment octicon and leave some notes around
8e42868
@donokuda
Add back in the description section
4bdfa13
@donokuda
Bump spacing
c8579c8
@donokuda
Collapse sections
5958982
@jcansdale
Hook up "View on GitHub" link
5702cb3
@jcansdale
Show number of comments on OpenConversation button
e504484
@jcansdale
Don't collapse Reviewers or Checks sections
ae6935a
The Reviewers section contains an `Add your review` button which I
don't think should be hidden by default.
The Checks section is the only place where build status is surfaced and
contains a link to Details for each build.
@jcansdale
Set the pull request WebUrl and OpenOnGitHub
17f3f93
Make hash-link at top pull request page open on GitHub.
@jcansdale
Allow pull request title to wrap
3f43625
@jcansdale
Merge pull request #2229 from github/donokuda/moving-some-cheese
abce76d
Add pull request comment count link and add back in description section
@jcansdale
Merge branch 'master' into feature/pr-conversation
a8df4e6
@StanleyGoldman
Disabling automatic focus
fd9eab5
@StanleyGoldman
Removing left over event handler
f144895
@StanleyGoldman
StanleyGoldman dismissed their stale review February 20, 2019 19:30

Fixed

jcansdale
jcansdale approved these changes Feb 21, 2019
View reviewed changes

@jcansdale jcansdale left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Tested on 2015, 2017 and 2019. 🎉

Let's 🚀 it!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

meaghanlewis reacted with hooray emoji laurentkempe reacted with heart emoji
All reactions
  • 🎉 1 reaction
  • ❤️ 1 reaction
@StanleyGoldman
Shouldn't need the nuget package for octokit.graphql anymore
89f33ac
@StanleyGoldman
StanleyGoldman merged commit 4464697 into master Feb 21, 2019
@StanleyGoldman
StanleyGoldman deleted the feature/pr-conversation branch February 21, 2019 20:16
@meaghanlewis meaghanlewis added the feature label Feb 25, 2019
@StanleyGoldman StanleyGoldman changed the title PR conversation view Pull Request conversation view Feb 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@jcansdale jcansdale jcansdale approved these changes
@StanleyGoldman StanleyGoldman StanleyGoldman left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

feature

Projects

None yet

Milestone

2.8.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@grokys @jcansdale @jaredpar @donokuda @meaghanlewis @StanleyGoldman
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.