Skip to content

feat: add options to sort repositories by stars, issues, and activity - #2779

Open
Habishake005 wants to merge 2 commits into
DeepSourceCorp:masterfrom
Habishake005:feat/add-sorting
Open

feat: add options to sort repositories by stars, issues, and activity#2779
Habishake005 wants to merge 2 commits into
DeepSourceCorp:masterfrom
Habishake005:feat/add-sorting

Conversation

@Habishake005

Copy link
Copy Markdown

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.

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

@Habishake005 is attempting to deploy a commit to the DeepSource Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant