-
Notifications
You must be signed in to change notification settings - Fork 405
Additional entry point for review comments #2084
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2084 +/- ##
==========================================
+ Coverage 92.55% 92.55% +<.01%
==========================================
Files 207 207
Lines 12016 12025 +9
Branches 1745 1747 +2
==========================================
+ Hits 11121 11130 +9
Misses 895 895
Continue to review full report at Codecov.
|
👋 I’m the user who shared the feedback in #2077. @annthurium pointed me to this PR and I think the change looks great!!! |
styles/issueish-list-view.less
Outdated
@@ -63,6 +63,11 @@ | |||
text-align: center; | |||
} | |||
|
|||
&--menu { | |||
color: @text-color-subtle; | |||
transform: rotate(90deg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kuychaco : what's the rationale for rotating the icon?
I'm not a fan for a couple of reasons:
-
it's inconsistent with other kebab menus in the package such as undo discard which keep the icon in its original orientation.
-
right now the icon is not vertically centered. It's a lot more annoying to fix when the icon is rotated. If we remove the rotation we can just add a line-height of 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! Thanks for making the change!
also remove rotation to be consistent with other kebab menus in the package
I staged the wrong file because I wasn't paying attention -- see previous commit.
Seems like there's no good way to test Electron menus. Not even supported in spectron -- electron-userland/spectron#21
Keep view simple and free of unnecessary logic
Co-Authored-By: Tilde Ann Thurium <annthurium@github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some small nits with some of the tests, but otherwise this LGTM!
Co-Authored-By: kuychaco <kuychaco@github.com>
Co-Authored-By: Vanessa Yuen <vanessayuenn@users.noreply.github.com>
That pending |
Please be sure to read the contributor's guide to the GitHub package before submitting any pull requests.
Requirements
Description of the Change
We received feedback asking to save users clicks when looking at reviews for non-checked out branches. See #2077.
This PR enables users to access reviews for any PR listed in the GitHub tab (not just the checked out PR) via a "See reviews" context menu item.
I also took this opportunity to add a quick way to view the PR on dotcom via a "View on GitHub" context menu item.
Screenshot/Gif
Alternate Designs
Initially considered hiding the option behind a right-click context menu, but figured adding a kebab icon would make this more discoverable. The drawback is that the icon takes up some UI real-estate, but in my opinion it's small and discreet enough that it's fine. Open to feedback and other suggestions.
Benefits
Currently, it is only possible to view review comments for the checked out PR from the PR list.
In order to view review comments for a PR that is not checked out the user has to click the desired PR in the PR list to open the PR detail pane item, open the "Files" tab, and click the "See reviews" button in the footer of the tab.
With this change, we increase consistency by allowing the user to open reviews for any PR directly from the PR list. Previously this was only possible for the checked out PR.
Possible Drawbacks
None really... the only mild concern is that the additional icon might increase visual noise.
Applicable Issues
Fixes #2077
Metrics
Adding an event for 'open-reviews-tab'.
Adding an event for 'open-issueish-in-browser' to collect information about the users leaving the editor for the browser.
Tests
Tested
openOnGitHub
method along withopen-issueish-in-browser
event firingTested that
showActionsMenu
handler is called when the menu icon is clickedCurrently there is no good way to test Electron Menus.
Documentation
N/A
Release Notes
User Experience Research (Optional)
N/A