Skip to content

Show changes since last review #363

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

Closed
Tyriar opened this issue Sep 4, 2018 · 22 comments
Closed

Show changes since last review #363

Tyriar opened this issue Sep 4, 2018 · 22 comments
Assignees
Labels
feature-request Request for new features or functionality on-testplan
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Sep 4, 2018

GitHub.com flow

Blue line indicates there's a change:

image

Blue + indicates where I need to look from, handy link to the diff since I last looked:

image

Extension

No indication in tree (ie. I need to check notifications/email/github.com before switching back to extension):

image

No indication which commits/comments are new:

image

@Tyriar Tyriar added the feature-request Request for new features or functionality label Sep 4, 2018
@dmitry-timofeev
Copy link

It might be even more useful to be able to select the commits to review (because "changes since last review" sometimes does not work as expected + gets cleared once you open the changes on github).

@alexr00
Copy link
Member

alexr00 commented Oct 21, 2019

I can use this extension the first time I look at a PR, but after there are changes I can't. I don't need to re-review everything. I just need to review the changes since the last time I looked. Just being able to select which commits to use would solve this for me.

@fenollp
Copy link

fenollp commented Jan 24, 2021

To add on

because "changes since last review" sometimes does not work as expected
I don't need to re-review everything. I just need to review the changes since the last time I looked.

and now that there is the Viewed checkbox, I'd like to revisit the ask:

The files that Changed since last view should not show the full PR diff but only the diff since last Viewed of each changed file.
Right now one has no other choice than to review the changed file completely all over.

This behavior could be toggled by clicking Changed since last view.

@watjurk
Copy link

watjurk commented Apr 19, 2021

Any update on this? This extension is really amazing but I think this is one of the key features that it's missing.

@mayurdhurpate
Copy link

Hi team, would like to bump this up. Would be very useful as re-reviewing a norm while doing a PR Code Review.

@shubham-agarwal-dd
Copy link

+1

@alexr00 alexr00 self-assigned this Jan 27, 2022
@alexr00 alexr00 added this to the On Deck milestone Jan 27, 2022
@berkeleymalagon
Copy link

+1 💙

@halouvi
Copy link

halouvi commented May 31, 2022

+1 please :-)

@benibenj
Copy link
Contributor

benibenj commented Jul 8, 2022

@daviddossett, we are looking for two icons for switching between the ChangesSinceLastReview Mode and AllChangesOfPullRequest Mode. The icon will be placed in the panel in the top left (as in image) and when clicking it the Icon should be replaced with the second Icon, corresponding to switching into the other mode. Do you recommend using a specific icon pair or should new Icons be created for this case?
button

@daviddossett
Copy link
Contributor

@benibenj @alexr00 is this intended to act as a kind of filter? I.e. the "changes since last review" mode would be a subset of the full list?

@alexr00
Copy link
Member

alexr00 commented Jul 12, 2022

@daviddossett it's more of a toggle. In effect, it will filter some of the files out, but also the contents of the files (really the diffs) will change.

@daviddossett
Copy link
Contributor

Ok, I'll see if we have any icons that work for this else I'll propose some new ones.

@daviddossett
Copy link
Contributor

One possible idea. Still a bit rough but basically exploring something riffing off GH's "Files changed" icon and then a varation for pending changes that haven't yet been reviewed.

I'm not crazy about how the pending version looks yet but using these as a starting point.

CleanShot 2022-07-14 at 11 47 15@2x

@benibenj
Copy link
Contributor

benibenj commented Jul 15, 2022

@daviddossett I think these icons are a good starting point. The arrows (in pending) could possibly just be replaced with some symbol/icon which would indicate NEW changes (However, all changes are 'New' just some of them are since a review).

A totally different option could be sort of a TODO list as changes since a review will probably be in relation to comments/suggestions made in that review.

I'm looking forward to your suggestions.

@daviddossett
Copy link
Contributor

We could reuse checklist (left) and introduce a variant with unchecked items:

CleanShot 2022-07-15 at 09 54 38@2x

@alexr00 alexr00 modified the milestones: On Deck, July 2022 Jul 18, 2022
@alexr00 alexr00 assigned benibenj and unassigned alexr00 Jul 18, 2022
@alexr00
Copy link
Member

alexr00 commented Jul 18, 2022

@daviddossett I'm worried that the checklist and parital-checklist look too similar, but I like the idea of the "Files Changed" icon. What about using the dot idea similar to comment and comment-unresolved?

@daviddossett
Copy link
Contributor

This could work. One concern here would be that the dot icon pattern is typically used for a state that could be cleared. E.g. clicking on an icon with a dot would reveal something and then would remove the dot.

Once reviewed, would this view still be visible? Or is it sort of temporary? This could make more sense if that's the case.

CleanShot 2022-07-21 at 09 03 09@2x

Another option would be to use the "Modified" icon as the nested indicator:

CleanShot 2022-07-21 at 09 16 09@2x

@benibenj
Copy link
Contributor

I prefer the first option as many of the other options also use a dot when there is something new and you could argue that the state will be cleared after reviewing the new changes.

@daviddossett
Copy link
Contributor

Conceptually it makes sense, but how would the interaction work? Would the icon with dot appear dynamically so that users notice it and click on it to view the new changes? I'd expect the dot to go away once reviewed. But then I wouldn't know what purpose the regular files-changed icon would have if there aren't any unseen changes anymore.

@benibenj
Copy link
Contributor

The Icon only appears when there is a change since a review, otherwise no icon appears. When there is a change since a review and a user clicks on the icon it will display only the changes since the review and the other icon (normal diff icon) appears to switch back to showing all changes.

@daviddossett
Copy link
Contributor

daviddossett commented Jul 22, 2022

Ok, here's an idea to work with that:

CleanShot 2022-07-22 at 13 21 36

  • New changes are available as indicated by git-pull-request-new-changes
  • Once viewing new changes, git-pull-request-go-to-changes appears as an actionable icon to return to the other view.
  • If the new changes were reviewed, the git-pull-request-new-changes icon disappears (as demonstrated in the gif). If not reviewed, it stays.

Added new icons via vscode-codicons#124

@alexr00
Copy link
Member

alexr00 commented Jul 25, 2022

These fit very well with how the interaction works. Thanks @daviddossett!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality on-testplan
Projects
None yet
Development

No branches or pull requests