Skip to content

feat(dashboard): optimize initial load performance and add core unit tests#22

Merged
unohee merged 2 commits intomainfrom
feature/int-1088-trace-collector
Mar 9, 2026
Merged

feat(dashboard): optimize initial load performance and add core unit tests#22
unohee merged 2 commits intomainfrom
feature/int-1088-trace-collector

Conversation

@unohee
Copy link
Collaborator

@unohee unohee commented Mar 9, 2026

Summary

  • Split dashboard initial fetch into critical/supplemental phases for faster first render
  • Fix SSE client memory leak (res.on → res.once)
  • Limit API log/stage buffer responses to recent entries
  • Add comprehensive unit tests for core modules (config, eventHub, service, traceCollector)
  • Add Playwright-based rendering performance measurement tooling

Changes

  • src/support/dashboardHtml.ts — Deferred loading, increased polling intervals
  • src/support/web.ts — Buffer response limiting (200 logs, 100 stages)
  • src/core/eventHub.ts — Memory leak fix + test reset helper
  • src/core/*.test.ts — New unit tests (config, eventHub, service, traceCollector)
  • scripts/playwright-rendering-performance.ts — Rendering perf measurement
  • .gitignore — Coverage, test output, temp analysis files

Related Issues

  • Linear: INT-1088

Heewon Oh added 2 commits March 9, 2026 10:16
…tests

Performance: split dashboard fetch into critical/supplemental phases, increase polling intervals (30s->60s), limit API log/stage buffer to recent entries, fix SSE client memory leak with res.once()

Tests: add comprehensive unit tests for config, eventHub, service, traceCollector modules. Add Playwright-based rendering performance measurement script.

Refs: INT-1088
@unohee unohee merged commit 8464a6f into main Mar 9, 2026
9 of 11 checks passed
@unohee unohee deleted the feature/int-1088-trace-collector branch March 9, 2026 04:11
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