diff --git a/docs/index.html b/docs/index.html index be564d1f..e0a01def 100644 --- a/docs/index.html +++ b/docs/index.html @@ -15,7 +15,7 @@ - + @@ -626,15 +626,21 @@

Live Telemetry

Loop Readiness Score

- +
+ +

Cumulative Tokens (Estimate)

- +
+ +

Automated vs Escalated Runs

- +
+ +
@@ -1073,11 +1079,8 @@

Your project here

const labels = data.map(d => new Date(d.run_id).toLocaleDateString(undefined, { month: 'short', day: 'numeric' })); const scores = data.map(d => d.readiness_score || 0); - const tokens = data.map((d, i) => { - let sum = 0; - for (let j = 0; j <= i; j++) sum += (data[j].tokens_estimate || 0); - return sum; - }); + let tokenRunningTotal = 0; + const tokens = data.map(d => (tokenRunningTotal += (d.tokens_estimate || 0))); const automatedRuns = data.map(d => d.outcome === 'escalated' ? 0 : 1); const escalatedRuns = data.map(d => d.outcome === 'escalated' ? 1 : 0);