Open guibranco opened 1 year ago
@guibranco Pull request completed! Check it out here https://github.com/ApiBR/vagas-aggregator-ui/pull/235 🚀
Note: I automatically create a pull request for an unassigned and open issue in order from oldest to newest once a day at 00:00 UTC, as long as you have remaining automation usage. Should you have any questions or wish to change settings or limits, please feel free to contact info@gitauto.ai or invite us to Slack Connect.
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
.