diff --git a/app/skills/page.tsx b/app/skills/page.tsx index 7371eb0..4cd4cdc 100644 --- a/app/skills/page.tsx +++ b/app/skills/page.tsx @@ -173,6 +173,7 @@ export default function SkillsPage() { const filtered = skills.filter((skill) => { if (filter === "builtin" && skill.source !== "builtin") return false; if (filter === "extension" && !skill.source.startsWith("extension:")) return false; + if (filter === "workspace" && skill.source !== "workspace") return false; if (filter === "custom" && skill.source !== "custom") return false; if (!search) return true; @@ -188,12 +189,14 @@ export default function SkillsPage() { const sourceLabel = (source: string) => { if (source === "builtin") return t("skills.source.builtin"); if (source.startsWith("extension:")) return source.replace("extension:", `${t("skills.extension")}:`); + if (source === "workspace") return t("skills.workspace"); return t("skills.source.custom"); }; const sourceBadgeClass = (source: string) => { if (source === "builtin") return "bg-blue-500/20 text-blue-400"; if (source.startsWith("extension:")) return "bg-purple-500/20 text-purple-400"; + if (source === "workspace") return "bg-orange-500/20 text-orange-400"; return "bg-green-500/20 text-green-400"; }; @@ -218,6 +221,7 @@ export default function SkillsPage() { const builtinCount = skills.filter((skill) => skill.source === "builtin").length; const extensionCount = skills.filter((skill) => skill.source.startsWith("extension:")).length; + const workspaceCount = skills.filter((skill) => skill.source === "workspace").length; const customCount = skills.filter((skill) => skill.source === "custom").length; return ( @@ -226,7 +230,7 @@ export default function SkillsPage() {
- 共 {skills.length} {t("skills.count")}({t("skills.builtin")} {builtinCount} / {t("skills.extension")} {extensionCount} / {t("skills.custom")} {customCount}) + 共 {skills.length} {t("skills.count")}({t("skills.builtin")} {builtinCount} / {t("skills.extension")} {extensionCount} / {t("skills.workspace")} {workspaceCount} / {t("skills.custom")} {customCount})