forked from farhoodlabs/paperclip
Namespace company skill identities
Persist canonical namespaced skill keys, split adapter runtime names from skill keys, and update portability/import flows to carry the canonical identity end-to-end. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -389,7 +389,7 @@ function SkillList({
|
||||
onSelectPath: (skillId: string, path: string) => void;
|
||||
}) {
|
||||
const filteredSkills = skills.filter((skill) => {
|
||||
const haystack = `${skill.name} ${skill.slug} ${skill.sourceLabel ?? ""}`.toLowerCase();
|
||||
const haystack = `${skill.name} ${skill.key} ${skill.slug} ${skill.sourceLabel ?? ""}`.toLowerCase();
|
||||
return haystack.includes(skillFilter.toLowerCase());
|
||||
});
|
||||
|
||||
@@ -435,6 +435,9 @@ function SkillList({
|
||||
<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
|
||||
@@ -596,6 +599,10 @@ function SkillPane({
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground">Key</span>
|
||||
<span className="font-mono text-xs">{detail.key}</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground">Mode</span>
|
||||
<span>{detail.editable ? "Editable" : "Read only"}</span>
|
||||
|
||||
Reference in New Issue
Block a user