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.