Skip to content
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

Hide comments in fewer clicks #1428

Merged
merged 10 commits into from Jul 24, 2018
Merged

Hide comments in fewer clicks #1428

merged 10 commits into from Jul 24, 2018

Conversation

fregante
Copy link
Member

@fregante fregante commented Jul 19, 2018

From 5 clicks + 700px mouse movement to 3 clicks + 100px movement.

demo

Fixes #1268
Replaces and closes #1410

  • works on regular comments
  • works on inline PR comments (in Conversation or Files view)
  • works on ajaxed-in comments
  • works when the hide button is always visible (not in a dropdown) (I haven't seen this one)

@fregante
Copy link
Member Author

I thought of making the secondary dropdown because I thought the Hide button would still appear outside the menu sometimes... but I can't find that anymore.

If the Hide button is always inside the dropdown, I can shorten the code by just replacing the content of the dropdown on click instead of opening a new one.

@fregante
Copy link
Member Author

demo

@@ -79,6 +79,7 @@ import displayIssueSuggestions from './features/display-issue-suggestions';
import addPullRequestHotkey from './features/add-pull-request-hotkey';
import openSelectionInNewTab from './features/add-selection-in-new-tab';
import showFollowersYouKnow from './features/show-followers-you-know';
import hideCommentsFaster from './features/hide-comments-faster';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may just be me. But quicklyhidecomments would sound a bit better.

@fregante fregante changed the title Move "comment hide" options to one-click dropdown Hide comments in fewer clicks Jul 21, 2018
@fregante
Copy link
Member Author

fregante commented Jul 24, 2018

Should be good to go ⬇️

@fregante fregante merged commit caa63e5 into master Jul 24, 2018
@fregante fregante deleted the hide-comments-dropdown branch July 24, 2018 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Add shortcut for hiding a comment as "Resolved"
2 participants