Skip to content

Commit 0828540

Browse files
Ai-chan-0411aoi-dev-0411claudeO2sa
authored
feat: make repository titles clickable links to GitHub (closes #60) (#62)
Wrap repository name text in anchor tags pointing to https://github.com/{username}/{reponame} with target=_blank and rel=noopener noreferrer for security. Co-authored-by: aoi-dev-0411 <aoi@example.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Osama Mabkhot <99215291+O2sa@users.noreply.github.com>
1 parent 4d1a378 commit 0828540

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

components/top-list.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ export function TopList({ userResults }: Props) {
9393
</CardDescription>
9494
</CardHeader>
9595
<CardContent className="space-y-6">
96-
{/* Top Repos */}
9796
<div>
9897
<h4 className="font-semibold flex items-center gap-2 mb-3 text-sm">
9998
<Star className="h-4 w-4" /> Top Repositories
@@ -103,6 +102,9 @@ export function TopList({ userResults }: Props) {
103102
cardDetails({
104103
key: `repo-${i}`,
105104
title: repo.name || "Unknown Repository",
105+
titleUrl: repo.name
106+
? `https://github.com/${user.username}/${repo.name}`
107+
: undefined,
106108
score: repo.score,
107109
badges: [
108110
{

0 commit comments

Comments
 (0)