summaryrefslogtreecommitdiff
path: root/web/index.html
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-03-11 19:05:12 +0000
committerClaudomator Agent <agent@claudomator>2026-03-11 19:05:12 +0000
commit55c20922cc7a671787fe94fdd53a7eb72ebd2596 (patch)
tree01492aec1a365348ce21281fef4e36b4372661e3 /web/index.html
parent1bcc40f7fd83bc603201b14577eebe5a482ba68e (diff)
feat: add Stats tab with task distribution and execution health metrics
- Export computeTaskStats and computeExecutionStats from app.js - Add renderStatsPanel with state count grid, KPI row (total/success-rate/cost/avg-duration), and outcome bar chart - Wire stats tab into switchTab and poll for live refresh - Add Stats tab button and panel to index.html - Add CSS for .stats-counts, .stats-kpis, .stats-bar-chart using existing state color variables - Add docs/stats-tab-plan.md with component structure and data flow - 14 new unit tests in web/test/stats.test.mjs (140 total, all passing) No backend changes — derives all metrics from existing /api/tasks and /api/executions endpoints. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'web/index.html')
-rw-r--r--web/index.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/index.html b/web/index.html
index 0b4ee35..438216f 100644
--- a/web/index.html
+++ b/web/index.html
@@ -18,6 +18,7 @@
<button class="tab active" data-tab="tasks">Tasks</button>
<button class="tab" data-tab="active">Active</button>
<button class="tab" data-tab="running">Running</button>
+ <button class="tab" data-tab="stats">Stats</button>
</nav>
<main id="app">
<div data-panel="tasks">
@@ -38,6 +39,7 @@
<div class="running-current"></div>
<div class="running-history"></div>
</div>
+ <div data-panel="stats" hidden></div>
</main>
<dialog id="task-modal">