Draft
Conversation
47b984b to
7b8deb7
Compare
…ode, add CI checks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
No centralized view of issue health, PR review velocity, or CI reliability for agentcore-cli. GitHub's built-in Insights lack time-to-review histograms, label gap analysis, and CI flaky job detection.
Solution
Config-driven static dashboard generator that produces three HTML pages (Issues, PRs, CI/Tests) deployed to GitHub Pages via a daily GitHub Actions workflow.
Architecture
Key decisions
@kitajs/html over React — We use JSX purely as a typed templating language. React's virtual DOM, reconciler, and 130KB runtime add nothing when generating static HTML. kitajs compiles JSX directly to strings (3KB, zero deps, 2.8x faster). Same developer experience, no runtime overhead.
gh CLI over Octokit — The
ghCLI handles auth, pagination, and rate limiting out of the box. UsingexecFileSync(notexecSync) prevents shell injection. GraphQL batches PR + review data in 7 calls instead of 630 sequential REST calls.Config-driven sections — Adding a chart or table is a config change, not a code change. Section types: stats, timeline, distribution, histogram, table, trend, weeklyTable, termFrequency, ci. Each type is computed by transform.ts and rendered by a corresponding component.
Global time window tabs — All sections on Issues/PRs pages recompute for each window (All Time, 24h, 7d, 30d). Timeline granularity adapts: hourly for 24h, daily for 7d, weekly for 30d+.
Lazy chart initialization — Charts in hidden tab panels initialize when the panel becomes visible, avoiding Chart.js zero-dimension rendering bugs.
Dashboard pages
Issues — timeline, label distribution, open age, avg open age trend, resolution histogram by label, most discussed open issues, stale issues, term frequency of unlabeled issues, weekly summary table
PRs — timeline, PR status buckets (needs-re-review/waiting-on-author/needs-initial-review/approved), avg open age trend, TTFR + TTM histograms with granular time buckets, size distribution, TTM by size, stale PRs with priority + last activity, weekly summary table
CI/Tests — per-workflow pass rates with time windows, pass/fail timeline, most failing jobs, flaky job detection, recent failures, avg job duration
Testing
tsc --noEmitandvitest runbefore generating