From 7b5d968fb48053623507b440783341d7505f3ed9 Mon Sep 17 00:00:00 2001 From: bruce Date: Thu, 4 Jun 2026 03:23:50 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=94=B6=E5=8F=A3=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=9B=9B=E5=85=A5=E5=8F=A3=E4=B8=BB=E5=8F=99=E4=BA=8B=E4=B8=8E?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E9=85=8D=E7=BD=AE=E5=B1=82=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/scenarios/index.html | 25 ++++++++++++++++++++----- tests/test_scenarios.py | 23 +++++++++++++++++++++++ 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/templates/scenarios/index.html b/templates/scenarios/index.html index 521e359..c9626bd 100644 --- a/templates/scenarios/index.html +++ b/templates/scenarios/index.html @@ -5,8 +5,8 @@ {% block content %}
@@ -18,6 +18,21 @@ {% endfor %}
+
+
+
+

四个一级入口

+

优先从产品入口进入资料导入、Agent 审核、知识治理和处理回看;底层场景配置仅作为执行能力参考。

+
+
+ +
+

知识库配置

@@ -40,8 +55,8 @@
-

已配置审核场景

-

保留现有场景列表,直接进入使用。

+

底层审核场景配置

+

场景 YAML 继续作为 Agent Core 的底层执行配置,这里仅保留场景配置参考,不作为一级产品入口。

@@ -71,7 +86,7 @@ {% endif %}

{% empty %} diff --git a/tests/test_scenarios.py b/tests/test_scenarios.py index 130ee18..e06cbf8 100644 --- a/tests/test_scenarios.py +++ b/tests/test_scenarios.py @@ -1,4 +1,5 @@ import pytest +from django.urls import reverse from apps.scenarios.services import ( ScenarioNotFound, @@ -138,3 +139,25 @@ def test_home_page_uses_four_top_level_product_entries(client): assert "资料包" in content assert "知识库" in content assert "处理历史" in content + + +def test_home_page_uses_platform_overview_copy_and_deemphasizes_scenario_entry(client): + response = client.get("/") + + content = response.content.decode("utf-8") + assert response.status_code == 200 + assert "平台总览" in content + assert "四个一级入口" in content + assert "底层审核场景配置" in content + assert "场景配置参考" in content + + +def test_base_layout_exposes_four_topnav_links(client): + response = client.get("/") + + content = response.content.decode("utf-8") + assert response.status_code == 200 + assert reverse("chat:index") in content + assert reverse("documents:list") in content + assert reverse("platform_ui:knowledge-base") in content + assert reverse("audit:list") in content