bishalde / GithubCrawler

https://githubcrawler.vercel.app
7 stars 5 forks source link

Feature Request: Implement Pagination for Repository Display #45

Open shashankbhosagi opened 1 month ago

shashankbhosagi commented 1 month ago

Feature Request: Add Pagination to Repository Display

Current Behavior

When a username is searched, only the first 30 repositories are displayed. If the user has more than 30 public repositories, the additional repositories are not accessible through the current interface. For instance, if a user has 52 public repositories, only the first 30 are shown.

Suggested Improvement

To enhance the user experience and ensure all repositories are accessible, I propose adding pagination to the repository display. This would involve:

Benefits

Implementation Plan

  1. Fetch Total Repository Count:

    • Retrieve the total number of public repositories for the user.
  2. API Adjustments:

    • Modify API requests to include pagination parameters, such as page and per_page.
  3. Frontend Modifications:

    • Add UI components for pagination, including "Previous" and "Next" buttons, and page numbers.
    • Implement a dropdown or input field for users to select the number of repositories displayed per page.

Example UI Mockup

image

Conclusion

Implementing pagination will significantly enhance the usability and functionality of the repository display feature. Users will have better control and access to all repositories, leading to a more satisfying and complete user experience.

Thank you for considering this feature request. I am eager to contribute to the implementation and look forward to your feedback.

Also if you can add this feature request under GSSOC tag and also assign it a level it would help me a lot. As in guidelines it has been mentioned that issues with gssoc tag and one of the level level1,level2,level3 must be there so that contribution will be counted.

shashankbhosagi commented 1 month ago

Please assign this issue to me.

Harsha19-08 commented 1 month ago

Can u please assign this issue to me