Skip to content

Show page views, drop the daily chart, and rename installs copied - #43

Merged
radiumcoders merged 2 commits into
mainfrom
page-views-stats
Sep 30, 2026
Merged

radiumcoders merged 2 commits into
mainfrom
page-views-stats

Conversation

@radiumcoders

@radiumcoders radiumcoders commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Page views replace visitors in the 30-day tile (25.4K) and the top referrers chart, which is re-ranked by page views.
  • The daily page views chart is removed. The section is now the KPI tiles plus the referrer and most-copied bar lists. The area chart's vendored Bklit files and the packages nothing imports anymore (@visx/curve, @visx/gradient, d3-array, d3-shape and their types) go with it.
  • The sponsor dialog's pitch now quotes page views.
  • "Installs copied" is now "Components copied".
  • Tile values align to the bottom of each tile, so a label that wraps doesn't push its number out of line.
  • The Tracwell stats cache key moves to landing-tracwell-stats-v2, since the cached shape changed.

Test plan

  • pnpm lint, pnpm typecheck, pnpm build
  • Screenshotted the stats section in dark at desktop width and light at phone width
  • The sponsor dialog shows "with 25.4K page views in the last 30 days"

Summary by CodeRabbit

  • Updates
    • Landing-page analytics now focus on page views, including daily trends, peak-day stats, referrer charts, and the 30-day total.
    • Sponsor information displays the page-view count instead of the visitor count.
    • Referrer summaries show up to six sources, ordered by page views, excluding “Others.”
    • Statistics tiles keep their values aligned when labels wrap, and the copied-items tile label now matches its displayed count.

Page views run higher than unique visitors, so the stats lead with them:

- The 30-day tile reads "Page views" (25.4K rather than 10.2K visitors).
- The daily chart plots page views, with visitors kept as a secondary
  row in the tooltip. The peak label follows.
- Top referrers rank by page views, re-sorted since Tracwell orders its
  breakdown by visitors.
- The sponsor dialog's pitch quotes page views.

"Installs copied" becomes "Components copied". Tile values now sit on
the tile's floor, so a label that wraps to two lines no longer knocks its
number out of line. The Tracwell cache key is bumped because the cached
shape changed.
@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
evil-buttons Ready Ready Preview Sep 30, 2026 11:43am UTC

@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 17ebfe5e-0393-4dec-aa25-6477e74e224f

📥 Commits

Reviewing files that changed from the base of the PR and between 4081867 and bbdb0e3.

📒 Files selected for processing (6)
  • app/page.tsx
  • components/landing/analytics-charts.tsx
  • components/landing/sponsor-dialog.tsx
  • components/landing/sponsors-section.tsx
  • components/landing/stats-section.tsx
  • lib/landing-stats.ts
 ______________________________________________________________
< I had to scroll so far I hit the heat death of the universe. >
 --------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

@radiumcoders radiumcoders changed the title Show page views instead of visitors in the landing stats Show page views, drop the daily chart, and rename installs copied Sep 30, 2026
The stats section is now the KPI tiles plus the referrer and most-copied
bar lists. The daily trend it no longer shows is dropped from the Tracwell
fetch too.

With the area chart gone, its vendored Bklit files (area-chart,
chart-series, x-axis, shimmering-text) go with it, along with the
packages nothing imports anymore: @visx/curve, @visx/gradient, d3-array,
d3-shape and their types. The bar chart's files stay whole so it can
still be refreshed from the registry.
@radiumcoders
radiumcoders merged commit e0ce633 into main Sep 30, 2026
0 of 2 checks passed
@radiumcoders
radiumcoders deleted the page-views-stats branch September 30, 2026 11:43

This branch was successfully deployed

2 active deployments
Production — e0ce633f Deployed Sep 30, 2026 by vercel[bot]
Preview — e0ce633f Deployed Sep 30, 2026 by vercel[bot]
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