Migrate SearchPage.js to function component #27924
Migrate SearchPage.js to function component #27924marcaaron merged 24 commits intoExpensify:mainfrom
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 |
marcaaron
left a comment
There was a problem hiding this comment.
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.
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 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 */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
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