Skip to content
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

Feature/change email #407

Merged
merged 4 commits into from
Nov 5, 2024
Merged

Conversation

evertiro
Copy link

@evertiro evertiro commented Nov 4, 2024

Changelog

Adds an option to user profiles to change their registered email address.

✨ Additions

  • Added Change E-Mail button and associated modal to user profiles

Contributor's Checklist

  • This PR was created to resolve an existing issue or set of issues.
  • This PR satisfies any and all acceptance criteria laid out by issue(s) it resolves.
  • I have discussed creating this PR with the maintainers in the issue(s) beforehand.
  • I have thoroughly tested the changes this PR introduces in a local development environment.
  • I have linted the entire codebase using yarn lint and confirmed there are no errors or warnings.
  • I have followed the commit conventions laid out by CONTRIBUTING.md.

Maintainer's Checklist

  • User-facing changes this PR introduces has been or will be documented in CHANGELOG.md.
  • This PR has been linted and tested locally as a part of the review process.
  • All issues this PR resolves have been properly linked before merging.

Dan Griffiths added 2 commits November 3, 2024 01:18
Signed-off-by: Dan Griffiths <[email protected]>
@UncleClapton UncleClapton self-assigned this Nov 4, 2024
Copy link
Member

@UncleClapton UncleClapton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! just a couple things to clean up :)

Comment on lines 100 to 102
const emails = {
update: 'emails/update',
}
Copy link
Member

@UncleClapton UncleClapton Nov 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets move this so it's a sub-group of the user actions named email, since it only pertains to the user's email.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved with 5a97cf5

Comment on lines 22 to 32
export const changeEmail = ({ id, ...data }) => {
return frApiPlainRequest(
actionTypes.emails.update,
{
url: `/users/${id}/email`,
method: 'patch',
data: createRequestBody('email-changes', data),
},
)
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets move this to the user actions file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved with 5a97cf5

Signed-off-by: Dan Griffiths <[email protected]>
@evertiro evertiro requested a review from UncleClapton November 4, 2024 23:52
Copy link
Member

@UncleClapton UncleClapton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@UncleClapton UncleClapton merged commit 31c5fb9 into FuelRats:develop Nov 5, 2024
2 checks passed
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