Skip to content

Conversation

@UnschooledGamer
Copy link
Member

@UnschooledGamer UnschooledGamer commented Oct 23, 2025

  • Introduced a memoised ProfileManagement component to optimise rendering.
  • Moved profileManagement to its own component, to avoid state cluttering on the parent component
  • Fixed re-renders on tab 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.
  • Usage of Navigate hook/whatever instead of window.location.href
  • enhanced profile management with ZOD form validation & tanstack Forms
  • ✅ Form handling of Tanstack Forms (b8afc09)

Upgraded @radix-ui/react-avatar to version 1.1.10 and updated related dependencies in package-lock.json. (b8afc09)

UnschooledGamer and others added 3 commits October 23, 2025 21:23
    - 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.
@UnschooledGamer
Copy link
Member Author

✅ Usage of Navigate hook/whatever instead of window.location.href

- 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.
@UnschooledGamer
Copy link
Member Author

UnschooledGamer commented Nov 1, 2025

TODO - Form handling of Tanstack Forms

✅ 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.
@UnschooledGamer UnschooledGamer marked this pull request as ready for review November 5, 2025 15:59
… data

- Removed unused mock user data from the ProfileManagement component to streamline the code.
- Simplified imports by eliminating the unused superRefine from zod.
- 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.
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.

2 participants