[FEATURE] Hide repositories with zero issues #88
Labels
enhancement
New feature or request
gitauto
GitAuto label to trigger the app in a issue.
good first issue
Good for newcomers
help wanted
Extra attention is needed
javascript
Pull requests that update Javascript code
options
repositories
Is your feature request related to a problem? Please describe.
Currently, the Repositories page displays all repositories, including those with zero issues (vacancies). This can clutter the view, making it difficult to focus on repositories that have active vacancies.
Describe the solution you'd like
I propose adding a switch button (on/off or enable/disable style) that allows users to hide or show repositories with no vacancies.
Technical Notes:
localStorage
for a stateful experience, so the preference persists across page reloads.API Integration:
The API already includes the ability to filter out empty repositories. By adding a query string value of
hide-empty=true
to the URL, we can hide repositories/organizations with no issues/vacancies.https://apibr.com/vagas/api/v1/repositories?per_page=10&page=1&hide-empty=true
https://apibr.com/vagas/api/v1/repositories?per_page=10&page=1&hide-empty=false
Remarks:
For the first step, we can implement this feature solely on the front-end (UI) side in this repository. Later, we can extend the functionality to the back-end (API) side to enable filtering by query string as well.
Sample Code Snippet (ReactJS):
Here’s a basic implementation of the switch functionality using a React Switch component:
Acceptance Criteria:
localStorage
.The text was updated successfully, but these errors were encountered: