From 22b2a08e131587cb17115c65d57c2c3d26e7fa91 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 12 Apr 2026 10:19:07 +0800 Subject: [PATCH] feat: enhance SortableSkillRow to display tool whitelist and examples count --- web/app/(console)/skill-definition/page.tsx | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/web/app/(console)/skill-definition/page.tsx b/web/app/(console)/skill-definition/page.tsx index 22f44e5..ae18a8c 100644 --- a/web/app/(console)/skill-definition/page.tsx +++ b/web/app/(console)/skill-definition/page.tsx @@ -148,10 +148,33 @@ function SortableSkillRow({
{item.name}
{item.code} + + 白名单 {item.toolWhitelist.length} + + + 示例 {item.examples.length} +
{item.description || "暂无描述"}
+
+ {item.instruction || "暂无技能说明"} +
+ {item.toolWhitelist.length > 0 ? ( +
+ {item.toolWhitelist.slice(0, 3).map((toolCode) => ( + + {toolCode} + + ))} + {item.toolWhitelist.length > 3 ? ( + + +{item.toolWhitelist.length - 3} + + ) : null} +
+ ) : null}