-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
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 |
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.
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? |
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.
LGTM!
✋ 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
NewPasswordForm
component 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>/randomNumbers
CONST.ENVIRONMENT.DEV
environment 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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