Conversation
|
Hi @c3024, can we check for the update here. |
c3024
left a comment
There was a problem hiding this comment.
Automation did not work. Commenting so that it appears on my K2.
…nd-code-validation
…nd-code-validation
…nd-code-validation
…nd-code-validation
c3024
left a comment
There was a problem hiding this comment.
Based on the clarification for case (2) here,
we need changes here,
Line 347 in fc849dd
- Navigation.goBack(ROUTES.SETTINGS_CONTACT_METHODS.getRoute(backTo));
+ Navigation.navigate(ROUTES.SETTINGS_CONTACT_METHOD_DETAILS.getRoute(contactMethod));and here,
- Navigation.goBack(ROUTES.SETTINGS_CONTACT_METHODS.getRoute(backTo));
+ Navigation.navigate(ROUTES.SETTINGS_CONTACT_METHODS.getRoute(backTo));|
Hi @c3024, let's check this again. |
|
The first change mentioned here for Here is the video showing this bug. validateChromeBug.mp4 |
…nd-code-validation
|
Hi @c3024, I haven't added that piece yet, seeing that there was a recent code change which removed navigation completely: https://github.com/Expensify/App/pull/48320/files#r1738644645 I'm still trying to figure out why that was done and what next to do. As it stands, adding that piece gives this flickering navigation behaviour as shown in the screen record Screen.Recording.2024-09-04.at.14.26.25.mov |
90ad353 to
d137dc5
Compare
…nd-code-validation
|
@c3024 added a fix and resolved your comment. |
|
Ping! ping!! @c3024 |
|
@c3024 can we check this one again |
|
Sorry, I missed the tag. Checking today. |
|
In the new contact adding flow, when we validate the primary contact, the secondary contact should be added to the contact methods. Previously, when validating the primary contact using the magic code in the new contact method flow, the app navigated to the ContactMethodsPage. Now, it navigates to the ContactMethodDetails page, allowing the user to go back without validating the secondary contact. If the user goes back again to the primary contact validation code page, the newly added but not yet validated secondary contact is removed locally and does not appear in the ContactMethodsPage. On this branch compared to staging: contactNotInContactMethodsPage.mp4The secondary contact method is still written to the backend, so it reappears after logging out and logging back in: logOutAndLogin.mp4 |
|
@c3024 Should work fine now |
|
@c3024 bump |
1 similar comment
|
@c3024 bump |
|
Thanks for the bump. I will check and update! |
|
Magic code is sent twice when adding a secondary contact. Like mentioned here in Step 7 in Test 2, there should be no duplicate magic code emails when adding a secondary contact. Screen.Recording.2024-12-05.at.1.10.50.PM.mov |
|
Ahh, okay, didn't see those steps |
|
update: found a root, trying to fix it without breaking other parts |
|
@c3024 Im getting super weird issues after merging main |
|
On staging: Between steps 2 and 3, a magic code was sent by the backend. Then, on clicking the contact method, another magic code was sent due to the frontend request. On this branch: Between steps 2 and 3, a magic code was sent by the backend. When the secondary contact method validation modal opens, another magic code was sent due to the frontend request. History of this issue: |
|
@c3024 Didnt you get the same not found on this branch after I merged main? |
|
Thank you for the detailed history, it helps a lot! |
|
Yes, I am also seeing the same Not Found after validating the primary contact when adding a secondary contact. |
|
Okay, finally I found that this change caused this not-found, as now contactMethod is setting to null and validation now works in a different way because of that To be honest Im a bit confused with all these changes, this flow is changing all the time and each merge breaking some part of the logic Initial issue for this PR was also closed yesterday, do we still want this PR to proceed? Can you please describe the desired/expected solution from this PR? I mean I cant find any expected behaviour, main issue was already closed yesterday, the flow works perfectly now without these changes and Im not sure what to do next, trying to change all fixes from other PRs or adjust to new changes or close this ticket as initial issue doesnt exist anymore |
|
Yes, I think we can close this PR. If necessary, a new issue can be created to fix the duplicate codes issue. |



Details
This PR fixes issue with sending email validation link. When a user triggers email validation from profile, the magic sign-in code isn't sent immediately till you have to trigger
Didn't receive a magic code?. This PR is raise to fix a reverted code merge #46846Fixed Issues
$: 41330
PROPOSAL: issuecomment
Tests
Verifying newly added account
Adding a Secondary Contact
Expectation: The validation link is sent first time, and user is not logged out when magic code is entered.
Offline tests
Verifying newly added account
Adding a Secondary Contact
Expectation: The validation link is sent first time, and user is not logged out when magic code is entered.
QA Steps
Verifying newly added account
Adding a Secondary Contact
Expectation: The validation link is sent first time, and user is not logged out when magic code is entered.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
MacOS: Chrome / Safari
Screen.Recording.2024-08-21.at.08.35.06.mov
iOS: Native
Android: Native
Android: mWeb Chrome
iOS: mWeb Safari
MacOS: Desktop