From 5da9945792045d22425f51f01b5b236d9aa7090c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 16 Apr 2026 23:06:35 -0400 Subject: [PATCH] skills: replace hand-rolled primary button with ActionButton; use Input primitive (P2-33, P2-34) --- .../components/skills/SkillImportModal.tsx | 18 +++++------------- .../components/skills/SkillsSection.tsx | 14 ++++++-------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/src/renderer/components/skills/SkillImportModal.tsx b/src/renderer/components/skills/SkillImportModal.tsx index 07c4f6cd..41593ca8 100644 --- a/src/renderer/components/skills/SkillImportModal.tsx +++ b/src/renderer/components/skills/SkillImportModal.tsx @@ -5,7 +5,7 @@ import { Globe, Link, } from "@phosphor-icons/react"; -import { Modal, ActionButton } from "../ui"; +import { Modal, ActionButton, Input } from "../ui"; import { useAppStore } from "../../state/store"; type TabId = "github" | "local" | "url" | "skills_sh"; @@ -143,21 +143,13 @@ export function SkillImportModal({
{activeTab === "local" ? (
- setSource(e.target.value)} - placeholder={placeholder.local} - /> +
+ +
void handleBrowse()} />
) : ( - setSource(e.target.value)} - placeholder={placeholder[activeTab]} - /> + )} {activeTab === "skills_sh" && ( diff --git a/src/renderer/components/skills/SkillsSection.tsx b/src/renderer/components/skills/SkillsSection.tsx index 40c3f741..f9f80d23 100644 --- a/src/renderer/components/skills/SkillsSection.tsx +++ b/src/renderer/components/skills/SkillsSection.tsx @@ -5,7 +5,7 @@ import { } from "@phosphor-icons/react"; import type { AgentRecord } from "@shared/types"; import { useAppStore } from "../../state/store"; -import { EmptyState } from "../ui"; +import { ActionButton, EmptyState } from "../ui"; import { SkillList } from "./SkillList"; import { SkillImportModal } from "./SkillImportModal"; import { SkillDetail } from "./SkillDetail"; @@ -106,14 +106,12 @@ export function SkillsSection({ title="No skills imported" detail="Import skills from GitHub, a local path, or skills.sh to get started." action={ - + /> } /> ) : (