-
Notifications
You must be signed in to change notification settings - Fork 574
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
It would be much more useful if the gutter emphasised the lines this PR affects, not the commentable range #392
Comments
cc @misolori |
We don't have the label in this repo, but this is definitely a papercut 🩸 for me and one of my most wanted things. |
This was one idea I had that could improve this view a bit. The comments area could be moved to the left to have more space and decorators could be updated to show buttons. And hovering over a line could show the "add comment" action. That way there isn't ever any collision between the general glyph areas and commenting items. |
@misolori I'm more interested in the regular file view here which is useful not only when reviewing to see exactly which lines changed but also when working on my own PRs because it will show every line I've touched across all commits. Right now I can trim 3 lines off the top and the bottom because I know they are definitely not part of the changes, but that doesn't work at the start/end of files, or when changes happened within 3 lines of each other. I'm of the opinion that we don't need any decoration to indicate the line is commentable unless it's being hovered, just like GitHub: Right now it doesn't differentiate so I can't tell which lines changed from this view. Some set of lines in the red rectangle changed, but I don't know which: We're instead prioritizing information that doesn't matter much (that you can comment on lines that didn't change) over information that does (which lines changed). For GitHub users I think it's understandable that you can comment on some lines outside the diff so people would discover this. But I don't mind which mockup we go with (#392 (comment)), as long as it's easy to see which lines a PR changed from the regular file view. As for moving the line to the left, one benefit now is it's right next to the git diff indicators and it's showing very similar information, especially if this issue gets resolved: |
There must be something we can do from the extension to help with this. Will continue to investigate in November. |
I've tried out the options that the editor decoration API gives us, and the result isn't good enough since we can't put decorations in the gutter. @joaomoreno suggested the dirty diff decorator, but since requires a whole source control it isn't a good option as is. We'll add this to the December plan and see if we can expose the dirty diff decorator outside of the source control, since it is the ideal UI for showing a diff indicator. |
There are currently two blockers for this:
|
I will often browse/tweak PR branches in the regular file view, I would find it so much more useful if the grey bar extended to only the lines that were changed. See this example:
I'd like it to show me these 7 lines instead:
I propose we change the gutter so there are 4 states instead of 3:
The text was updated successfully, but these errors were encountered: