fix: search results now link to repository detail page

Changed search results to link to internal /repository/{id} page
instead of external GitHub URL, matching command menu behavior.
Users can now view READMEs directly from search results.

GitHub link remains available as a secondary external link icon.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
valknarness
2025-10-29 08:00:18 +01:00
parent d7c095fdb7
commit 109d82ed23

View File

@@ -289,14 +289,20 @@ function SearchPageContent() {
<div key={result.repository_id} className="card-awesome rounded-lg bg-card p-6">
<div className="mb-2 flex items-start justify-between gap-4">
<h3 className="text-xl font-semibold">
<a
href={`/repository/${result.repository_id}`}
className="text-primary hover:text-primary/80"
>
{result.repository_name}
</a>
<a
href={result.repository_url}
target="_blank"
rel="noopener noreferrer"
className="group inline-flex items-center gap-2 text-primary hover:text-primary/80"
className="ml-2 inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-primary"
title="View on GitHub"
>
{result.repository_name}
<ExternalLink className="h-4 w-4 opacity-0 transition-opacity group-hover:opacity-100" />
<ExternalLink className="h-4 w-4" />
</a>
</h3>
{result.stars !== null && (