Skip to content

fix(registry): activity-graph API swap, tooltips, and logo-cloud fixes#25

Merged
jal-co merged 5 commits into
mainfrom
fix/activity-graph-api-tooltip
Apr 22, 2026
Merged

fix(registry): activity-graph API swap, tooltips, and logo-cloud fixes#25
jal-co merged 5 commits into
mainfrom
fix/activity-graph-api-tooltip

Conversation

@jal-co

@jal-co jal-co commented Apr 22, 2026

Copy link
Copy Markdown
Owner

What changed

Activity Graph — API swap

  • Replaced fragile HTML scraping in lib/github.ts with the github-contributions-api by @grubersjoe
  • Returns structured JSON instead of parsing GitHub's markup with regex
  • Proper attribution in file headers and docs page

Activity Graph — Radix tooltips

  • Replaced native title attributes with Radix Tooltip on each cell
  • Styled popover shows count (bold) and formatted date on hover
  • Added radix-ui dependency to registry.json

Activity Graph — month label dedup

  • Fixed duplicate "Apr" labels when the 52-week grid spans a year boundary
  • getMonthLabels now tracks year-month instead of just month index

Activity Graph — docs examples

  • Main demo now fetches real GitHub data via fetchGitHubContributions
  • Blue scale example uses seeded generator (~84 days) instead of 6 sparse entries

Logo Cloud — local assets

  • Replaced external svgl.app URLs in demos with local /logos/*.svg files
  • Logos now load instantly instead of popping in sporadically from a third-party CDN

Verified

  • pnpm registry:build
  • pnpm build

jal-co and others added 5 commits April 22, 2026 14:16
…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.
@jal-co jal-co merged commit 116b48a into main Apr 22, 2026
2 checks passed
@jal-co jal-co deleted the fix/activity-graph-api-tooltip branch April 22, 2026 21:31
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