-
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
Redesign search to always show search input(mobile + desktop). #55078
Redesign search to always show search input(mobile + desktop). #55078
Conversation
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 promising 👍 left a bunch of polishing comments
return ROUTES.SEARCH_CENTRAL_PANE.getRoute({query}); | ||
}, | ||
}); | ||
} |
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.
} | |
} | |
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! |
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! 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.tsx
so that it has one render for narrow screen and one render for full screen, for better readability.SearchTypeMenuNarrow.tsx
and decuple it's logic fromSearchTypeMenu.tsx
, now this logic lives inSearchTypeMenuPopover.tsx
with the common parts ofSearchTypeMenuPopover
andSearchTypeMenu
put intoSearchUIUtils
.SearchSelectionModeHeader.tsx
as 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop