fix(ui): reorder cockpit nav to bind Git sources before deployments
Made-with: Cursor
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
+7
-6
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user