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.
Copy file name to clipboardExpand all lines: docs/rfcs/XXX-pull-request-review.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Peer review is also a critical part of the path to acceptance for pull requests
23
23
Review progress is indicated for open pull requests listed in the GitHub panel. The pull request corresponding to the checked out branch gets special treatment in it's own section at the top of the list.
Note: Change "Current pull request" to "Checked out pull request"
27
27
28
28
Clicking a pull request in the list opens a `PullRequestDetailItem` in the workspace center.
29
29
@@ -40,14 +40,16 @@ Each `PullRequestDetailItem` opened on a pull request displays the full, multi-f
40
40
41
41
TODO: update mock to have "Start review button" and "Add single comment"
42
42
43
-
Diffs are editable ONLY if the pull request branch is checked out and the local branch history has not diverged from the remote branch history. Otherwise diffs are not editable.
43
+
Diffs are editable ONLY if the pull request branch is checked out and the local branch history has not diverged from the remote branch history. Otherwise diffs are not editable. Details of this will be fleshed out in a separate RFC specifically for editable diffs.
44
44
45
45
A panel at the bottom of the pane offers various options for sorting and filtering the diff. It also has a "Review Changes" button.
Note: We probably want to find better verbiage than "sort". Let's also consider a dropdown menu UX to select different views of the data.
52
+
51
53
The default view is sorted by files. This is akin to the "Files changed" tab on dotcom. It displays the diff for all changed files in the PR.
52
54
53
55
Sorting by reviews is akin to the review summaries that appear on the "Conversation" tab on dotcom. The comments are displayed grouped by review along with some context lines.
@@ -56,7 +58,7 @@ Sorting by reviews is akin to the review summaries that appear on the "Conversat
56
58
57
59
TODO: include show multiple reviews stacked
58
60
59
-
Sorting by commits is akin to the "Commits" tab on dotcom. A list of commits is displayed in chronological order, oldest commit on top. Clicking a commit expands the diff contents below. If there is a commit message body this is displayed as well.
61
+
Sorting by commits is akin to the "Commits" tab on dotcom. A list of commits is displayed in chronological order, oldest commit on top. Clicking a commit expands the diff contents below. If there is a commit message body this is displayed as well. Commit diffs are not editable.
60
62
61
63
TODO: include commit sort mockup
62
64
@@ -111,7 +113,7 @@ Clicking on the build status summary icon (green checkmark, donut chart, or X) e
Clicking on the conversation/timeline icon expands an ephemeral panel beneath the summary box showing a very timeline view. The PR description and PR comments are displayed here. Other note-worthy timeline events are displayed in a very minimal fashion.
116
+
Clicking on the conversation/timeline icon expands an ephemeral panel beneath the summary box showing a very timeline view. The PR description and PR comments are displayed here. Other note-worthy timeline events are displayed in a very minimal fashion. At the bottom is an input field to add a new PR comment.
115
117
116
118
TODO: add conversation/timeline popover mockup
117
119
@@ -178,7 +180,7 @@ We also discussed implementing comment decorations in regular text editors. Clic
178
180
179
181
When there are working directory changes, how do we clearly indicate them within the diff view? Do we need to make them visually distinct from the PR changes? Things might get confusing for the user when the diff in the editor gets out of sync with the diff on dotcom.
180
182
Example:
181
-
* Author reads comment pointing out typo in an added line. Author edits text in multi-file diff which modifies the working directory. Should this line now be orange to indicate that it has deviated from the original diff?
183
+
* Author reads comment pointing out typo in an added line. Author edits text in multi-file diff which modifies the working directory. Should this line now be styled differently to indicate that it has deviated from the original diff?
182
184
183
185
Can we access "draft" reviews from the GitHub API, to unify them between Atom and GitHub?
184
186
@@ -197,8 +199,6 @@ Similarly, are there any ways we can encourage empathy within the review authori
197
199
*_Emoji reactions on comments :cake::tada:_
198
200
*_Enable integration with Teletype for smoother jumping to a synchronous review_
199
201
200
-
How do we clearly indicating recently added changes? That is, new changes pushed, comments, reviews, etc since the last time the users viewed the PR info. Is it enough to simply update the timeline view? Is it too easy to miss changes?
201
-
202
202
### Questions I expect to resolve throughout the implementation process
203
203
204
204
Review comment positioning within live TextEditors will be a tricky problem to address satisfactorily. What are the edge cases we need to handle there?
0 commit comments