-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard V2 update #122
Merged
Merged
Dashboard V2 update #122
Conversation
This file contains 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
… language stats, and contest rankings concurrently; add 'sonner' package
…ed LeetCode API handler and improve logout functionality with loading state and error handling
…ed LeetCode API handler and improve logout functionality with loading state and error handling
…nce contest data labels with additional metrics
…contest ranking in LeetcodeData interface
…nd package-lock.json
…nstead of accepted submissions
…ust dashboard display for improved data visualization
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🚀 Hello @yashksaini-coder! Thank you for your contribution to the Leetcode Journal project! 🎉 PR Checklist:Please ensure your PR adheres to the following checklist:
Review Notifications:
The team will review your PR shortly. If you have any questions, feel free to ask here! |
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.
This pull request introduces significant refactoring and enhancements to the GraphQL queries, API routes, and user interface components. The changes include the modularization of GraphQL queries, restructuring of API routes for better performance, and improvements to the user logout functionality with enhanced user feedback.
GraphQL Queries Refactoring:
GQL_Queries/contest.ts
: Renamed thequery
constant tocontestQuery
and exported it. [1] [2]GQL_Queries/languageStats.ts
: Renamed thequery
constant tolanguageStats
and exported it. [1] [2]GQL_Queries/recentSubmit.ts
: Renamed thequery
constant torecentSubmissionList
and exported it. [1] [2]GQL_Queries/index.ts
: Removed unnecessary imports and exports.API Routes Improvements:
app/api/leetcode/route.ts
: Removed the old route implementation for fetching and storing LeetCode stats.app/api/leetcode/userDetails/route.ts
: Updated the route to fetch multiple pieces of data concurrently usingPromise.all
. [1] [2]User Interface Enhancements:
components/AuthComponent/Logout.tsx
: Improved the logout functionality by adding a loading state and error handling with user feedback via toast notifications. [1] [2] [3] [4]components/ui/sonner.tsx
: Added a newToaster
component to handle toast notifications with theme support.Additional Changes:
lib/leetcode-calendar-theme.ts
: Added a new theme configuration for the LeetCode calendar.package.json
: Added dependencies forleetcode-calendar
andsonner
packages. [1] [2]store/LeetcodeStore/useLeetcodeStore.ts
: Refactored the store to handle the new structure of LeetCode data and added loading and error states. [1] [2]utils/leetcode/leetcodeContollers.ts
: Added new functions to fetch recent submissions, language stats, and user contest ranking. [1] [2]