feat: implement global loading and error states (#76)#77
Merged
akash-kumar-dev merged 1 commit intobrowseping:mainfrom Mar 2, 2026
Merged
feat: implement global loading and error states (#76)#77akash-kumar-dev merged 1 commit intobrowseping:mainfrom
akash-kumar-dev merged 1 commit intobrowseping:mainfrom
Conversation
|
@shruthideepikareddy is attempting to deploy a commit to the Akash Kumar's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
akash-kumar-dev
approved these changes
Mar 2, 2026
Member
|
Everything looks good to merge. Thanks @shruthideepikareddy for your valuable contributions! |
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.
Description
This PR implements root-level loading and error handling states using Next.js built-in loading.tsx and error.tsx conventions. It significantly improves the "perceived performance" by providing a consistent, branded UI during navigation and a robust fallback for unexpected errors.
Type of Change
Closes #76
Changes Made
Please list the specific changes made in this PR:
Global Loading State: Added src/app/loading.tsx featuring a premium animated background and "Syncing Data" indicator.
Global Error Boundary: Added src/app/error.tsxwith a recovery UI ("Try Again" and "Back to Home") and specific styling for error alerts.
Leaderboard Skeleton: Added a specialized LeaderboardSkeleton component and integrated it into the leaderboard route for a smoother data-fetching experience.
Testing Done
Please describe how you tested your changes:
npm run dev)npm run build && npm start)npm run lint)Screenshots (if applicable)
Checklist
IMPORTANT: Please ensure all items are checked before submitting. PRs that don't follow these guidelines may be closed.
Additional Notes
Any additional information that would be helpful for reviewers?
Remember: Quality over quantity. A well-tested, properly documented small PR is better than a large, rushed contribution.
For more details, please refer to our Contributing Guidelines.