Skip to content

feat: add request stats and traffic charts to Overview - #10

Merged
caigee-cmd merged 3 commits into
mainfrom
feature/overview-stats
Aug 28, 2026
Merged

caigee-cmd merged 3 commits into
mainfrom
feature/overview-stats

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Add GET /api/logs/stats so Overview can show real request volume, success rate, latency percentiles, tokens, error mix, and a time series from SQLite request_logs (1h / 24h / 7d; 15-minute, hourly, or daily buckets).
  • Rebuild the Overview page around those stats: traffic chart, account-pool snapshot, top models / error mix, and existing endpoints. Motion stays functional GSAP (count-up, bar scaleY, rank scaleX) with reduced-motion fallbacks.

Test plan

  • go test ./internal/accounts ./internal/api
  • cd frontend && npm run lint && npm run build
  • Open Overview after some chat traffic and confirm 1h / 24h / 7d totals, chart buckets, and account/model breakdowns match Logs
  • Empty window still renders empty states instead of fake 0ms / 0% noise
  • Reduced-motion: numbers and bars appear without tweening

Show volume, success rate, latency, and tokens from SQLite request
history, with 1h/24h/7d windows and GSAP-scoped console motion.
CI failed because RequestStore lacked SummarizeRequestLogs and intPtr
collided with the accounts test helper. Align 15-minute series buckets
to the truncated timestamp prefix.
Keep Overview request stats while adopting compact account cards,
refresh skeletons, and the latest embedded console assets.
@caigee-cmd
caigee-cmd merged commit ffed1de into main Aug 28, 2026
6 checks passed
@caigee-cmd
caigee-cmd deleted the feature/overview-stats branch August 28, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant