[TopicSpace] Sort repos by issue count
Description
Similar to #8, but also allows user to sort by issue count.
Suggested solution
- enhance dropdown UI to show number of issues that the repository has (it is already in the repository data in the props).
- then add a sort icon at the UI to allow for sorting. similar to #8, ensure that when you sort the data in a group, it does not affect the group's order of items.
Relevant Code
For the dropdown UI, you only need to modify renderGroupedOptions method at /features/topicspace/RepositoryPicker.tsx
Hello @lyqht I would like to work on this issue, can you assign me this issue?
Sure thing @then00bprogrammer let me know if u meet any issues
alright, can you help me with how to get issues, you said that it's already in the props but I can't seem to find where..i'm a bit to opensource..
The props get the information passed through them to the picker component, the issue is to simply improve upon the UI with it.
Inspiration maybe?
Hi @Lofty-Brambles thanks for helping to answer his enquiry!
For @then00bprogrammer, for more context,
- there is a
has_issuesfield for u to render aNo issues foundtext next to the repo in the dropdown - there is also a
open_issues_countfor issue count.
You can either use the React component inspector to inspect the page props for repos, each item in this field is the same as the response schema for getting repos in the GitHub API Docs
Hope this helps!
This issue is still available, you can refer to #18 on how to implement it for this card.