Skip to content

Fix the mention autocomplete #1003

Closed

Description

@sindresorhus

See: https://twitter.com/jaffathecake/status/953247205200154624

Not sure what we could do, but we could at least put users that have commented on the issue first, with the author of the last comment at the top.

Activity

  1. hkdobrev commented on Jan 17, 2018

    @hkdobrev
    Contributor

    I don't see why the autocomplete is not offline-first. If I don't have internet connection it should still complete users from the page, then continue with owners collaborators, contributors, but only online.

    I think we can show it immediately based on the page contents:

    If it's a PR/issue conversation:

    1. Original poster first.
    2. Last comment author (or previous comment author in inline review thread)
    3. Everyone else.

    If it's a commit page:

    1. Author(s) first (if not a bot). (GitHub could now list multiple authors)
    2. Committer second (if different than Author and not GitHub or bot)
    3. Last comment author.
    4. Everyone else.
  2. hkdobrev commented on Feb 2, 2018

    @hkdobrev
    Contributor

    Added an update to my suggestion since GitHub may now list multiple authors of a commit: https://github.com/blog/2496-commit-together-with-co-authors

  3. fregante commented on Mar 5, 2018

    @fregante
    Member

    Is this really possible? We'd have to hack their filter tool on the fly

  4. sindresorhus commented on Nov 7, 2018

    @sindresorhus
    MemberAuthor

    @bfred-it Probably not easy, yeah, but would be nice.

  5. dertieran commented on Nov 16, 2018

    @dertieran
    Contributor

    I started hacking around with this here, because I noticed all possible suggestions are available as an attribute in the .suggester > ul when it is loaded.

    But I noticed that Github actually has a pretty good suggestion initially
    image
    this is when it loads the suggestion from the api but then if you search the cached results it fails...
    image
    (Example is for this issue at this moment)

    Maybe @lukehefson can help here or provide some information

  6. lukehefson commented on Nov 16, 2018

    @lukehefson

    Maybe @lukehefson can help here or provide some information

    I know we're talked internally about improving the picker and even spiked out some ideas – but I'm not 100% sure myself where we're at with it right now – I'll dig in.

    From what I can tell across various feedback (including tweets in that original twitter thread) there are a lot of opinions on what the algorithm should be. So I guess what I'd love to know is… what do YOU, the refined-github community feel should be the right order of results? Is it #1003 (comment)? Do you have a consensus?

  7. sindresorhus commented on Nov 18, 2018

    @sindresorhus
    MemberAuthor

    @lukehefson #1003 (comment) is pretty good, but I would like to propose making it even more comprehensive.

    The list should be prioritized/sorted as follows:

    Issue:

    • The user that opened the issue.
    • Last comment author.
    • Users assigned to the issue.
    • All comment authors.
    • If the repo is in an org, members of org.
    • Collaborators.
    • Users I follow. (I often want to mention friends and co-workers!)
    • Everyone else.

    PR:

    • The user that opened the PR.
    • Last comment author (or previous comment author in inline review thread).
    • Authors of the commits in the PR.
    • Users assigned to the issue.
    • Users request for review.
    • All comment authors.
    • If the repo is in an org, members of org.
    • Collaborators.
    • Users I follow.
    • Everyone else.

    Commit page:

    • Authors.
    • Committer, if different than Authors and not GitHub or bot.
    • Last comment author.
    • All comment authors.
    • If the repo is in an org, members of org.
    • Collaborators.
    • Users I follow.
    • Everyone else.
  8. dertieran commented on Nov 18, 2018

    @dertieran
    Contributor

    I think everything that is a bit more tailored to the context then just "here is a alphabetic list of users that have ever commited to this repository".

    Another question I have is if I should hack more around with it and try to get something working or will this be changed soon™ anyway.

  9. lukehefson commented on Nov 19, 2018

    @lukehefson

    The list should be prioritized/sorted as follows:

    I think everything that is a bit more tailored to the context

    This is super useful – thanks folks!

    Another question I have is if I should hack more around with it and try to get something working or if this will be changed soon anyway.

    @dertieran I wouldn't want you to stop you from working on refined-github! At this point I'm just doing investigatory work to understand the problem and scope a bit better – there wouldn't be any immediate changes to this on GitHub I don't think.

  10. fregante commented on Nov 23, 2021

    @fregante
    Member
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