-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[NoQA] refactor: migrate RadioButtons to function component #22770
[NoQA] refactor: migrate RadioButtons to function component #22770
Conversation
Reviewer Checklist
Screenshots/Videos |
@payal-lathidadiya Can you please merge BTW, for deep links you can simply send your self a link and click on it. |
@s77rt thanks for review and feedback. I was going through past development in this module, but couldn't really find easy way to test this locally. Sure, I can further check for help in slack if there is better way to approach testing of this. thanks for callout.
Not sure I followed, can you explain a bit more. |
@payal-lathidadiya I see, in case no clear QA tests are found we can probably skip this.
I'm just suggesting an alternative way to access deep link, instead of going through |
Awh! gotcha. this is helpful. thanks |
@s77rt Gentle reminder in case you missed this! |
I didn't 😅 I thought we are waiting for the QA steps from the Slack thread. Well let's just treat this as noQa and move on. Please update the title and prefix it with |
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! 🚀
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!
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
✋ 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/robertjchen in version: 1.3.43-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/robertjchen in version: 1.3.43-0 🚀
|
🚀 Deployed to staging by https://github.com/robertjchen in version: 1.3.44-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.43-7 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
Details
Migrate RadioButtons.js to function component
Fixed Issues
$ #16194
PROPOSAL: #16194 (comment)
Tests
[DEV] I think the simplest way to test it, without the account with a wallet, is to hardcode questions. You can do it by changing these lines in AdditionalDetailsStep.js:
to:
Access the Idology question section inside Enable Payments Page by entering:
http://localhost:8080/enable-payments
To test this on other platform Desktop, android/ios app, you can send link for this to some chat and click to open that
Click/Press the radio button, verify styling and behavior
NOTES:
Deep-link into the enable-payments page:
Verify that no errors appear in the JS console
Offline tests
QA Steps
NA
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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android