Skip to content

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

Merged
merged 17 commits into from
Apr 28, 2025
Merged

Profile settings #34

merged 17 commits into from
Apr 28, 2025

Conversation

dgomie
Copy link
Owner

@dgomie dgomie commented Apr 28, 2025

No description provided.

@dgomie dgomie requested a review from Copilot April 28, 2025 03:58
@dgomie dgomie self-assigned this Apr 28, 2025
Copy link

vercel bot commented Apr 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
legionoftones ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 28, 2025 4:01am

Copy link
Contributor

@Copilot Copilot AI left a 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 }) => {

@dgomie dgomie linked an issue Apr 28, 2025 that may be closed by this pull request
@dgomie dgomie merged commit 1ff4d00 into main Apr 28, 2025
2 checks passed
@dgomie dgomie deleted the profile-settings branch April 28, 2025 04:01
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.

Profile: settings
1 participant