diff --git a/src/components/dashboard/BlueprintModal.tsx b/src/components/dashboard/BlueprintModal.tsx index f46909f..cff2e72 100644 --- a/src/components/dashboard/BlueprintModal.tsx +++ b/src/components/dashboard/BlueprintModal.tsx @@ -53,6 +53,19 @@ const STATUS_CONFIG: Record = { + written: { icon: "✓", color: "text-green-600", label: "已写入" }, + updated: { icon: "↑", color: "text-blue-600", label: null }, + appended: { icon: "+", color: "text-blue-600", label: null }, + skipped: { icon: "○", color: "text-gray-400", label: "已存在" }, + failed: { icon: "✗", color: "text-red-600", label: null }, +}; + const TASK_PREFIX: Record = { done: "✅", in_progress: "🔵", @@ -1289,25 +1302,17 @@ function GovernancePanel({ {packTemplates && (

模板分发

- {packTemplates.map((t) => ( -

- - {t.action === "written" ? "✓" : t.action === "skipped" ? "○" : "✗"} - - {t.name} - - {t.action === "written" ? "已写入" : t.action === "skipped" ? "已存在" : t.detail} - -

- ))} + {packTemplates.map((t) => { + const style = + TEMPLATE_ACTION_STYLE[t.action] ?? TEMPLATE_ACTION_STYLE.failed; + return ( +

+ {style.icon} + {t.name} + {style.label ?? t.detail} +

+ ); + })}
)} {buffStatus?.status === "active" ? (