good-first-issue
good-first-issue copied to clipboard
refactor(UI): unify search/sort logic via composable, add "Fresh" repo badge, and modernize language filtering
Hey👋 @jai-deepsource!
What this PR does
This PR introduces several enhancements aimed at improving repository discoverability, user experience, and code maintainability across the Good First Issue platform.
Changes Made
RepoBox.vue
- Added a green “Fresh” badge next to "last activity" for recently updated repositories (within last 30 days).
- Helps contributors quickly identify actively maintained projects.
Sidebar.vue
- Replaced static language pills with a dropdown selector.
- Shows selected tag(s) with tag-style chips and count.
- Supports viewing all languages with “Show all languages” option.
- Sorted tags alphabetically.
- Navigates using Vue Router on language change.
index.vue and pages/language/[slug].vue
- Added search bar to filter projects by name, description, or owner.
- Added sort dropdown: Best Match (default), Newest, Oldest.
- Extracted reusable logic into a composable for consistency and DRY code.
composables/useFilteredRepos.js
- New composable to manage
searchQuery,sortOrder, andfilteredAndSortedRepos. - Used across both index and language pages.
Checklist
- UI tested locally
- Reusability ensured via composable
- Navigation works correctly
- Tag filtering behaves as expected
Let me know if you'd like screenshots, a demo GIF, or help splitting this into multiple commits while keeping a single PR!
Closing as this describes a pull request, not an issue. Please submit the changes as an actual PR.