From 356592e294f83c9009dc21966683e162f266f1a6 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 1 May 2026 08:18:35 +0000 Subject: [PATCH] fix(ui): reorder cockpit nav to bind Git sources before deployments Made-with: Cursor --- heicode/web/default/src/hooks/use-sidebar-config.ts | 2 +- heicode/web/default/src/hooks/use-sidebar-data.ts | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/heicode/web/default/src/hooks/use-sidebar-config.ts b/heicode/web/default/src/hooks/use-sidebar-config.ts index d91becd..5e6a35f 100644 --- a/heicode/web/default/src/hooks/use-sidebar-config.ts +++ b/heicode/web/default/src/hooks/use-sidebar-config.ts @@ -16,7 +16,7 @@ type SidebarModulesUserConfig = SidebarModulesAdminConfig | null * Heicode Manager sidebar admin config. * * Only two sections matter for the main axis: - * cockpit — Overview / Deployments / Events / Git sources / Audit + * cockpit — Overview / Git sources / Deployments / Events / Audit / Usage logs * admin — Tenants / Settings * * Legacy gateway-flavored sections (channel, models, subscription, diff --git a/heicode/web/default/src/hooks/use-sidebar-data.ts b/heicode/web/default/src/hooks/use-sidebar-data.ts index 1487bdb..9eccc53 100644 --- a/heicode/web/default/src/hooks/use-sidebar-data.ts +++ b/heicode/web/default/src/hooks/use-sidebar-data.ts @@ -21,7 +21,8 @@ import { type SidebarData } from '@/components/layout/types' * - 平台是管理后台:登录后默认仅展示 Code delivery cockpit + 个人入口; * - 不再向普通用户暴露 Playground / API Keys / Models 等开发者控制台条目; * - Usage logs 作为交付链路的一环,归并进 Code delivery 分组; - * - Git sources:先绑定代码与 SK 工具仓库并分配子 Agent 云上权限,部署后在此查看快照锚点;SK 正文仍以 Git 为准,不提供 Markdown 编辑; + * - Code delivery 菜单顺序:总览 → Git 来源(绑定代码/SK 与云上权限)→ 部署(子 Agent)→ 事件 → 审计 → 用量日志; + * - Git sources:绑定完成后部署,再在此对照各次部署的快照锚点;SK 正文仍以 Git 为准,不提供 Markdown 编辑; * - 所有 admin/root 管理类入口(Channels/Models/Tenants/Redemption/...) * 收纳进 "系统设置" workspace(点击进入 /system-settings 后才出现)。 * @@ -55,6 +56,11 @@ export function useSidebarData(): SidebarData { url: '/dashboard', icon: LayoutDashboard, }, + { + title: t('Git sources'), + url: '/sk-sources', + icon: GitBranch, + }, { title: t('Deployments'), url: '/deployments', @@ -65,11 +71,6 @@ export function useSidebarData(): SidebarData { url: '/events', icon: Activity, }, - { - title: t('Git sources'), - url: '/sk-sources', - icon: GitBranch, - }, { title: t('Audit'), url: '/audit',