Redesign search to always show search input(mobile + desktop).#55078
Conversation
Kicu
left a comment
There was a problem hiding this comment.
Looks promising 👍 left a bunch of polishing comments
| return ROUTES.SEARCH_CENTRAL_PANE.getRoute({query}); | ||
| }, | ||
| }); | ||
| } |
src/components/Search/SearchPageHeader/SearchPageHeaderInput.tsx
Outdated
Show resolved
Hide resolved
src/components/Search/SearchPageHeader/SearchTypeMenuButton.tsx
Outdated
Show resolved
Hide resolved
src/components/Search/SearchPageHeader/SearchTypeMenuButton.tsx
Outdated
Show resolved
Hide resolved
src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/TopBar.tsx
Outdated
Show resolved
Hide resolved
|
@rayane-djouah 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] |
|
Ready for review @rayane-djouah ios.mov |
|
I'll spin up a test build! |
src/pages/Search/SearchTypeMenu.tsx
Outdated
| disabled: item.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE, | ||
| shouldIconUseAutoWidthStyle: true, | ||
| style: [styles.alignItemsCenter], | ||
| shouldRenderTooltip: index === 0 && shouldShowProductTrainingTooltip, |
There was a problem hiding this comment.
Removing this fixes the issue because we also render it in line 80 above
| shouldRenderTooltip: index === 0 && shouldShowProductTrainingTooltip, |
|
Ah yeah, the scroll bar stuff already exists on production, so I'll go ahead and report it in #expense for now. |
|
Yeah the scroll bug seems strange, I though I fixed it, because it stopped to reproduce on my end. |
There was a problem hiding this comment.
LGTM - Solid work! 🚀
@luacmartins The PR Reviewer checklist fails because this one still exists - once that's deleted, my completed checklist will pass the checklist test.
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
luacmartins
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the hard work here
|
Verify Android HybridApp builds on main is failing because of |
|
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
See above comment |
|
✋ 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/luacmartins in version: 9.0.92-0 🚀
|
|
Sorry, noting here too just to make sure - this was reverted as noticeable delay to switch to the Reports page was noticed #56032 |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.92-6 🚀
|
Explanation of Change
This PR is mainly about redesigning Search Page but I also made a pretty big refactor and improved performance of Search Page mobile header animation.
These are the design changes:
These are refactor changes:
SearchPageBottomTab.tsxso that it has one render for narrow screen and one render for full screen, for better readability.SearchTypeMenuNarrow.tsxand decuple it's logic fromSearchTypeMenu.tsx, now this logic lives inSearchTypeMenuPopover.tsxwith the common parts ofSearchTypeMenuPopoverandSearchTypeMenuput intoSearchUIUtils.SearchSelectionModeHeader.tsxas it added unnecessary layer that was confusing.Fixed Issues
$ #52317
$ #55828
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop