Skip to content

Improve dashboard perf, correctness, and API response times - #1

Open
Welfordian wants to merge 2 commits into
mainfrom
perf/overview-split-and-initial-load
Open

Improve dashboard perf, correctness, and API response times#1
Welfordian wants to merge 2 commits into
mainfrom
perf/overview-split-and-initial-load

Conversation

@Welfordian

Copy link
Copy Markdown
Owner

Summary

  • Split /api/analytics/overview into fast /summary and /charts endpoints so metric cards paint before chart data loads
  • Add indexer cron cache warming, longer API cache TTL (120s), deferred ops/status polling, and boot prefetch for overview queries
  • Self-host Inter/JetBrains Mono fonts and lazy-load non-home dashboard routes to shrink initial load
  • Harden rollup-backed intel APIs for window-accurate stats (attackers, campaigns, techniques, sensor counts)
  • Format counts with thousands separators across the dashboard; fix sidebar contrast for WCAG AA

Test plan

  • npm run verify (typecheck, 139 tests, build)
  • Cold load dashboard — metric cards populate before charts
  • /api/analytics/overview/summary and /charts return JSON
  • Self-hosted fonts load from /fonts/*.woff2

Made with Cursor

Split overview into summary and charts endpoints with edge cache warming,
lazy-loaded routes, self-hosted fonts, and deferred ops polling so initial
loads paint metrics faster. Harden rollup-backed intel for window-accurate
stats and format counts consistently across the dashboard.

Co-authored-by: Cursor <cursoragent@cursor.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Use the real honeypot-analytics database UUID instead of the placeholder
so wrangler deploy can bind D1 successfully.

Co-authored-by: Cursor <cursoragent@cursor.com>
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