Show skill namespace above name, exclude skill name from namespace

In both the company skills list and agent skills tab, the skill key
(e.g. org/repo/skill) is now split so only the namespace portion
(org/repo) appears above the skill name, rather than the full key
below it. Non-namespaced skills show no namespace line.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta
2026-03-16 18:49:58 -05:00
parent 5890b318c4
commit 9a26974ba8
2 changed files with 10 additions and 4 deletions

View File

@@ -1469,8 +1469,12 @@ 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 className="truncate font-mono text-[11px] text-muted-foreground">{skill.key}</div>
</div>
{skill.linkTo ? (
<Link

View File

@@ -432,12 +432,14 @@ function SkillList({
</TooltipTrigger>
<TooltipContent side="top">{source.managedLabel}</TooltipContent>
</Tooltip>
{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="block 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="truncate font-mono text-[11px] text-muted-foreground">
{skill.key}
</span>
</span>
</Link>
<button