Skip to content

showcase: drop redundant stars badge#213

Closed
aryanmehrotra wants to merge 1 commit into
mainfrom
fix/showcase-remove-redundant-stars-badge
Closed

showcase: drop redundant stars badge#213
aryanmehrotra wants to merge 1 commit into
mainfrom
fix/showcase-remove-redundant-stars-badge

Conversation

@aryanmehrotra

Copy link
Copy Markdown
Member

Summary

  • The header already shows a live, accurate GitHub star count. The /showcase page rendered a second badge backed by a client-side localStorage cache that was never refreshed — so visitors saw a stale number (e.g. 14.2K on /showcase vs 21.5K in the header).
  • Removed the badge. As a direct consequence the page no longer needs 'use client', the useState/useEffect pair, or the formatNumber import — /showcase becomes a fully-static route (478 B down from 4.85 kB).

Test plan

  • npx next build — succeeds; /showcase listed as ○ (static), 478 B.
  • Visual check on staging: hero shows just the heading, header still shows live star count.

🤖 Generated with Claude Code

The header already shows a live, accurate star count via its own
fetch. The showcase page rendered a second badge backed by a
client-side localStorage cache that was never refreshed, so users
hitting /showcase saw a stale number (e.g. 14.2K against the
header's 21.5K).

Removing the badge also lets the page lose 'use client', the
useState/useEffect pair, and the formatNumber import — /showcase
becomes a fully-static route (478 B vs 4.85 kB before).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 5, 2026 17:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a redundant GitHub stars badge from the /showcase page to avoid displaying stale star counts and to keep the route fully static (relying on the header’s live star count instead).

Changes:

  • Removed client-side stars badge logic (localStorage cache + GitHub API fetch) from the /showcase hero.
  • Dropped 'use client' and related React hooks/imports so /showcase can render as a server component/static route.
  • Added an inline hero comment explaining why the star count is no longer repeated on the page.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aryanmehrotra

Copy link
Copy Markdown
Member Author

Superseded by #215 — all commits from this branch are stacked there as part of a single QA-bundle PR. Closing without deleting the branch.

@aryanmehrotra aryanmehrotra mentioned this pull request May 7, 2026
@aryanmehrotra aryanmehrotra deleted the fix/showcase-remove-redundant-stars-badge branch June 29, 2026 09:01
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