Skip to content

feat: star-tracker recent trend, range, per-repo charts#54

Merged
wavekat-eason merged 2 commits into
mainfrom
feat/star-tracker-recent-and-per-repo
May 15, 2026
Merged

feat: star-tracker recent trend, range, per-repo charts#54
wavekat-eason merged 2 commits into
mainfrom
feat/star-tracker-recent-and-per-repo

Conversation

@wavekat-eason
Copy link
Copy Markdown
Contributor

Summary

Three additions to tools/star-tracker (stars.wavekat.com) addressing "I can't see the latest stars" and "can we see individual repos?":

  • Latest events now visible. Chart x-axis extends to a 5-min-bucketed "now" so the most recent star creates a visible flat tail to today instead of being pinned to the right edge. Bucketing keeps the ETag stable inside the cache window.
  • ?range= parameter. New 7d/30d/90d/6m/1y (default all) 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 an All / 1y / 90d / 30d toggle in the chart controls; embed snippets update with the rest.
  • Per-repo charts and pages. New GET /:slug/:repo/chart.svg (single-series) and GET /:slug/:repo HTML page that reuses the existing chartBlock (without the split toggle). Tracked-repo names in tenantDetail and publicOrg link to the per-repo page; private/untracked repos 404 / redirect to the tenant.
  • "Which repos got stars recently?" A Recent activity section on the tenant pages lists repos with new stars in the last 7 days plus 30-day numbers for context, with an empty state when nothing moved. Per-repo pages show +N this week · +M over 30 days near the header. Pure-function gain math (recentForSeries) — no new DB queries; reuses tenantPerRepoTimelines.

Test plan

  • cd tools/star-tracker && npm run dev, visit /wavekat
  • Latest event has a flat tail to "now" instead of touching the right edge
  • ?range=30d zooms the visible window; toggling Range in the UI updates the preview + embed snippets
  • Click a repo name in Tracked repos → lands on /wavekat/<repo> with its own chart + embed snippets
  • /wavekat/<repo>/chart.svg returns SVG; private repos 404
  • Recent activity section lists active repos sorted by 7d gain; empty state shows when none
  • Per-repo page shows +N this week · +M over 30 days near header
  • Existing tenant chart, ?split=N, ?theme=dark, ?style=step still work

wavekat-eason and others added 2 commits May 16, 2026 10:55
- 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>
@github-actions
Copy link
Copy Markdown
Contributor

@wavekat-eason wavekat-eason merged commit 7189f91 into main May 15, 2026
4 checks passed
@wavekat-eason wavekat-eason deleted the feat/star-tracker-recent-and-per-repo branch May 15, 2026 23:08
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>
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