-
Notifications
You must be signed in to change notification settings - Fork 3
feat: enhance user profile management and fix some state issues #20
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
Open
UnschooledGamer
wants to merge
14
commits into
Acode-Foundation:main
Choose a base branch
from
UnschooledGamer:quixotic-whippet
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: enhance user profile management and fix some state issues #20
UnschooledGamer
wants to merge
14
commits into
Acode-Foundation:main
from
UnschooledGamer:quixotic-whippet
Conversation
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
- Introduced a memoized ProfileManagement component to optimize rendering.
- Fix re-renders on tabs switching
- Improved form handling for user profile updates, including name, email, website, and GitHub.
- Added `User Not Logged In` Contents.
- Refactored state management for better clarity and performance.
- Move profileManagement to it's own component, to avoid states cluttering on parent component - Adds `.env*` and `certs` to `.gitignore` to ignore environmental and setup files. - Introduces lazy loading for images in the UserPluginsOverview component to improve performance. - Refactors Dashboard, Login and Plugins pages to use `useNavigate` hook instead of `window.location.href` to improve routing.
Member
Author
|
✅ Usage of Navigate hook/whatever instead of |
- Updated logout handling to improve user feedback with toast notifications and added redirect functionality. - Refactored OTP verification process to ensure proper event handling and improved error messaging. - Adjusted button attributes in the Login component to indicate upcoming features and improved accessibility.
- Removed unused imports and mock user data from the Dashboard component. - Simplified the component structure by retaining only necessary hooks and elements. - Updated the memoization of the current user to directly use the logged-in user data.
- Integrated @tanstack/react-form for improved form handling in the ProfileManagement component. - Added validation schema using zod for user inputs including name, email, website, and GitHub ID. - Refactored form submission logic to utilize the new form library, enhancing user experience and feedback. - Cleaned up unused imports and improved code readability.
Member
Author
|
✅ Form handling of Tanstack Forms |
- Added AuthProvider to the main application structure for centralized authentication management. - Refactored FloatingNav component to utilize useAuth hook for user state and logout functionality. - Improved user login state handling by replacing previous user data fetching logic.
- Refactored ProfileManagement and UserPluginsOverview components to utilize useAuth for user state management. - Updated handleUpdateProfile function to leverage the new updateProfile method from AuthContext. - Simplified user data retrieval in Dashboard and usePlugins hooks by replacing useLoggedInUser with useAuth. - Enhanced code readability and maintainability by centralizing authentication logic.
- Updated EarningsOverview, AdminDashboard, DeveloperProfile, and FAQ components to utilize useAuth for user state management. - Simplified user data retrieval by centralizing authentication logic through AuthContext. - Enhanced code maintainability and readability by removing deprecated hooks.
- Upgraded @radix-ui/react-avatar to version 1.1.10 and updated related dependencies in package-lock.json. - Refactored profile management form validation to utilize zod's superRefine for improved error handling and validation logic. - Cleaned up unused console logs and improved the structure of the profile management component for better readability and maintainability.
…s `(soon)` - Removed the isSubmitting state from ProfileManagement as it was no longer needed. - Updated the avatar button to be disabled and added a label indicating upcoming functionality.
… data - Removed unused mock user data from the ProfileManagement component to streamline the code. - Simplified imports by eliminating the unused superRefine from zod.
bajrangCoder
requested changes
Nov 6, 2025
- Replaced useParams with useSearchParams to retrieve redirect URL in the Login component. - Improved redirect logic to handle navigation based on search parameters, enhancing user experience.
bajrangCoder
approved these changes
Nov 7, 2025
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.
User Not Logged InContents.window.location.hrefUpgraded @radix-ui/react-avatar to version 1.1.10 and updated related dependencies in package-lock.json. (b8afc09)