Monorepo for Tangled tangled.org

proposal: issues ux: assigning users to issues could be smoother by having author and repo collaborators listed first in autocomplete #366

open
opened by samanthanguyen.me

After I write an issue, sometimes I want to be able to quickly self-assign or assign to someone I'm working with that has already agreed to doing it.

Proposed change#

I think this process could be easier with some improvements to the frontend:

  • If the author has permission to self-assign, there should be something clickable that says "Assign yourself"
  • When I click on the text input, I want to be able to see suggestions from autocomplete which lists off project collaborators first + the author. If none of those suggested users happen to match I want to assign, then I could start typing instead. This would likely turn the workflow on average into 1 or 2 clicks.
    • For example: If someone else authors an issue but in the issue discussion, agrees to work on it and gets an OK, being able to assign them with 1 click would make the issue workflow very smooth.

Implementation#

Unfortunately I'm not very familiar with the codebase, but off the-top-of-my head what I'm thinking:

  • only trigger a DB query when the user clicks on the html input
  • if the query to get all the collaborators is expensive (i'm not familiar with atproto and the db setup :( ), since repo collaborators don't change that often, could be stored as a database index

The actual autocomplete UI itself doesn't need to be changed, it would just show up in the same search result UI that already shows up.

we presently use the actor-typeahead component for this, would be nice if there were a way to filter this or prioritize certain DIDs over others (maybe we have to implement this ourselves). a good start would be to fork this lib and allow creating "defaults" in the typeahead results, which will always surface collaborators/participants in the issue.

good to know, thank you! I'll start looking into this.

sign up or login to add to the discussion
Labels

None yet.

area
appview
assignee

None yet.

Participants 2
AT URI
at://did:plc:smd2mvg2dao4rqnnz6qexdov/sh.tangled.repo.issue/3mbq4v6aufd22