Refactored the NewPasswordForm component to functional#18081
Conversation
|
@rushatgabhane @deetergp One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@marc maybe you want to review this as this is related to migrating the component to functional component. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-05-09.at.09.22.08.mov |
rushatgabhane
left a comment
There was a problem hiding this comment.
Seems like a straight forward refactor to me. Looks good!
|
Wait a minute, can we skip refactoring this? What is the use of password reset page if you can never login with a password? |
|
Since the work is already done by @techievivek let's ignore my previous comment 😅 Completing the checklist! |
|
Unfortunately we're stuck with using passwords for at least another couple weeks. 😬 😅 |
|
@rushatgabhane Will you look into completing the PR review checklist? |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/techievivek in version: 1.3.13-0 🚀
|
|
@techievivek How can we verify the passwordless flow now. It always takes to it now 18081.Web.mp4 |
|
@techievivek isn't passwordless live for everyone now? Do we even need to test this / shouldn't we remove this stuff soon anyway? |
|
@Beamanator Yes, as part of passwordless we will need to clean a few of things from the App as well. |
I don't think this is doable now given everything is migrated to passwordless(I think). So if you see the setpassword page and that makes an API request I think we are good. |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.13-5 🚀
|





Details
Refactored the
NewPasswordFormcomponent from class component to functional component.Fixed Issues
$ #16282
PROPOSAL: N/A
Tests
I am not 100% confident that this feature can be tested completely because I am passwordless so I just made sure the page gets loaded properly and the state of the error and other things changes as expected.
/setpassword/<accountID>/randomNumbersCONST.ENVIRONMENT.DEVenvironment check. Once you have done just enter the setpassword link in the browser and you will see a popup to open the same path in the Desktop app.On native platforms, run
npx uri-scheme open expensify-cash://setpassword/asdf --[ios/android]once you have the simulator runningOffline 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
Screen.Recording.2023-05-04.at.6.19.05.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-05-04.at.6.53.41.PM.mov
Mobile Web - Safari
Screen.Recording.2023-05-04.at.7.07.04.PM.mov
Desktop
Screen.Recording.2023-05-04.at.7.03.24.PM.mov
iOS
Screen.Recording.2023-05-04.at.7.04.30.PM.mov
Android
Screen.Recording.2023-05-04.at.6.37.30.PM.mov