style: 收口首页四入口主叙事与场景配置层级

This commit is contained in:
2026-06-04 03:23:50 +08:00
parent e3a54b874d
commit 7b5d968fb4
2 changed files with 43 additions and 5 deletions

View File

@@ -5,8 +5,8 @@
{% block content %} {% block content %}
<section class="page-header"> <section class="page-header">
<span class="eyebrow">Overview</span> <span class="eyebrow">Overview</span>
<h1 class="page-title">批次总览</h1> <h1 class="page-title">平台总览</h1>
<p class="page-lead">从这里直接进入知识库、文件中心、审核工作台和审计页。保留必要信息,不堆大段说明</p> <p class="page-lead">围绕四个一级入口组织 Agent 化产品形态:审核智能体、资料包、知识库、处理历史。首页只负责快速分流,不再以旧场景列表作为主叙事</p>
</section> </section>
<section class="metric-grid"> <section class="metric-grid">
@@ -18,6 +18,21 @@
{% endfor %} {% endfor %}
</section> </section>
<section class="panel">
<div class="section-heading">
<div>
<h2 class="section-title">四个一级入口</h2>
<p class="section-copy">优先从产品入口进入资料导入、Agent 审核、知识治理和处理回看;底层场景配置仅作为执行能力参考。</p>
</div>
</div>
<div class="button-row">
<a class="button" href="{% url 'chat:index' %}">进入审核智能体</a>
<a class="button" href="{% url 'documents:list' %}">查看资料包</a>
<a class="button" href="{% url 'platform_ui:knowledge-base' %}">进入知识库</a>
<a class="button" href="{% url 'audit:list' %}">查看处理历史</a>
</div>
</section>
<section class="grid-2"> <section class="grid-2">
<a class="link-card" href="{% url 'platform_ui:knowledge-base' %}"> <a class="link-card" href="{% url 'platform_ui:knowledge-base' %}">
<h3>知识库配置</h3> <h3>知识库配置</h3>
@@ -40,8 +55,8 @@
<section class="panel"> <section class="panel">
<div class="section-heading"> <div class="section-heading">
<div> <div>
<h2 class="section-title">已配置审核场景</h2> <h2 class="section-title">底层审核场景配置</h2>
<p class="section-copy">保留现有场景列表,直接进入使用</p> <p class="section-copy">场景 YAML 继续作为 Agent Core 的底层执行配置,这里仅保留场景配置参考,不作为一级产品入口</p>
</div> </div>
</div> </div>
@@ -71,7 +86,7 @@
{% endif %} {% endif %}
</p> </p>
<div class="button-row" style="margin-top: 16px;"> <div class="button-row" style="margin-top: 16px;">
<a class="button button-primary" href="{% url 'chat:index' %}">进入审核智能体</a> <a class="button button-primary" href="{% url 'chat:index' %}">场景配置参考</a>
</div> </div>
</article> </article>
{% empty %} {% empty %}

View File

@@ -1,4 +1,5 @@
import pytest import pytest
from django.urls import reverse
from apps.scenarios.services import ( from apps.scenarios.services import (
ScenarioNotFound, 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 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