refactor(skills): imported-origin marker uses Download, not Sparkles (#6187)

* refactor(skills): imported-origin marker uses Download, not Sparkles

Follow-up to #6177: with the identity mark unified on SkillIcon, the
only Sparkles left on the skill detail page was the imported-origin
marker. Swap it for Download — the glyph the import affordances
(list-toolbar import button, URL import dialog) already use — so origin
and the action that created it share one visual language, and Sparkles
disappears from skill surfaces entirely.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(skills): detail origin marker mirrors the list's three-way source split

The Download swap put an import glyph on manually created skills. Align
the detail identity strip with the list's Source column: manual origin
gets Pencil and the "Created manually" wording (was "Workspace"),
runtime keeps HardDrive, imported sources keep Download.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing
2026-07-30 17:25:06 +08:00
committed by GitHub
parent d58dab0757
commit 67744d413d
5 changed files with 11 additions and 6 deletions

View File

@@ -122,7 +122,7 @@
"origin_clawhub": "Imported · ClawHub",
"origin_skills_sh": "Imported · Skills.sh",
"origin_github": "Imported · GitHub",
"origin_workspace": "Workspace"
"origin_workspace": "Created manually"
},
"conflict_banner": {
"title": "Someone else updated this skill",

View File

@@ -117,7 +117,7 @@
"origin_clawhub": "インポート済み · ClawHub",
"origin_skills_sh": "インポート済み · Skills.sh",
"origin_github": "インポート済み · GitHub",
"origin_workspace": "ワークスペース"
"origin_workspace": "手動で作成"
},
"conflict_banner": {
"title": "他のユーザーがこのスキルを更新しました",

View File

@@ -117,7 +117,7 @@
"origin_clawhub": "가져옴 · ClawHub",
"origin_skills_sh": "가져옴 · Skills.sh",
"origin_github": "가져옴 · GitHub",
"origin_workspace": "워크스페이스"
"origin_workspace": "직접 생성"
},
"conflict_banner": {
"title": "다른 사람이 이 스킬을 업데이트했습니다",

View File

@@ -117,7 +117,7 @@
"origin_clawhub": "导入自 · ClawHub",
"origin_skills_sh": "导入自 · Skills.sh",
"origin_github": "导入自 · GitHub",
"origin_workspace": "工作区"
"origin_workspace": "手动创建"
},
"conflict_banner": {
"title": "其他人更新了这个 skill",

View File

@@ -5,13 +5,14 @@ import {
AlertCircle,
AlertTriangle,
Clock3,
Download,
FileText,
HardDrive,
Loader2,
Lock,
Pencil,
Plus,
Save,
Sparkles,
Trash2,
UserPlus,
Users,
@@ -252,10 +253,14 @@ function SkillIdentity({
<div className="flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-caption text-muted-foreground sm:ml-auto">
{originLabel && (
<span className="inline-flex min-w-0 items-center gap-1.5">
{/* Same three-way split as the list's Source column: runtime,
created here, imported. */}
{isRuntimeOrigin ? (
<HardDrive className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />
) : origin?.type === "manual" ? (
<Pencil className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />
) : (
<Sparkles className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />
<Download className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />
)}
<span className="truncate">{originLabel}</span>
</span>