Skip to content

feat: fix and improve download stats page#160

Merged
maxandersen merged 10 commits into
mainfrom
claude/jbang-download-stats-viz-qxg4n1
Jul 11, 2026
Merged

feat: fix and improve download stats page#160
maxandersen merged 10 commits into
mainfrom
claude/jbang-download-stats-viz-qxg4n1

Conversation

@maxandersen

@maxandersen maxandersen commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Fixes and improvements to the /usage/downloads/ page:

  • Fix invisible charts: bars were 0.0004px wide on time axis with 244 releases. Switched to category axis.
  • Smooth area charts: replaced bar sticks with filled line charts (grev-style).
  • Dates toggle: checkbox to switch x-axis between version tags and Mon YY dates.
  • Mon YY format: forced consistent date format regardless of locale.
  • Match /usage/ style: animated counting numbers, blue #4a90e2 color, card layout with box-shadow, uppercase gray labels.
  • Visual separation: divider lines between KPI tiles, proper sizing.
  • Reordered KPIs: left to right by magnitude (Releases → Latest release → version.txt → Installers).
  • Latest release tile: shows download count with version/date below.
  • Rebased on latest main.

@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • ai-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: aa432384-974d-4405-8b0d-96e8dc25ebed

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

claude and others added 4 commits July 11, 2026 11:26
Add a grev-inspired download statistics page at /usage/downloads/ for
jbangdev/jbang, fetched client-side from the GitHub Releases API.

- Separates version.txt (the update-check asset) into its own chart so
  its very high count no longer skews real installer download figures.
- Plots releases on a real time x-axis (published_at) instead of evenly
  spaced release tags, so bursts and quiet periods read honestly.
- KPI tiles, per-release table, pre-release and log-scale toggles, and
  localStorage caching to stay within the GitHub API rate limit.
- Uses the validated data-viz palette with light/dark support.
- Link to the new page from the usage and leaderboard pages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015XaDPKfY8vpnfgR9jo7L7Y
The time axis with 244 releases made bars 0.0004px wide (sub-pixel,
invisible). Switch to category axis with version tag labels and
auto-skip ticks for readability.
@maxandersen maxandersen force-pushed the claude/jbang-download-stats-viz-qxg4n1 branch from da0f68c to 72bbc46 Compare July 11, 2026 09:27
@maxandersen maxandersen changed the title fix: download stats charts now show visible bars feat: fix and improve download stats page Jul 11, 2026
@maxandersen maxandersen merged commit 956c881 into main Jul 11, 2026
3 checks passed
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.

2 participants