Remove namespace from skill list sidebars

Remove the org/repo namespace line from both the company skills sidebar
and agent skills tab — cleaner to show just the skill name with source
icon.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta
2026-03-16 19:11:01 -05:00
parent 56f7807732
commit 79e0915a86
2 changed files with 12 additions and 24 deletions

View File

@@ -1469,11 +1469,6 @@ function AgentSkillsTab({
<div className="min-w-0 flex-1">
<div className="flex items-center justify-between gap-3">
<div className="min-w-0">
{skill.key.includes("/") && (
<div className="truncate font-mono text-[11px] leading-4 text-muted-foreground">
{skill.key.split("/").slice(0, -1).join("/")}
</div>
)}
<span className="truncate font-medium">{skill.name}</span>
</div>
{skill.linkTo ? (

View File

@@ -434,25 +434,18 @@ function SkillList({
className="flex min-w-0 items-center self-stretch pr-2 text-left no-underline"
onClick={() => onSelectSkill(skill.id)}
>
<span className="min-w-0 self-center">
{skill.key.includes("/") && (
<span className="block truncate font-mono text-[11px] leading-4 text-muted-foreground">
{skill.key.split("/").slice(0, -1).join("/")}
</span>
)}
<span className="flex min-w-0 items-center gap-2">
<Tooltip>
<TooltipTrigger asChild>
<span className="flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground opacity-75 transition-opacity group-hover:opacity-100">
<SourceIcon className="h-3.5 w-3.5" />
<span className="sr-only">{source.managedLabel}</span>
</span>
</TooltipTrigger>
<TooltipContent side="top">{source.managedLabel}</TooltipContent>
</Tooltip>
<span className="min-w-0 overflow-hidden text-[13px] font-medium leading-5 [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:3]">
{skill.name}
</span>
<span className="flex min-w-0 items-center gap-2 self-center">
<Tooltip>
<TooltipTrigger asChild>
<span className="flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground opacity-75 transition-opacity group-hover:opacity-100">
<SourceIcon className="h-3.5 w-3.5" />
<span className="sr-only">{source.managedLabel}</span>
</span>
</TooltipTrigger>
<TooltipContent side="top">{source.managedLabel}</TooltipContent>
</Tooltip>
<span className="min-w-0 overflow-hidden text-[13px] font-medium leading-5 [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:3]">
{skill.name}
</span>
</span>
</Link>