AgentEvalTool/.scratch/ui-consistency/issues/01-baseline-components.md

15 lines
756 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 01 — 基准组件沉淀 + IntelligentEvals 切换
**What to build:** 抽取两个共享件并让基准页成为第一个消费者。
- `components/FormDrawer.tsx`:标准表单 Drawerwidth 640 / footer 取消+主按钮 / destroyOnClose / submitting 态)
- `hooks/usePolling.ts`活跃态静默轮询5s组件卸载/条件关闭自动清理)
**Blocked by:**
**Acceptance criteria:**
- [x] FormDrawer 与 usePolling 创建完成props/hook 签名简洁
- [x] IntelligentEvals 的创建 Drawer 改用 FormDrawer行为不变
- [x] IntelligentEvals 详情页轮询与 EvalDetail 会话轮询改用 usePolling行为不变
- [x] `tsc --noEmit` 通过
- [x] t480 走查创建评估、详情轮询、P0 全流程体验无回归