feat: star-tracker recent trend, range, per-repo charts#54
Merged
Conversation
- Extend chart x-axis to "now" (5-min bucketed) so the latest event has a visible flat tail instead of being pinned to the right edge. - Add ?range=7d|30d|90d|6m|1y param with synthetic anchor at the window start; expose All/1y/90d/30d in the chart-controls toggle. - Add /:slug/:repo/chart.svg per-repo chart route and /:slug/:repo HTML page; link tracked-repo names in tenantDetail and publicOrg to it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add tenantRecentByRepo + recentForSeries helpers (no new queries — derived from existing per-repo timelines so exact and sampled modes are handled uniformly). - Render a "Recent activity" block on tenantDetail and publicOrg listing repos that picked up stars in the last 7 days, with 30-day numbers for context and an empty state when nothing's moved. - Show 7d/30d gain summary near the header on per-repo pages. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
wavekat-eason
pushed a commit
that referenced
this pull request
May 15, 2026
🤖 I have created a release *beep* *boop* --- ## [0.0.21](wavekat-com-v0.0.20...wavekat-com-v0.0.21) (2026-05-15) ### Features * add star-tracker worker ([#52](#52)) ([6f13ee1](6f13ee1)) * add wavekat-asr to ecosystem ([#50](#50)) ([f26f29b](f26f29b)) * auto-theme star-tracker embed snippet ([#55](#55)) ([4989603](4989603)) * star-tracker recent trend, range, per-repo charts ([#54](#54)) ([7189f91](7189f91)) ### Bug Fixes * keep star-tracker count fresh on webhook ([#56](#56)) ([1fdf264](1fdf264)) * stop long embed snippets blowing out page width ([#57](#57)) ([7b6b096](7b6b096)) * wrap star-tracker header on mobile ([#53](#53)) ([82e92b9](82e92b9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.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.
Summary
Three additions to
tools/star-tracker(stars.wavekat.com) addressing "I can't see the latest stars" and "can we see individual repos?":?range=parameter. New7d/30d/90d/6m/1y(defaultall) clips the visible window to recent activity; series are anchored at the window's left edge with a synthetic cumulative point so the curve starts cleanly. Surfaced as anAll / 1y / 90d / 30dtoggle in the chart controls; embed snippets update with the rest.GET /:slug/:repo/chart.svg(single-series) andGET /:slug/:repoHTML page that reuses the existingchartBlock(without the split toggle). Tracked-repo names intenantDetailandpublicOrglink to the per-repo page; private/untracked repos 404 / redirect to the tenant.+N this week · +M over 30 daysnear the header. Pure-function gain math (recentForSeries) — no new DB queries; reusestenantPerRepoTimelines.Test plan
cd tools/star-tracker && npm run dev, visit/wavekat?range=30dzooms the visible window; toggling Range in the UI updates the preview + embed snippets/wavekat/<repo>with its own chart + embed snippets/wavekat/<repo>/chart.svgreturns SVG; private repos 404+N this week · +M over 30 daysnear header?split=N,?theme=dark,?style=stepstill work