Skip to content

[FEAT] Add search filter to TopRepos widget #1909

@Priyanshu-byte-coder

Description

@Priyanshu-byte-coder

Feature request

Users with many repositories need to scroll through a long list in the TopRepos widget to find a specific repo. A simple text filter input would make this much faster.

Proposed solution

Add a small search input at the top of the TopRepos card that client-side filters the displayed list by repo name.

File

src/components/TopRepos.tsx

Implementation hints

const [filter, setFilter] = useState('');
const filtered = repos.filter(r => r.name.toLowerCase().includes(filter.toLowerCase()));

Acceptance criteria

  • Input filters repos by name in real-time (no API call needed)
  • Input clears on widget re-mount
  • Shows a 'No results' message when filter matches nothing
  • Input is accessible (has an aria-label)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomersgssoc26GSSoC 2026 contributionlevel:beginnerGSSoC: Beginner difficulty (20 pts)type:featureGSSoC type bonus: new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions