[GOOD FIRST ISSUE] Add 'View on GitHub' link to each repo in TopRepos
Summary
Each repo row in the TopRepos widget should link directly to that repo on GitHub.
Current Behaviour
Repo names are displayed as plain text (or an anchor that links to the full /u/username profile only).
Expected Behaviour
Clicking a repo name opens https://github.com/owner/repo in a new tab.
Acceptance Criteria
- [ ] Repo name is an
<a>tag withhref={repo.url},target="_blank",rel="noopener noreferrer" - [ ] Hover state: underline or accent colour
- [ ] Screen reader label:
aria-label=Open on GitHub`` - [ ] No change to the commit count or bar layout
Files to Touch
src/components/TopRepos.tsx
Difficulty
Beginner — a single <a> wrapper change.
hiii @Priyanshu-byte-coder i would like to work on this issue please assign it to me under GSSoC'26.
@seffhunnn Please see the note left on #90 — mass-requesting assignment across multiple issues at once won't result in any assignments. Pick one issue, share your approach, and we'll go from there.
HI @Priyanshu-byte-coder I would like to work on this issue as part of GSSoC 2026.
Please assign me this issue.
Hi @Priyanshu-byte-coder I would like to work on this issue as part of GSSoC 2026.
Proposed Solution
I reviewed the issue and identified that repository navigation inside the TopRepos widget can be improved by making each repository name directly accessible as an external GitHub link.
This enhancement will provide a more intuitive browsing experience while preserving the current widget structure and contribution metrics layout.
Implementation Strategy
Update src/components/TopRepos.tsx so that each repository title becomes an accessible external anchor element pointing to the repository’s GitHub URL.
Current rendering logic will remain unchanged except for wrapping the repository name with an <a> tag.
Planned Update
<a
href={repo.url}
target="_blank"
rel="noopener noreferrer"
aria-label={`Open ${repo.name} on GitHub`}
className="repo-link"
>
{repo.name}
</a>
Why This Approach
This solution is intentionally lightweight and isolated:
- No data structure changes
- No impact on repository statistics
- No modification to contribution bars
- Minimal rendering overhead
- Preserves existing component hierarchy
The update only improves repository discoverability and navigation.
Accessibility Improvements
The implementation includes proper accessibility support by adding:
aria-label={`Open ${repo.name} on GitHub`}
Benefits:
- Better screen reader context
- Clear navigation intent
- Improved keyboard accessibility
- Safer external navigation using
noopener noreferrer
UI/UX Enhancements
To align with the current design system, the repository link will include a subtle interactive hover state.
Possible enhancements:
- Underline transition on hover
- Accent-color highlight
- Smooth opacity/color transition
- Preserve existing typography and spacing
Example:
.repo-link:hover {
text-decoration: underline;
}
OR
.repo-link:hover {
color: var(--accent);
}
Expected Result
After implementation:
- Clicking a repository name opens the exact GitHub repository
- Links open safely in a new tab
- Existing commit count remains unchanged
- Existing contribution bar layout remains untouched
- Widget usability and navigation improve without altering core functionality
Files to Modify
src/components/TopRepos.tsx
Needed
Reason:
- Small UI-level enhancement
- Single component update
- No API or state management changes
- No business logic modifications required
I would like to work on this issue as part of GSSoC 2026.
Please assign me this issue.
I would like to work on this issue under GSSoC 2026.
I reviewed the issue and found that improving repository navigation inside the TopRepos widget will enhance usability and provide a more intuitive GitHub exploration experience.
Proposed Solution
I’ll update src/components/TopRepos.tsx so that each repository name becomes a direct external GitHub link.
Planned Implementation
Convert repo names into accessible anchor tags:
<a
href={repo.url}
target="_blank"
rel="noopener noreferrer"
aria-label={`Open ${repo.name} on GitHub`}
>
{repo.name}
</a>
Ensure:
- Links open safely in a new tab
- Proper accessibility support using
aria-label - Existing commit count and contribution bar layout remain unchanged
UI/UX Improvements
I’ll add a lightweight hover interaction matching the existing theme:
- Underline effect OR
- Accent-color transition on hover
Example:
className="hover:underline transition-colors"
Additional Quality Checks
- Verify responsiveness across screen sizes
- Preserve current spacing/alignment
- Ensure keyboard accessibility (
Tabnavigation) - Prevent layout shifts inside the widget
Why This Improvement Matters
This change improves:
- Direct repository discoverability
- Navigation efficiency
- Accessibility compliance
- Overall user experience with minimal UI impact
Looking forward to contributing
Hi @Priyanshu-byte-coder,
I would like to work on this issue under GSSoC'26.
My approach would be:
- Locate the TopRepos component.
- Identify where the repository cards are rendered.
- Add a "View on GitHub" button/link to each card using the repository's GitHub URL.
- Ensure the link opens in a new tab and matches the existing UI style.
Please assign this issue to me. Thank you!
@ParidhiMis This issue is already taken by @SHRUTIDHEPE, @Tannuu18, @codedbydollys10. Check other open issues!
Reassigning to @ParidhiMis — this issue had no PR and no activity for over a month, so it's going to the next person who asked for it (first come, first served).
@ParidhiMis it's yours: please open a PR within 7 days or it'll be released again. If you're no longer interested, just say so and I'll pass it on.
Hey @ParidhiMis — this issue was assigned a while back with no recent activity. Unassigning so it's available for Hacktoberfest contributors. Still working on it? Comment and we'll reassign you.
Assigned to @Priyanshu-byte-coder! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!
Done: each repository in TopRepos links to GitHub.
✅ Closed as completed!
If DevTrack has been useful, a ⭐ star on the repo helps the project grow and reach more developers.