fix(registry): activity-graph API swap, tooltips, and logo-cloud fixes#25
Merged
Conversation
…oltips - Replace fragile HTML scraping in lib/github.ts with the github-contributions-api (jogruber.de/v4) for structured JSON - Replace native title attributes with Radix Tooltip for styled hover popovers showing date and count on each cell - Add radix-ui dependency to registry.json - Update docs notes to reflect new API and tooltip behavior
- Add proper credit for github-contributions-api by @grubersjoe in both the lib/github.ts header and the component header - Add attribution note to docs page linking to the API repo - Replace sparse 6-entry sample data with seeded generator producing ~84 days of realistic fill so the blue scale example isn't empty - Main demo now fetches real data via fetchGitHubContributions - Remove weeks={12} from blue scale example so it fills the container
Track year+month instead of just month index in getMonthLabels so Apr 2025 and Apr 2026 don't both render as duplicate 'Apr' labels.
Replace external svgl.app URLs with local /logos/*.svg files so logos load instantly instead of popping in sporadically from a third-party CDN.
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.
What changed
Activity Graph — API swap
lib/github.tswith the github-contributions-api by @grubersjoeActivity Graph — Radix tooltips
titleattributes with Radix Tooltip on each cellradix-uidependency toregistry.jsonActivity Graph — month label dedup
getMonthLabelsnow tracksyear-monthinstead of just month indexActivity Graph — docs examples
fetchGitHubContributionsLogo Cloud — local assets
svgl.appURLs in demos with local/logos/*.svgfilesVerified
pnpm registry:build✅pnpm build✅