-
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
Migrate to functional component #23272
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
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.
Looks good to me!
We did not find an internal engineer to review this PR, trying to assign a random engineer to #16152 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemweb.chrome.movMobile Web - Safarimweb.safari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
@techievivek PR is ready for review |
src/components/FormSubmit/index.js
Outdated
this.submitForm = this.submitForm.bind(this); | ||
} | ||
|
||
function FormSubmit(props) { |
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.
let's use prop destructuring to follow guidelines: https://github.com/Expensify/App/blob/main/contributingGuides/STYLE.md#destructuring
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.
@ArekChr fixed.
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.
Looks good, thanks 🎉
@MaciejSWM Oops, just realized you will need to sign your commits. You can follow the instructions here https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#begin-coding-your-solution-in-a-pull-request |
@MaciejSWM Commits are still not verified, can you please look into it? It should appear like this. ![]() |
30eb859
to
041e13c
Compare
@ArekChr @techievivek I force pushed a signed commit. Ready for reapproval |
@MaciejSWM It still doesn't show as verified, any idea why? |
@techievivek I'll be OOO until tuesday. You are right, still some problems with signing the commits. I didn't solve it yesterday so I'll postpone it until next week. |
aa9ef80
to
a30fa09
Compare
@techievivek I force pushed the same changes, but this time it is verified 👍 cc @MaciejSWM |
@techievivek looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
It's passing all the tests, not an emergency merge. |
✋ 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.50-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.50-3 🚀
|
🚀 Deployed to staging by https://github.com/techievivek in version: 1.3.51-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.51-2 🚀
|
Details
Fixed Issues
$ #16152
Tests
Settings
->Profile
->Display Name
Enter
, form is submittedOffline tests
QA Steps
Settings
->Profile
->Display Name
Enter
, form is submittedEnter
keyPR 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-07-20.at.10.39.21.mov
Mobile Web - Chrome
Screen.Recording.2023-07-20.at.11.03.22.mov
Mobile Web - Safari
Screen.Recording.2023-07-20.at.10.58.11.mov
Desktop
Screen.Recording.2023-07-20.at.10.53.47.mov
iOS
Screen.Recording.2023-07-21.at.11.19.17.mov
Android
Screen.Recording.2023-07-20.at.11.03.22.mov