sinohqb
|
f458897ab5
|
refactor(read): 前端泛化 ReadSlot 资源接缝(Phase 4.18-21)
将 src/read 从单一消费者扩展为通用资源接缝;drawer 标签页与
useCampaignReport / useFiles 统一消费;导出仪式下沉至工具函数。
- 新增 readResource.ts:ReadSlot<T> 相位机(idle/loading/
refreshing/ready/error)、requestId 竞态守卫、静默刷新、
可注入 adapter;SelectedReadSlot<T> 支持 list→detail 的
stale-response rejection。配套 characterization 测试。
- evalActivity.ts / useIntelligentEvalRead.ts 退化为 readResource
的特化;既有测试保持通过。
- DecisionProcess / ConfigSnapshots / TaskQueueMonitor 删除手写
fetch 样板(useState + try/catch + useEffect 三件套),改走
资源接缝;ExecutionProcess 的 5 个 fetch 槽同步收敛。
- 决策日志新鲜度归一:三种策略(父级 5s 详情轮询 +
ExecutionProcess 独立 5s 轮询 + DecisionProcess 挂载取一次)
收敛为父级 evalActivity 单一供给,子组件消费同一份数据。
- useCampaignReport 删除私有 ReadPhase / ReadSlot 定义,改
import 自 readResource。
- ACTIVE_STATUSES 合并至 read/intelligentEval.ts 单一出口。
- 新增 utils/download.ts:downloadBlob / downloadJson 取代 api.ts
与 useFiles 中三处重复的 Blob 导出仪式(含 DOM 副作用迁出
接口定义出口)。
|
2026-08-24 05:51:53 +08:00 |
|
sinohqb
|
00ad929d68
|
feat(intelligent-eval): v4.2 UI — stat bar + single-line table + unified detail drawer
CI / test (push) Successful in 3m58s
评估列表页(v4.2):
- 顶部状态统计条(stat-chip 点击筛选,后端列表接口新增 stats 状态分布 +
status 筛选参数)
- 单行表格(名称/评测对象 ellipsis 省略)+ 会话进度迷你进度条 +
最后一列醒目查看按钮 + 整行可点击
- 详情/报告合一单层抽屉(1000px,Tabs:概览/决策过程/配置历史/报告),
审批/取消在抽屉头部;移除独立详情页 /intelligent-evals/detail 与
intelligentEvalNav store
任务队列页:
- 与列表页统一 stat-chip 统计条 + 单行表格(评估状态小标、失败原因 tooltip)
清理:删除 IntelligentEvalDetail.tsx / intelligentEvalNav.ts;App.tsx 移除
detail 路由。任务队列保持独立菜单页。tsc 0 错误 vitest 19 passed 895 passed
|
2026-08-17 20:03:55 +08:00 |
|
sinohqb
|
cc2ac8da89
|
feat(intelligent-eval): paginate the eval list
CI / test (push) Successful in 4m5s
GET /api/intelligent-evals 支持 page/page_size(默认不传仍返回全部,向后兼容):
repository 加 count/list_page,lifecycle 加 list_evals_page,router 返回 total。
前端服务端分页:useIntelligentEvalRead 接 page/pageSize,list 存 total,
IntelligentEvals 表格 showSizeChanger + 页码切换重新加载;5s 轮询保持当前页。
测试:+3 后端分页 + hook 页码透传/总数断言,895 passed,vitest 19 passed
|
2026-08-17 14:09:17 +08:00 |
|
sinohqb
|
864ae2b7fe
|
fix(review): address release correctness findings
|
2026-08-09 03:20:40 +08:00 |
|
sinohqb
|
62485684ca
|
fix(architecture): enforce lifecycle consistency
|
2026-08-07 10:59:27 +08:00 |
|
sinohqb
|
c896ab3f71
|
refactor(architecture): deepen evaluation lifecycle and read model
|
2026-08-07 03:11:37 +08:00 |
|