Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more filters and sorting options to the list #20

Open
jo-chemla opened this issue Jan 12, 2024 · 2 comments
Open

Add more filters and sorting options to the list #20

jo-chemla opened this issue Jan 12, 2024 · 2 comments

Comments

@jo-chemla
Copy link

Hey there,

First of all, really neat UI for the awesome-self-hosted data, impressive work!
A welcome addition would be to add more filters/sort options on the list, like

  • most popular repo over the past month/year (probably the increase of the count of github stars over the given period)
  • filter by number of commit past year (only show active repos, or very-active ones like those with >N commits/year
  • filter by number of stars, number of maintainers, languages, date of creation, etc.

An out-of-scope nice view could also be to show on a single page, the 3 most starred repos for each category, each on its own line.

@mkitzmann
Copy link
Owner

Hey @jo-chemla

Thank you for your suggestions! This would be great, I will go through each one seperately:

  1. Most popular repo: This somewhat ties into Star history #8, as we would have to request the stars of each repo for the last month/year. Sadly github currently does not provide a star count per timeframe at the moment, so each star date would be requested and then accumulated. Probably is quite time consuming.
  2. filter by number of commits: This should be pretty straight forward since we already get the number of commits per month for the graph.
  3. filter by number of stars: Also pretty simple if only the total is used, otherwise more complex as in point 1.
  4. filter by number of maintainers: We are currently not getting this info, but should be part of the graphql schema.
  5. filter by languages: I had trouble with languages (as in Javascript, C++), as the GraphQL did not seem to provide this info
  6. filter by date of creation: That could be done, but we would need to create a range datepicker or find a suitable library
  7. Highlight 3 most starred repos: Do you think this would show any more information than the usual card or additional things?

@jo-chemla
Copy link
Author

jo-chemla commented Jan 13, 2024

Hey,
Thanks for getting back so quickly and the detailed reply!

  • Indeed I would have assumed Github would allow to count stargazers at different timestamps via their graphql endpoint, or at least that they would provide with these "last-month trend". Will follow the star-history thread for updates.
  • Indeed most of the filters I mentioned are based on properties already aggregated for each repo (number of commits, stars, date-of-creation). Are you using a specific UI framework (asking for the daterange-picker).
  • Understood for the languages not returned by the graphql endpoint, no worries this could be helpful at a later stage.
  • And finally, indeed, the idea I had in mind was just simply displaying the usual cards, maybe 3 per category - interleaved with the title of the category before the corresponding most starred repo of that category.

Hope this helps clarify the suggestion, don't hesitate if you need anything else!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants