middleware
middleware copied to clipboard
Add repos by orgs. Select org first?
Description:
A user might be a part of multiple orgs and while selecting the repositories, it becomes confusing to find the right org.
Expected behavior:
It would be great to choose the orgs first. This will also help to reduce the clutter in the Add Repos option.
Actual behavior:
Today, it loads up a list of repos across my personal and from other orgs.
does #445 solve this?
I don't think so. Adding repos by org might require user to repeatedly add org name for search.
noted!
Hey, I'd be happy to take this up.
If it's possible to strictly enforce the flow of choosing the org before the repo, I think we can change the useReposSearch hook in useTeamsConfig.tsx to only search for orgs, and using that value, render a similar searchbox on the side with the repositories owned by that org (perhaps rename things to useOrgsSearch and useOrgReposSearch?)
This will obviously not let the users search repos directly though. Maybe keep the current box as it is, and alongside it, provide this flow as well? Let me know which implementation you'd prefer.
Hey @hardikbhatia777, we're picking this up internally actually. Apologies this was unassigned.
However, as a good first issue, you could pick up this one if you're interested.
@jayantbh Oh alright. The issue you linked is already solved though. No worries, I'll pick a different one.
Ah I see. Tbh it was picked but not really solved. The associated pr may be closed without merging so you're free to give it a shot anyway.