Skip to content

'Top/Most Helpful Comments' on issues #1898

Closed

Description

@cibelius

Issuehunt badges

Hey!

Often, when debugging problems we run into when using open source tools, we end up on a relevant GitHub issue of the repository in question. These issues sometimes contain solutions to the problems in the comments, and users react to the most helpful comments using the 👍 and 🎉 reactions.

I think a feature which would highlight the comments with a large amount of 👍 and 🎉 would be really useful for quickly finding the most useful comments out of an issue. So instead of having to scroll through all of the comments, a user who ends up on the issue-page could instantly see the most 'upvoted' comments which most likely contain the information they are looking for.

You could think of this rather similarly to Stack Overflow answers. Stack Overflow sorts the answers by having the most helpful ones at the top. But we probably don't want to sort the comments, since that could be very confusing for the user.

Thus, I think a good option might be to have a small list of 'top comments' somewhere at the top of an issue-page, which would contain a small snippet of the comment (e.g. first 50 characters), and by clicking the comment listed there it would scroll the user to the full comment.

If people agree that this would be a good feature, I could try to sketch a UI for it and make a PR :)


IssueHunt Summary

lubien lubien has been rewarded.

Sponsors (Total: $40.00)

Tips

Activity

  1. changed the title [-]'Top answers' on issues[/-] [+]'Top/Most Helpful Comments' on issues[/+] on Apr 1, 2019
  2. sindresorhus commented on May 30, 2019

    @sindresorhus
    Member

    What would the heuristics be to detect when to highlight a comment?

  3. fregante commented on May 30, 2019

    @fregante
    Member

    What would the heuristics be to detect when to highlight a comment?

    Small real life example: leafo/sticky-kit#201 (comment)

    Probably just a comment that:

    • is the 5th or later comment (it doesn't make sense to highlight a comment that is right under the opening issue already)
    • has the most 👍 reactions
    • has at least 10 👍 reactions (or 👍.count > comments.length * 0.8)
    • is not controversial: 👎.count < 👍.count / 2

    Also the question is: how do we highlight it?

    What about this color: orange bar? The whole bar would link to the comment at the bottom

    Screenshot 2019-05-30 at 17 33 08

    Or "highest-rated comment", to avoid assuming that it's a question that requires an answer.

    Or even it could copy the dom with the 15 👍 [avatars] as a label

  4. sindresorhus commented on May 30, 2019

    @sindresorhus
    Member

    Sounds good 👌

  5. added
    💵 Funded on Issuehunt
    on May 30, 2019
  6. IssueHuntBot commented on May 30, 2019

    @IssueHuntBot

    @IssueHunt has funded $40.00 to this issue.


  7. lubien commented on May 31, 2019

    @lubien
    Contributor

    I've started working on this and I'm halfway done. Will make a PR soon.

  8. lubien commented on May 31, 2019

    @lubien
    Contributor

    @bfred-it what's your take on this:

    image

    --

    image

    Edit: 1px border version

    image

  9. fregante commented on Jun 1, 2019

    @fregante
    Member

    Looks good

  10. added and removed
    💵 Funded on Issuehunt
    on Jun 5, 2019
  11. IssueHuntBot commented on Jun 5, 2019

    @IssueHuntBot

    @sindresorhus has rewarded $36.00 to @lubien. See it on IssueHunt

    • 💰 Total deposit: $40.00
    • 🎉 Repository reward(0%): $0.00
    • 🔧 Service fee(10%): $4.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions