AgentEvalTool/frontend/web/src/hooks
sinohqb 0c1e4578c9
All checks were successful
CI / test (push) Successful in 3m57s
refactor(frontend): unify polling via usePolling + visibility pause (S6)
- usePolling gains a pauseWhenHidden option (default true): the timer
  pauses while the document is hidden (background tab / minimised) and
  resumes with an immediate reload on returning to visible. Callers keep
  owning their initial fetch, so no duplicate first request.
- CronPoolMonitor now delegates its 5s poll to the shared usePolling hook
  (initial load stays in its own useEffect); removes the bespoke
  setInterval + manual visibility gap.
- CronPoolMonitor.test: visibility guard now passes (3/3), removing the
  previous it.fails. Frontend suite: 18/18; tsc clean; backend 878.

Resolves scan §6.3.
2026-08-14 15:57:07 +08:00
..
sessionReducer.ts v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00
useCampaignReport.test.tsx refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
useCampaignReport.ts refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
useFiles.ts refactor(files): harden storage and split frontend 2026-07-17 17:41:19 +08:00
useOnTabActive.ts feat(frontend): v0.4 login page, dashboard rebuild, reports UX, keep-alive refresh 2026-07-28 17:41:08 +08:00
usePolling.ts refactor(frontend): unify polling via usePolling + visibility pause (S6) 2026-08-14 15:57:07 +08:00
useResource.ts refactor(frontend): extract useResource/usePolling shared hooks 2026-07-31 11:01:24 +08:00
useRunSession.ts refactor(verdict): unify read path on authoritative case_outcomes 2026-07-31 14:11:58 +08:00
useTicker.ts v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00