feat: 收口审核指挥台旧入口到 Agent 原型页

This commit is contained in:
2026-06-04 04:26:15 +08:00
parent 961615b88c
commit b30ba19dcc
3 changed files with 16 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ def get_platform_demo_context():
{"title": "知识库配置", "url_name": "platform_ui:knowledge-base", "desc": "维护法规规则树与切片策略"}, {"title": "知识库配置", "url_name": "platform_ui:knowledge-base", "desc": "维护法规规则树与切片策略"},
{"title": "文件中心", "url_name": "documents:list", "desc": "查看上传、解析、切片与异常状态"}, {"title": "文件中心", "url_name": "documents:list", "desc": "查看上传、解析、切片与异常状态"},
{"title": "审核智能体", "url_name": "chat:index", "desc": "发起审核、抽取与一致性核查演示"}, {"title": "审核智能体", "url_name": "chat:index", "desc": "发起审核、抽取与一致性核查演示"},
{"title": "审核指挥台", "url_name": "platform_ui:command-center", "desc": "面向演示的 Agent 流程解释大屏"}, {"title": "审核指挥台", "url_name": "platform_ui:command-center-v2", "desc": "面向演示的 Agent 流程解释大屏"},
] ]
knowledge_sources = [ knowledge_sources = [
{ {

View File

@@ -1,4 +1,4 @@
from django.shortcuts import render from django.shortcuts import redirect, render
from .services import build_knowledge_base_context, get_platform_demo_context from .services import build_knowledge_base_context, get_platform_demo_context
@@ -19,8 +19,7 @@ def skill_studio(request):
def command_center(request): def command_center(request):
context = get_platform_demo_context() return redirect("platform_ui:command-center-v2")
return render(request, "platform_ui/command_center.html", context)
def command_center_v2(request): def command_center_v2(request):

View File

@@ -230,9 +230,21 @@ def test_command_center_v2_uses_four_product_entries_as_primary_navigation(clien
def test_platform_demo_context_uses_agent_product_labels_for_quick_links(): def test_platform_demo_context_uses_agent_product_labels_for_quick_links():
context = get_platform_demo_context() context = get_platform_demo_context()
titles = [item["title"] for item in context["quick_links"]] quick_links = context["quick_links"]
titles = [item["title"] for item in quick_links]
assert "审核智能体" in titles assert "审核智能体" in titles
assert "审核指挥台" in titles assert "审核指挥台" in titles
assert "审核工作台" not in titles assert "审核工作台" not in titles
assert "工作台大屏" not in titles assert "工作台大屏" not in titles
assert any(
item["title"] == "审核指挥台" and item["url_name"] == "platform_ui:command-center-v2"
for item in quick_links
)
def test_command_center_legacy_route_redirects_to_v2(client):
response = client.get(reverse("platform_ui:command-center"))
assert response.status_code == 302
assert response.url == reverse("platform_ui:command-center-v2")