feat: add options to sort repositories by stars, issues, and activity - #2779
Open
Habishake005 wants to merge 2 commits into
Open
feat: add options to sort repositories by stars, issues, and activity#2779Habishake005 wants to merge 2 commits into
Habishake005 wants to merge 2 commits into
Conversation
|
@Habishake005 is attempting to deploy a commit to the DeepSource Team on Vercel. A member of the Team first needs to authorize it. |
Habishake005
force-pushed
the
feat/add-sorting
branch
from
July 14, 2026 16:43
b4f0fe0 to
c5d3b80
Compare
Habishake005
force-pushed
the
feat/add-sorting
branch
from
July 14, 2026 16:45
c5d3b80 to
f2b48a8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces sorting capabilities to the repository listings on both the home page and the language-specific details pages.
Currently, the repositories are displayed in a random shuffled order (determined at data collection). Allowing users to sort the lists makes it much easier to discover projects based on their size, activity, or issue counts.
This PR introduces sorting capabilities to the repository listings on both the home page and the language-specific details pages.
Currently, the repositories are displayed in a random shuffled order (determined at data collection). Allowing users to sort the lists makes it much easier to discover projects based on their size, activity, or issue counts.
Key Changes
Persistent Sort State: Added a global useSortKey state in composables/states.js so that the selected sorting option is preserved when navigating between the home page and language pages.
Custom Dropdown Selector (SortSelector.vue): Built a dark-themed custom dropdown using Tailwind CSS and Heroicons, including transition animations and click-outside detection.
Computed Sorting Logic: Integrated the dropdown and sorted repository lists on both the main listing page (pages/index.vue) and the language detail page (pages/language/[slug].vue).
Supported Sorting Options:
Default (Random)
Recently Active (Pushed Date)
Stars (High to Low / Low to High)
Issue Count (Most Issues)
Verification
Ran the backend sanity tests via uv run python gfi/test_data.py (all passed).
Checked types using uv run mypy gfi/ (success).
Verified production build compile using npm run build (success).
AI Disclosure
This feature was implemented with the assistance of an AI coding assistant (Gemini/Antigravity). All AI-generated code has been fully reviewed, integrated, and verified to be working correctly.