You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
A panel at the bottom of the pane shows the progress for resolved review comments. It also has a "Review Changes" button to create a new review. This panel is persistent throughout all sub-views. It allows creating new reviews no matter where you are. Below examples with the existing sub-views:
@@ -54,6 +55,7 @@ Overview | Commits | Build Status
When the pull request is checked out, an "open" button is shown in the review footer. Clicking "open" opens a `PullRequestReviewsItem` for this pull request's review comments as an item in the right workspace dock.
* For large diffs, the files can be collapsed to get a better overview.
72
74
73
-
74
-
### Reviews (tab)
75
-
76
-
Clicking on the "Reviews" tab shows all reviews of a pull request. This is akin to the review summaries that appear on the "Conversation" tab on dotcom. In addition, each review also includes review comments and their diff.
* Comments can be collapsed to get a better overview.
85
-
* Reviews get sorted by "urgency". Showing reviews that still need to get adressed at the top:
86
-
1. "recommended" changes
87
-
2. "commented" changes
88
-
3. "no review" (when a reviewer only leaves review comments, but no summary)
89
-
4. "approved" changes
90
-
5. "previous" reviews (when a reviewer made an earlier review and it's now out-dated)
91
-
* Within each group, sorting is done by "newest first".
92
-
93
75
#### Create a new review
94
76
95
77
##### `+` Button
@@ -131,7 +113,39 @@ Clicking "Finish your review" from a comment or clicking "Review Changes" in the
131
113
* Review comments can be resolved by clicking on the "Resolve conversation" buttons.
132
114
* If the "reply..." editor has non-whitespace content, it is submitted as a final comment first.
133
115
134
-
#### Context and navigation
116
+
### PullRequestReviewsItem
117
+
118
+
This item is opened in the workspace's right dock when the user:
119
+
120
+
* Clicks the review progress bar in the GitHub tab.
121
+
* Clicks the "open" button on the review summary footer of a `PullRequestDetailItem`.
122
+
* Clicks the "<>" button on a review comment in the "Files" tab of a `PullRequestDetailItem`.
123
+
124
+
It shows a scrollable view of all of the reviews and comments associated with a specific pull request,
125
+
126
+
> TODO: Illustration for the PullRequestReviewsItem
127
+
128
+
Reviews are sorted by "urgency," showing reviews that still need to be addressed at the top. Within each group, sorting is done by "newest first".
129
+
130
+
1. "recommended" changes
131
+
2. "commented" changes
132
+
3. "no review" (when a reviewer only leaves review comments, but no summary)
133
+
4. "approved" changes
134
+
5. "previous" reviews (when a reviewer made an earlier review and it's now out-dated)
135
+
136
+
Clicking on a review summary comment expands or collapses the associated review comments.
137
+
138
+
Clicking on a review comment opens a `TextEditor` on the corresponding position of the file under review. The clicked review comment is highlighted as the "current" one.
139
+
140
+
#### Within an open TextEditor
141
+
142
+
If an open `TextEditor` corresponds to a file that has one or more review comments in an open `PullRequestReviewsItem`, gutter and line decorations are added to the lines that match those review comment positions. The "current" one is styled differently to stand out.
143
+
144
+
> TODO: Illustrate the "review comment here" gutter and line decorations
145
+
146
+
Clicking on the gutter icon reveals the `PullRequestReviewsItem` and highlights that review comment as the "current" one, scrolling to it and expanding its review if necessary.
147
+
148
+
### Context and navigation
135
149
136
150
Review comments are shown in 3 different places. The comments themselves have the same functionality, but allow the comment to be seen in a different context, depending on different use cases. For example "reviewing a pull request", "addressing feedback", "editing the entire file".
137
151
@@ -145,7 +159,7 @@ In order to navigate between comments or switch context, each comment has the fo
145
159
146
160
* Clicking on the `<>` button in a review comment shows the comment in the entire file. If possible, the scroll-position is retained. This allows to quickly get more context about the code.
147
161
* If the current pull request is not checked out, the `<>` button is disabled, and a tooltip prompts the user to check out the pull request to edit the source.
148
-
* Clicking on the "sandwich" button shows the comment under the "Reviews" tab.
162
+
* Clicking on the "sandwich" button shows the comment in the corresponding `PullRequestReviewsItem`.
149
163
* Clicking on the "file-+" button (not shown in above screenshot) shows the comment under the "Files" tab.
150
164
* The up and down arrow buttons navigate to the next and previous unresolved review comments.
151
165
* Reaction emoji may be added to each comment with the "emoji" button. Existing emoji reaction tallies are included beneath each comment.
0 commit comments