-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[CP Staging] Add currentStep to navigation hook to prevent lock in 2fa setup step #27938
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
[CP Staging] Add currentStep to navigation hook to prevent lock in 2fa setup step #27938
Conversation
situchan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link issue correctly to #27928
|
This solves the issue but there's redundant call of |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-09-21.at.6.52.17.PM.movMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
|
@ospfranco Test videos missing. Also update Tests / QA steps |
|
@situchan what videos? do you want me to make videos? also add steps? |
Videos verifying that the changes address the change on the different platorms And yeah test steps so our QA team can go through and test your changes and expect that they work as intended |
|
Filling these in for you since this is to unblock deploy - but next time it's helpful to add steps so the team can validate the changes |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…n-in-2fa (cherry picked from commit d771498)
@ospfranco I meant:
This is mandatory step in every PR. |
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.3.72-10 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
ah ok, sorry! will do next time :) |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.72-11 🚀
|
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.3.74-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|

Details
When merging the batching PR the 2fa seemed to be broken. We assumed it was because of a < FocusTrap /> component that got merged and then reverted. I quickly tested it and it seemed to be working. Now reports came in, that it is still broken:
#27230 (comment)
After some debugging, it seems the batching PR again collapsed some rendering cycles showing that a useEffect hook was not complete and would lock the component on the codes step. I added the other variable on the dependency array, but I'm not 100% if this will work, as the comment suggest it is not desired to add all the dependencies.
In any case, this seems to be fix the loop. Please give it a test.
Fixed Issues
$ #27928
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android