Skip to content

feat: make repository titles clickable links to GitHub (closes #60)#62

Open
Ai-chan-0411 wants to merge 1 commit intoO2sa:mainfrom
Ai-chan-0411:feat/clickable-repo-titles
Open

feat: make repository titles clickable links to GitHub (closes #60)#62
Ai-chan-0411 wants to merge 1 commit intoO2sa:mainfrom
Ai-chan-0411:feat/clickable-repo-titles

Conversation

@Ai-chan-0411
Copy link
Copy Markdown
Contributor

Summary

  • Wraps repository name text in <a> tags pointing to https://github.com/{username}/{reponame}
  • Links open in a new tab with target="_blank" and rel="noopener noreferrer" for security
  • Falls back gracefully when repo.name is undefined (no link rendered)

Changes

  • components/top-list.tsx: Added optional titleHref prop to the cardDetails helper; when provided, renders the title as an anchor link instead of plain text. Passes https://github.com/${user.username}/${repo.name} for each top repository card.

Test plan

  • Compare two GitHub users and verify repository names in "Top Repositories" section are clickable links
  • Confirm links open in a new tab pointing to the correct GitHub repo URL
  • Verify that repositories with no name still render as plain text (no broken link)

Fixes #60

🤖 Generated with Claude Code

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: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 12, 2026

Someone is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make repository titles clickable (link to GitHub repo)

1 participant