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

feat: add first and last name to settings page #1002

Open
wants to merge 1 commit into
base: split-fullname
Choose a base branch
from

Conversation

syedsajjadkazmii
Copy link

@syedsajjadkazmii syedsajjadkazmii commented Feb 19, 2024

This PR splits the full name field into first and last name if the first_name and last_name fields are both required in the REGISTRATION_EXTRA_FIELDS.

If first_name and last_name are required in the REGISTRATION_EXTRA_FIELDS, they are passed to the frontend otherwise these are not passed. And on frontend, we have our code behind the check for first_name and last_name.

@syedsajjadkazmii syedsajjadkazmii force-pushed the sajjad/VAN-1826 branch 3 times, most recently from 716426b to 13cbebc Compare February 20, 2024 05:57
@syedsajjadkazmii syedsajjadkazmii marked this pull request as draft February 20, 2024 06:12
@syedsajjadkazmii syedsajjadkazmii force-pushed the sajjad/VAN-1826 branch 3 times, most recently from a2dce0f to 28d80a7 Compare February 20, 2024 08:02
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

Attention: 31 lines in your changes are missing coverage. Please review.

Comparison is base (3467534) 56.53% compared to head (d67a252) 57.99%.

Files Patch % Lines
src/account-settings/data/sagas.js 0.00% 10 Missing and 1 partial ⚠️
src/account-settings/AccountSettingsPage.jsx 66.66% 4 Missing and 3 partials ⚠️
src/account-settings/NameField.jsx 91.56% 6 Missing and 1 partial ⚠️
src/account-settings/name-change/data/service.js 0.00% 4 Missing and 1 partial ⚠️
src/account-settings/name-change/data/sagas.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           split-fullname    #1002      +/-   ##
==================================================
+ Coverage           56.53%   57.99%   +1.46%     
==================================================
  Files                 118      119       +1     
  Lines                2457     2576     +119     
  Branches              654      698      +44     
==================================================
+ Hits                 1389     1494     +105     
- Misses                997     1005       +8     
- Partials               71       77       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@syedsajjadkazmii syedsajjadkazmii marked this pull request as ready for review February 20, 2024 11:30
@syedsajjadkazmii syedsajjadkazmii force-pushed the sajjad/VAN-1826 branch 3 times, most recently from e4a806f to e87d228 Compare February 20, 2024 13:06
@syedsajjadkazmii
Copy link
Author

syedsajjadkazmii commented Feb 20, 2024

There are some missing lines but there are already no tests for those lines so I hope this is okay. For example, sagas don't have tests in this MFE.

@syedsajjadkazmii syedsajjadkazmii force-pushed the sajjad/VAN-1826 branch 2 times, most recently from ba1c0fb to 0cdd767 Compare February 21, 2024 06:30
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.

1 participant