Skip to content

fix(ui): show skeleton instead of fake star count while loading#977

Open
tysoncung wants to merge 1 commit intoMODSetter:mainfrom
tysoncung:fix/918-github-stars-loading-state
Open

fix(ui): show skeleton instead of fake star count while loading#977
tysoncung wants to merge 1 commit intoMODSetter:mainfrom
tysoncung:fix/918-github-stars-loading-state

Conversation

@tysoncung
Copy link

@tysoncung tysoncung commented Mar 25, 2026

Problem

The GitHub stars badge displays 10000 as a placeholder with a rolling animation while loading. This misleads users into thinking that's the actual star count.

Solution

Replace the fake number with a Skeleton placeholder component during loading. Once the real star count loads, the AnimatedStarCount displays with isRolling={false}.

Changes

  • surfsense_web/components/homepage/github-stars-badge.tsx:
    • Import Skeleton from UI components
    • Show <Skeleton className="h-4 w-10" /> during loading
    • Display actual star count (no rolling) after load

Closes #918

High-level PR Summary

This PR improves the GitHub stars badge UX by replacing the misleading placeholder count of 10000 with a Skeleton component during the loading state. Once the actual star count is fetched, it displays without the rolling animation to avoid confusion about the real number.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 surfsense_web/components/homepage/github-stars-badge.tsx

Need help? Join our Discord

Analyze latest changes

…etter#918)

Replace the misleading 10000 placeholder with a Skeleton component
during the loading state of the GitHub stars badge. This prevents
users from thinking 10000 is the actual star count before real data
loads.

Closes MODSetter#918
@vercel
Copy link

vercel bot commented Mar 25, 2026

Someone is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@recurseml recurseml bot left a comment

Choose a reason for hiding this comment

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

Review by RecurseML

🔍 Review performed on a474c46..b17ce0e

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (1)

surfsense_web/components/homepage/github-stars-badge.tsx

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.

Fix misleading loading state in GitHub stars badge

1 participant