feat: update PlanningAgent to support SSE streaming with reasoning process display and fix UI spacing issues
This commit is contained in:
@@ -36,13 +36,13 @@
|
||||
<i class="fa-solid fa-house w-6"></i> 总览控制台
|
||||
</a>
|
||||
<a href="planning.html" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50 hover:text-planning rounded-lg font-medium transition-colors">
|
||||
<i class="fa-solid fa-chess-knight w-6"></i> 战略规划 (Planning)
|
||||
<i class="fa-solid fa-chess-knight w-6"></i> 战略规划
|
||||
</a>
|
||||
<a href="devops.html" class="flex items-center px-4 py-3 bg-green-50 text-devops rounded-lg font-medium">
|
||||
<i class="fa-solid fa-code-branch w-6"></i> 开发运维 (DevOps)
|
||||
<i class="fa-solid fa-code-branch w-6"></i> 开发运维
|
||||
</a>
|
||||
<a href="quality.html" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50 hover:text-quality rounded-lg font-medium transition-colors">
|
||||
<i class="fa-solid fa-shield-halved w-6"></i> 质量门控 (Quality Gate)
|
||||
<i class="fa-solid fa-shield-halved w-6"></i> 质量门控
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
@@ -86,7 +86,7 @@
|
||||
<div class="w-1/3 border-r border-gray-200 bg-gray-50 flex flex-col">
|
||||
<div class="flex-1 p-4 overflow-y-auto space-y-4 text-sm">
|
||||
<div class="bg-white p-3 rounded-lg border shadow-sm">
|
||||
<p class="text-gray-800 font-semibold mb-1"><i class="fa-solid fa-robot text-devops mr-1"></i> Developer Agent</p>
|
||||
<p class="text-gray-800 font-semibold mb-1"><i class="fa-solid fa-robot text-devops mr-1"></i> 开发代理</p>
|
||||
<p class="text-gray-600">我已经根据您的 "登录功能" 需求,生成了用户控制器的代码框架和对应的单元测试(Jest)。</p>
|
||||
<p class="text-gray-600 mt-2">测试用例涵盖了 5 种边界情况,您可以查看右侧代码。</p>
|
||||
</div>
|
||||
|
||||
@@ -57,13 +57,13 @@
|
||||
<i class="fa-solid fa-house w-6"></i> 总览控制台
|
||||
</a>
|
||||
<a href="planning.html" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50 hover:text-planning rounded-lg font-medium transition-colors">
|
||||
<i class="fa-solid fa-chess-knight w-6"></i> 战略规划 (Planning)
|
||||
<i class="fa-solid fa-chess-knight w-6"></i> 战略规划
|
||||
</a>
|
||||
<a href="devops.html" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50 hover:text-devops rounded-lg font-medium transition-colors">
|
||||
<i class="fa-solid fa-code-branch w-6"></i> 开发运维 (DevOps)
|
||||
<i class="fa-solid fa-code-branch w-6"></i> 开发运维
|
||||
</a>
|
||||
<a href="quality.html" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50 hover:text-quality rounded-lg font-medium transition-colors">
|
||||
<i class="fa-solid fa-shield-halved w-6"></i> 质量门控 (Quality Gate)
|
||||
<i class="fa-solid fa-shield-halved w-6"></i> 质量门控
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
|
||||
@@ -36,13 +36,13 @@
|
||||
<i class="fa-solid fa-house w-6"></i> 总览控制台
|
||||
</a>
|
||||
<a href="planning.html" class="flex items-center px-4 py-3 bg-blue-50 text-planning rounded-lg font-medium">
|
||||
<i class="fa-solid fa-chess-knight w-6"></i> 战略规划 (Planning)
|
||||
<i class="fa-solid fa-chess-knight w-6"></i> 战略规划
|
||||
</a>
|
||||
<a href="devops.html" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50 hover:text-devops rounded-lg font-medium transition-colors">
|
||||
<i class="fa-solid fa-code-branch w-6"></i> 开发运维 (DevOps)
|
||||
<i class="fa-solid fa-code-branch w-6"></i> 开发运维
|
||||
</a>
|
||||
<a href="quality.html" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50 hover:text-quality rounded-lg font-medium transition-colors">
|
||||
<i class="fa-solid fa-shield-halved w-6"></i> 质量门控 (Quality Gate)
|
||||
<i class="fa-solid fa-shield-halved w-6"></i> 质量门控
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -36,13 +36,13 @@
|
||||
<i class="fa-solid fa-house w-6"></i> 总览控制台
|
||||
</a>
|
||||
<a href="planning.html" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50 hover:text-planning rounded-lg font-medium transition-colors">
|
||||
<i class="fa-solid fa-chess-knight w-6"></i> 战略规划 (Planning)
|
||||
<i class="fa-solid fa-chess-knight w-6"></i> 战略规划
|
||||
</a>
|
||||
<a href="devops.html" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50 hover:text-devops rounded-lg font-medium transition-colors">
|
||||
<i class="fa-solid fa-code-branch w-6"></i> 开发运维 (DevOps)
|
||||
<i class="fa-solid fa-code-branch w-6"></i> 开发运维
|
||||
</a>
|
||||
<a href="quality.html" class="flex items-center px-4 py-3 bg-purple-50 text-quality rounded-lg font-medium">
|
||||
<i class="fa-solid fa-shield-halved w-6"></i> 质量门控 (Quality Gate)
|
||||
<i class="fa-solid fa-shield-halved w-6"></i> 质量门控
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
<main class="flex-1 flex flex-col overflow-y-auto">
|
||||
<header class="h-16 bg-white shadow-sm flex items-center px-8 border-b-4 border-quality sticky top-0 z-10">
|
||||
<h1 class="text-xl font-semibold text-gray-800">质量门控 (Quality Gate)Dashboard</h1>
|
||||
<h1 class="text-xl font-semibold text-gray-800">质量门控 大盘</h1>
|
||||
</header>
|
||||
|
||||
<div class="p-8 max-w-7xl mx-auto w-full">
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-8">
|
||||
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
|
||||
<div class="text-gray-500 mb-1 text-sm font-semibold">质量状态</div>
|
||||
<div class="text-2xl font-bold text-green-500">通过 (Passed)</div>
|
||||
<div class="text-2xl font-bold text-green-500">通过</div>
|
||||
</div>
|
||||
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200">
|
||||
<div class="text-gray-500 mb-1 text-sm font-semibold">代码覆盖率</div>
|
||||
@@ -78,7 +78,7 @@
|
||||
<!-- PR 列表 -->
|
||||
<div class="bg-white rounded-lg shadow-sm border border-gray-200 mb-8">
|
||||
<div class="p-4 border-b border-gray-200 bg-gray-50 flex justify-between items-center">
|
||||
<h2 class="font-bold text-gray-800">合并请求审查 (PR List)</h2>
|
||||
<h2 class="font-bold text-gray-800">合并请求审查</h2>
|
||||
<span class="text-sm text-gray-500">共 3 个待处理</span>
|
||||
</div>
|
||||
<div class="divide-y divide-gray-200">
|
||||
|
||||
Reference in New Issue
Block a user