fix(ui): reorder cockpit nav to bind Git sources before deployments

Made-with: Cursor
This commit is contained in:
Ubuntu
2026-05-01 08:18:35 +00:00
parent 4e8b4a66c6
commit 356592e294
2 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ type SidebarModulesUserConfig = SidebarModulesAdminConfig | null
* Heicode Manager sidebar admin config. * Heicode Manager sidebar admin config.
* *
* Only two sections matter for the main axis: * 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 * admin — Tenants / Settings
* *
* Legacy gateway-flavored sections (channel, models, subscription, * Legacy gateway-flavored sections (channel, models, subscription,
+7 -6
View File
@@ -21,7 +21,8 @@ import { type SidebarData } from '@/components/layout/types'
* - 平台是管理后台:登录后默认仅展示 Code delivery cockpit + 个人入口; * - 平台是管理后台:登录后默认仅展示 Code delivery cockpit + 个人入口;
* - 不再向普通用户暴露 Playground / API Keys / Models 等开发者控制台条目; * - 不再向普通用户暴露 Playground / API Keys / Models 等开发者控制台条目;
* - Usage logs 作为交付链路的一环,归并进 Code delivery 分组; * - 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/...) * - 所有 admin/root 管理类入口(Channels/Models/Tenants/Redemption/...)
* 收纳进 "系统设置" workspace(点击进入 /system-settings 后才出现)。 * 收纳进 "系统设置" workspace(点击进入 /system-settings 后才出现)。
* *
@@ -55,6 +56,11 @@ export function useSidebarData(): SidebarData {
url: '/dashboard', url: '/dashboard',
icon: LayoutDashboard, icon: LayoutDashboard,
}, },
{
title: t('Git sources'),
url: '/sk-sources',
icon: GitBranch,
},
{ {
title: t('Deployments'), title: t('Deployments'),
url: '/deployments', url: '/deployments',
@@ -65,11 +71,6 @@ export function useSidebarData(): SidebarData {
url: '/events', url: '/events',
icon: Activity, icon: Activity,
}, },
{
title: t('Git sources'),
url: '/sk-sources',
icon: GitBranch,
},
{ {
title: t('Audit'), title: t('Audit'),
url: '/audit', url: '/audit',