From 808b80f29581528e153ab90754a2ec469990a304 Mon Sep 17 00:00:00 2001 From: dongmucat <1127093059@qq.com> Date: Tue, 17 Mar 2026 17:07:28 +0800 Subject: [PATCH] feat: refine landing experience and restore my-skills metadata --- web/src/app/layout.tsx | 1 - web/src/i18n/locales/en.json | 24 ++++++++++++++++++++- web/src/i18n/locales/zh.json | 24 ++++++++++++++++++++- web/src/pages/dashboard/my-skills.tsx | 30 +++++++++++++++++++-------- web/src/pages/skill-detail.tsx | 8 +++---- 5 files changed, 71 insertions(+), 16 deletions(-) diff --git a/web/src/app/layout.tsx b/web/src/app/layout.tsx index 20e2bf8c..85dcb1bf 100644 --- a/web/src/app/layout.tsx +++ b/web/src/app/layout.tsx @@ -19,7 +19,6 @@ export function Layout() { { label: t('nav.landing'), to: '/', exact: true }, { label: t('nav.home'), to: '/skills' }, { label: t('nav.search'), to: '/search' }, - { label: t('nav.skillDetail'), to: '/space/demo/example' }, { label: t('nav.dashboard'), to: '/dashboard', auth: true }, { label: t('nav.mySkills'), to: '/dashboard/skills', auth: true }, { label: t('nav.publish'), to: '/dashboard/publish', auth: true }, diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json index edc527fb..283a8b94 100644 --- a/web/src/i18n/locales/en.json +++ b/web/src/i18n/locales/en.json @@ -15,7 +15,8 @@ "title": "Discover & Share AI Skills", "subtitle": "Build powerful AI agents with community-driven skills", "searchPlaceholder": "Search skills...", - "exploreSkills": "Explore Skills" + "exploreSkills": "Explore Skills", + "publishSkill": "Start Building" }, "features": { "secure": { @@ -29,8 +30,29 @@ "integration": { "title": "Easy Integration", "description": "Seamlessly integrate with your existing tools" + }, + "versionControl": { + "title": "Version Control", + "description": "Structured version management and release workflows that keep skill packages traceable and reliable." + }, + "cli": { + "title": "CLI Tooling", + "description": "Powerful command-line workflows for publishing, installing, and managing skill packages." + }, + "governance": { + "title": "Review Governance", + "description": "Built-in review flows and permission controls to keep enterprise skill quality high." } }, + "stats": { + "skills": "Catalogs", + "downloads": "Downloads", + "teams": "Teams" + }, + "whySkillHub": { + "title": "Why SkillHub", + "subtitle": "A private Agent skill platform designed for enterprise teams" + }, "badge": "Enterprise Skill Registry", "tagline": "Publish, Discover, Manage", "taglineHighlight": " Agent Skills", diff --git a/web/src/i18n/locales/zh.json b/web/src/i18n/locales/zh.json index 988e106c..bc7ec883 100644 --- a/web/src/i18n/locales/zh.json +++ b/web/src/i18n/locales/zh.json @@ -15,7 +15,8 @@ "title": "发现与分享 AI 技能", "subtitle": "使用社区驱动的技能构建强大的 AI 代理", "searchPlaceholder": "搜索技能...", - "exploreSkills": "探索技能" + "exploreSkills": "探索技能", + "publishSkill": "开始构建" }, "features": { "secure": { @@ -29,8 +30,29 @@ "integration": { "title": "轻松集成", "description": "无缝集成到您现有的工具中" + }, + "versionControl": { + "title": "版本控制", + "description": "完善的版本管理和发布流程,确保技能包的质量和可追溯性。" + }, + "cli": { + "title": "CLI 工具", + "description": "强大的命令行工具,支持快速发布、安装和管理技能包。" + }, + "governance": { + "title": "审核治理", + "description": "内置审核流程和权限管理,保障企业级技能质量。" } }, + "stats": { + "skills": "项目库", + "downloads": "下载量", + "teams": "团队" + }, + "whySkillHub": { + "title": "为什么选择 SkillHub", + "subtitle": "专为企业打造的私有化 Agent 技能管理平台" + }, "badge": "企业级技能注册中心", "tagline": "发布、发现、管理", "taglineHighlight": " Agent 技能包", diff --git a/web/src/pages/dashboard/my-skills.tsx b/web/src/pages/dashboard/my-skills.tsx index 08cd98f9..dcf79616 100644 --- a/web/src/pages/dashboard/my-skills.tsx +++ b/web/src/pages/dashboard/my-skills.tsx @@ -201,16 +201,28 @@ export function MySkillsPage() { {skill.summary && (
{skill.summary}
)} - {skill.status ? ( - - {resolveStatusLabel(skill.status)} +