AgentEvalTool/.scratch/ui-consistency/issues/01-baseline-components.md
sinohqb d4c254e121 refactor(ui): baseline FormDrawer component and IntelligentEvals dogfood (ui-consistency ticket 01)
Extract the standard form drawer (width 640, footer actions, destroyOnClose)
as FormDrawer; reuse existing usePolling hook. IntelligentEvals becomes the
first consumer — create drawer and both 5s pollings switched with zero
behaviour change. Includes ui-consistency spec, tickets, and ADR-0005.
2026-08-05 15:34:31 +08:00

756 B
Raw Blame History

01 — 基准组件沉淀 + IntelligentEvals 切换

What to build: 抽取两个共享件并让基准页成为第一个消费者。

  • components/FormDrawer.tsx:标准表单 Drawerwidth 640 / footer 取消+主按钮 / destroyOnClose / submitting 态)
  • hooks/usePolling.ts活跃态静默轮询5s组件卸载/条件关闭自动清理)

Blocked by:

Acceptance criteria:

  • FormDrawer 与 usePolling 创建完成props/hook 签名简洁
  • IntelligentEvals 的创建 Drawer 改用 FormDrawer行为不变
  • IntelligentEvals 详情页轮询与 EvalDetail 会话轮询改用 usePolling行为不变
  • tsc --noEmit 通过
  • t480 走查创建评估、详情轮询、P0 全流程体验无回归