Mahathi taking over for Sriamsh- Implement production identity validation flow Frontend - #5420
Mahathi taking over for Sriamsh- Implement production identity validation flow Frontend#5420mahathiganimi wants to merge 2 commits into
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
iAbhi001
left a comment
There was a problem hiding this comment.
Local testing passed smoothly! The Production Identity section works as expected (verification, auto-population, locking fields, and handling error states for invalid/non-existent accounts).
One minor blocker before this can be merged:
- SonarCloud Quality Gate Failure: SonarQube flagged a C Reliability Rating on the new code. Please check the SonarCloud analysis details and address the flagged bug/reliability issue so the check passes.
Once that check is green, this looks ready to go!
AnshShah-18
left a comment
There was a problem hiding this comment.
Tested locally with the related backend PR. The Production Identity section appears correctly on the Create New User form. Valid Production credentials complete verification, auto-populate the first name, last name, and email fields, and lock those fields from editing. A non-existent Production email displays the expected account-not-found message, and a valid email with an incorrect password displays the expected authentication error. All listed frontend testing steps worked as expected.
cfc25ff
|
DeepighaJ
left a comment
There was a problem hiding this comment.
- Tested the PR locally.
- Verified that the Production Identity section is displayed correctly.
- Verification with valid Production credentials succeeds, automatically populates the user's first name, last name, and email, and makes those fields read-only as expected. Verified that using a non-existent Production email displays the appropriate "no matching Production account exists" error, and using a valid Production email with an incorrect password displays the expected authentication error for invalid credentials.
- All tested functionality works as expected except dark mode.
- Issue:
Dark mode is inconsistent and needs improvement.
**Dark Mode Issue:**






Description
Related PRS (if any):
This frontend PR is related to the #2289 backend PR.
Main changes explained:
Added Production Identity verification UX in Create New User:
See UserProfileAdd.jsx
How to test:
REACT_APP_PRODUCTION_IDENTITY_VERIFICATION_ENABLED=trueto HighestGoodNetwork .env filenpm installand restart both servers, donpm run start:localon frontend to run this PR locallya. Verify that the Production Identity section (Production Email, Production Password, and Verify Production Identity button) is visible.
b. Enter valid Production credentials and click Verify Production Identity. Confirm that verification succeeds, the user's first name, last name, and email are auto-populated, and those fields become read-only.
c. Repeat the verification using a non-existent Production email. Verify that an error is displayed indicating that no matching Production account exists.
d. Repeat the verification using a valid Production email with an incorrect password. Verify that an authentication error is displayed indicating the credentials are invalid.