feat: Add shimmer loading skeletons for all data-loading states (Closes #827)#1248
Open
sepulchralvoid666 wants to merge 1 commit into
Open
Conversation
- New Skeleton.tsx component with: BountyCardSkeleton, BountyDetailSkeleton, PodiumSkeleton, LeaderboardRowSkeleton, ProfileBountyRowSkeleton, ProfileStatsSkeleton - BountyGrid: replace flat shimmer boxes with BountyCardSkeleton matching card layout - BountyDetailPage: replace flat shimmer boxes with BountyDetailSkeleton matching detail layout - LeaderboardPage: replace spinner with PodiumSkeleton + LeaderboardRowSkeleton - ProfileDashboard: replace 'Loading...' text with ProfileBountyRowSkeleton - index.css: add animate-content-appear transition for smooth content fade-in All skeletons match the shape and layout of their real content counterparts. Shimmer animation uses existing tailwind animate-shimmer config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Adds shimmer loading skeleton components matching the layout of actual content for all data-loading states across the site.
New Component:
Skeleton.tsxBountyCardSkeleton— mirrors BountyCard layout (repo, tier, title, tags, reward, meta)BountyDetailSkeleton— mirrors BountyDetail layout (title card, sidebar, submissions)PodiumSkeleton— mirrors PodiumCards layout (3 podium positions with height differences)LeaderboardRowSkeleton— mirrors leaderboard table rows (rank, avatar, name, stats)ProfileBountyRowSkeleton— mirrors profile bounty list rowsProfileStatsSkeleton— mirrors stats grid cardsPages Updated
BountyCardSkeleton(6 cards)BountyDetailSkeletonPodiumSkeleton+ 5LeaderboardRowSkeletonLoading...text with 4ProfileBountyRowSkeletonHow it works
animate-shimmerfrom tailwind.config.js (gradient sweep animation)ShimmerBlockbase component for consistent shimmer stylinganimate-content-appearCSS animation for smooth transition when real content loadsTesting
Closes #827
Wallet: 2JHa4QQWNV7AGSGsVeX1cwjZtFcmTTomb1TrJmQthoh3