-
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 SearchPage.js to function component #27924
Migrate SearchPage.js to function component #27924
Conversation
…1-SearchPage-refactoring
…1-SearchPage-refactoring
…1-SearchPage-refactoring # Conflicts: # src/pages/SearchPage.js
@luacmartins Please 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] |
Assigning @allroundexperts since this is another attempt to fix #16251 @luacmartins gonna remove ya from this one. |
@Piotrfj Bump for the lint errors and conflicts! |
@allroundexperts Piotr is on a sick leave, he'll be back tomorrow |
@allroundexperts I have been working on the fix, but first solution turn out to be buggy and too much of workaround, today I was working on the different approach and will present it fully on monday |
That comment was put here by mistake. I'm surprised that there are still conflicts. Will solve them tomorrow morning |
…1-SearchPage-refactoring # Conflicts: # src/pages/SearchPage.js
@allroundexperts conflicts and lint issues resolved, ready to check and merge, sorry it took so long. |
…1-SearchPage-refactoring # Conflicts: # src/pages/SearchPage.js
@allroundexperts conflicts resolved again, please merge so we can close it |
Still lint errors! |
@allroundexperts fixed, lint error was related to changes outside of my refactor |
@Piotrfj Conflicts now! |
…1-SearchPage-refactoring # Conflicts: # src/pages/SearchPage.js
@allroundexperts fixed, there were some logic changes again outside of the refactoring, please review and merge. |
…1-SearchPage-refactoring # Conflicts: # src/pages/SearchPage.js
waiting for review |
@Piotrfj There are still pending comments. |
@allroundexperts I'm taking over this PR from @Piotrfj as he's ooo. |
Sounds good @koko57! Please take care of comments and we should be good here. |
@allroundexperts I've merged with main and answered on your comments 🙂 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-12-14.at.8.30.25.AM.movAndroid: mWeb ChromeScreen.Recording.2023-12-14.at.8.29.42.AM.moviOS: NativeScreen.Recording.2023-12-14.at.7.52.11.AM.moviOS: mWeb SafariScreen.Recording.2023-12-14.at.7.51.13.AM.movMacOS: Chrome / SafariScreen.Recording.2023-12-14.at.7.43.37.AM.movMacOS: DesktopScreen.Recording.2023-12-14.at.7.46.52.AM.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.
Looks good!
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.
Couple small comments. Thanks for the changes!
@marcaaron ready for re-review |
@koko57 thanks for your patience! I am sorry there are conflicts again. Hopefully we can resolve the conversation above on the next exchange 🚀 |
@marcaaron conflicts resolved, changes applied |
✋ 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/marcaaron in version: 1.4.15-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.15-5 🚀
|
}; | ||
|
||
const onChangeText = (value = '') => { | ||
Report.searchInServer(searchValue); |
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.
This is causing the previously stored searchValue
to be sent and not the newest value
Details
Fixed Issues
$ #16251
PROPOSAL: #16251 (comment)
Tests
Offline 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
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
Kapture.2023-08-23.at.14.57.44.mp4
Mobile Web - Chrome
Mobile Web - Safari
Desktop
Kapture.2023-08-23.at.14.57.44.mp4
iOS
Kapture.2023-08-24.at.13.12.01.mp4
Android
Kapture.2023-08-23.at.15.14.34.mp4