AgentEvalTool/frontend/web
sinohqb 050c674ee2
Some checks failed
CI / test (push) Failing after 1m10s
refactor(frontend): extract useResource/usePolling shared hooks
Seven pages repeated the same load-on-mount + loading + try/finally +
reload-button skeleton, each re-implementing tab-active refresh, silent
polling, and (in two places) a hand-rolled requestId race guard. Extract two
composable hooks: useResource(fetcher, {tabPath, deps}) owning data/loading/
reload with a built-in race guard and auto tab-active refresh, and
usePolling(fn, ms, enabled) replacing the hand-written setInterval effects.
Migrate all seven pages onto them; Targets/Scenarios/ModelConfigs also gain a
uniform tab-active refresh they previously lacked. Verified via tsc --noEmit
and npm run build (no frontend test runner exists).
2026-07-31 11:01:24 +08:00
..
src refactor(frontend): extract useResource/usePolling shared hooks 2026-07-31 11:01:24 +08:00
index.html v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00
package-lock.json chore: sync package-lock version to 0.5.0-dev 2026-07-29 15:43:29 +08:00
package.json docs(release): v0.5「准」发布说明与里程碑收尾 2026-07-29 15:43:15 +08:00
tsconfig.json v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00
tsconfig.node.json v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00
vite.config.ts feat(frontend): v0.4 login page, dashboard rebuild, reports UX, keep-alive refresh 2026-07-28 17:41:08 +08:00