fix(chat): remove workspace hero card

This commit is contained in:
2026-06-04 23:05:13 +08:00
parent f2c1e3cfa1
commit 1f5f0a968b
2 changed files with 2 additions and 31 deletions

View File

@@ -11,19 +11,6 @@
gap: 12px;
}
.chat-hero {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
min-height: 74px;
padding: 16px 20px;
}
.chat-hero .page-title {
font-size: 1.45rem;
}
.chat-layout {
display: grid;
grid-template-columns: 280px minmax(680px, 1fr) 340px;
@@ -344,21 +331,6 @@
}
</style>
<section class="page-header chat-hero">
<div>
<span class="eyebrow">Agent Workspace</span>
<h1 class="page-title">审核智能体</h1>
<p class="page-lead">围绕会话完成知识库问答、资料包上传、节点审核和导出留痕。</p>
</div>
{% if conversation %}
<div class="badge-row">
<span class="pill pill-accent">批次:{{ conversation.batch_id|default:"未绑定" }}</span>
<span class="pill">产品:{{ conversation.product_name|default:"知识库问答" }}</span>
<span class="pill">阶段:{{ conversation_context.task_status }}</span>
</div>
{% endif %}
</section>
<section class="chat-layout">
<input class="history-toggle" id="history-collapsed" type="checkbox">
<aside class="panel history-panel">

View File

@@ -548,7 +548,6 @@ def test_chat_page_keeps_prompts_inside_chat_thread_without_top_cards(client, db
assert "顶部对话上下文" not in content
assert "推荐提问模板" not in content
assert "对话区与节点导航" in content
assert "处理中" in content
assert "请汇总当前资料包的章节点、页数和目录覆盖情况" in content
assert "请给出当前资料包的高风险项、责任人和整改建议" in content
@@ -577,9 +576,9 @@ def test_chat_page_explicitly_shows_batch_product_stage_and_export_context(clien
content = response.content.decode("utf-8")
assert response.status_code == 200
assert "Agent Workspace" not in content
assert f"批次:{batch.batch_id}" in content
assert f"产品:{batch.product_name}" in content
assert "阶段:处理中" in content
assert batch.product_name in content
assert "批次编号" not in content
assert "当前审核阶段" not in content
assert "最高风险等级" in content