-
Notifications
You must be signed in to change notification settings - Fork 0
Profile settings #34
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
Profile settings #34
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the profile settings functionality by updating authentication handling, refining user update/delete logic, and introducing a new ProfileSettings UI with its supporting components. Key changes include:
- Updating authentication redirection and email verification logic in the withAuth HOC.
- Expanding Firebase functions with lowercased username/email checks, email verification on update, and user deletion with reauthentication.
- Adding new components for profile settings, password confirmation modal, and input component enhancements.
Reviewed Changes
Copilot reviewed 9 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/hoc/withAuth.js | Modified redirection method and conditional logic to handle unverified emails. |
src/firebase.js | Extended user signup/update/delete functionality with additional checks and error handling. |
src/context/AuthContext.js | Wrapped onAuthStateChanged callback to catch and log errors. |
src/components/validateEmail/ValidateEmail.js | Added component to prompt for email validation. |
src/components/profileSettings/ProfileSettings.js | Introduced profile settings form with edit and delete account features. |
src/components/passwordModal/PasswordModal.js | Created confirmation modal for account deletion. |
src/components/input/Input.js | Updated input component to support disabled state and CSS modifications. |
src/app/profile/page.js | Integrated ProfileSettings component into the profile page. |
src/app/dashboard/page.js | Updated dashboard page structure; now expects currentUser as a prop. |
Files not reviewed (4)
- src/components/input/Input.module.css: Language not supported
- src/components/passwordModal/PasswordModal.module.css: Language not supported
- src/components/profileSettings/ProfileSettings.module.css: Language not supported
- src/components/validateEmail/ValidateEmail.module.css: Language not supported
Comments suppressed due to low confidence (2)
src/firebase.js:324
- The 'auth' instance is not defined in this scope. Initialize it with 'const auth = getAuth();' before accessing 'currentUser'.
const user = auth.currentUser;
src/app/dashboard/page.js:11
- The 'router' is used inside handleButtonClick but is not defined in the component. Add 'const router = useRouter();' to enable navigation.
const Dashboard = ({ currentUser }) => {
Co-authored-by: Copilot <[email protected]>
No description provided.