Search Results Page Header Cleanup#48538
Conversation
Kicu
left a comment
There was a problem hiding this comment.
LGTM, I don't think there is enough duplication to warrant for any code extraction. This looks good as is.
I have a feeling this PageHeader will be becoming more and more complex in future, so not worth it to refactor it heavily today
|
@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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-11.at.4.45.33.PM.movAndroid: mWeb ChromeScreen.Recording.2024-09-11.at.4.42.33.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-09-11.at.16.41.55.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-09-11.at.16.39.55.mp4MacOS: Chrome / Safari
Screen.Recording.2024-09-11.at.4.28.17.PM.movScreen.Recording.2024-09-11.at.4.29.06.PM.mov
MacOS: DesktopScreen.Recording.2024-09-11.at.4.40.41.PM.mov |
|
@rayane-djouah friendly bump |
|
Let's get this one to the finish line! |
|
@Expensify/design, we've removed the
VideoScreen.Recording.2024-09-10.at.10.48.52.AM.mov
VideoSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-09-10.at.10.51.33.mp4What do you think? How can we make the selected type clearly displayed on the search result page? |
|
Good catch @rayane-djouah I think the current state we landed in is because originally the plan was to have both Status and Type in the contextual tabs at top like in here: However over the course of implementing this we forgot about it. That being said I saw somewhere on slack threads where the designers were reconsidering what should be displayed on LHN and what on the tabs. |
|
@shawnborton I think this PR is removing the |
Ah yes but the whole point is that the type is not being added to the header for things like invoices. I am saying we should add |
|
@shawnborton @luacmartins are we still adding the bar with types, like in old screenshots and in Figma? |
|
@shawnborton Do we need to add both |
I think that is the plan for custom searches at least.
Good question. I think the answer is yes? The tab bar and status bar are kind of like helpers that help you build the query, but I think we still want to show the query in the search input. Is that your understanding too @luacmartins ? |
|
Yes, I think we should show both type and status on the header for now. @Kicu yes, we're still replacing the header with the search and type bars |
rayane-d
left a comment
There was a problem hiding this comment.
Changes look good to me and test well. The reviewer checklist is also complete.
|
✋ 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 production by https://github.com/luacmartins in version: 9.0.33-4 🚀
|





Details
Cleanup od Search Page Header. Replace IDs by actual names. Cleanup SearchUtils file.
Fixed Issues
$ #47254
$ #48483
PROPOSAL:
Tests
In,Card,TaxRate,From,To)Offline tests
QA Steps
same steps as Test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Screen.Recording.2024-09-06.at.13.36.07.mp4
Android: mWeb Chrome
Screen.Recording.2024-09-06.at.13.38.05.mp4
iOS: Native
Screen.Recording.2024-09-06.at.13.27.35.mp4
iOS: mWeb Safari
Screen.Recording.2024-09-06.at.13.30.42.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-09-06.at.12.55.27.mp4
MacOS: Desktop