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 — Hide resolved comments in changes tree; Indicate resolved comments on margin by jcansdale · Pull Request #2253 · github/VisualStudio

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

Conversation

@jcansdale

@jcansdale jcansdale commented Mar 1, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

Previously pull request comments would be implicitly resolved when when the text near to the comment was changed. GitHub now supports comments being explicitly resolved by a user and comments becoming implicitly outdated when the text near to the comment is changed.

This pull request surfaces the IsResolved status of a review comment threads and hides resolved comments from the changes tree (in a similar way to how outdated comments are hidden). This makes it easy to find comments that still need to be addressed when responding to a pull request review.

What this PR does

  • Use pullRequest/reviewThreads to populate the IsResolved status of a pull request comment threads
  • When using GitHub Enterprise fall back to using original model (reviewThreads might not be available)
  • Hide resolved comments from the changes tree
  • Show different in-line comment glyph for resolved comments (an empty circle)
  • Show banner to clearly indicate when a thread has been resolved

To do

  • Support fallback for older versions of GitHub Enterprise
  • Indicate outdated in-line comments in glyph
    image
  • Show banner on resolved comment threads
    image

What this PR doesn't do

  • Probe GitHub Enterprise schema to see if we could fetch resolved comment information
  • Surface comments that are outdated but unresolved
  • Allow resolving of comments using inline comment view

How to test

  1. Open https://github.com/grokys/PullRequestSandbox in Visual Studio
  2. Open Testing resolved comments grokys/PullRequestSandbox#58 in GitHub pane
  3. Check that only 1 comment appears on Program.cs
    image
  4. Click on 💬 1 comment
  5. Check Program.cs appears in diff view and comment is visible
  6. Check that empty circle glyph appears below indicating a resolved comment
  7. Click on the resolved comment glyph
  8. Check that The conversation was marked as resolved banner appears above comment

Notes

Here is what is looks like in the Dark theme

image

Related #2245

Sorry, something went wrong.

Uh oh!

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

meaghanlewis reacted with hooray emoji
All reactions
  • 🎉 1 reaction
jcansdale added 7 commits March 1, 2019 14:28
@jcansdale
Update GraphQL schema on net46 branch
5d787b8
@jcansdale
Update GraphQL query to use ReviewThreads
e7f5179
Use pullRequest/reviewThreads instead of pullRequest/review/comments.
@jcansdale
Add IsResolved to PullRequestReviewThreadModel
f8d092d
@jcansdale
Merge remote-tracking branch 'origin/master' into fixes/2245-comment-…
31ca065
…thread-resolved-status
@jcansdale
Only show unresolved comments on changes tree
7a41406
@jcansdale
Clarify IsResolved summary
085bfa9
@jcansdale
Add downlevel support for GitHub Enterprise
8e4a5a9
Only use reviewThreads/isResolved on github.com where they are guaranteed to be available.
@jcansdale
jcansdale force-pushed the fixes/2245-comment-thread-resolved-status branch from e2c2462 to 8e4a5a9 Compare March 4, 2019 14:47
jcansdale added 2 commits March 4, 2019 16:06
@jcansdale
Show warning on comment thread resolved
c75b321
Show, "This conversation was marked as resolved" on peek view when conversation has been marked as resolved.
@jcansdale
Indicate resolved comments with an empty circle
a489f5d
@jcansdale
jcansdale force-pushed the fixes/2245-comment-thread-resolved-status branch from 91b62a2 to a489f5d Compare March 5, 2019 12:32
@jcansdale jcansdale changed the title Show resolved status for pull request review comments Hide resolved comments from changes tree and indicate resolved comments on margin Mar 5, 2019
@jcansdale
jcansdale marked this pull request as ready for review March 5, 2019 12:41
@jcansdale
jcansdale requested review from StanleyGoldman, donokuda and grokys March 5, 2019 14:34
@meaghanlewis meaghanlewis mentioned this pull request Mar 5, 2019
Development Sprint: April 8 release #2240
Closed
donokuda added 2 commits March 5, 2019 15:20
@donokuda
Use VS info icon and lighter background color
1806beb
@donokuda
Prefer InfoBrushes
e068eb4
@donokuda

donokuda commented Mar 5, 2019

Copy link
Copy Markdown
Contributor

I went and did A Thing replacing the info icon with the one built into visual studio. The result is a look and feel closer to a native infobar:

Blue Theme!
screen shot 2019-03-05 at 3 47 52 pm

Dark Theme!
screen shot 2019-03-05 at 3 47 14 pm

At first I was concerned about how much it popped out in the Dark Theme even though I was using the background color that we get from Visual Studio. However, I think it's okay for the following reasons:

  1. I tend to look over this information when the background was less intrusive.
  2. It's what Microsoft does. 😆

We've diverged a bit from what I've prototyped but I think that's fine given that my prototype relied heavily on the interaction of collapsing resolved comments.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jcansdale

jcansdale commented Mar 6, 2019

Copy link
Copy Markdown
Collaborator Author

@donokuda,

At first I was concerned about how much it popped out in the Dark Theme even though I was using the background color that we get from Visual Studio. However, I think it's okay for the following reasons:

  1. I tend to look over this information when the background was less intrusive.

I think this is a good call. 👍 We're trying to communicate that someone stuck a fork in this comment thread, you're probably done. Making this pop out is a good thing!

All reactions

Sorry, something went wrong.

Uh oh!

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

jcansdale added 2 commits March 19, 2019 11:20
@jcansdale
Merge branch 'master' into fixes/2245-comment-thread-resolved-status
e3ea7db
@jcansdale
Support of a null commit author
48efdf9
@jcansdale jcansdale added the Ready for Review label Mar 19, 2019
jcansdale and others added 3 commits March 20, 2019 14:46
@jcansdale
Merge branch 'master' into fixes/2245-comment-thread-resolved-status
a16d2a7
@StanleyGoldman
Merge branch 'master' into fixes/2245-comment-thread-resolved-status
99ddc34
@StanleyGoldman
Adding stub resource to other language files
e3be788
StanleyGoldman
StanleyGoldman approved these changes Mar 26, 2019
View reviewed changes
@StanleyGoldman
StanleyGoldman merged commit d0c5fff into master Mar 26, 2019
@StanleyGoldman
StanleyGoldman deleted the fixes/2245-comment-thread-resolved-status branch March 26, 2019 13:15
@StanleyGoldman StanleyGoldman added the enhancement label Apr 11, 2019
@StanleyGoldman StanleyGoldman changed the title Hide resolved comments from changes tree and indicate resolved comments on margin Hide resolved comments in changes tree; Indicate resolved comments on margin Apr 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@grokys grokys Awaiting requested review from grokys
@donokuda donokuda Awaiting requested review from donokuda
1 more reviewer
@StanleyGoldman StanleyGoldman StanleyGoldman approved these changes
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

enhancement Ready for Review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@jcansdale @donokuda @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.