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:
Providing navigation options such as "Previous" and "Next" buttons.
Displaying page numbers (e.g., "Page 1 of 10").
Allowing users to select the number of repositories displayed per page (e.g., 10, 20, 30).
Benefits
Improved User Experience: Users can easily navigate through all repositories.
Better Data Management: Users can control the number of repositories displayed per page, making it easier to browse large numbers of repositories.
Implementation Plan
Fetch Total Repository Count:
Retrieve the total number of public repositories for the user.
API Adjustments:
Modify API requests to include pagination parameters, such as page and per_page.
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
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.
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
Fetch Total Repository Count:
API Adjustments:
page
andper_page
.Frontend Modifications:
Example UI Mockup
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 levellevel1
,level2
,level3
must be there so that contribution will be counted.