Repository navigation
feat(digest): v2 — commit sparklines, merged-PR count, avg time-to-merge - #39
Merged
Merged
Conversation
Digest v2 from the backlog, with strict request economics — two GraphQL calls per window, both IDB-cached (30m): - Sparklines on Most active: default-branch commit timestamps for ALL top repos come from ONE aliased GraphQL query (fetchReposCommitActivity), bucketed into a 12-bar mini chart per row with a commits-in-window tooltip. - New stat tiles: "PRs merged" (involving you, in window) and "Avg time to merge" (open→merged mean, compact 16h/1.8d formatting) via a single is:pr is:merged merged:>=window search (searchMergedPRs). - useDigestExtras hook: window-keyed react-query + digestMerged:/digestActivity: prefs (registered in CACHE_TTLS) so flipping 24h/7d/30d or reloading serves from cache. - Demo mode: canned merged PRs + deterministic activity curves. - Tests for the pure helpers (bucketize boundaries, formatDuration units) — suite now 38 tests / 9 files. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Digest v2 from the backlog — with strict request economics: two GraphQL calls per window, both IDB-cached (30 m).
What's new
is:pr is:merged merged:>=…search).16h,1.8d).digestMerged:/digestActivity:prefs cache (registered inCACHE_TTLS, visible in the Cache tab).bucketizeboundaries,formatDurationunits) → suite is now 38 tests / 9 files.npm run checkgreen.Verify
Home → Digest: two new tiles + sparklines on Most active rows; flip windows (second flip within 30 m = instant, no new calls — visible in Config → Cache).
🤖 Generated with Claude Code