From 09a808c0c5c695966fd77d5d2b88322da7f41ca3 Mon Sep 17 00:00:00 2001 From: sinohqb Date: Thu, 20 Aug 2026 20:02:17 +0800 Subject: [PATCH] feat(ui): restructure config snapshot detail view to match overview layout --- .../intelligent_eval/ConfigSnapshots.tsx | 105 +++++++++++++----- 1 file changed, 78 insertions(+), 27 deletions(-) diff --git a/frontend/web/src/components/intelligent_eval/ConfigSnapshots.tsx b/frontend/web/src/components/intelligent_eval/ConfigSnapshots.tsx index 36e4466..8320f3b 100644 --- a/frontend/web/src/components/intelligent_eval/ConfigSnapshots.tsx +++ b/frontend/web/src/components/intelligent_eval/ConfigSnapshots.tsx @@ -141,41 +141,92 @@ export default function ConfigSnapshots({ evalId, onBack }: ConfigSnapshotsProps - - - {selectedSnapshot.goal || '—'} - {selectedSnapshot.intent || '—'} - - {selectedSnapshot.role_description || '—'} - - {selectedSnapshot.time_window_hours} 小时 - - {Object.keys(selectedSnapshot.seeds ?? {}).length === 0 - ? '—' - : ( -
-                    {JSON.stringify(selectedSnapshot.seeds, null, 2)}
-                  
- )} -
-
+ +
+
+ 创建时间 + {formatDateTime(selectedSnapshot.created_at)} +
+
+ 创建者 + {selectedSnapshot.created_by || '—'} +
+
+ 时间窗口 + {selectedSnapshot.time_window_hours} 小时 +
+
+
+ + +
+
+
+
评估目标
+
+ {selectedSnapshot.goal || '—'} +
+
+
+
考察意图
+
+ {selectedSnapshot.intent || '—'} +
+
+
+
角色描述
+
+ {selectedSnapshot.role_description || '—'} +
+
+
+
+
种子集
+ {Object.keys(selectedSnapshot.seeds ?? {}).length === 0 ? ( +
+ ) : ( +
+                  {JSON.stringify(selectedSnapshot.seeds, null, 2)}
+                
+ )} +
+
{selectedSnapshot.plan && ( - +
+              margin: 0, fontSize: 12, lineHeight: 1.6, background: colors.bgSubtle,
+              padding: '12px 16px', borderRadius: 6, overflowX: 'auto',
+            }}>
               {JSON.stringify(selectedSnapshot.plan, null, 2)}
             
)} + +
+ + 已显示全部内容 + +
) }