feat: reorganize platform navigation menus
This commit is contained in:
@@ -15,9 +15,18 @@ class MenuSpec:
|
||||
|
||||
|
||||
DEFAULT_MENUS: tuple[MenuSpec, ...] = (
|
||||
MenuSpec("workbench", "工作台", icon="home", sort_order=10),
|
||||
MenuSpec("workbench.overview", "运营总览", "#/", "home", "workbench", 10),
|
||||
MenuSpec("business", "业务处理", icon="ticket", sort_order=20),
|
||||
MenuSpec("workbench", "工作台", "#/", "home", sort_order=10),
|
||||
MenuSpec(
|
||||
"workbench.overview",
|
||||
"运营总览",
|
||||
"#/",
|
||||
"home",
|
||||
"workbench",
|
||||
10,
|
||||
is_visible=False,
|
||||
is_enabled=False,
|
||||
),
|
||||
MenuSpec("business", "工单", icon="ticket", sort_order=20),
|
||||
MenuSpec("business.tickets", "工单中心", "#/tickets", "ticket", "business", 10, "ticket.view"),
|
||||
MenuSpec(
|
||||
"business.ticket_create",
|
||||
@@ -28,33 +37,42 @@ DEFAULT_MENUS: tuple[MenuSpec, ...] = (
|
||||
20,
|
||||
"ticket.create",
|
||||
),
|
||||
MenuSpec(
|
||||
"business.solutions",
|
||||
"解决方案库",
|
||||
"#/solutions",
|
||||
"library",
|
||||
"business",
|
||||
30,
|
||||
"solution.view",
|
||||
),
|
||||
MenuSpec("platform", "平台能力", icon="bot", sort_order=30),
|
||||
MenuSpec("knowledge", "知识与方案", icon="book_open", sort_order=30),
|
||||
MenuSpec(
|
||||
"platform.knowledge",
|
||||
"知识库",
|
||||
"#/knowledge",
|
||||
"database",
|
||||
"platform",
|
||||
"knowledge",
|
||||
10,
|
||||
"knowledge.view",
|
||||
is_enabled=False,
|
||||
),
|
||||
MenuSpec(
|
||||
"knowledge.search",
|
||||
"知识检索",
|
||||
"#/knowledge/search",
|
||||
"search",
|
||||
"knowledge",
|
||||
20,
|
||||
"knowledge.view",
|
||||
),
|
||||
MenuSpec(
|
||||
"business.solutions",
|
||||
"解决方案库",
|
||||
"#/solutions",
|
||||
"library",
|
||||
"knowledge",
|
||||
30,
|
||||
"solution.view",
|
||||
),
|
||||
MenuSpec("platform", "AI 平台", icon="bot", sort_order=40),
|
||||
MenuSpec(
|
||||
"platform.agents",
|
||||
"Agent 配置",
|
||||
"#/agents",
|
||||
"bot",
|
||||
"platform",
|
||||
20,
|
||||
10,
|
||||
"agent.manage",
|
||||
),
|
||||
MenuSpec(
|
||||
@@ -63,7 +81,7 @@ DEFAULT_MENUS: tuple[MenuSpec, ...] = (
|
||||
"#/modelhub/providers",
|
||||
"settings",
|
||||
"platform",
|
||||
30,
|
||||
20,
|
||||
"model.manage",
|
||||
),
|
||||
MenuSpec(
|
||||
@@ -72,7 +90,7 @@ DEFAULT_MENUS: tuple[MenuSpec, ...] = (
|
||||
"#/skills",
|
||||
"settings",
|
||||
"platform",
|
||||
40,
|
||||
30,
|
||||
"skill.manage",
|
||||
),
|
||||
MenuSpec(
|
||||
@@ -81,10 +99,10 @@ DEFAULT_MENUS: tuple[MenuSpec, ...] = (
|
||||
"#/agent-runs",
|
||||
"audit",
|
||||
"platform",
|
||||
50,
|
||||
40,
|
||||
"agent.run.view",
|
||||
),
|
||||
MenuSpec("system", "系统治理", icon="shield", sort_order=40),
|
||||
MenuSpec("system", "系统治理", icon="shield", sort_order=50),
|
||||
MenuSpec(
|
||||
"system.users", "用户管理", "#/system/users", "users", "system", 10, "system.user.view"
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user