Add lightweight AI admin dashboard
This commit is contained in:
@@ -34,36 +34,14 @@ __all__ = [
|
||||
# 循环节点
|
||||
'LoopNode',
|
||||
# 表单节点
|
||||
'FormBasicInfoNode',
|
||||
'FormDatabaseDesignNode',
|
||||
'FormDatabaseCreateNode',
|
||||
'FormUIDesignNode',
|
||||
'FormListDesignNode',
|
||||
'FormCreateNode',
|
||||
'FormPublishNode',
|
||||
# 应用节点
|
||||
'AppCreateNode',
|
||||
'AppDesignNode',
|
||||
'AppSettingsNode',
|
||||
'AppUpdateNode',
|
||||
# 仪表盘节点
|
||||
'DashboardBasicInfoNode',
|
||||
'DashboardDesignNode',
|
||||
'DashboardCreateNode',
|
||||
'DashboardPublishNode',
|
||||
# 系统总结节点
|
||||
'SystemSummaryNode',
|
||||
# 子流程节点
|
||||
'SubflowNode',
|
||||
# Text-to-SQL 节点
|
||||
'TextToSqlNode',
|
||||
# 表单数据节点
|
||||
'FormDataCreateNode',
|
||||
'FormDataReadNode',
|
||||
'FormDataUpdateNode',
|
||||
'FormDataDeleteNode',
|
||||
'FormDataListNode',
|
||||
'FormSchemaToLLMNode',
|
||||
# 知识库节点
|
||||
'KnowledgeRetrievalNode',
|
||||
]
|
||||
|
||||
@@ -122,13 +122,11 @@ def _load_builtin_nodes():
|
||||
'code_node',
|
||||
'http_node',
|
||||
'variable_node',
|
||||
'database_node',
|
||||
'dialog_nodes',
|
||||
'intent_node',
|
||||
'loop_node',
|
||||
'subflow_node',
|
||||
'text_to_sql_node',
|
||||
'snowflake_cortex_node',
|
||||
'knowledge_retrieval_node',
|
||||
]
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ from core.menu.schema import MenuCreate, MenuUpdate
|
||||
menu_cache = CacheManager(prefix="menu:")
|
||||
|
||||
# 缓存key
|
||||
AI_AGENT_ADMIN_MENU_CACHE_VERSION = "v6"
|
||||
AI_AGENT_ADMIN_MENU_CACHE_VERSION = "v7"
|
||||
MENU_TREE_CACHE_KEY = f"tree:ai_agent_admin:{AI_AGENT_ADMIN_MENU_CACHE_VERSION}"
|
||||
USER_ROUTE_CACHE_PREFIX = f"user_route:ai_agent_admin:{AI_AGENT_ADMIN_MENU_CACHE_VERSION}:"
|
||||
|
||||
@@ -25,6 +25,7 @@ AI_AGENT_ADMIN_MENU_NAMES = {
|
||||
"ControlCenter",
|
||||
"AIPlatform",
|
||||
"AIAgent",
|
||||
"AIModelConfig",
|
||||
"AIWorkflow",
|
||||
"AIWorkflowRuns",
|
||||
"KnowledgeBase",
|
||||
@@ -51,10 +52,10 @@ def _filter_ai_agent_admin_menus(menus: List[Menu]) -> List[Menu]:
|
||||
|
||||
|
||||
def _normalize_ai_agent_admin_menu(menu: Menu) -> None:
|
||||
"""Route the retained control center to the original rendered dashboard."""
|
||||
"""Route the retained control center to the lightweight native dashboard."""
|
||||
if menu.name == "ControlCenter":
|
||||
menu.path = "/page-render/main_home"
|
||||
menu.component = "online-dev/page-render/index"
|
||||
menu.path = "/dashboard"
|
||||
menu.component = "dashboard/index"
|
||||
menu.query = None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user