Octokit-lite icon indicating copy to clipboard operation
Octokit-lite copied to clipboard

[TopicSpace] Sort repos by issue count

Open lyqht opened this issue 3 years ago • 6 comments

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

lyqht avatar Sep 30 '22 08:09 lyqht

Hello @lyqht I would like to work on this issue, can you assign me this issue?

then00bprogrammer avatar Sep 30 '22 17:09 then00bprogrammer

Sure thing @then00bprogrammer let me know if u meet any issues

lyqht avatar Oct 01 '22 02:10 lyqht

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..

then00bprogrammer avatar Oct 02 '22 16:10 then00bprogrammer

The props get the information passed through them to the picker component, the issue is to simply improve upon the UI with it. image Inspiration maybe?

Lofty-Brambles avatar Oct 02 '22 18:10 Lofty-Brambles

Hi @Lofty-Brambles thanks for helping to answer his enquiry!

For @then00bprogrammer, for more context,

  • there is a has_issues field for u to render a No issues found text next to the repo in the dropdown
  • there is also a open_issues_count for 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!

lyqht avatar Oct 03 '22 02:10 lyqht

This issue is still available, you can refer to #18 on how to implement it for this card.

lyqht avatar Oct 13 '22 03:10 lyqht